0byt3m1n1-V2
Path:
/
home
/
yvffpqmy
/
public_html
/
new
/
wp-content
/
plugins
/
css-hero
/
dist
/
[
Home
]
File: main.js
/*! For license information please see main.js.LICENSE.txt */ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=435)}([function(e,t,n){"use strict";e.exports=n(135)},function(e,t,n){var r=n(144),i=n(145),o=n(81),a=n(146);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t,n){e.exports=n(148)()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(150),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){var r=n(139),i=n(140),o=n(81),a=n(141);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=u(n(154)),i=u(n(225)),o=u(n(245)),a=u(n(246)),s=u(n(247)),l=u(n(248));function u(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=l.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),l=(0,i.default)(e,s);return(0,o.default)(l)};t.default=c},function(e,t,n){e.exports=n(147)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(249);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return f(r).default}});var i=n(74);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return f(i).default}});var o=n(252);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return f(o).default}});var a=n(253);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return f(a).default}});var s=n(255);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return f(s).default}});var l=n(269);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return f(l).default}});var u=n(114);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return f(u).default}});var c=n(277);function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return f(c).default}})},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),_=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var x=y&&(u||f&&(null==w||w<12.11)),k=n||a&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,S=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return O(e).appendChild(t)}function j(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function P(e,t,n,r){var i=j(e,t,n,r);return i.setAttribute("role","presentation"),i}function N(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function T(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function M(e,t){var n=e.className;E(t).test(n)||(e.className+=(n?" ":"")+t)}function D(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!E(n[r]).test(t)&&(t+=" "+n[r]);return t}C=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function F(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function I(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function R(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};function $(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var W={toString:function(){return"CodeMirror.Pass"}},z={scroll:!1},H={origin:"*mouse"},V={origin:"+move"};function U(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var q=[""];function G(e){for(;q.length<=e;)q.push(X(q)+" ");return q[e]}function X(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function K(){}function J(e,t){var n;return Object.create?n=Object.create(e):(K.prototype=e,n=new K),t&&I(t,n),n}var Z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Q(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Z.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Q(e))||t.test(e):Q(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:t<e.length)&&re(e.charAt(t));)t+=n;return t}function oe(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var le=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var u,c=a.length,f=[],p=0;p<c;++p)f.push((u=a.charCodeAt(p))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":8204==u?"b":"L");for(var d=0,h=l;d<c;++d){var m=f[d];"m"==m?f[d]=h:h=m}for(var v=0,g=l;v<c;++v){var y=f[v];"1"==y&&"r"==g?f[v]="n":n.test(y)&&(g=y,"r"==y&&(f[v]="R"))}for(var b=1,_=f[0];b<c-1;++b){var w=f[b];"+"==w&&"1"==_&&"1"==f[b+1]?f[b]="1":","!=w||_!=f[b+1]||"1"!=_&&"n"!=_||(f[b]=_),_=w}for(var x=0;x<c;++x){var k=f[x];if(","==k)f[x]="N";else if("%"==k){var E=void 0;for(E=x+1;E<c&&"%"==f[E];++E);for(var C=x&&"!"==f[x-1]||E<c&&"1"==f[E]?"1":"N",S=x;S<E;++S)f[S]=C;x=E-1}}for(var O=0,A=l;O<c;++O){var j=f[O];"L"==A&&"1"==j?f[O]="L":n.test(j)&&(A=j)}for(var P=0;P<c;++P)if(t.test(f[P])){var N=void 0;for(N=P+1;N<c&&t.test(f[N]);++N);for(var T="L"==(P?f[P-1]:l),M=T==("L"==(N<c?f[N]:l))?T?"L":"R":l,D=P;D<N;++D)f[D]=M;P=N-1}for(var L,F=[],I=0;I<c;)if(r.test(f[I])){var R=I;for(++I;I<c&&r.test(f[I]);++I);F.push(new o(0,R,I))}else{var B=I,$=F.length,W="rtl"==s?1:0;for(++I;I<c&&"L"!=f[I];++I);for(var z=B;z<I;)if(i.test(f[z])){B<z&&(F.splice($,0,new o(1,B,z)),$+=W);var H=z;for(++z;z<I&&i.test(f[z]);++z);F.splice($,0,new o(2,H,z)),$+=W,B=z}else++z;B<I&&F.splice($,0,new o(1,B,I))}return"ltr"==s&&(1==F[0].level&&(L=a.match(/^\s+/))&&(F[0].from=L[0].length,F.unshift(new o(0,0,L[0].length))),1==X(F).level&&(L=a.match(/\s+$/))&&(X(F).to-=L[0].length,F.push(new o(0,c-L[0].length,c)))),"rtl"==s?F.reverse():F}}();function ue(e,t){var n=e.order;return null==n&&(n=e.order=le(e.text,t)),n}var ce=[],fe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ce).concat(n)}};function pe(e,t){return e._handlers&&e._handlers[t]||ce}function de(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=$(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=pe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function me(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),he(e,n||t.type,e,t),we(t)||t.codemirrorIgnore}function ve(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==$(n,t[r])&&n.push(t[r])}function ge(e,t){return pe(e,t).length>0}function ye(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function xe(e){be(e),_e(e)}function ke(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Ce,Se,Oe=function(){if(a&&s<9)return!1;var e=j("div");return"draggable"in e||"dragDrop"in e}();function Ae(e){if(null==Ce){var t=j("span","");A(e,j("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ce=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ce?j("span",""):j("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function je(e){if(null!=Se)return Se;var t=A(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return O(e),!(!n||n.left==n.right)&&(Se=r.right-n.right<3)}var Pe,Ne=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Te=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Me="oncopy"in(Pe=j("div"))||(Pe.setAttribute("oncopy","return;"),"function"==typeof Pe.oncopy),De=null,Le={},Fe={};function Ie(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Le[e]=t}function Re(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Re("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Re("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Re(t);var n=Le[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var $e={};function We(e,t){I(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function ze(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function He(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ve(e,t,n){return!e.startState||e.startState(t,n)}var Ue=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ge(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Xe(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Ye(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Ke(e){if(null==e.parent)return null;for(var t=e.parent,n=$(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Je(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function Ze(e,t){return t>=e.first&&t<e.first+e.size}function Qe(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function it(e,t){return tt(e,t)<0?t:e}function ot(e,t){return tt(e,t)<0?e:t}function at(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function st(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,qe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,qe(e,t.line).text.length)}function lt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=st(e,t[r]);return n}Ue.prototype.eol=function(){return this.pos>=this.string.length},Ue.prototype.sol=function(){return this.pos==this.lineStart},Ue.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ue.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ue.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ue.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ue.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ue.prototype.skipToEnd=function(){this.pos=this.string.length},Ue.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ue.prototype.backUp=function(e){this.pos-=e},Ue.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=R(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},Ue.prototype.indentation=function(){return R(this.string,null,this.tabSize)-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},Ue.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ue.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ue.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ue.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ue.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ut=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,n,r){var i=[e.state.modeGen],o={};_t(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,_t(e,t.text,s.mode,n,(function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function pt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=dt(e,Ke(t)),i=t.text.length>e.options.maxHighlightLength&&ze(e.doc.mode,r.state),o=ft(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ct(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=qe(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ut?u.lookAhead:0)<=o.modeFrontier))return s;var c=R(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&qe(r,o-1).stateAfter,s=a?ct.fromSaved(r,a,o):new ct(r,Ve(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ht(e,t,n,r){var i=e.doc.mode,o=new Ue(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&mt(i,n.state);!o.eol();)vt(i,o,n.state),o.start=o.pos}function mt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=He(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function vt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=He(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,n){return t instanceof ut?new ct(e,ze(e.mode,t.state),n,t.lookAhead):new ct(e,ze(e.mode,t),n)},ct.prototype.save=function(e){var t=!1!==e?ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ut(t,this.maxLookAhead):t};var gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function yt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=qe(a,(t=st(a,t)).line),u=dt(e,t.line,n),c=new Ue(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=vt(s,c,u.state),r&&o.push(new gt(c,i,ze(a.mode,u.state)));return r?o:new gt(c,i,u.state)}function bt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function _t(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,f=new Ue(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&bt(mt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,f.pos),f.pos=t.length,l=null):l=bt(vt(n,f,r.state,p),o),p){var d=p[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||c!=l){for(;u<f.start;)i(u=Math.min(f.start,u+5e3),c);c=l}f.start=f.pos}for(;u<f.pos;){var h=Math.min(f.pos,u+5e3);i(h,c),u=h}}var wt=!1,xt=!1;function kt(e,t,n){this.marker=e,this.from=t,this.to=n}function Et(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ct(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function St(e,t){if(t.full)return null;var n=Ze(e,t.from.line)&&qe(e,t.from.line).markedSpans,r=Ze(e,t.to.line)&&qe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==tt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new kt(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new kt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=X(t.text).length+(u?i:0);if(s)for(var f=0;f<s.length;++f){var p=s[f];if(null==p.to){var d=Et(l,p.marker);d?u&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Et(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=Ot(s)),l&&l!=s&&(l=Ot(l));var v=[s];if(!u){var g,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(g||(g=[])).push(new kt(s[b].marker,null,null));for(var _=0;_<y;++_)v.push(g);v.push(l)}return v}function Ot(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function At(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function jt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Pt(e){return e.inclusiveLeft?-1:0}function Nt(e){return e.inclusiveRight?1:0}function Tt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=tt(r.from,i.from)||Pt(e)-Pt(t);if(o)return-o;var a=tt(r.to,i.to)||Nt(e)-Nt(t);return a||t.id-e.id}function Mt(e,t){var n,r=xt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Tt(n,i.marker)<0)&&(n=i.marker);return n}function Dt(e){return Mt(e,!0)}function Lt(e){return Mt(e,!1)}function Ft(e,t){var n,r=xt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Tt(n,o.marker)<0)&&(n=o.marker)}return n}function It(e,t,n,r,i){var o=qe(e,t),a=xt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=tt(u.from,n)||Pt(l.marker)-Pt(i),f=tt(u.to,r)||Nt(l.marker)-Nt(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.to,n)>=0:tt(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.from,r)<=0:tt(u.from,r)<0)))return!0}}}function Rt(e){for(var t;t=Dt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=qe(e,t),r=Rt(n);return n==r?t:Ke(r)}function $t(e,t){if(t>e.lastLine())return t;var n,r=qe(e,t);if(!Wt(e,r))return t;for(;n=Lt(r);)r=n.find(1,!0).line;return Ke(r)+1}function Wt(e,t){var n=xt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&zt(e,t,r))return!0}}function zt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return zt(e,r.line,Et(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&zt(e,t,i))return!0}function Ht(e){for(var t=0,n=(e=Rt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Vt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Dt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Lt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Ut(e){var t=e.display,n=e.doc;t.maxLine=qe(n,n.first),t.maxLineLength=Vt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Vt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var qt=function(e,t,n){this.text=e,jt(this,t),this.height=n?n(this):1};function Gt(e){e.parent=null,At(e)}qt.prototype.lineNo=function(){return Ke(this)},ye(qt);var Xt={},Yt={};function Kt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Yt:Xt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,t){var n=P("span",null,null,l?"padding-right: .1px":null),r={pre:P("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Qt,je(e.display.measure)&&(a=ue(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,pt(e,o,t!=e.display.externalMeasured&&Ke(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=D(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=D(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ae(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function Zt(e){var t=j("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Qt(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,f=e.cm.state.specialChars,p=!1;if(f.test(t)){u=document.createDocumentFragment();for(var d=0;;){f.lastIndex=d;var h=f.exec(t),m=h?h.index-d:t.length-d;if(m){var v=document.createTextNode(c.slice(d,d+m));a&&s<9?u.appendChild(j("span",[v])):u.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(g=u.appendChild(j("span",G(b),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((g=u.appendChild(j("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(j("span",[g])):u.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||p||o){var _=n||"";r&&(_+=r),i&&(_+=i);var w=j("span",[u],_,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,l[x]);return e.content.appendChild(w)}e.content.appendChild(u)}}function en(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var f=void 0,p=0;p<t.length&&!((f=t[p]).to>u&&f.from<=u);p++);if(f.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-u),i,o,null,s,l),o=null,r=r.slice(f.to-u),u=f.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,p,d=i.length,h=0,m=1,v="",g=0;;){if(g==h){l=u=c=s="",p=null,f=null,g=1/0;for(var y=[],b=void 0,_=0;_<r.length;++_){var w=r[_],x=w.marker;if("bookmark"==x.type&&w.from==h&&x.widgetNode)y.push(x);else if(w.from<=h&&(null==w.to||w.to>h||x.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==h&&(c+=" "+x.startStyle),x.endStyle&&w.to==g&&(b||(b=[])).push(x.endStyle,w.to),x.title&&((p||(p={})).title=x.title),x.attributes)for(var k in x.attributes)(p||(p={}))[k]=x.attributes[k];x.collapsed&&(!f||Tt(f.marker,x)<0)&&(f=w)}else w.from>h&&g>w.from&&(g=w.from)}if(b)for(var E=0;E<b.length;E+=2)b[E+1]==g&&(u+=" "+b[E]);if(!f||f.from==h)for(var C=0;C<y.length;++C)tn(t,0,y[C]);if(f&&(f.from||0)==h){if(tn(t,(null==f.to?d+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=d)break;for(var S=Math.min(d,g);;){if(v){var O=h+v.length;if(!f){var A=O>S?v.slice(0,S-h):v;t.addToken(t,A,a?a+l:l,c,h+A.length==g?u:"",s,p)}if(O>=S){v=v.slice(S-h),h=S;break}h=O,c=""}v=i.slice(o,o=n[m++]),a=Kt(n[m++],t.cm.options)}}else for(var j=1;j<n.length;j+=2)t.addToken(t,i.slice(o,o=n[j]),Kt(n[j+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Lt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Ke(X(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Wt(e,t)}function on(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new rn(e.doc,qe(e.doc,o),o);r=o+a.size,i.push(a)}return i}var an=null,sn=null;function ln(e,t){var n=pe(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:sn?r=sn:(r=sn=[],setTimeout(un,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function un(){var e=sn;sn=null;for(var t=0;t<e.length;++t)e[t]()}function cn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?dn(e,t):"gutter"==o?mn(e,t,n,r):"class"==o?hn(e,t):"widget"==o&&vn(e,t,r)}t.changes=null}function fn(e){return e.node==e.text&&(e.node=j("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function pn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Jt(e,t)}function dn(e,t){var n=t.text.className,r=pn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=fn(t);t.background=r.insertBefore(j("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?fn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=fn(t);t.gutterBackground=j("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=fn(t),s=t.gutter=j("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(j("div",Qe(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(j("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function vn(e,t,n){t.alignable&&(t.alignable=null);for(var r=E("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);yn(e,t,n)}function gn(e,t,n,r){var i=pn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),hn(e,t),mn(e,t,n,r),yn(e,t,r),t.node}function yn(e,t,n){if(bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)bn(e,t.rest[r],t,n,!1)}function bn(e,t,n,r,i){if(t.widgets)for(var o=fn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=j("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),_n(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),ln(l,"redraw")}}function _n(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function wn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!N(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),A(t.display.measure,j("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function xn(e,t){for(var n=ke(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function kn(e){return e.lineSpace.offsetTop}function En(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Cn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=A(e.measure,j("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Sn(e){return 50-e.display.nativeBarWidth}function On(e){return e.display.scroller.clientWidth-Sn(e)-e.display.barWidth}function An(e){return e.display.scroller.clientHeight-Sn(e)-e.display.barHeight}function jn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Ke(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Pn(e,t,n,r){return Mn(e,Tn(e,t),n,r)}function Nn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[cr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Tn(e,t){var n=Ke(t),r=Nn(e,n);r&&!r.text?r=null:r&&r.changes&&(cn(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Ke(t=Rt(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var i=r.built=Jt(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}(e,t));var i=jn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Mn(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&On(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Fn(t.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;u&&re(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&re(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():In(C(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,f="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=De)return De;var t=A(e,j("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return De=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;u>0&&(f=r="right"),i=e.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==r?d.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Ln}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(g<y[b]);b++);var _=b?y[b-1]:0,w=y[b],x={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:_,bottom:w};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=v),x}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Dn,Ln={left:0,right:0,top:0,bottom:0};function Fn(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function In(e,t){var n=Ln;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Rn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Bn(e){e.display.externalMeasure=null,O(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Rn(e.display.view[t])}function $n(e){Bn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Wn(){return c&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function zn(){return c&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Hn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=wn(e.widgets[n]));return t}function Vn(e,t,n,r,i){if(!i){var o=Hn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Ht(t);if("local"==r?a+=kn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:zn());var l=s.left+("window"==r?0:Wn());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Un(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Wn(),i-=zn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function qn(e,t,n,r,i){return r||(r=qe(e.doc,t.line)),Vn(e,r,Pn(e,r,t.ch,i),n)}function Gn(e,t,n,r,i,o){function a(t,a){var s=Mn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Vn(e,r,s,n)}r=r||qe(e.doc,t.line),i||(i=Tn(e,r));var s=ue(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=se(s,l,u),p=ae,d=c(l,f,"before"==u);return null!=p&&(d.other=c(l,p,"before"!=u)),d}function Xn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=qe(e.doc,t.line),i=Ht(r)+kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Kn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Yn(r.first,0,null,-1,-1);var i=Je(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,qe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=qe(r,i);;){var s=er(e,a,i,t,n),l=Ft(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=qe(r,i=u.line)}}function Jn(e,t,n,r){r-=Hn(t);var i=t.text.length,o=oe((function(t){return Mn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return Mn(e,n,t).top>r}),o,i)}}function Zn(e,t,n,r){return n||(n=Tn(e,t)),Jn(e,t,n,Vn(e,t,Mn(e,n,r),"line").top)}function Qn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Ht(t);var o=Tn(e,t),a=Hn(t),s=0,l=t.text.length,u=!0,c=ue(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?nr:tr)(e,t,n,o,c,r,i);s=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var p,d,h=null,m=null,v=oe((function(t){var n=Mn(e,o,t);return n.top+=a,n.bottom+=a,!!Qn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),g=!1;if(m){var y=r-m.left<m.right-r,b=y==u;v=h+(b?0:1),d=b?"after":"before",p=y?m.left:m.right}else{u||v!=l&&v!=s||v++,d=0==v?"after":v==t.text.length?"before":Mn(e,o,v-(u?1:0)).bottom+a<=i==u?"after":"before";var _=Gn(e,et(n,v,d),"line",t,o);p=_.left,g=i<_.top?-1:i>=_.bottom?1:0}return Yn(n,v=ie(t.text,v,1),d,g,r-p)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var l=i[s],u=1!=l.level;return Qn(Gn(e,et(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Gn(e,et(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Qn(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function nr(e,t,n,r,i,o,a){var s=Jn(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=u||d.to<=l)){var h=Mn(e,r,1!=d.level?Math.min(u,d.to)-1:Math.max(l,d.from)).right,m=h<o?o-h+1e9:h-o;(!c||f>m)&&(c=d,f=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Dn){Dn=j("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Dn.appendChild(document.createTextNode("x")),Dn.appendChild(j("br"));Dn.appendChild(document.createTextNode("x"))}A(e.measure,Dn);var n=Dn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),O(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=j("span","xxxxxxxxxx"),n=j("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Wt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function lr(e){var t=e.doc,n=sr(e);t.iter((function(e){var t=n(e);t!=e.height&&Ye(e,t)}))}function ur(e,t,n,r){var i=e.display;if(!n&&"true"==ke(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,u=Kn(e,o,a);if(r&&u.xRel>0&&(l=qe(e.doc,u.line).text).length==u.ch){var c=R(l,l.length,e.options.tabSize)-l.length;u=et(u.line,Math.max(0,Math.round((o-Cn(e.display).left)/ir(e.display))-c))}return u}function cr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function fr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)xt&&Bt(e.doc,t)<i.viewTo&&dr(e);else if(n<=i.viewFrom)xt&&$t(e.doc,n+r)>i.viewFrom?dr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)dr(e);else if(t<=i.viewFrom){var o=hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):dr(e)}else if(n>=i.viewTo){var a=hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):dr(e)}else{var s=hr(e,t,t,-1),l=hr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):dr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function pr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[cr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==$(a,n)&&a.push(n)}}}function dr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var i,o=cr(e,t),a=e.display.view;if(!xt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Bt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function vr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function gr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&yr(e,s.head,i),l||_r(e,s,o)}}return r}function yr(e,t,n){var r=Gn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(j("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(j("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function br(e,t){return e.top-t.top||e.left-t.left}function _r(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Cn(e.display),s=a.left,l=Math.max(r.sizerWidth,On(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(j("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=qe(i,t),p=f.text.length;function d(n,r){return qn(e,et(t,n),"div",f,r)}function h(t,n,r){var i=Zn(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var m=ue(f,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?p:r,(function(e,t,i,f){var v="ltr"==i,g=d(e,v?"left":"right"),y=d(t-1,v?"right":"left"),b=null==n&&0==e,_=null==r&&t==p,w=0==f,x=!m||f==m.length-1;if(y.top-g.top<=3){var k=(u?_:b)&&x,E=(u?b:_)&&w?s:(v?g:y).left,C=k?l:(v?y:g).right;c(E,g.top,C-E,g.bottom)}else{var S,O,A,j;v?(S=u&&b&&w?s:g.left,O=u?l:h(e,i,"before"),A=u?s:h(t,i,"after"),j=u&&_&&x?l:y.right):(S=u?h(e,i,"before"):s,O=!u&&b&&w?l:g.right,A=!u&&_&&x?s:y.left,j=u?h(t,i,"after"):l),c(S,g.top,O-S,g.bottom),g.bottom<y.top&&c(s,g.bottom,null,y.top),c(A,y.top,j-A,y.bottom)}(!o||br(g,o)<0)&&(o=g),br(y,o)<0&&(o=y),(!a||br(g,a)<0)&&(a=g),br(y,a)<0&&(a=y)})),{start:o,end:a}}var p=t.from(),d=t.to();if(p.line==d.line)f(p.line,p.ch,d.ch);else{var h=qe(i,p.line),m=qe(i,d.line),v=Rt(h)==Rt(m),g=f(p.line,p.ch,v?h.text.length+1:null).end,y=f(d.line,v?0:null,d.ch).start;v&&(g.top<y.top-2?(c(g.right,g.top,null,g.bottom),c(s,y.top,y.left,y.bottom)):c(g.right,g.top,y.left-g.right,g.bottom)),g.bottom<y.top&&c(s,g.bottom,null,y.top)}n.appendChild(o)}function wr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function xr(e){e.state.focused||(e.display.input.focus(),Er(e))}function kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Cr(e))}),100)}function Er(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),wr(e))}function Cr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Sr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,l=void 0,u=0;if(!i.hidden){if(a&&s<8){var c=i.node.offsetTop+i.node.offsetHeight;l=c-n,n=c}else{var f=i.node.getBoundingClientRect();l=f.bottom-f.top,!o&&i.text.firstChild&&(u=i.text.firstChild.getBoundingClientRect().right-f.left-1)}var p=i.line.height-l;if((p>.005||p<-.005)&&(Ye(i.line,l),Or(i.line),i.rest))for(var d=0;d<i.rest.length;d++)Or(i.rest[d]);if(u>e.display.sizerWidth){var h=Math.ceil(u/ir(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Or(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Ar(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-kn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Je(t,r),a=Je(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=Je(t,Ht(qe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=Je(t,Ht(qe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function jr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=An(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+En(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=On(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function Pr(e,t){null!=t&&(Mr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Nr(e){Mr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Tr(e,t,n){null==t&&null==n||Mr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Mr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Dr(e,Xn(e,t.from),Xn(e,t.to),t.margin))}function Dr(e,t,n,r){var i=jr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Tr(e,i.scrollLeft,i.scrollTop)}function Lr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||li(e,{top:t}),Fr(e,t,!0),n&&li(e),ri(e,100))}function Fr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ir(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Rr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+En(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Br=function(e,t,n){this.cm=n;var r=this.vert=j("div",[j("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=j("div",[j("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),fe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),fe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Br.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $r=function(){};function Wr(e,t){t||(t=Rr(e));var n=e.display.barWidth,r=e.display.barHeight;zr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Sr(e),zr(e,Rr(e)),n=e.display.barWidth,r=e.display.barHeight}function zr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}$r.prototype.update=function(){return{bottom:0,right:0}},$r.prototype.setScrollLeft=function(){},$r.prototype.setScrollTop=function(){},$r.prototype.clear=function(){};var Hr={native:Br,null:$r};function Vr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Hr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Ir(e,t):Lr(e,t)}),e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}var Ur=0;function qr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ur},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Gr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{an=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Xr(t[n]);for(var r=0;r<t.length;r++)Yr(t[r]);for(var i=0;i<t.length;i++)Kr(t[i]);for(var o=0;o<t.length;o++)Jr(t[o]);for(var a=0;a<t.length;a++)Zr(t[a])}(e)}))}function Xr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Sn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Sn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ut(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Yr(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Kr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Sr(t),e.barMeasure=Rr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Pn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-On(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Jr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Ir(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==T();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Wr(t,e.barMeasure),e.updatedDisplay&&ci(t,e.barMeasure),e.selectionChanged&&wr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&xr(e.cm)}function Zr(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&si(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Fr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Ir(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=j("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n height: "+(t.bottom-t.top+Sn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Gn(e,t),l=n&&n!=t?Gn(e,n):s,u=jr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Lr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Ir(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||he(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&he(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&he(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Qr(e,t){if(e.curOp)return t();qr(e);try{return t()}finally{Gr(e)}}function ei(e,t){return function(){if(e.curOp)return t.apply(e,arguments);qr(e);try{return t.apply(e,arguments)}finally{Gr(e)}}}function ti(e){return function(){if(this.curOp)return e.apply(this,arguments);qr(this);try{return e.apply(this,arguments)}finally{Gr(this)}}}function ni(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);qr(t);try{return e.apply(this,arguments)}finally{Gr(t)}}}function ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,F(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?ze(t.mode,r.state):null,l=ft(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!f&&p<a.length;++p)f=a[p]!=o.styles[p];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ht(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Qr(e,(function(){for(var t=0;t<i.length;t++)pr(e,i[t],"text")}))}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Ar(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=On(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return dr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;pi(e)&&(dr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),xt&&(o=Bt(e.doc,o),a=$t(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(cr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(on(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,cr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Ht(qe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=mr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=T();if(!t||!N(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&N(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f<u.length;f++){var p=u[f];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var d=i&&null!=t&&t<=c&&p.lineNumber;p.changes&&($(p.changes,"gutter")>-1&&(d=!1),cn(e,p,c,n)),d&&(O(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(Qe(e.options,c)))),a=p.node.nextSibling}else{var h=gn(e,p,c,n);o.insertBefore(h,a)}c+=p.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=T()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&N(document.body,e.anchorNode)&&N(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=On(e))r&&(t.visible=Ar(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+En(e.display)-An(e),n.top)}),t.visible=Ar(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;Sr(e);var i=Rr(e);vr(e),Wr(e,i),ci(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function li(e,t){var n=new oi(e,t);if(ai(e,n)){Sr(e),si(e,n);var r=Rr(e);vr(e),Wr(e,r),ci(e,r),n.finish()}}function ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ci(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Sn(e)+"px"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function pi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=Qe(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(j("div",[j("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ui(e.display),!0}return!1}function di(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function hi(e){var t=e.gutters,n=e.gutterSpecs;O(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(j("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ui(e)}function mi(e){hi(e.display),fr(e),fi(e)}function vi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=j("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=j("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=P("div",null,"CodeMirror-code"),o.selectionDiv=j("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=j("div",null,"CodeMirror-cursors"),o.measure=j("div",null,"CodeMirror-measure"),o.lineMeasure=j("div",null,"CodeMirror-measure"),o.lineSpace=P("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=P("div",[o.lineSpace],"CodeMirror-lines");o.mover=j("div",[u],null,"position: relative"),o.sizer=j("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=j("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=j("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=j("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=j("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=di(i.gutters,i.lineNumbers),hi(o),r.init(o)}oi.prototype.signal=function(e,t){ge(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)he.apply(null,this.events[e])};var gi=0,yi=null;function bi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function _i(e){var t=bi(e);return t.x*=yi,t.y*=yi,t}function wi(e,t){var r=bi(t),i=r.x,o=r.y,a=e.display,s=a.scroller,u=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&u||o&&c){if(o&&y&&l)e:for(var p=t.target,d=a.view;p!=s;p=p.parentNode)for(var h=0;h<d.length;h++)if(d[h].node==p){e.display.currentWheelTarget=p;break e}if(i&&!n&&!f&&null!=yi)return o&&c&&Lr(e,Math.max(0,s.scrollTop+o*yi)),Ir(e,Math.max(0,s.scrollLeft+i*yi)),(!o||o&&c)&&be(t),void(a.wheelStartX=null);if(o&&null!=yi){var m=o*yi,v=e.doc.scrollTop,g=v+a.wrapper.clientHeight;m<0?v=Math.max(0,v+m-50):g=Math.min(e.doc.height,g+m+50),li(e,{top:v,bottom:g})}gi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(yi=(yi*gi+n)/(gi+1),++gi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?yi=-.53:n?yi=15:c?yi=-.7:p&&(yi=-1/3);var xi=function(e,t){this.ranges=e,this.primIndex=t};xi.prototype.primary=function(){return this.ranges[this.primIndex]},xi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},xi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ki(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new xi(e,this.primIndex)},xi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},xi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function Ei(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=$(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=tt(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ot(s.from(),a.from()),c=it(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ki(f?c:u,f?u:c))}}return new xi(t,n)}function Ci(e,t){return new xi([new ki(e,t||e)],0)}function Si(e){return e.text?et(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Oi(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Si(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Si(t).ch-t.to.ch),et(n,r)}function Ai(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ki(Oi(i.anchor,t),Oi(i.head,t)))}return Ei(e.cm,n,e.sel.primIndex)}function ji(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function Pi(e){e.doc.mode=Be(e.options,e.doc.modeOption),Ni(e)}function Ni(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&fr(e)}function Ti(e,t){return 0==t.from.ch&&0==t.to.ch&&""==X(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Mi(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),At(e),jt(e,n);var i=r?r(e):1;i!=e.height&&Ye(e,i)}(e,n,i,r),ln(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new qt(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=qe(e,s.line),f=qe(e,l.line),p=X(u),d=i(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Ti(e,t)){var m=a(0,u.length-1);o(f,f.text,d),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,s.ch)+p+c.text.slice(l.ch),d);else{var v=a(1,u.length-1);v.push(new qt(p+c.text.slice(l.ch),d,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,v)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(f,p+f.text.slice(l.ch),d);var g=a(1,u.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}ln(e,"change",e,t)}function Di(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Li(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,lr(e),Pi(e),Fi(e),e.options.lineWrapping||Ut(e),e.options.mode=t.modeOption,fr(e)}function Fi(e){("rtl"==e.doc.direction?M:S)(e.display.lineDiv,"CodeMirror-rtl")}function Ii(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Ri(e,t){var n={from:rt(t.from),to:Si(t),text:Ge(e,t.from,t.to)};return Hi(e,n,t.from.line,t.to.line+1),Di(e,(function(e){return Hi(e,n,t.from.line,t.to.line+1)}),!0),n}function Bi(e){for(;e.length&&X(e).ranges;)e.pop()}function $i(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Bi(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}(i,i.lastOp==r)))a=X(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Si(t):o.changes.push(Ri(e,t));else{var l=X(i.done);for(l&&l.ranges||zi(e.sel,i.done),o={changes:[Ri(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function Wi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,X(i.done),t))?i.done[i.done.length-1]=t:zi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function zi(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Hi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Vi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Ui(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Vi(n[i]));return r}(e,t),r=St(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function qi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?xi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&$(t,Number(c[1]))>-1&&(X(s)[f]=u[f],delete u[f])}}}return r}function Gi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new ki(i,t)}return new ki(n||t,t)}function Xi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Qi(e,new xi([Gi(e.sel.primary(),t,n,i)],0),r)}function Yi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Gi(e.sel.ranges[o],t[o],null,i);Qi(e,Ei(e.cm,r,e.sel.primIndex),n)}function Ki(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Qi(e,Ei(e.cm,i,e.sel.primIndex),r)}function Ji(e,t,n,r){Qi(e,Ci(t,n),r)}function Zi(e,t,n){var r=e.history.done,i=X(r);i&&i.ranges?(r[r.length-1]=t,eo(e,t,n)):Qi(e,t,n)}function Qi(e,t,n){eo(e,t,n),Wi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function eo(e,t,n){(ge(e,"beforeSelectionChange")||e.cm&&ge(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ki(st(e,t[n].anchor),st(e,t[n].head))},origin:n&&n.origin};return he(e,"beforeSelectionChange",e,r),e.cm&&he(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ei(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);to(e,ro(e,t,r,!0)),n&&!1===n.scroll||!e.cm||Nr(e.cm)}function to(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ve(e.cm)),ln(e,"cursorActivity",e))}function no(e){to(e,ro(e,e.sel,null,!1))}function ro(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=oo(e,a.anchor,s&&s.anchor,n,r),u=oo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ki(l,u))}return i?Ei(e.cm,i,t.primIndex):t}function io(e,t,n,r,i){var o=qe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(he(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),p=void 0;if((r<0?c:u)&&(f=ao(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(p=tt(f,n))&&(r<0?p<0:p>0))return io(e,f,t,r,i)}var d=l.find(r<0?-1:1);return(r<0?u:c)&&(d=ao(e,d,r,d.line==t.line?o:null)),d?io(e,d,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,et(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||qe(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function so(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),z)}function lo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=st(e,t)),n&&(r.to=st(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),he(e,"beforeChange",e,r),e.cm&&he(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function uo(e,t,n){if(e.cm){if(!e.cm.curOp)return ei(e.cm,uo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ge(e,"beforeChange")||e.cm&&ge(e.cm,"beforeChange"))||(t=lo(e,t,!0))){var r=wt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=$(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(tt(u.to,s.from)<0||tt(u.from,s.to)>0)){var c=[l,1],f=tt(u.from,s.from),p=tt(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)co(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else co(e,t)}}function co(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=Ai(e,t);$i(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,St(e,t));var r=[];Di(e,(function(e,n){n||-1!=$(r,e.history)||(yo(e.history,t),r.push(e.history)),ho(e,t,null,St(e,t))}))}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(zi(i,l),n&&!i.equals(e.sel))return void Qi(e,i,{clearRedo:!1});a=i}var c=[];zi(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=ge(e,"beforeChange")||e.cm&&ge(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,f&&!lo(e,r,!1))return s.length=0,{};c.push(Ri(e,r));var o=n?Ai(e,r):X(s);ho(e,r,o,Ui(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Si(r)});var a=[];Di(e,(function(e,t){t||-1!=$(a,e.history)||(yo(e.history,r),a.push(e.history)),ho(e,r,null,Ui(e,r))}))},d=i.changes.length-1;d>=0;--d){var h=p(d);if(h)return h.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new xi(Y(e.sel.ranges,(function(e){return new ki(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)pr(e.cm,r,"gutter")}}function ho(e,t,n,r){if(e.cm&&!e.cm.curOp)return ei(e.cm,ho)(e,t,n,r);if(t.to.line<e.first)po(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);po(e,i),t={from:et(e.first,0),to:et(t.to.line+i,t.to.ch),text:[X(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:et(o,qe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ge(e,t.from,t.to),n||(n=Ai(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Ke(Rt(qe(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ve(e),Mi(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=Vt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=qe(e,r).stateAfter;if(i&&(!(i instanceof ut)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ri(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?fr(e):o.line!=a.line||1!=t.text.length||Ti(e.doc,t)?fr(e,o.line,a.line+1,u):pr(e,o.line,"text");var c=ge(e,"changes"),f=ge(e,"change");if(f||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&ln(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):Mi(e,t,r),eo(e,n,z),e.cantEdit&&oo(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,n,r,i){var o;r||(r=n),tt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),uo(e,{from:n,to:r,text:t,origin:i})}function vo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function go(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)vo(o.ranges[s].anchor,t,n,r),vo(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=et(u.from.line+r,u.from.ch),u.to=et(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function yo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;go(e.done,n,r,i),go(e.undone,n,r,i)}function bo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=qe(e,at(e,t)):i=Ke(t),null==i?null:(r(o,i)&&e.cm&&pr(e.cm,i,n),o)}function _o(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function wo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}ki.prototype.from=function(){return ot(this.anchor,this.head)},ki.prototype.to=function(){return it(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},_o.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Gt(i),ln(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},wo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof _o))){var s=[];this.collapse(s),this.children=[new _o(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new _o(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new wo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=$(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new wo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var xo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ko(e,t,n){Ht(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Pr(e,n)}xo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Ke(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=wn(this);Ye(n,Math.max(0,n.height-o)),e&&(Qr(e,(function(){ko(e,n,-o),pr(e,r,"widget")})),ln(e,"lineWidgetCleared",e,this,r))}},xo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=wn(this)-t;i&&(Wt(this.doc,r)||Ye(r,r.height+i),n&&Qr(n,(function(){n.curOp.forceUpdate=!0,ko(n,r,i),ln(n,"lineWidgetChanged",n,e,Ke(r))})))},ye(xo);var Eo=0,Co=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Eo};function So(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=I(r)).shared=!1;var o=[So(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Di(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(So(e,st(e,t),st(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=X(o)})),new Oo(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ei(e.cm,So)(e,t,n,r,i);var o=new Co(e,i),a=tt(t,n);if(r&&I(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=P("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(It(e,t.line,t,n,o)||t.line!=n.line&&It(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");xt=!0}o.addToHistory&&$i(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(e){u&&o.collapsed&&!u.options.lineWrapping&&Rt(e)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ye(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new kt(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Wt(e,t)&&Ye(t,0)})),o.clearOnEnter&&fe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(wt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Eo,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)fr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)pr(u,c,"text");o.atomic&&no(u.doc),ln(u,"markerAdded",u,o)}return o}Co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&qr(e),ge(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Et(a.markedSpans,this);e&&!this.collapsed?pr(e,Ke(a),"text"):e&&(null!=s.to&&(i=Ke(a)),null!=s.from&&(r=Ke(a))),a.markedSpans=Ct(a.markedSpans,s),null==s.from&&this.collapsed&&!Wt(this.doc,a)&&e&&Ye(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Rt(this.lines[l]),c=Vt(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&ln(e,"markerCleared",e,this,r,i),t&&Gr(e),this.parent&&this.parent.clear()}},Co.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Et(o.markedSpans,this);if(null!=a.from&&(n=et(t?o:Ke(o),a.from),-1==e))return n;if(null!=a.to&&(r=et(t?o:Ke(o),a.to),1==e))return r}return n&&{from:n,to:r}},Co.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Qr(r,(function(){var i=t.line,o=Ke(t.line),a=Nn(r,o);if(a&&(Rn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Wt(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=wn(n)-s;l&&Ye(i,i.height+l)}ln(r,"markerChanged",r,e)}))},Co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=$(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Co.prototype.detachLine=function(e){if(this.lines.splice($(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ye(Co);var Oo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Ao(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function jo(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Di(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==$(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ln(this,"clear")}},Oo.prototype.find=function(e,t){return this.primary.find(e,t)},ye(Oo);var Po=0,No=function(e,t,n,r,i){if(!(this instanceof No))return new No(e,t,n,r,i);null==n&&(n=0),wo.call(this,[new _o([new qt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=et(n,0);this.sel=Ci(o),this.history=new Ii(null),this.id=++Po,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Mi(this,{from:o,to:o,text:e}),Qi(this,Ci(o),z)};No.prototype=J(wo.prototype,{constructor:No,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Xe(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ni((function(e){var t=et(this.first,0),n=this.first+this.size-1;uo(this,{from:t,to:et(n,qe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Tr(this.cm,0,0),Qi(this,Ci(t),z)})),replaceRange:function(e,t,n,r){mo(this,e,t=st(this,t),n=n?st(this,n):t,r)},getRange:function(e,t,n){var r=Ge(this,st(this,e),st(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Ze(this,e))return qe(this,e)},getLineNumber:function(e){return Ke(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=qe(this,e)),Rt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni((function(e,t,n){Ji(this,st(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:ni((function(e,t,n){Ji(this,st(this,e),st(this,t||e),n)})),extendSelection:ni((function(e,t,n){Xi(this,st(this,e),t&&st(this,t),n)})),extendSelections:ni((function(e,t){Yi(this,lt(this,e),t)})),extendSelectionsBy:ni((function(e,t){Yi(this,lt(this,Y(this.sel.ranges,e)),t)})),setSelections:ni((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ki(st(this,e[i].anchor),st(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Qi(this,Ei(this.cm,r,t),n)}})),addSelection:ni((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ki(st(this,e),st(this,t||e))),Qi(this,Ei(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ge(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ge(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ni((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=et(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=ji(s.from,i,o),u=ji(Si(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],f=tt(c.head,c.anchor)<0;r[a]=new ki(f?u:l,f?l:u)}else r[a]=new ki(l,l)}return new xi(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)uo(this,r[l]);s?Zi(this,s):this.cm&&Nr(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Ii(this.history.maxGeneration),Di(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:qi(this.history.done),undone:qi(this.history.undone)}},setHistory:function(e){var t=this.history=new Ii(this.history.maxGeneration);t.done=qi(e.done.slice(0),null,!0),t.undone=qi(e.undone.slice(0),null,!0)},setGutterMarker:ni((function(e,t,n){return bo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ni((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&bo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!Ze(this,e))return null;if(t=e,!(e=qe(this,e)))return null}else if(null==(t=Ke(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(E(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(E(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ni((function(e,t,n){return function(e,t,n,r){var i=new xo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),bo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Wt(e,t)){var r=Ht(t)<e.scrollTop;Ye(t,t.height+wn(i)),r&&Pr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&ln(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Ke(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return So(this,st(this,e),st(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return So(this,e=st(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=qe(this,(e=st(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new No(Xe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new No(Xe(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(tt(o,a)){var s=So(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Ao(this)),r},unlinkDoc:function(e){if(e instanceof Oa&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),jo(Ao(this));break}if(e.history==this.history){var n=[e.id];Di(e,(function(e){return n.push(e.id)}),!0),e.history=new Ii(null),e.history.done=qi(this.history.done,n),e.history.undone=qi(this.history.undone,n)}},iterLinkedDocs:function(e){Di(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ne(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Qr(t=this.cm,(function(){Fi(t),fr(t)})))}))}),No.prototype.eachLine=No.prototype.iter;var To=0;function Mo(e){var t=this;if(Do(t),!me(t,e)&&!xn(t.display,e)){be(e),a&&(To=+new Date);var n=ur(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ei(t,(function(){var e={from:n=st(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};uo(t.doc,e),Zi(t.doc,Ci(st(t.doc,n),st(t.doc,Si(e))))}))()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==$(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),eo(t.doc,Ci(n,n)),p)for(var d=0;d<p.length;++d)mo(t.doc,"",p[d].anchor,p[d].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Do(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Lo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Fo=!1;function Io(){var e;Fo||(fe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Lo(Ro)}),100))})),fe(window,"blur",(function(){return Lo(Cr)})),Fo=!0)}function Ro(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},$o=0;$o<10;$o++)Bo[$o+48]=Bo[$o+96]=String($o);for(var Wo=65;Wo<=90;Wo++)Bo[Wo]=String.fromCharCode(Wo);for(var zo=1;zo<=12;zo++)Bo[zo+111]=Bo[zo+63235]="F"+zo;var Ho={};function Vo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Uo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Y(n.split(" "),Vo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function qo(e,t,n,r){var i=(t=Ko(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return qo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=qo(e,t.fallthrough[o],n,r);if(a)return a}}}function Go(e){var t="string"==typeof e?e:Bo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Xo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Yo(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Bo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Xo(n,e,t))}function Ko(e){return"string"==typeof e?Ho[e]:e}function Jo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&tt(o.from,X(r).to)<=0;){var a=r.pop();if(tt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Qr(e,(function(){for(var t=r.length-1;t>=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Nr(e)}))}function Zo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qo(e,t,n){var r=Zo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ue(n,t.doc.direction);if(o){var a,s=i<0?X(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Tn(t,n);a=i<0?n.text.length-1:0;var c=Mn(t,u,a).top;a=oe((function(e){return Mn(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Zo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,l)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Ho.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ho.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ho.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ho.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ho.default=y?Ho.macDefault:Ho.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),z)},killLine:function(e){return Jo(e,(function(t){if(t.empty()){var n=qe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Jo(e,(function(t){return{from:et(t.from().line,0),to:st(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return Jo(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Jo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Jo(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return na(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ra(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=qe(e.doc,t),r=function(e){for(var t;t=Lt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Ke(r)),ea(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),V)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),V)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ra(e,t.head):r}),V)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=R(e.getLine(o.line),o.ch,r);t.push(G(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Qr(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=qe(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new et(i.line,i.ch-1)),i.ch>0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=qe(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Qr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Nr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function na(e,t){var n=qe(e.doc,t),r=Rt(n);return r!=n&&(t=Ke(r)),ea(!0,e,r,t,1)}function ra(e,t){var n=na(e,t.line),r=qe(e.doc,n.line),i=ue(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return et(n.line,a?0:o,n.sticky)}return n}function ia(e,t,n){if("string"==typeof t&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=W}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var oa=new B;function aa(e,t,n,r){var i=e.state.keySeq;if(i){if(Go(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:oa.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),sa(e,i+" "+t,n,r))return!0}return sa(e,t,n,r)}function sa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=qo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&qo(t,e.options.extraKeys,n,e)||qo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&ln(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(be(n),wr(e)),!!i}function la(e,t){var n=Yo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?aa(e,"Shift-"+n,t,(function(t){return ia(e,t,!0)}))||aa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ia(e,t)})):aa(e,n,t,(function(t){return ia(e,t)})))}var ua=null;function ca(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=T(),me(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=la(t,e);f&&(ua=i?r:null,i||88!=r||Me||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),de(document,"keyup",n),de(document,"mouseover",n))}M(t,"CodeMirror-crosshair"),fe(document,"keyup",n),fe(document,"mouseover",n)}(t)}}function fa(e){16==e.keyCode&&(this.doc.sel.shift=!1),me(this,e)}function pa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||xn(t.display,e)||me(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ua)return ua=null,void be(e);if(!f||e.which&&!(e.which<10)||!la(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return aa(e,"'"+n+"'",t,(function(t){return ia(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var da,ha,ma=function(e,t,n){this.time=e,this.pos=t,this.button=n};function va(e){var t=this,n=t.display;if(!(me(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,xn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ba(t,e)){var r=ur(t,e),i=Ee(e),o=r?function(e,t){var n=+new Date;return ha&&ha.compare(n,e,t)?(da=ha=null,"triple"):da&&da.compare(n,e,t)?(ha=new ma(n,e,t),da=null,"double"):(da=new ma(n,e,t),ha=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),aa(e,Xo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ta[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=W}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(F(xr,e),0):e.curOp.focus=T();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(e,n,r),u=e.doc.sel;e.options.dragDrop&&Oe&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(tt((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ei(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,de(i.wrapper.ownerDocument,"mouseup",u),de(i.wrapper.ownerDocument,"mousemove",c),de(i.scroller,"dragstart",f),de(i.scroller,"drop",u),o||(be(t),r.addNew||Xi(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),fe(i.wrapper.ownerDocument,"mouseup",u),fe(i.wrapper.ownerDocument,"mousemove",c),fe(i.scroller,"dragstart",f),fe(i.scroller,"drop",u),kr(e),setTimeout((function(){return i.input.focus()}),20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;be(t);var a,s,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?u[s]:new ki(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new ki(n,n)),n=ur(e,t,!0,!0),s=-1;else{var c=ga(e,n,r.unit);a=r.extend?Gi(a,c.anchor,c.head,r.extend):c}r.addNew?-1==s?(s=u.length,Qi(o,Ei(e,u.concat([a]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==r.unit&&!r.extend?(Qi(o,Ei(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Ki(o,s,a,H):(s=0,Qi(o,new xi([a],0),H),l=o.sel);var f=n;function p(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],u=e.options.tabSize,c=R(qe(o,n.line).text,n.ch,u),p=R(qe(o,t.line).text,t.ch,u),d=Math.min(c,p),h=Math.max(c,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=qe(o,m).text,y=U(g,d,u);d==h?i.push(new ki(et(m,y),et(m,y))):g.length>y&&i.push(new ki(et(m,y),et(m,U(g,h,u))))}i.length||i.push(new ki(n,n)),Qi(o,Ei(e,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=a,w=ga(e,t,r.unit),x=_.anchor;tt(w.anchor,x)>0?(b=w.head,x=ot(_.from(),w.anchor)):(b=w.anchor,x=it(_.to(),w.head));var k=l.ranges.slice(0);k[s]=function(e,t){var n=t.anchor,r=t.head,i=qe(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=ue(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=se(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var p=o[u+(l?-1:0)],d=l==(1==p.level),h=d?p.from:p.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new ki(new et(n.line,h,m),r)}(e,new ki(st(o,x),b)),Qi(o,Ei(e,k,s),H)}}var d=i.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,t&&(be(t),i.input.focus()),de(i.wrapper.ownerDocument,"mousemove",v),de(i.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var v=ei(e,(function(t){0!==t.buttons&&Ee(t)?function t(n){var a=++h,s=ur(e,n,!0,"rectangle"==r.unit);if(s)if(0!=tt(s,f)){e.curOp.focus=T(),p(s);var l=Ar(i,o);(s.line>=l.to||s.line<l.from)&&setTimeout(ei(e,(function(){h==a&&t(n)})),150)}else{var u=n.clientY<d.top?-20:n.clientY>d.bottom?20:0;u&&setTimeout(ei(e,(function(){h==a&&(i.scroller.scrollTop+=u,t(n))})),50)}}(t):m(t)})),g=ei(e,m);e.state.selectingText=g,fe(i.wrapper.ownerDocument,"mousemove",v),fe(i.wrapper.ownerDocument,"mouseup",g)}(e,r,t,o)}(t,r,o,e):ke(e)==n.scroller&&be(e):2==i?(r&&Xi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):kr(t)))}}function ga(e,t,n){if("char"==n)return new ki(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ki(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new ki(r.from,r.to)}function ya(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ge(e,n))return we(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return he(e,n,e,Je(e.doc,o),e.display.gutterSpecs[l].className,t),we(t)}}function ba(e,t){return ya(e,t,"gutterClick",!0)}function _a(e,t){xn(e.display,t)||function(e,t){return!!ge(e,"gutterContextMenu")&&ya(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function wa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),$n(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var xa={toString:function(){return"CodeMirror.Init"}},ka={},Ea={};function Ca(e,t,n){if(!t!=!(n&&n!=xa)){var r=e.display.dragFunctions,i=t?fe:de;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Sa(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Ut(e)),lr(e),fr(e),$n(e),setTimeout((function(){return Wr(e)}),100)}function Oa(e,t){var n=this;if(!(this instanceof Oa))return new Oa(e,t);this.options=t=t?I(t):{},I(ka,t,!1);var r=t.value;"string"==typeof r?r=new No(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Oa.inputStyles[t.inputStyle](this),o=this.display=new vi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,wa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Vr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;fe(t.scroller,"mousedown",ei(e,va)),fe(t.scroller,"dblclick",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=ur(e,t);if(n&&!ba(e,t)&&!xn(e.display,t)){be(t);var r=e.findWordAt(n);Xi(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),fe(t.scroller,"contextmenu",(function(t){return _a(e,t)})),fe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||_a(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}fe(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ba(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),fe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!xn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new ki(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new ki(et(s.line,0),st(e.doc,et(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),be(n)}i()})),fe(t.scroller,"touchcancel",i),fe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Lr(e,t.scroller.scrollTop),Ir(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),fe(t.scroller,"mousewheel",(function(t){return wi(e,t)})),fe(t.scroller,"DOMMouseScroll",(function(t){return wi(e,t)})),fe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||xe(t)},over:function(t){me(e,t)||(function(e,t){var n=ur(e,t);if(n){var r=document.createDocumentFragment();yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=j("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}(e,t),xe(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-To<100))xe(t);else if(!me(e,t)&&!xn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=j("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Mo),leave:function(t){me(e,t)||Do(e)}};var l=t.input.getField();fe(l,"keyup",(function(t){return fa.call(e,t)})),fe(l,"keydown",ei(e,ca)),fe(l,"keypress",ei(e,pa)),fe(l,"focus",(function(t){return Er(e,t)})),fe(l,"blur",(function(t){return Cr(e,t)}))}(this),Io(),qr(this),this.curOp.forceUpdate=!0,Li(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout(F(Er,this),20):Cr(this),Ea)Ea.hasOwnProperty(u)&&Ea[u](this,t[u],xa);pi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Aa.length;++c)Aa[c](this);Gr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Oa.defaults=ka,Oa.optionHandlers=Ea;var Aa=[];function ja(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=dt(e,t).state:n="prev");var a=e.options.tabSize,s=qe(o,t),l=R(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==W||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?R(qe(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/a);d;--d)p+=a,f+="\t";if(p<u&&(f+=G(u-p)),f!=c)return mo(o,f,et(t,0),et(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var v=et(t,c.length);Ki(o,h,new ki(v,v));break}}}Oa.defineInitHook=function(e){return Aa.push(e)};var Pa=null;function Na(e){Pa=e}function Ta(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Ne(t),u=null;if(s&&r.ranges.length>1)if(Pa&&Pa.text.join("\n")==t){if(r.ranges.length%Pa.text.length==0){u=[];for(var c=0;c<Pa.text.length;c++)u.push(o.splitLines(Pa.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=Y(l,(function(e){return[e]})));for(var f=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var d=r.ranges[p],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(qe(o,m.line).text.length,m.ch+X(l).length)):s&&Pa&&Pa.lineWise&&Pa.text.join("\n")==t&&(h=m=et(h.line,0)));var v={from:h,to:m,text:u?u[p%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};uo(e.doc,v),ln(e,"inputRead",e,v)}t&&!s&&Da(e,t),Nr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ma(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Qr(t,(function(){return Ta(t,n,0,null,"paste")})),!0}function Da(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=ja(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=ja(e,i.head.line,"smart"));a&&ln(e,"electricInput",e,i.head.line)}}}function La(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:et(i,0),head:et(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Fa(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Ia(){var e=j("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=j("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Fa(e),t}function Ra(e,t,n,r,i){var o=t,a=n,s=qe(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(r){var o,a;if(null==(o=i?function(e,t,n,r){var i=ue(t,e.doc.direction);if(!i)return Qo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Qo(t,n,r);var s,l=function(e,n){return Zo(t,e instanceof et?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||Tn(e,t),Zn(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=l(n,f?1:-1);if(null!=p&&(f?p<=a.to&&p<=c.end:p>=a.from&&p>=c.begin)){var d=f?"before":"after";return new et(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,l(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},m=h(o+r,r,c);if(m)return m;var v=r>0?c.end:l(c.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,u(v)))?null:m}(e.cm,s,t,n):Qo(s,t,n))){if(r||(a=t.line+l)<e.first||a>=e.first+e.size||(t=new et(a,t.ch,t.sticky),!(s=qe(e,a))))return!1;t=ea(i,e.cm,s,t.line,l)}else t=o;return!0}if("char"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||u(!d);d=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,p)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||d||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!d))break}var v=oo(e,t,o,a,!0);return nt(o,v)&&(v.hitSide=!0),v}function Ba(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Kn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var $a=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Wa(e,t){var n=Nn(e,t.line);if(!n||n.hidden)return null;var r=qe(e.doc,t.line),i=jn(n,r,t.line),o=ue(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Fn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function za(e,t){return t&&(e.bad=!0),e}function Ha(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return za(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Va(o,t,n)}}function Va(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!N(r,t))return za(et(Ke(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?X(e.rest):e.line;return za(et(Ke(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=Ke(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||s!=t)&&(f=o[a+(r?1:0)]),et(c,f)}}}var f=c(a,s,n);if(f)return za(f,i);for(var p=s.nextSibling,d=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(f=c(p,p.firstChild,0))return za(et(f.line,f.ch-d),i);d+=p.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(f=c(h,h.firstChild,-1))return za(et(f.line,f.ch+m),i);m+=h.textContent.length}}$a.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!me(r,e)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Na({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,z),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Pa.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Ia(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Pa.text.join("\n");var u=document.activeElement;L(l),setTimeout((function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()}),50)}}Fa(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),fe(i,"paste",(function(e){!o(e)||me(r,e)||Ma(e,r)||s<=11&&setTimeout(ei(r,(function(){return t.updateFromDOM()})),20)})),fe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),fe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),fe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),fe(i,"touchstart",(function(){return n.forceCompositionEnd()})),fe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),fe(i,"copy",a),fe(i,"cut",a)},$a.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},$a.prototype.prepareSelection=function(){var e=gr(this.cm,!1);return e.focus=document.activeElement==this.div,e},$a.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},$a.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$a.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ha(t,e.anchorNode,e.anchorOffset),s=Ha(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=tt(ot(a,s),i)||0!=tt(it(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Wa(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Wa(t,o);if(!c){var f=l[l.length-1].measure,p=f.maps?f.maps[f.maps.length-1]:f.map;c={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(u&&c){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=C(u.node,u.offset,c.offset,c.node)}catch(e){}d&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},$a.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},$a.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},$a.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},$a.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return N(this.div,t)},$a.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},$a.prototype.blur=function(){this.div.blur()},$a.prototype.getField=function(){return this.div},$a.prototype.supportsTouch=function(){return!0},$a.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Qr(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},$a.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},$a.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ha(t,e.anchorNode,e.anchorOffset),r=Ha(t,e.focusNode,e.focusOffset);n&&r&&Qr(t,(function(){Qi(t.doc,Ci(n,r),z),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},$a.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=et(a.line-1,qe(r.doc,a.line-1).length)),s.ch==qe(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=et(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=cr(r,a.line))?(t=Ke(i.view[0].line),n=i.view[0].node):(t=Ke(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=cr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=Ke(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,p=t.getAttribute("cm-marker");if(p){var d=e.findMarks(et(r,0),et(i+1,0),(v=+p,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&c(Ge(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m<t.childNodes.length;m++)f(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(;f(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,u,t,l)),p=Ge(r.doc,et(t,0),et(l,qe(r.doc,l).text.length));f.length>1&&p.length>1;)if(X(f)==X(p))f.pop(),p.pop(),l--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,m=f[0],v=p[0],g=Math.min(m.length,v.length);d<g&&m.charCodeAt(d)==v.charCodeAt(d);)++d;for(var y=X(f),b=X(p),_=Math.min(y.length-(1==f.length?d:0),b.length-(1==p.length?d:0));h<_&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==p.length&&t==a.line)for(;d&&d>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var w=et(t,d),x=et(l,p.length?X(p).length-h:0);return f.length>1||f[0]||tt(w,x)?(mo(r.doc,f,w,x,"+input"),!0):void 0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$a.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},$a.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Qr(this.cm,(function(){return fr(e.cm)}))},$a.prototype.setUneditable=function(e){e.contentEditable="false"},$a.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Ta)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},$a.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;var Ua=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};Ua.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Na({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,z):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),fe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(i,"paste",(function(e){me(r,e)||Ma(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),fe(i,"cut",o),fe(i,"copy",o),fe(e.scroller,"paste",(function(t){if(!xn(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),fe(e.lineSpace,"selectstart",(function(t){xn(e,t)||be(t)})),fe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),fe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ua.prototype.createField=function(e){this.wrapper=Ia(),this.textarea=this.wrapper.firstChild},Ua.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ua.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=gr(e);if(e.options.moveInputWithCursor){var i=Gn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ua.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ua.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ua.prototype.getField=function(){return this.textarea},Ua.prototype.supportsTouch=function(){return!1},Ua.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||T()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ua.prototype.blur=function(){this.textarea.blur()},Ua.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ua.prototype.receivedFocus=function(){this.slowPoll()},Ua.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ua.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ua.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Te(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Qr(t,(function(){Ta(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ua.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ua.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ua.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ur(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Qi)(n.doc,Ci(o),z);var c,p=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),k){xe(e);var m=function(){de(window,"mouseup",m),setTimeout(g,20)};fe(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ua.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ua.prototype.setUneditable=function(){},Ua.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=xa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=xa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Pi(e)}),!0),n("indentUnit",2,Pi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Ni(e),$n(e),fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=xa&&e.refresh()})),n("specialCharPlaceholder",Zt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){wa(e),mi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ko(t),i=n!=xa&&Ko(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Sa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=di(t,e.options.lineNumbers),mi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Wr(e)}),!0),n("scrollbarStyle","native",(function(e){Vr(e),Wr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=di(e.options.gutters,t),mi(e)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(e){return e}),mi,!0),n("showCursorWhenSelecting",!1,vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Cr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ca),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,vr,!0),n("singleCursorHeightPerLine",!0,vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ni,!0),n("addModeClass",!1,Ni,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Ni,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Oa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ko(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ti((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,fr(this)})),removeOverlay:ti((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void fr(this)}})),indentLine:ti((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Ze(this.doc,e)&&ja(this,e,t,n)})),indentSelection:ti((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(ja(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Nr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)ja(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&Ki(this.doc,r,new ki(o,u[r].to()),z)}}})),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=pt(this,qe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==$(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return dt(this,(e=at(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Gn(this,null==e?n.head:"object"==typeof e?st(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return qn(this,st(this.doc,e),t||"page")},coordsChar:function(e,t){return Kn(this,(e=Un(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Un(this,{top:e,left:0},t||"page").top,Je(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=qe(this.doc,e)}else r=e;return Vn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Ht(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,u=(e=Gn(this,st(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)u=e.top;else if("above"==r||"near"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(u=e.bottom),c+t.offsetWidth>p&&(c=p-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=jr(o,a)).scrollTop&&Lr(o,s.scrollTop),null!=s.scrollLeft&&Ir(o,s.scrollLeft))},triggerOnKeyDown:ti(ca),triggerOnKeyPress:ti(pa),triggerOnKeyUp:fa,triggerOnMouseDown:ti(va),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){Da(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a<t&&!(o=Ra(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ti((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ra(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),V)})),deleteH:ti((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Jo(this,(function(n){var i=Ra(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=st(this.doc,e),s=0;s<t;++s){var l=Gn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Ba(this,l,i,n)).hitSide)break}return a},moveV:ti((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Gn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Ba(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Pr(n,qn(n,l,"div").top-s.top),l}),V),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=qe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ee(o,i)?function(e){return ee(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ki(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),he(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==T()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti((function(e,t){Tr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Sn(this)-this.display.barHeight,width:e.scrollWidth-Sn(this)-this.display.barWidth,clientHeight:An(this),clientWidth:On(this)}},scrollIntoView:ti((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Mr(e),e.curOp.scrollToPos=t}(this,e):Dr(this,e.from,e.to,e.margin)})),setSize:ti((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Bn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){pr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,he(this,"refresh",this)})),operation:function(e){return Qr(this,e)},startOperation:function(){return qr(this)},endOperation:function(){return Gr(this)},refresh:ti((function(){var e=this.display.cachedTextHeight;fr(this),this.curOp.forceUpdate=!0,$n(this),Tr(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&lr(this),he(this,"refresh",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Li(this,e),$n(this),this.display.input.reset(),Tr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ye(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Oa);var qa="iter insert remove copy getEditor constructor".split(" ");for(var Ga in No.prototype)No.prototype.hasOwnProperty(Ga)&&$(qa,Ga)<0&&(Oa.prototype[Ga]=function(e){return function(){return e.apply(this.doc,arguments)}}(No.prototype[Ga]));return ye(No),Oa.inputStyles={textarea:Ua,contenteditable:$a},Oa.defineMode=function(e){Oa.defaults.mode||"null"==e||(Oa.defaults.mode=e),Ie.apply(this,arguments)},Oa.defineMIME=function(e,t){Fe[e]=t},Oa.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Oa.defineMIME("text/plain","null"),Oa.defineExtension=function(e,t){Oa.prototype[e]=t},Oa.defineDocExtension=function(e,t){No.prototype[e]=t},Oa.fromTextArea=function(e,t){if((t=t?I(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=T();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(fe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Oa((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=de,e.on=fe,e.wheelEventPixels=_i,e.Doc=No,e.splitLines=Ne,e.countColumn=R,e.findColumn=U,e.isWordChar=Q,e.Pass=W,e.signal=he,e.Line=qt,e.changeEnd=Si,e.scrollbarModel=Hr,e.Pos=et,e.cmpPos=tt,e.modes=Le,e.mimeModes=Fe,e.resolveMode=Re,e.getMode=Be,e.modeExtensions=$e,e.extendMode=We,e.copyState=ze,e.startState=Ve,e.innerMode=He,e.commands=ta,e.keyMap=Ho,e.keyName=Yo,e.isModifierKey=Go,e.lookupKey=qo,e.normalizeKeyMap=Uo,e.StringStream=Ue,e.SharedTextMarker=Oo,e.TextMarker=Co,e.LineWidget=xo,e.e_preventDefault=be,e.e_stopPropagation=_e,e.e_stop=xe,e.addClass=M,e.contains=N,e.rmClass=S,e.keyNames=Bo}(Oa),Oa.version="5.54.0",Oa}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)}))}}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(256),i=n(260)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(136)},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},,function(e,t,n){var r=n(82),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";(function(e){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UnControlled=t.Controlled=void 0;var s,l=n(0),u="undefined"==typeof navigator||!0===e.PREVENT_CODEMIRROR_RENDER;u||(s=n(9));var c=function(){function e(){}return e.equals=function(e,t){var n=this,r=Object.keys,o=i(e),a=i(t);return e&&t&&"object"===o&&o===a?r(e).length===r(t).length&&r(e).every((function(r){return n.equals(e[r],t[r])})):e===t},e}(),f=function(){function e(e,t){this.editor=e,this.props=t}return e.prototype.delegateCursor=function(e,t,n){var r=this.editor.getDoc();n&&this.editor.focus(),t?r.setCursor(e):r.setCursor(e,null,{scroll:!1})},e.prototype.delegateScroll=function(e){this.editor.scrollTo(e.x,e.y)},e.prototype.delegateSelection=function(e,t){this.editor.getDoc().setSelections(e),t&&this.editor.focus()},e.prototype.apply=function(e){e&&e.selection&&e.selection.ranges&&this.delegateSelection(e.selection.ranges,e.selection.focus||!1),e&&e.cursor&&this.delegateCursor(e.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1),e&&e.scroll&&this.delegateScroll(e.scroll)},e.prototype.applyNext=function(e,t,n){e&&e.selection&&e.selection.ranges&&t&&t.selection&&t.selection.ranges&&!c.equals(e.selection.ranges,t.selection.ranges)&&this.delegateSelection(t.selection.ranges,t.selection.focus||!1),e&&e.cursor&&t&&t.cursor&&!c.equals(e.cursor,t.cursor)&&this.delegateCursor(n.cursor||t.cursor,t.autoScroll||!1,t.autoCursor||!1),e&&e.scroll&&t&&t.scroll&&!c.equals(e.scroll,t.scroll)&&this.delegateScroll(t.scroll)},e.prototype.applyUserDefined=function(e,t){t&&t.cursor&&this.delegateCursor(t.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1)},e.prototype.wire=function(e){var t=this;Object.keys(e||{}).filter((function(e){return/^on/.test(e)})).forEach((function(e){switch(e){case"onBlur":t.editor.on("blur",(function(e,n){t.props.onBlur(t.editor,n)}));break;case"onContextMenu":t.editor.on("contextmenu",(function(e,n){t.props.onContextMenu(t.editor,n)}));break;case"onCopy":t.editor.on("copy",(function(e,n){t.props.onCopy(t.editor,n)}));break;case"onCursor":t.editor.on("cursorActivity",(function(e){t.props.onCursor(t.editor,t.editor.getDoc().getCursor())}));break;case"onCursorActivity":t.editor.on("cursorActivity",(function(e){t.props.onCursorActivity(t.editor)}));break;case"onCut":t.editor.on("cut",(function(e,n){t.props.onCut(t.editor,n)}));break;case"onDblClick":t.editor.on("dblclick",(function(e,n){t.props.onDblClick(t.editor,n)}));break;case"onDragEnter":t.editor.on("dragenter",(function(e,n){t.props.onDragEnter(t.editor,n)}));break;case"onDragLeave":t.editor.on("dragleave",(function(e,n){t.props.onDragLeave(t.editor,n)}));break;case"onDragOver":t.editor.on("dragover",(function(e,n){t.props.onDragOver(t.editor,n)}));break;case"onDragStart":t.editor.on("dragstart",(function(e,n){t.props.onDragStart(t.editor,n)}));break;case"onDrop":t.editor.on("drop",(function(e,n){t.props.onDrop(t.editor,n)}));break;case"onFocus":t.editor.on("focus",(function(e,n){t.props.onFocus(t.editor,n)}));break;case"onGutterClick":t.editor.on("gutterClick",(function(e,n,r,i){t.props.onGutterClick(t.editor,n,r,i)}));break;case"onInputRead":t.editor.on("inputRead",(function(e,n){t.props.onInputRead(t.editor,n)}));break;case"onKeyDown":t.editor.on("keydown",(function(e,n){t.props.onKeyDown(t.editor,n)}));break;case"onKeyHandled":t.editor.on("keyHandled",(function(e,n,r){t.props.onKeyHandled(t.editor,n,r)}));break;case"onKeyPress":t.editor.on("keypress",(function(e,n){t.props.onKeyPress(t.editor,n)}));break;case"onKeyUp":t.editor.on("keyup",(function(e,n){t.props.onKeyUp(t.editor,n)}));break;case"onMouseDown":t.editor.on("mousedown",(function(e,n){t.props.onMouseDown(t.editor,n)}));break;case"onPaste":t.editor.on("paste",(function(e,n){t.props.onPaste(t.editor,n)}));break;case"onRenderLine":t.editor.on("renderLine",(function(e,n,r){t.props.onRenderLine(t.editor,n,r)}));break;case"onScroll":t.editor.on("scroll",(function(e){t.props.onScroll(t.editor,t.editor.getScrollInfo())}));break;case"onSelection":t.editor.on("beforeSelectionChange",(function(e,n){t.props.onSelection(t.editor,n)}));break;case"onTouchStart":t.editor.on("touchstart",(function(e,n){t.props.onTouchStart(t.editor,n)}));break;case"onUpdate":t.editor.on("update",(function(e){t.props.onUpdate(t.editor)}));break;case"onViewportChange":t.editor.on("viewportChange",(function(e,n,r){t.props.onViewportChange(t.editor,n,r)}))}}))},e}(),p=function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedNext=!1,n.appliedUserDefined=!1,n.deferred=null,n.emulating=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1),n}return a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);Object.keys(i).some((function(e){return t.editor.getOption(e)!==i[e]}))&&Object.keys(i).forEach((function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&(t.editor.setOption(e,i[e]),t.mirror.setOption(e,i[e]))})),this.hydrated||(this.deferred?this.resolveChange(e.value):this.initChange(e.value||"")),this.hydrated=!0},t.prototype.initChange=function(e){this.emulating=!0;var t=this.editor.getDoc(),n=t.lastLine(),r=t.getLine(t.lastLine()).length;t.replaceRange(e||"",{line:0,ch:0},{line:n,ch:r}),this.mirror.setValue(e),t.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},t.prototype.resolveChange=function(e){this.emulating=!0;var t=this.editor.getDoc();if("undo"===this.deferred.origin?t.undo():"redo"===this.deferred.origin?t.redo():t.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),e&&e!==t.getValue()){var n=t.getCursor();t.setValue(e),t.setCursor(n)}this.emulating=!1,this.deferred=null},t.prototype.mirrorChange=function(e){var t=this.editor.getDoc();return"undo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.undo()):"redo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(e.text,e.from,e.to,e.origin),this.mirror.getValue()},t.prototype.componentDidMount=function(){var e=this;u||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref,this.props.options),this.shared=new f(this.editor,this.props),this.mirror=s((function(){}),this.props.options),this.editor.on("electricInput",(function(){e.mirror.setHistory(e.editor.getDoc().getHistory())})),this.editor.on("cursorActivity",(function(){e.mirror.setCursor(e.editor.getDoc().getCursor())})),this.editor.on("beforeChange",(function(t,n){if(!e.emulating){n.cancel(),e.deferred=n;var r=e.mirrorChange(e.deferred);e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,e.deferred,r)}})),this.editor.on("change",(function(t,n){e.mounted&&e.props.onChange&&e.props.onChange(e.editor,n,e.editor.getValue())})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(!u){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1),this.props.autoCursor||void 0===this.props.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(e,this.props,t),this.appliedNext=!0),this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){return!u},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(l.Component);t.Controlled=p;var d=function(e){function t(t){var n=e.call(this,t)||this;return u||(n.applied=!1,n.appliedUserDefined=!1,n.continueChange=!1,n.detached=!1,n.hydrated=!1,n.initCb=function(){n.props.editorDidConfigure&&n.props.editorDidConfigure(n.editor)},n.mounted=!1,n.onBeforeChangeCb=function(){n.continueChange=!0}),n}return a(t,e),t.prototype.hydrate=function(e){var t=this,n=e&&e.options?e.options:{},i=r({},s.defaults,this.editor.options,n);if(Object.keys(i).some((function(e){return t.editor.getOption(e)!==i[e]}))&&Object.keys(i).forEach((function(e){n.hasOwnProperty(e)&&t.editor.getOption(e)!==i[e]&&t.editor.setOption(e,i[e])})),!this.hydrated){var o=this.editor.getDoc(),a=o.lastLine(),l=o.getLine(o.lastLine()).length;o.replaceRange(e.value||"",{line:0,ch:0},{line:a,ch:l})}this.hydrated=!0},t.prototype.componentDidMount=function(){var e=this;u||(this.detached=!0===this.props.detach,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&s.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=s(this.ref,this.props.options),this.shared=new f(this.editor,this.props),this.editor.on("beforeChange",(function(t,n){e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,n,e.editor.getValue(),e.onBeforeChangeCb)})),this.editor.on("change",(function(t,n){e.mounted&&e.props.onChange&&(e.props.onBeforeChange?e.continueChange&&e.props.onChange(e.editor,n,e.editor.getValue()):e.props.onChange(e.editor,n,e.editor.getValue()))})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(this.detached&&!1===this.props.detach&&(this.detached=!1,e.editorDidAttach&&e.editorDidAttach(this.editor)),this.detached||!0!==this.props.detach||(this.detached=!0,e.editorDidDetach&&e.editorDidDetach(this.editor)),!u&&!this.detached){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),e.autoCursor||void 0===e.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(e),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0)}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(s)},t.prototype.shouldComponentUpdate=function(e,t){var n=!0;return u&&(n=!1),this.detached&&e.detach&&(n=!1),n},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return l.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(l.Component);t.UnControlled=d}).call(this,n(29))},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var r=o(n(274)),i=o(n(276));function o(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,r.default)(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e};var a=t.toState=function(e,t){var n=e.hex?(0,i.default)(e.hex):(0,i.default)(e),r=n.toHsl(),o=n.toHsv(),a=n.toRgb(),s=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===s&&0===a.a?"transparent":"#"+s,rgb:a,hsv:o,oldHue:e.h||t||r.h,source:e.source}};t.isValidHex=function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,i.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=a(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};t.default=t},function(e,t,n){var r=n(89),i=n(165),o=n(223),a=n(12);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(142);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(36),i=n(10);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){var r=n(31),i=n(156),o=n(157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(178),i=n(181);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(66),i=n(62);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(18).Symbol;e.exports=r},function(e,t,n){var r=n(85),i=n(163),o=n(30);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(104),i=n(72);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},function(e,t,n){var r=n(85),i=n(230),o=n(30);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";var r,i;r=[n(56),n(57),n(152)],void 0===(i=function(e,t,n){return function(e,t,n){var r=function(t,n){return e.js_beautify(t,n)};return r.js=e.js_beautify,r.css=t.css_beautify,r.html=n.html_beautify,r.js_beautify=e.js_beautify,r.css_beautify=t.css_beautify,r.html_beautify=n.html_beautify,r}(e,t,n)}.apply(t,r))||(e.exports=i)},function(e,t,n){(function(e){var r=n(18),i=n(161),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(this,n(39)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(42),i=n(173),o=n(174),a=n(175),s=n(176),l=n(177);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,n){var r=n(168),i=n(169),o=n(170),a=n(171),s=n(172);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(33);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(28)(Object,"create");e.exports=r},function(e,t,n){var r=n(190);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(205),i=n(68),o=n(206),a=n(207),s=n(208),l=n(27),u=n(90),c=u(r),f=u(i),p=u(o),d=u(a),h=u(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(27),i=n(20);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(47);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)},t.int=function(e){return parseInt(e,10)},t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}},function(e,t,n){(function(e,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",f="[object Date]",p="[object Error]",d="[object Function]",h="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",S="[object Float64Array]",O="[object Int8Array]",A="[object Int16Array]",j="[object Int32Array]",P="[object Uint8Array]",N="[object Uint16Array]",T="[object Uint32Array]",M=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,R=RegExp(F.source),B=RegExp(I.source),$=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,z=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,G=RegExp(q.source),X=/^\s+|\s+$/g,Y=/^\s+/,K=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\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",he="[\\ud800-\\udfff]",me="["+de+"]",ve="["+pe+"]",ge="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+de+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Se="(?:"+be+"|"+_e+")",Oe="(?:"+Ce+"|"+_e+")",Ae="(?:"+ve+"|"+we+")"+"?",je="[\\ufe0e\\ufe0f]?"+Ae+("(?:\\u200d(?:"+[xe,ke,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+Ae+")*"),Pe="(?:"+[ye,ke,Ee].join("|")+")"+je,Ne="(?:"+[xe+ve+"?",ve,ke,Ee,he].join("|")+")",Te=RegExp("['’]","g"),Me=RegExp(ve,"g"),De=RegExp(we+"(?="+we+")|"+Ne+je,"g"),Le=RegExp([Ce+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Ce,"$"].join("|")+")",Oe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Ce+Se,"$"].join("|")+")",Ce+"?"+Se+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ce+"+(?:['’](?: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_])",ge,Pe].join("|"),"g"),Fe=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Re=["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"],Be=-1,$e={};$e[C]=$e[S]=$e[O]=$e[A]=$e[j]=$e[P]=$e["[object Uint8ClampedArray]"]=$e[N]=$e[T]=!0,$e[l]=$e[u]=$e[k]=$e[c]=$e[E]=$e[f]=$e[p]=$e[d]=$e[m]=$e[v]=$e[g]=$e[y]=$e[b]=$e[_]=$e[x]=!1;var We={};We[l]=We[u]=We[k]=We[E]=We[c]=We[f]=We[C]=We[S]=We[O]=We[A]=We[j]=We[m]=We[v]=We[g]=We[y]=We[b]=We[_]=We[w]=We[P]=We["[object Uint8ClampedArray]"]=We[N]=We[T]=!0,We[p]=We[d]=We[x]=!1;var ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,Ve=parseInt,Ue="object"==typeof e&&e&&e.Object===Object&&e,qe="object"==typeof self&&self&&self.Object===Object&&self,Ge=Ue||qe||Function("return this")(),Xe=t&&!t.nodeType&&t,Ye=Xe&&"object"==typeof r&&r&&!r.nodeType&&r,Ke=Ye&&Ye.exports===Xe,Je=Ke&&Ue.process,Ze=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Qe=Ze&&Ze.isArrayBuffer,et=Ze&&Ze.isDate,tt=Ze&&Ze.isMap,nt=Ze&&Ze.isRegExp,rt=Ze&&Ze.isSet,it=Ze&&Ze.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function ft(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function ht(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function vt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=Ct("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function _t(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):_t(e,kt,n)}function xt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function kt(e){return e!=e}function Et(e,t){var n=null==e?0:e.length;return n?At(e,t)/n:NaN}function Ct(e){return function(t){return null==t?void 0:t[e]}}function St(e){return function(t){return null==e?void 0:e[t]}}function Ot(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function At(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Pt(e){return function(t){return e(t)}}function Nt(e,t){return dt(t,(function(t){return e[t]}))}function Tt(e,t){return e.has(t)}function Mt(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function Dt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Lt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Ft=St({"À":"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"}),It=St({"&":"&","<":"<",">":">",'"':""","'":"'"});function Rt(e){return"\\"+ze[e]}function Bt(e){return Fe.test(e)}function $t(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Wt(e,t){return function(n){return e(t(n))}}function zt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Ut(e){return Bt(e)?function(e){var t=De.lastIndex=0;for(;De.test(e);)++t;return t}(e):yt(e)}function qt(e){return Bt(e)?function(e){return e.match(De)||[]}(e):function(e){return e.split("")}(e)}var Gt=St({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Xt=function e(t){var n,r=(t=null==t?Ge:Xt.defaults(Ge.Object(),t,Xt.pick(Ge,Re))).Array,i=t.Date,pe=t.Error,de=t.Function,he=t.Math,me=t.Object,ve=t.RegExp,ge=t.String,ye=t.TypeError,be=r.prototype,_e=de.prototype,we=me.prototype,xe=t["__core-js_shared__"],ke=_e.toString,Ee=we.hasOwnProperty,Ce=0,Se=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Oe=we.toString,Ae=ke.call(me),je=Ge._,Pe=ve("^"+ke.call(Ee).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=Ke?t.Buffer:void 0,De=t.Symbol,Fe=t.Uint8Array,ze=Ne?Ne.allocUnsafe:void 0,Ue=Wt(me.getPrototypeOf,me),qe=me.create,Xe=we.propertyIsEnumerable,Ye=be.splice,Je=De?De.isConcatSpreadable:void 0,Ze=De?De.iterator:void 0,yt=De?De.toStringTag:void 0,St=function(){try{var e=Qi(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Yt=t.clearTimeout!==Ge.clearTimeout&&t.clearTimeout,Kt=i&&i.now!==Ge.Date.now&&i.now,Jt=t.setTimeout!==Ge.setTimeout&&t.setTimeout,Zt=he.ceil,Qt=he.floor,en=me.getOwnPropertySymbols,tn=Ne?Ne.isBuffer:void 0,nn=t.isFinite,rn=be.join,on=Wt(me.keys,me),an=he.max,sn=he.min,ln=i.now,un=t.parseInt,cn=he.random,fn=be.reverse,pn=Qi(t,"DataView"),dn=Qi(t,"Map"),hn=Qi(t,"Promise"),mn=Qi(t,"Set"),vn=Qi(t,"WeakMap"),gn=Qi(me,"create"),yn=vn&&new vn,bn={},_n=Oo(pn),wn=Oo(dn),xn=Oo(hn),kn=Oo(mn),En=Oo(vn),Cn=De?De.prototype:void 0,Sn=Cn?Cn.valueOf:void 0,On=Cn?Cn.toString:void 0;function An(e){if(Va(e)&&!Ma(e)&&!(e instanceof Tn)){if(e instanceof Nn)return e;if(Ee.call(e,"__wrapped__"))return Ao(e)}return new Nn(e)}var jn=function(){function e(){}return function(t){if(!Ha(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Pn(){}function Nn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Tn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ln;++t<n;)this.add(e[t])}function In(e){var t=this.__data__=new Dn(e);this.size=t.size}function Rn(e,t){var n=Ma(e),r=!n&&Ta(e),i=!n&&!r&&Ia(e),o=!n&&!r&&!i&&Za(e),a=n||r||i||o,s=a?jt(e.length,ge):[],l=s.length;for(var u in e)!t&&!Ee.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ao(u,l))||s.push(u);return s}function Bn(e){var t=e.length;return t?e[Fr(0,t-1)]:void 0}function $n(e,t){return Eo(gi(e),Yn(t,0,e.length))}function Wn(e){return Eo(gi(e))}function zn(e,t,n){(void 0!==n&&!ja(e[t],n)||void 0===n&&!(t in e))&&Gn(e,t,n)}function Hn(e,t,n){var r=e[t];Ee.call(e,t)&&ja(r,n)&&(void 0!==n||t in e)||Gn(e,t,n)}function Vn(e,t){for(var n=e.length;n--;)if(ja(e[n][0],t))return n;return-1}function Un(e,t,n,r){return er(e,(function(e,i,o){t(r,e,n(e),o)})),r}function qn(e,t){return e&&yi(t,_s(t),e)}function Gn(e,t,n){"__proto__"==t&&St?St(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Xn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:ms(e,t[n]);return o}function Yn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Kn(e,t,n,r,i,o){var a,s=1&t,u=2&t,p=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ha(e))return e;var x=Ma(e);if(x){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return gi(e,a)}else{var M=no(e),D=M==d||M==h;if(Ia(e))return fi(e,s);if(M==g||M==l||D&&!i){if(a=u||D?{}:io(e),!s)return u?function(e,t){return yi(e,to(e),t)}(e,function(e,t){return e&&yi(t,ws(t),e)}(a,e)):function(e,t){return yi(e,eo(e),t)}(e,qn(a,e))}else{if(!We[M])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case k:return pi(e);case c:case f:return new r(+e);case E:return function(e,t){var n=t?pi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case C:case S:case O:case A:case j:case P:case"[object Uint8ClampedArray]":case N:case T:return di(e,n);case m:return new r;case v:case _:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return i=e,Sn?me(Sn.call(i)):{}}var i}(e,M,s)}}o||(o=new In);var L=o.get(e);if(L)return L;o.set(e,a),Ya(e)?e.forEach((function(r){a.add(Kn(r,t,n,r,e,o))})):Ua(e)&&e.forEach((function(r,i){a.set(i,Kn(r,t,n,i,e,o))}));var F=x?void 0:(p?u?qi:Ui:u?ws:_s)(e);return st(F||e,(function(r,i){F&&(r=e[i=r]),Hn(a,i,Kn(r,t,n,i,e,o))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Zn(e,t,n){if("function"!=typeof e)throw new ye(o);return _o((function(){e.apply(void 0,n)}),t)}function Qn(e,t,n,r){var i=-1,o=ft,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=dt(t,Pt(n))),r?(o=pt,a=!1):t.length>=200&&(o=Tt,a=!1,t=new Fn(t));e:for(;++i<s;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(c)}else o(t,f,r)||l.push(c)}return l}An.templateSettings={escape:$,evaluate:W,interpolate:z,variable:"",imports:{_:An}},An.prototype=Pn.prototype,An.prototype.constructor=An,Nn.prototype=jn(Pn.prototype),Nn.prototype.constructor=Nn,Tn.prototype=jn(Pn.prototype),Tn.prototype.constructor=Tn,Mn.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},Mn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Mn.prototype.get=function(e){var t=this.__data__;if(gn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ee.call(t,e)?t[e]:void 0},Mn.prototype.has=function(e){var t=this.__data__;return gn?void 0!==t[e]:Ee.call(t,e)},Mn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gn&&void 0===t?"__lodash_hash_undefined__":t,this},Dn.prototype.clear=function(){this.__data__=[],this.size=0},Dn.prototype.delete=function(e){var t=this.__data__,n=Vn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},Dn.prototype.get=function(e){var t=this.__data__,n=Vn(t,e);return n<0?void 0:t[n][1]},Dn.prototype.has=function(e){return Vn(this.__data__,e)>-1},Dn.prototype.set=function(e,t){var n=this.__data__,r=Vn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ln.prototype.clear=function(){this.size=0,this.__data__={hash:new Mn,map:new(dn||Dn),string:new Mn}},Ln.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Ln.prototype.get=function(e){return Ji(this,e).get(e)},Ln.prototype.has=function(e){return Ji(this,e).has(e)},Ln.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Fn.prototype.add=Fn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Fn.prototype.has=function(e){return this.__data__.has(e)},In.prototype.clear=function(){this.__data__=new Dn,this.size=0},In.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},In.prototype.get=function(e){return this.__data__.get(e)},In.prototype.has=function(e){return this.__data__.has(e)},In.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!dn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ln(r)}return n.set(e,t),this.size=n.size,this};var er=wi(lr),tr=wi(ur,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Ja(a):n(a,s)))var s=a,l=o}return l}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?or(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var ar=xi(),sr=xi(!0);function lr(e,t){return e&&ar(e,t,_s)}function ur(e,t){return e&&sr(e,t,_s)}function cr(e,t){return ct(t,(function(t){return $a(e[t])}))}function fr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[So(t[n++])];return n&&n==r?e:void 0}function pr(e,t,n){var r=t(e);return Ma(e)?r:ht(r,n(e))}function dr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yt&&yt in me(e)?function(e){var t=Ee.call(e,yt),n=e[yt];try{e[yt]=void 0;var r=!0}catch(e){}var i=Oe.call(e);r&&(t?e[yt]=n:delete e[yt]);return i}(e):function(e){return Oe.call(e)}(e)}function hr(e,t){return e>t}function mr(e,t){return null!=e&&Ee.call(e,t)}function vr(e,t){return null!=e&&t in me(e)}function gr(e,t,n){for(var i=n?pt:ft,o=e[0].length,a=e.length,s=a,l=r(a),u=1/0,c=[];s--;){var f=e[s];s&&t&&(f=dt(f,Pt(t))),u=sn(f.length,u),l[s]=!n&&(t||o>=120&&f.length>=120)?new Fn(s&&f):void 0}f=e[0];var p=-1,d=l[0];e:for(;++p<o&&c.length<u;){var h=f[p],m=t?t(h):h;if(h=n||0!==h?h:0,!(d?Tt(d,m):i(c,m,n))){for(s=a;--s;){var v=l[s];if(!(v?Tt(v,m):i(e[s],m,n)))continue e}d&&d.push(m),c.push(h)}}return c}function yr(e,t,n){var r=null==(e=vo(e,t=si(t,e)))?e:e[So(Bo(t))];return null==r?void 0:ot(r,e,n)}function br(e){return Va(e)&&dr(e)==l}function _r(e,t,n,r,i){return e===t||(null==e||null==t||!Va(e)&&!Va(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Ma(e),s=Ma(t),d=a?u:no(e),h=s?u:no(t),x=(d=d==l?g:d)==g,C=(h=h==l?g:h)==g,S=d==h;if(S&&Ia(e)){if(!Ia(t))return!1;a=!0,x=!1}if(S&&!x)return o||(o=new In),a||Za(e)?Hi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!o(new Fe(e),new Fe(t)));case c:case f:case v:return ja(+e,+t);case p:return e.name==t.name&&e.message==t.message;case y:case _:return e==t+"";case m:var s=$t;case b:var l=1&r;if(s||(s=Ht),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var d=Hi(s(e),s(t),r,i,o,a);return a.delete(e),d;case w:if(Sn)return Sn.call(e)==Sn.call(t)}return!1}(e,t,d,n,r,i,o);if(!(1&n)){var O=x&&Ee.call(e,"__wrapped__"),A=C&&Ee.call(t,"__wrapped__");if(O||A){var j=O?e.value():e,P=A?t.value():t;return o||(o=new In),i(j,P,n,r,o)}}if(!S)return!1;return o||(o=new In),function(e,t,n,r,i,o){var a=1&n,s=Ui(e),l=s.length,u=Ui(t).length;if(l!=u&&!a)return!1;var c=l;for(;c--;){var f=s[c];if(!(a?f in t:Ee.call(t,f)))return!1}var p=o.get(e),d=o.get(t);if(p&&d)return p==t&&d==e;var h=!0;o.set(e,t),o.set(t,e);var m=a;for(;++c<l;){f=s[c];var v=e[f],g=t[f];if(r)var y=a?r(g,v,f,t,e,o):r(v,g,f,e,t,o);if(!(void 0===y?v===g||i(v,g,n,r,o):y)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o)}(e,t,n,r,_r,i))}function wr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=me(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var f=new In;if(r)var p=r(u,c,l,e,t,f);if(!(void 0===p?_r(c,u,3,r,f):p))return!1}}return!0}function xr(e){return!(!Ha(e)||(t=e,Se&&Se in t))&&($a(e)?Pe:ae).test(Oo(e));var t}function kr(e){return"function"==typeof e?e:null==e?qs:"object"==typeof e?Ma(e)?jr(e[0],e[1]):Ar(e):tl(e)}function Er(e){if(!fo(e))return on(e);var t=[];for(var n in me(e))Ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Cr(e){if(!Ha(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=fo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ee.call(e,r))&&n.push(r);return n}function Sr(e,t){return e<t}function Or(e,t){var n=-1,i=La(e)?r(e.length):[];return er(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Ar(e){var t=Zi(e);return 1==t.length&&t[0][2]?ho(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function jr(e,t){return lo(e)&&po(t)?ho(So(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?vs(n,e):_r(t,r,3)}}function Pr(e,t,n,r,i){e!==t&&ar(t,(function(o,a){if(i||(i=new In),Ha(o))!function(e,t,n,r,i,o,a){var s=yo(e,n),l=yo(t,n),u=a.get(l);if(u)return void zn(e,n,u);var c=o?o(s,l,n+"",e,t,a):void 0,f=void 0===c;if(f){var p=Ma(l),d=!p&&Ia(l),h=!p&&!d&&Za(l);c=l,p||d||h?Ma(s)?c=s:Fa(s)?c=gi(s):d?(f=!1,c=fi(l,!0)):h?(f=!1,c=di(l,!0)):c=[]:Ga(l)||Ta(l)?(c=s,Ta(s)?c=as(s):Ha(s)&&!$a(s)||(c=io(l))):f=!1}f&&(a.set(l,c),i(c,l,r,o,a),a.delete(l));zn(e,n,c)}(e,t,a,n,Pr,r,i);else{var s=r?r(yo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),zn(e,a,s)}}),ws)}function Nr(e,t){var n=e.length;if(n)return ao(t+=t<0?n:0,n)?e[t]:void 0}function Tr(e,t,n){t=t.length?dt(t,(function(e){return Ma(e)?function(t){return fr(t,1===e.length?e[0]:e)}:e})):[qs];var r=-1;return t=dt(t,Pt(Ki())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Or(e,(function(e,n,i){return{criteria:dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var l=hi(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Mr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=fr(e,a);n(s,a)&&Wr(o,si(a,e),s)}return o}function Dr(e,t,n,r){var i=r?xt:wt,o=-1,a=t.length,s=e;for(e===t&&(t=gi(t)),n&&(s=dt(e,Pt(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Lr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?Ye.call(e,i,1):Qr(e,i)}}return e}function Fr(e,t){return e+Qt(cn()*(t-e+1))}function Ir(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Qt(t/2))&&(e+=e)}while(t);return n}function Rr(e,t){return wo(mo(e,t,qs),e+"")}function Br(e){return Bn(js(e))}function $r(e,t){var n=js(e);return Eo(n,Yn(t,0,n.length))}function Wr(e,t,n,r){if(!Ha(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=So(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=Ha(c)?c:ao(t[i+1])?[]:{})}Hn(s,l,u),s=s[l]}return e}var zr=yn?function(e,t){return yn.set(e,t),e}:qs,Hr=St?function(e,t){return St(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:qs;function Vr(e){return Eo(js(e))}function Ur(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function qr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Gr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ja(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Xr(e,t,qs,n)}function Xr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,l=Ja(t),u=void 0===t;i<o;){var c=Qt((i+o)/2),f=n(e[c]),p=void 0!==f,d=null===f,h=f==f,m=Ja(f);if(a)var v=r||h;else v=u?h&&(r||p):s?h&&p&&(r||!d):l?h&&p&&!d&&(r||!m):!d&&!m&&(r?f<=t:f<t);v?i=c+1:o=c}return sn(o,4294967294)}function Yr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ja(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Kr(e){return"number"==typeof e?e:Ja(e)?NaN:+e}function Jr(e){if("string"==typeof e)return e;if(Ma(e))return dt(e,Jr)+"";if(Ja(e))return On?On.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zr(e,t,n){var r=-1,i=ft,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=pt;else if(o>=200){var u=t?null:Ii(e);if(u)return Ht(u);a=!1,i=Tt,l=new Fn}else l=t?[]:s;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),s.push(c)}else i(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}function Qr(e,t){return null==(e=vo(e,t=si(t,e)))||delete e[So(Bo(t))]}function ei(e,t,n,r){return Wr(e,t,n(fr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Ur(e,r?0:o,r?o+1:i):Ur(e,r?o+1:0,r?i:o)}function ni(e,t){var n=e;return n instanceof Tn&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,ht([e],t.args))}),n)}function ri(e,t,n){var i=e.length;if(i<2)return i?Zr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=Qn(a[o]||s,e[l],t,n));return Zr(or(a,1),t,n)}function ii(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function oi(e){return Fa(e)?e:[]}function ai(e){return"function"==typeof e?e:qs}function si(e,t){return Ma(e)?e:lo(e,t)?[e]:Co(ss(e))}var li=Rr;function ui(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Ur(e,t,n)}var ci=Yt||function(e){return Ge.clearTimeout(e)};function fi(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function pi(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function di(e,t){var n=t?pi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function hi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ja(e),a=void 0!==t,s=null===t,l=t==t,u=Ja(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function mi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,l=-1,u=t.length,c=an(a-s,0),f=r(u+c),p=!i;++l<u;)f[l]=t[l];for(;++o<s;)(p||o<a)&&(f[n[o]]=e[o]);for(;c--;)f[l++]=e[o++];return f}function vi(e,t,n,i){for(var o=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,f=an(a-l,0),p=r(f+c),d=!i;++o<f;)p[o]=e[o];for(var h=o;++u<c;)p[h+u]=t[u];for(;++s<l;)(d||o<a)&&(p[h+n[s]]=e[o++]);return p}function gi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function yi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Gn(n,s,l):Hn(n,s,l)}return n}function bi(e,t){return function(n,r){var i=Ma(n)?at:Un,o=t?t():{};return i(n,e,Ki(r,2),o)}}function _i(e){return Rr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=me(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function wi(e,t){return function(n,r){if(null==n)return n;if(!La(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=me(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function xi(e){return function(t,n,r){for(var i=-1,o=me(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function ki(e){return function(t){var n=Bt(t=ss(t))?qt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ui(n,1).join(""):t.slice(1);return r[e]()+i}}function Ei(e){return function(t){return mt($s(Ts(t).replace(Te,"")),e,"")}}function Ci(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Ha(r)?r:n}}function Si(e){return function(t,n,r){var i=me(t);if(!La(t)){var o=Ki(n,3);t=_s(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Oi(e){return Vi((function(t){var n=t.length,r=n,i=Nn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ye(o);if(i&&!s&&"wrapper"==Xi(a))var s=new Nn([],!0)}for(r=s?r:n;++r<n;){var l=Xi(a=t[r]),u="wrapper"==l?Gi(a):void 0;s=u&&uo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[Xi(u[0])].apply(s,u[3]):1==a.length&&uo(a)?s[l]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ma(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ai(e,t,n,i,o,a,s,l,u,c){var f=128&t,p=1&t,d=2&t,h=24&t,m=512&t,v=d?void 0:Ci(e);return function g(){for(var y=arguments.length,b=r(y),_=y;_--;)b[_]=arguments[_];if(h)var w=Yi(g),x=Lt(b,w);if(i&&(b=mi(b,i,o,h)),a&&(b=vi(b,a,s,h)),y-=x,h&&y<c){var k=zt(b,w);return Li(e,t,Ai,g.placeholder,n,b,k,l,u,c-y)}var E=p?n:this,C=d?E[e]:e;return y=b.length,l?b=go(b,l):m&&y>1&&b.reverse(),f&&u<y&&(b.length=u),this&&this!==Ge&&this instanceof g&&(C=v||Ci(C)),C.apply(E,b)}}function ji(e,t){return function(n,r){return function(e,t,n,r){return lr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Pi(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Kr(n),r=Kr(r)),i=e(n,r)}return i}}function Ni(e){return Vi((function(t){return t=dt(t,Pt(Ki())),Rr((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Ti(e,t){var n=(t=void 0===t?" ":Jr(t)).length;if(n<2)return n?Ir(t,e):t;var r=Ir(t,Zt(e/Ut(t)));return Bt(t)?ui(qt(r),0,e).join(""):r.slice(0,e)}function Mi(e){return function(t,n,i){return i&&"number"!=typeof i&&so(t,n,i)&&(n=i=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,i){for(var o=-1,a=an(Zt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:ns(i),e)}}function Di(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=os(t),n=os(n)),e(t,n)}}function Li(e,t,n,r,i,o,a,s,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var f=[e,t,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,l,u],p=n.apply(void 0,f);return uo(e)&&bo(p,f),p.placeholder=r,xo(p,e,t)}function Fi(e){var t=he[e];return function(e,n){if(e=os(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ii=mn&&1/Ht(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Js;function Ri(e){return function(t){var n=no(t);return n==m?$t(t):n==b?Vt(t):function(e,t){return dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Bi(e,t,n,i,s,l,u,c){var f=2&t;if(!f&&"function"!=typeof e)throw new ye(o);var p=i?i.length:0;if(p||(t&=-97,i=s=void 0),u=void 0===u?u:an(rs(u),0),c=void 0===c?c:rs(c),p-=s?s.length:0,64&t){var d=i,h=s;i=s=void 0}var m=f?void 0:Gi(e),v=[e,t,n,i,s,d,h,l,u,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?mi(u,l,t[4]):l,e[4]=u?zt(e[3],a):t[4]}(l=t[5])&&(u=e[5],e[5]=u?vi(u,l,t[6]):l,e[6]=u?zt(e[5],a):t[6]);(l=t[7])&&(e[7]=l);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],s=v[4],!(c=v[9]=void 0===v[9]?f?0:e.length:an(v[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var i=Ci(e);return function o(){for(var a=arguments.length,s=r(a),l=a,u=Yi(o);l--;)s[l]=arguments[l];var c=a<3&&s[0]!==u&&s[a-1]!==u?[]:zt(s,u);if((a-=c.length)<n)return Li(e,t,Ai,o.placeholder,void 0,s,c,void 0,void 0,n-a);var f=this&&this!==Ge&&this instanceof o?i:e;return ot(f,this,s)}}(e,t,c):32!=t&&33!=t||s.length?Ai.apply(void 0,v):function(e,t,n,i){var o=1&t,a=Ci(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,f=r(c+l),p=this&&this!==Ge&&this instanceof t?a:e;++u<c;)f[u]=i[u];for(;l--;)f[u++]=arguments[++s];return ot(p,o?n:this,f)}}(e,t,n,i);else var g=function(e,t,n){var r=1&t,i=Ci(e);return function t(){var o=this&&this!==Ge&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return xo((m?zr:bo)(g,v),e,t)}function $i(e,t,n,r){return void 0===e||ja(e,we[n])&&!Ee.call(r,n)?t:e}function Wi(e,t,n,r,i,o){return Ha(e)&&Ha(t)&&(o.set(t,e),Pr(e,t,void 0,Wi,o),o.delete(t)),e}function zi(e){return Ga(e)?void 0:e}function Hi(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var f=-1,p=!0,d=2&n?new Fn:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var h=e[f],m=t[f];if(r)var v=a?r(m,h,f,t,e,o):r(h,m,f,e,t,o);if(void 0!==v){if(v)continue;p=!1;break}if(d){if(!gt(t,(function(e,t){if(!Tt(d,t)&&(h===e||i(h,e,n,r,o)))return d.push(t)}))){p=!1;break}}else if(h!==m&&!i(h,m,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function Vi(e){return wo(mo(e,void 0,Do),e+"")}function Ui(e){return pr(e,_s,eo)}function qi(e){return pr(e,ws,to)}var Gi=yn?function(e){return yn.get(e)}:Js;function Xi(e){for(var t=e.name+"",n=bn[t],r=Ee.call(bn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Yi(e){return(Ee.call(An,"placeholder")?An:e).placeholder}function Ki(){var e=An.iteratee||Gs;return e=e===Gs?kr:e,arguments.length?e(arguments[0],arguments[1]):e}function Ji(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Zi(e){for(var t=_s(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,po(i)]}return t}function Qi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xr(n)?n:void 0}var eo=en?function(e){return null==e?[]:(e=me(e),ct(en(e),(function(t){return Xe.call(e,t)})))}:il,to=en?function(e){for(var t=[];e;)ht(t,eo(e)),e=Ue(e);return t}:il,no=dr;function ro(e,t,n){for(var r=-1,i=(t=si(t,e)).length,o=!1;++r<i;){var a=So(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&za(i)&&ao(a,i)&&(Ma(e)||Ta(e))}function io(e){return"function"!=typeof e.constructor||fo(e)?{}:jn(Ue(e))}function oo(e){return Ma(e)||Ta(e)||!!(Je&&e&&e[Je])}function ao(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&le.test(e))&&e>-1&&e%1==0&&e<t}function so(e,t,n){if(!Ha(n))return!1;var r=typeof t;return!!("number"==r?La(n)&&ao(t,n.length):"string"==r&&t in n)&&ja(n[t],e)}function lo(e,t){if(Ma(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ja(e))||(V.test(e)||!H.test(e)||null!=t&&e in me(t))}function uo(e){var t=Xi(e),n=An[t];if("function"!=typeof n||!(t in Tn.prototype))return!1;if(e===n)return!0;var r=Gi(n);return!!r&&e===r[0]}(pn&&no(new pn(new ArrayBuffer(1)))!=E||dn&&no(new dn)!=m||hn&&"[object Promise]"!=no(hn.resolve())||mn&&no(new mn)!=b||vn&&no(new vn)!=x)&&(no=function(e){var t=dr(e),n=t==g?e.constructor:void 0,r=n?Oo(n):"";if(r)switch(r){case _n:return E;case wn:return m;case xn:return"[object Promise]";case kn:return b;case En:return x}return t});var co=xe?$a:ol;function fo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function po(e){return e==e&&!Ha(e)}function ho(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function mo(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=an(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(s),ot(e,this,l)}}function vo(e,t){return t.length<2?e:fr(e,Ur(t,0,-1))}function go(e,t){for(var n=e.length,r=sn(t.length,n),i=gi(e);r--;){var o=t[r];e[r]=ao(o,n)?i[o]:void 0}return e}function yo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var bo=ko(zr),_o=Jt||function(e,t){return Ge.setTimeout(e,t)},wo=ko(Hr);function xo(e,t,n){var r=t+"";return wo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Z);return t?t[1].split(Q):[]}(r),n)))}function ko(e){var t=0,n=0;return function(){var r=ln(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Eo(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Fr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var Co=function(e){var t=ka(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(U,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function So(e){if("string"==typeof e||Ja(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Oo(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ao(e){if(e instanceof Tn)return e.clone();var t=new Nn(e.__wrapped__,e.__chain__);return t.__actions__=gi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jo=Rr((function(e,t){return Fa(e)?Qn(e,or(t,1,Fa,!0)):[]})),Po=Rr((function(e,t){var n=Bo(t);return Fa(n)&&(n=void 0),Fa(e)?Qn(e,or(t,1,Fa,!0),Ki(n,2)):[]})),No=Rr((function(e,t){var n=Bo(t);return Fa(n)&&(n=void 0),Fa(e)?Qn(e,or(t,1,Fa,!0),void 0,n):[]}));function To(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),_t(e,Ki(t,3),i)}function Mo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),_t(e,Ki(t,3),i,!0)}function Do(e){return(null==e?0:e.length)?or(e,1):[]}function Lo(e){return e&&e.length?e[0]:void 0}var Fo=Rr((function(e){var t=dt(e,oi);return t.length&&t[0]===e[0]?gr(t):[]})),Io=Rr((function(e){var t=Bo(e),n=dt(e,oi);return t===Bo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?gr(n,Ki(t,2)):[]})),Ro=Rr((function(e){var t=Bo(e),n=dt(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?gr(n,void 0,t):[]}));function Bo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var $o=Rr(Wo);function Wo(e,t){return e&&e.length&&t&&t.length?Dr(e,t):e}var zo=Vi((function(e,t){var n=null==e?0:e.length,r=Xn(e,t);return Lr(e,dt(t,(function(e){return ao(e,n)?+e:e})).sort(hi)),r}));function Ho(e){return null==e?e:fn.call(e)}var Vo=Rr((function(e){return Zr(or(e,1,Fa,!0))})),Uo=Rr((function(e){var t=Bo(e);return Fa(t)&&(t=void 0),Zr(or(e,1,Fa,!0),Ki(t,2))})),qo=Rr((function(e){var t=Bo(e);return t="function"==typeof t?t:void 0,Zr(or(e,1,Fa,!0),void 0,t)}));function Go(e){if(!e||!e.length)return[];var t=0;return e=ct(e,(function(e){if(Fa(e))return t=an(e.length,t),!0})),jt(t,(function(t){return dt(e,Ct(t))}))}function Xo(e,t){if(!e||!e.length)return[];var n=Go(e);return null==t?n:dt(n,(function(e){return ot(t,void 0,e)}))}var Yo=Rr((function(e,t){return Fa(e)?Qn(e,t):[]})),Ko=Rr((function(e){return ri(ct(e,Fa))})),Jo=Rr((function(e){var t=Bo(e);return Fa(t)&&(t=void 0),ri(ct(e,Fa),Ki(t,2))})),Zo=Rr((function(e){var t=Bo(e);return t="function"==typeof t?t:void 0,ri(ct(e,Fa),void 0,t)})),Qo=Rr(Go);var ea=Rr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Xo(e,n)}));function ta(e){var t=An(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Vi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Xn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Tn&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Nn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=bi((function(e,t,n){Ee.call(e,n)?++e[n]:Gn(e,n,1)}));var oa=Si(To),aa=Si(Mo);function sa(e,t){return(Ma(e)?st:er)(e,Ki(t,3))}function la(e,t){return(Ma(e)?lt:tr)(e,Ki(t,3))}var ua=bi((function(e,t,n){Ee.call(e,n)?e[n].push(t):Gn(e,n,[t])}));var ca=Rr((function(e,t,n){var i=-1,o="function"==typeof t,a=La(e)?r(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,n):yr(e,t,n)})),a})),fa=bi((function(e,t,n){Gn(e,n,t)}));function pa(e,t){return(Ma(e)?dt:Or)(e,Ki(t,3))}var da=bi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ha=Rr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Tr(e,or(t,1),[])})),ma=Kt||function(){return Ge.Date.now()};function va(e,t,n){return t=n?void 0:t,Bi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ga(e,t){var n;if("function"!=typeof t)throw new ye(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=Rr((function(e,t,n){var r=1;if(n.length){var i=zt(n,Yi(ya));r|=32}return Bi(e,r,t,n,i)})),ba=Rr((function(e,t,n){var r=3;if(n.length){var i=zt(n,Yi(ba));r|=32}return Bi(t,r,e,n,i)}));function _a(e,t,n){var r,i,a,s,l,u,c=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new ye(o);function h(t){var n=r,o=i;return r=i=void 0,c=t,s=e.apply(o,n)}function m(e){return c=e,l=_o(g,t),f?h(e):s}function v(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-c>=a}function g(){var e=ma();if(v(e))return y(e);l=_o(g,function(e){var n=t-(e-u);return p?sn(n,a-(e-c)):n}(e))}function y(e){return l=void 0,d&&r?h(e):(r=i=void 0,s)}function b(){var e=ma(),n=v(e);if(r=arguments,i=this,u=e,n){if(void 0===l)return m(u);if(p)return ci(l),l=_o(g,t),h(u)}return void 0===l&&(l=_o(g,t)),s}return t=os(t)||0,Ha(n)&&(f=!!n.leading,a=(p="maxWait"in n)?an(os(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==l&&ci(l),c=0,r=u=i=l=void 0},b.flush=function(){return void 0===l?s:y(ma())},b}var wa=Rr((function(e,t){return Zn(e,1,t)})),xa=Rr((function(e,t,n){return Zn(e,os(t)||0,n)}));function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ka.Cache||Ln),n}function Ea(e){if("function"!=typeof e)throw new ye(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Ln;var Ca=li((function(e,t){var n=(t=1==t.length&&Ma(t[0])?dt(t[0],Pt(Ki())):dt(or(t,1),Pt(Ki()))).length;return Rr((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Sa=Rr((function(e,t){return Bi(e,32,void 0,t,zt(t,Yi(Sa)))})),Oa=Rr((function(e,t){return Bi(e,64,void 0,t,zt(t,Yi(Oa)))})),Aa=Vi((function(e,t){return Bi(e,256,void 0,void 0,void 0,t)}));function ja(e,t){return e===t||e!=e&&t!=t}var Pa=Di(hr),Na=Di((function(e,t){return e>=t})),Ta=br(function(){return arguments}())?br:function(e){return Va(e)&&Ee.call(e,"callee")&&!Xe.call(e,"callee")},Ma=r.isArray,Da=Qe?Pt(Qe):function(e){return Va(e)&&dr(e)==k};function La(e){return null!=e&&za(e.length)&&!$a(e)}function Fa(e){return Va(e)&&La(e)}var Ia=tn||ol,Ra=et?Pt(et):function(e){return Va(e)&&dr(e)==f};function Ba(e){if(!Va(e))return!1;var t=dr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ga(e)}function $a(e){if(!Ha(e))return!1;var t=dr(e);return t==d||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Wa(e){return"number"==typeof e&&e==rs(e)}function za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Va(e){return null!=e&&"object"==typeof e}var Ua=tt?Pt(tt):function(e){return Va(e)&&no(e)==m};function qa(e){return"number"==typeof e||Va(e)&&dr(e)==v}function Ga(e){if(!Va(e)||dr(e)!=g)return!1;var t=Ue(e);if(null===t)return!0;var n=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Ae}var Xa=nt?Pt(nt):function(e){return Va(e)&&dr(e)==y};var Ya=rt?Pt(rt):function(e){return Va(e)&&no(e)==b};function Ka(e){return"string"==typeof e||!Ma(e)&&Va(e)&&dr(e)==_}function Ja(e){return"symbol"==typeof e||Va(e)&&dr(e)==w}var Za=it?Pt(it):function(e){return Va(e)&&za(e.length)&&!!$e[dr(e)]};var Qa=Di(Sr),es=Di((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(La(e))return Ka(e)?qt(e):gi(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=no(e);return(t==m?$t:t==b?Ht:js)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Yn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(X,"");var n=oe.test(e);return n||se.test(e)?Ve(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function as(e){return yi(e,ws(e))}function ss(e){return null==e?"":Jr(e)}var ls=_i((function(e,t){if(fo(t)||La(t))yi(t,_s(t),e);else for(var n in t)Ee.call(t,n)&&Hn(e,n,t[n])})),us=_i((function(e,t){yi(t,ws(t),e)})),cs=_i((function(e,t,n,r){yi(t,ws(t),e,r)})),fs=_i((function(e,t,n,r){yi(t,_s(t),e,r)})),ps=Vi(Xn);var ds=Rr((function(e,t){e=me(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=ws(o),s=-1,l=a.length;++s<l;){var u=a[s],c=e[u];(void 0===c||ja(c,we[u])&&!Ee.call(e,u))&&(e[u]=o[u])}return e})),hs=Rr((function(e){return e.push(void 0,Wi),ot(ks,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:fr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&ro(e,t,vr)}var gs=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),e[t]=n}),Hs(qs)),ys=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),Ee.call(e,t)?e[t].push(n):e[t]=[n]}),Ki),bs=Rr(yr);function _s(e){return La(e)?Rn(e):Er(e)}function ws(e){return La(e)?Rn(e,!0):Cr(e)}var xs=_i((function(e,t,n){Pr(e,t,n)})),ks=_i((function(e,t,n,r){Pr(e,t,n,r)})),Es=Vi((function(e,t){var n={};if(null==e)return n;var r=!1;t=dt(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),yi(e,qi(e),n),r&&(n=Kn(n,7,zi));for(var i=t.length;i--;)Qr(n,t[i]);return n}));var Cs=Vi((function(e,t){return null==e?{}:function(e,t){return Mr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Ss(e,t){if(null==e)return{};var n=dt(qi(e),(function(e){return[e]}));return t=Ki(t),Mr(e,n,(function(e,n){return t(e,n[0])}))}var Os=Ri(_s),As=Ri(ws);function js(e){return null==e?[]:Nt(e,_s(e))}var Ps=Ei((function(e,t,n){return t=t.toLowerCase(),e+(n?Ns(t):t)}));function Ns(e){return Bs(ss(e).toLowerCase())}function Ts(e){return(e=ss(e))&&e.replace(ue,Ft).replace(Me,"")}var Ms=Ei((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ds=Ei((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ls=ki("toLowerCase");var Fs=Ei((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Is=Ei((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Rs=Ei((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=ki("toUpperCase");function $s(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Le)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Ws=Rr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ba(e)?e:new pe(e)}})),zs=Vi((function(e,t){return st(t,(function(t){t=So(t),Gn(e,t,ya(e[t],e))})),e}));function Hs(e){return function(){return e}}var Vs=Oi(),Us=Oi(!0);function qs(e){return e}function Gs(e){return kr("function"==typeof e?e:Kn(e,1))}var Xs=Rr((function(e,t){return function(n){return yr(n,e,t)}})),Ys=Rr((function(e,t){return function(n){return yr(e,n,t)}}));function Ks(e,t,n){var r=_s(t),i=cr(t,r);null!=n||Ha(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=cr(t,_s(t)));var o=!(Ha(n)&&"chain"in n&&!n.chain),a=$a(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Js(){}var Zs=Ni(dt),Qs=Ni(ut),el=Ni(gt);function tl(e){return lo(e)?Ct(So(e)):function(e){return function(t){return fr(t,e)}}(e)}var nl=Mi(),rl=Mi(!0);function il(){return[]}function ol(){return!1}var al=Pi((function(e,t){return e+t}),0),sl=Fi("ceil"),ll=Pi((function(e,t){return e/t}),1),ul=Fi("floor");var cl,fl=Pi((function(e,t){return e*t}),1),pl=Fi("round"),dl=Pi((function(e,t){return e-t}),0);return An.after=function(e,t){if("function"!=typeof t)throw new ye(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},An.ary=va,An.assign=ls,An.assignIn=us,An.assignInWith=cs,An.assignWith=fs,An.at=ps,An.before=ga,An.bind=ya,An.bindAll=zs,An.bindKey=ba,An.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ma(e)?e:[e]},An.chain=ta,An.chunk=function(e,t,n){t=(n?so(e,t,n):void 0===t)?1:an(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Zt(i/t));o<i;)s[a++]=Ur(e,o,o+=t);return s},An.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},An.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return ht(Ma(n)?gi(n):[n],or(t,1))},An.cond=function(e){var t=null==e?0:e.length,n=Ki();return e=t?dt(e,(function(e){if("function"!=typeof e[1])throw new ye(o);return[n(e[0]),e[1]]})):[],Rr((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},An.conforms=function(e){return function(e){var t=_s(e);return function(n){return Jn(n,e,t)}}(Kn(e,1))},An.constant=Hs,An.countBy=ia,An.create=function(e,t){var n=jn(e);return null==t?n:qn(n,t)},An.curry=function e(t,n,r){var i=Bi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},An.curryRight=function e(t,n,r){var i=Bi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},An.debounce=_a,An.defaults=ds,An.defaultsDeep=hs,An.defer=wa,An.delay=xa,An.difference=jo,An.differenceBy=Po,An.differenceWith=No,An.drop=function(e,t,n){var r=null==e?0:e.length;return r?Ur(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},An.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Ur(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},An.dropRightWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3),!0,!0):[]},An.dropWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3),!0):[]},An.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&so(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},An.filter=function(e,t){return(Ma(e)?ct:ir)(e,Ki(t,3))},An.flatMap=function(e,t){return or(pa(e,t),1)},An.flatMapDeep=function(e,t){return or(pa(e,t),1/0)},An.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),or(pa(e,t),n)},An.flatten=Do,An.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},An.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:rs(t)):[]},An.flip=function(e){return Bi(e,512)},An.flow=Vs,An.flowRight=Us,An.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},An.functions=function(e){return null==e?[]:cr(e,_s(e))},An.functionsIn=function(e){return null==e?[]:cr(e,ws(e))},An.groupBy=ua,An.initial=function(e){return(null==e?0:e.length)?Ur(e,0,-1):[]},An.intersection=Fo,An.intersectionBy=Io,An.intersectionWith=Ro,An.invert=gs,An.invertBy=ys,An.invokeMap=ca,An.iteratee=Gs,An.keyBy=fa,An.keys=_s,An.keysIn=ws,An.map=pa,An.mapKeys=function(e,t){var n={};return t=Ki(t,3),lr(e,(function(e,r,i){Gn(n,t(e,r,i),e)})),n},An.mapValues=function(e,t){var n={};return t=Ki(t,3),lr(e,(function(e,r,i){Gn(n,r,t(e,r,i))})),n},An.matches=function(e){return Ar(Kn(e,1))},An.matchesProperty=function(e,t){return jr(e,Kn(t,1))},An.memoize=ka,An.merge=xs,An.mergeWith=ks,An.method=Xs,An.methodOf=Ys,An.mixin=Ks,An.negate=Ea,An.nthArg=function(e){return e=rs(e),Rr((function(t){return Nr(t,e)}))},An.omit=Es,An.omitBy=function(e,t){return Ss(e,Ea(Ki(t)))},An.once=function(e){return ga(2,e)},An.orderBy=function(e,t,n,r){return null==e?[]:(Ma(t)||(t=null==t?[]:[t]),Ma(n=r?void 0:n)||(n=null==n?[]:[n]),Tr(e,t,n))},An.over=Zs,An.overArgs=Ca,An.overEvery=Qs,An.overSome=el,An.partial=Sa,An.partialRight=Oa,An.partition=da,An.pick=Cs,An.pickBy=Ss,An.property=tl,An.propertyOf=function(e){return function(t){return null==e?void 0:fr(e,t)}},An.pull=$o,An.pullAll=Wo,An.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,Ki(n,2)):e},An.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,void 0,n):e},An.pullAt=zo,An.range=nl,An.rangeRight=rl,An.rearg=Aa,An.reject=function(e,t){return(Ma(e)?ct:ir)(e,Ea(Ki(t,3)))},An.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Ki(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Lr(e,i),n},An.rest=function(e,t){if("function"!=typeof e)throw new ye(o);return Rr(e,t=void 0===t?t:rs(t))},An.reverse=Ho,An.sampleSize=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),(Ma(e)?$n:$r)(e,t)},An.set=function(e,t,n){return null==e?e:Wr(e,t,n)},An.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Wr(e,t,n,r)},An.shuffle=function(e){return(Ma(e)?Wn:Vr)(e)},An.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&so(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),Ur(e,t,n)):[]},An.sortBy=ha,An.sortedUniq=function(e){return e&&e.length?Yr(e):[]},An.sortedUniqBy=function(e,t){return e&&e.length?Yr(e,Ki(t,2)):[]},An.split=function(e,t,n){return n&&"number"!=typeof n&&so(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Xa(t))&&!(t=Jr(t))&&Bt(e)?ui(qt(e),0,n):e.split(t,n):[]},An.spread=function(e,t){if("function"!=typeof e)throw new ye(o);return t=null==t?0:an(rs(t),0),Rr((function(n){var r=n[t],i=ui(n,0,t);return r&&ht(i,r),ot(e,this,i)}))},An.tail=function(e){var t=null==e?0:e.length;return t?Ur(e,1,t):[]},An.take=function(e,t,n){return e&&e.length?Ur(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},An.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ur(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},An.takeRightWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3),!1,!0):[]},An.takeWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3)):[]},An.tap=function(e,t){return t(e),e},An.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ye(o);return Ha(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_a(e,t,{leading:r,maxWait:t,trailing:i})},An.thru=na,An.toArray=ts,An.toPairs=Os,An.toPairsIn=As,An.toPath=function(e){return Ma(e)?dt(e,So):Ja(e)?[e]:gi(Co(ss(e)))},An.toPlainObject=as,An.transform=function(e,t,n){var r=Ma(e),i=r||Ia(e)||Za(e);if(t=Ki(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ha(e)&&$a(o)?jn(Ue(e)):{}}return(i?st:lr)(e,(function(e,r,i){return t(n,e,r,i)})),n},An.unary=function(e){return va(e,1)},An.union=Vo,An.unionBy=Uo,An.unionWith=qo,An.uniq=function(e){return e&&e.length?Zr(e):[]},An.uniqBy=function(e,t){return e&&e.length?Zr(e,Ki(t,2)):[]},An.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zr(e,void 0,t):[]},An.unset=function(e,t){return null==e||Qr(e,t)},An.unzip=Go,An.unzipWith=Xo,An.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},An.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},An.values=js,An.valuesIn=function(e){return null==e?[]:Nt(e,ws(e))},An.without=Yo,An.words=$s,An.wrap=function(e,t){return Sa(ai(t),e)},An.xor=Ko,An.xorBy=Jo,An.xorWith=Zo,An.zip=Qo,An.zipObject=function(e,t){return ii(e||[],t||[],Hn)},An.zipObjectDeep=function(e,t){return ii(e||[],t||[],Wr)},An.zipWith=ea,An.entries=Os,An.entriesIn=As,An.extend=us,An.extendWith=cs,Ks(An,An),An.add=al,An.attempt=Ws,An.camelCase=Ps,An.capitalize=Ns,An.ceil=sl,An.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==t&&(t=(t=os(t))==t?t:0),Yn(os(e),t,n)},An.clone=function(e){return Kn(e,4)},An.cloneDeep=function(e){return Kn(e,5)},An.cloneDeepWith=function(e,t){return Kn(e,5,t="function"==typeof t?t:void 0)},An.cloneWith=function(e,t){return Kn(e,4,t="function"==typeof t?t:void 0)},An.conformsTo=function(e,t){return null==t||Jn(e,t,_s(t))},An.deburr=Ts,An.defaultTo=function(e,t){return null==e||e!=e?t:e},An.divide=ll,An.endsWith=function(e,t,n){e=ss(e),t=Jr(t);var r=e.length,i=n=void 0===n?r:Yn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},An.eq=ja,An.escape=function(e){return(e=ss(e))&&B.test(e)?e.replace(I,It):e},An.escapeRegExp=function(e){return(e=ss(e))&&G.test(e)?e.replace(q,"\\$&"):e},An.every=function(e,t,n){var r=Ma(e)?ut:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Ki(t,3))},An.find=oa,An.findIndex=To,An.findKey=function(e,t){return bt(e,Ki(t,3),lr)},An.findLast=aa,An.findLastIndex=Mo,An.findLastKey=function(e,t){return bt(e,Ki(t,3),ur)},An.floor=ul,An.forEach=sa,An.forEachRight=la,An.forIn=function(e,t){return null==e?e:ar(e,Ki(t,3),ws)},An.forInRight=function(e,t){return null==e?e:sr(e,Ki(t,3),ws)},An.forOwn=function(e,t){return e&&lr(e,Ki(t,3))},An.forOwnRight=function(e,t){return e&&ur(e,Ki(t,3))},An.get=ms,An.gt=Pa,An.gte=Na,An.has=function(e,t){return null!=e&&ro(e,t,mr)},An.hasIn=vs,An.head=Lo,An.identity=qs,An.includes=function(e,t,n,r){e=La(e)?e:js(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Ka(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},An.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),wt(e,t,i)},An.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=os(e),t,n)},An.invoke=bs,An.isArguments=Ta,An.isArray=Ma,An.isArrayBuffer=Da,An.isArrayLike=La,An.isArrayLikeObject=Fa,An.isBoolean=function(e){return!0===e||!1===e||Va(e)&&dr(e)==c},An.isBuffer=Ia,An.isDate=Ra,An.isElement=function(e){return Va(e)&&1===e.nodeType&&!Ga(e)},An.isEmpty=function(e){if(null==e)return!0;if(La(e)&&(Ma(e)||"string"==typeof e||"function"==typeof e.splice||Ia(e)||Za(e)||Ta(e)))return!e.length;var t=no(e);if(t==m||t==b)return!e.size;if(fo(e))return!Er(e).length;for(var n in e)if(Ee.call(e,n))return!1;return!0},An.isEqual=function(e,t){return _r(e,t)},An.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},An.isError=Ba,An.isFinite=function(e){return"number"==typeof e&&nn(e)},An.isFunction=$a,An.isInteger=Wa,An.isLength=za,An.isMap=Ua,An.isMatch=function(e,t){return e===t||wr(e,t,Zi(t))},An.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Zi(t),n)},An.isNaN=function(e){return qa(e)&&e!=+e},An.isNative=function(e){if(co(e))throw new pe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xr(e)},An.isNil=function(e){return null==e},An.isNull=function(e){return null===e},An.isNumber=qa,An.isObject=Ha,An.isObjectLike=Va,An.isPlainObject=Ga,An.isRegExp=Xa,An.isSafeInteger=function(e){return Wa(e)&&e>=-9007199254740991&&e<=9007199254740991},An.isSet=Ya,An.isString=Ka,An.isSymbol=Ja,An.isTypedArray=Za,An.isUndefined=function(e){return void 0===e},An.isWeakMap=function(e){return Va(e)&&no(e)==x},An.isWeakSet=function(e){return Va(e)&&"[object WeakSet]"==dr(e)},An.join=function(e,t){return null==e?"":rn.call(e,t)},An.kebabCase=Ms,An.last=Bo,An.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,kt,i,!0)},An.lowerCase=Ds,An.lowerFirst=Ls,An.lt=Qa,An.lte=es,An.max=function(e){return e&&e.length?rr(e,qs,hr):void 0},An.maxBy=function(e,t){return e&&e.length?rr(e,Ki(t,2),hr):void 0},An.mean=function(e){return Et(e,qs)},An.meanBy=function(e,t){return Et(e,Ki(t,2))},An.min=function(e){return e&&e.length?rr(e,qs,Sr):void 0},An.minBy=function(e,t){return e&&e.length?rr(e,Ki(t,2),Sr):void 0},An.stubArray=il,An.stubFalse=ol,An.stubObject=function(){return{}},An.stubString=function(){return""},An.stubTrue=function(){return!0},An.multiply=fl,An.nth=function(e,t){return e&&e.length?Nr(e,rs(t)):void 0},An.noConflict=function(){return Ge._===this&&(Ge._=je),this},An.noop=Js,An.now=ma,An.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Ut(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ti(Qt(i),n)+e+Ti(Zt(i),n)},An.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Ut(e):0;return t&&r<t?e+Ti(t-r,n):e},An.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?Ut(e):0;return t&&r<t?Ti(t-r,n)+e:e},An.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(ss(e).replace(Y,""),t||0)},An.random=function(e,t,n){if(n&&"boolean"!=typeof n&&so(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=cn();return sn(e+i*(t-e+He("1e-"+((i+"").length-1))),t)}return Fr(e,t)},An.reduce=function(e,t,n){var r=Ma(e)?mt:Ot,i=arguments.length<3;return r(e,Ki(t,4),n,i,er)},An.reduceRight=function(e,t,n){var r=Ma(e)?vt:Ot,i=arguments.length<3;return r(e,Ki(t,4),n,i,tr)},An.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),Ir(ss(e),t)},An.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},An.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[So(t[r])];void 0===o&&(r=i,o=n),e=$a(o)?o.call(e):o}return e},An.round=pl,An.runInContext=e,An.sample=function(e){return(Ma(e)?Bn:Br)(e)},An.size=function(e){if(null==e)return 0;if(La(e))return Ka(e)?Ut(e):e.length;var t=no(e);return t==m||t==b?e.size:Er(e).length},An.snakeCase=Fs,An.some=function(e,t,n){var r=Ma(e)?gt:qr;return n&&so(e,t,n)&&(t=void 0),r(e,Ki(t,3))},An.sortedIndex=function(e,t){return Gr(e,t)},An.sortedIndexBy=function(e,t,n){return Xr(e,t,Ki(n,2))},An.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Gr(e,t);if(r<n&&ja(e[r],t))return r}return-1},An.sortedLastIndex=function(e,t){return Gr(e,t,!0)},An.sortedLastIndexBy=function(e,t,n){return Xr(e,t,Ki(n,2),!0)},An.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Gr(e,t,!0)-1;if(ja(e[n],t))return n}return-1},An.startCase=Is,An.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Yn(rs(n),0,e.length),t=Jr(t),e.slice(n,n+t.length)==t},An.subtract=dl,An.sum=function(e){return e&&e.length?At(e,qs):0},An.sumBy=function(e,t){return e&&e.length?At(e,Ki(t,2)):0},An.template=function(e,t,n){var r=An.templateSettings;n&&so(e,t,n)&&(t=void 0),e=ss(e),t=cs({},t,r,$i);var i,o,a=cs({},t.imports,r.imports,$i),s=_s(a),l=Nt(a,s),u=0,c=t.interpolate||ce,f="__p += '",p=ve((t.escape||ce).source+"|"+c.source+"|"+(c===z?ne:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),d="//# sourceURL="+(Ee.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Be+"]")+"\n";e.replace(p,(function(t,n,r,a,s,l){return r||(r=a),f+=e.slice(u,l).replace(fe,Rt),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),f+="';\n";var h=Ee.call(t,"variable")&&t.variable;h||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(M,""):f).replace(D,"$1").replace(L,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Ws((function(){return de(s,d+"return "+f).apply(void 0,l)}));if(m.source=f,Ba(m))throw m;return m},An.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=jt(r,t=Ki(t));++n<e;)t(n);return i},An.toFinite=ns,An.toInteger=rs,An.toLength=is,An.toLower=function(e){return ss(e).toLowerCase()},An.toNumber=os,An.toSafeInteger=function(e){return e?Yn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},An.toString=ss,An.toUpper=function(e){return ss(e).toUpperCase()},An.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(X,"");if(!e||!(t=Jr(t)))return e;var r=qt(e),i=qt(t);return ui(r,Mt(r,i),Dt(r,i)+1).join("")},An.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Jr(t)))return e;var r=qt(e);return ui(r,0,Dt(r,qt(t))+1).join("")},An.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Y,"");if(!e||!(t=Jr(t)))return e;var r=qt(e);return ui(r,Mt(r,qt(t))).join("")},An.truncate=function(e,t){var n=30,r="...";if(Ha(t)){var i="separator"in t?t.separator:i;n="length"in t?rs(t.length):n,r="omission"in t?Jr(t.omission):r}var o=(e=ss(e)).length;if(Bt(e)){var a=qt(e);o=a.length}if(n>=o)return e;var s=n-Ut(r);if(s<1)return r;var l=a?ui(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),Xa(i)){if(e.slice(s).search(i)){var u,c=l;for(i.global||(i=ve(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var f=u.index;l=l.slice(0,void 0===f?s:f)}}else if(e.indexOf(Jr(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},An.unescape=function(e){return(e=ss(e))&&R.test(e)?e.replace(F,Gt):e},An.uniqueId=function(e){var t=++Ce;return ss(e)+t},An.upperCase=Rs,An.upperFirst=Bs,An.each=sa,An.eachRight=la,An.first=Lo,Ks(An,(cl={},lr(An,(function(e,t){Ee.call(An.prototype,t)||(cl[t]=e)})),cl),{chain:!1}),An.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){An[e].placeholder=An})),st(["drop","take"],(function(e,t){Tn.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new Tn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Tn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Tn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ki(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Tn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Tn.prototype[e]=function(){return this.__filtered__?new Tn(this):this[n](1)}})),Tn.prototype.compact=function(){return this.filter(qs)},Tn.prototype.find=function(e){return this.filter(e).head()},Tn.prototype.findLast=function(e){return this.reverse().find(e)},Tn.prototype.invokeMap=Rr((function(e,t){return"function"==typeof e?new Tn(this):this.map((function(n){return yr(n,e,t)}))})),Tn.prototype.reject=function(e){return this.filter(Ea(Ki(e)))},Tn.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Tn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Tn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Tn.prototype.toArray=function(){return this.take(4294967295)},lr(Tn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=An[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(An.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Tn,l=a[0],u=s||Ma(t),c=function(e){var t=i.apply(An,ht([e],a));return r&&f?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var f=this.__chain__,p=!!this.__actions__.length,d=o&&!f,h=s&&!p;if(!o&&u){t=h?t:new Tn(this);var m=e.apply(t,a);return m.__actions__.push({func:na,args:[c],thisArg:void 0}),new Nn(m,f)}return d&&h?e.apply(this,a):(m=this.thru(c),d?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);An.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ma(i)?i:[],e)}return this[n]((function(n){return t.apply(Ma(n)?n:[],e)}))}})),lr(Tn.prototype,(function(e,t){var n=An[t];if(n){var r=n.name+"";Ee.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}})),bn[Ai(void 0,2).name]=[{name:"wrapper",func:void 0}],Tn.prototype.clone=function(){var e=new Tn(this.__wrapped__);return e.__actions__=gi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gi(this.__views__),e},Tn.prototype.reverse=function(){if(this.__filtered__){var e=new Tn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Tn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ma(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,f=c.length,p=0,d=sn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return ni(e,this.__actions__);var h=[];e:for(;l--&&p<d;){for(var m=-1,v=e[u+=t];++m<f;){var g=c[m],y=g.iteratee,b=g.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}h[p++]=v}return h},An.prototype.at=ra,An.prototype.chain=function(){return ta(this)},An.prototype.commit=function(){return new Nn(this.value(),this.__chain__)},An.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},An.prototype.plant=function(e){for(var t,n=this;n instanceof Pn;){var r=Ao(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},An.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Tn){var t=e;return this.__actions__.length&&(t=new Tn(this)),(t=t.reverse()).__actions__.push({func:na,args:[Ho],thisArg:void 0}),new Nn(t,this.__chain__)}return this.thru(Ho)},An.prototype.toJSON=An.prototype.valueOf=An.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},An.prototype.first=An.prototype.head,Ze&&(An.prototype[Ze]=function(){return this}),An}();Ge._=Xt,void 0===(i=function(){return Xt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(29),n(39)(e))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(320);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";var r=n(323),i=r.default,o=r.DraggableCore;e.exports=i,e.exports.default=i,e.exports.DraggableCore=o},function(e,t,n){},function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var i,o,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},u=n.mediaTypes||{},c=n.mediaFeatures||{},f=n.mediaValueKeywords||{},p=n.propertyKeywords||{},d=n.nonStandardPropertyKeywords||{},h=n.fontProperties||{},m=n.counterDescriptors||{},v=n.colorKeywords||{},g=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,_=!0===n.supportsAtComponent;function w(e,t){return i=t,e}function x(e,t){var n=e.next();if(s[n]){var r=s[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),w("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?w(null,"compare"):'"'==n||"'"==n?(t.tokenize=k(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),w("atom","hash")):"!"==n?(e.match(/^\s*\w*/),w("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),w("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?w(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?w("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?w(null,n):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=E),w("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),w("property","word")):w(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),w("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?w("variable-2","variable-definition"):w("variable-2","variable")):e.match(/^\w+-/)?w("meta","meta"):void 0}function k(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),w("string","string")}}function E(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=k(")"),w(null,"(")}function C(e,t,n){this.type=e,this.indent=t,this.prev=n}function S(e,t,n,r){return e.context=new C(n,t.indentation()+(!1===r?0:a),e.context),n}function O(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function A(e,t,n){return N[n.context.type](e,t,n)}function j(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return A(e,t,n)}function P(e){var t=e.current().toLowerCase();o=g.hasOwnProperty(t)?"atom":v.hasOwnProperty(t)?"keyword":"variable"}var N={top:function(e,t,n){if("{"==e)return S(n,t,"block");if("}"==e&&n.context.prev)return O(n);if(_&&/@component/i.test(e))return S(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return S(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return S(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return S(n,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return S(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return S(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return p.hasOwnProperty(r)?(o="property","maybeprop"):d.hasOwnProperty(r)?(o="string-2","maybeprop"):y?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?N.top(e,t,n):(o="error","block")},maybeprop:function(e,t,n){return":"==e?S(n,t,"prop"):A(e,t,n)},prop:function(e,t,n){if(";"==e)return O(n);if("{"==e&&y)return S(n,t,"propBlock");if("}"==e||"{"==e)return j(e,t,n);if("("==e)return S(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)P(t);else if("interpolation"==e)return S(n,t,"interpolation")}else o+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?O(n):"word"==e?(o="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?j(e,t,n):")"==e?O(n):"("==e?S(n,t,"parens"):"interpolation"==e?S(n,t,"interpolation"):("word"==e&&P(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(o="variable-3",n.context.type):A(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(o="tag",n.context.type):N.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return S(n,t,"atBlock_parens");if("}"==e||";"==e)return j(e,t,n);if("{"==e)return O(n)&&S(n,t,y?"block":"top");if("interpolation"==e)return S(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":u.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?"keyword":p.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"string-2":g.hasOwnProperty(r)?"atom":v.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?j(e,t,n):"{"==e?O(n)&&S(n,t,y?"block":"top",!1):("word"==e&&(o="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?O(n):"{"==e||"}"==e?j(e,t,n,2):N.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?S(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):A(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,O(n)):"word"==e?(o="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(o="variable","keyframes"):"{"==e?S(n,t,"top"):A(e,t,n)},at:function(e,t,n){return";"==e?O(n):"{"==e||"}"==e?j(e,t,n):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?O(n):"{"==e||";"==e?j(e,t,n):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new C(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||x)(e,t);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(t.state=N[t.state](i,e,t)),o},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=t(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],u=t(l),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],f=t(c),p=["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],d=t(p),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),v=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],g=t(v),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),_=n.concat(i).concat(a).concat(l).concat(c).concat(p).concat(v).concat(y);function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",_),e.defineMIME("text/css",{documentTypes:r,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:m,colorKeywords:g,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:d,colorKeywords:g,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:d,colorKeywords:g,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:o,mediaFeatures:s,propertyKeywords:f,nonStandardPropertyKeywords:d,fontProperties:h,counterDescriptors:m,colorKeywords:g,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css",helperType:"gss"})}(n(9))},function(e,t,n){var r,i;i=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var r=n(1).Beautifier,i=n(5).Options;e.exports=function(e,t){return new r(e,t).beautify()},e.exports.defaultOptions=function(){return new i}},function(e,t,n){"use strict";var r=n(2).Output,i=n(3).Token,o=n(4),a=n(5).Options,s=n(7).Tokenizer,l=n(7).line_starters,u=n(7).positionable_operators,c=n(7).TOKEN;function f(e,t){return-1!==t.indexOf(e)}function p(e,t){return e&&e.type===c.RESERVED&&e.text===t}function d(e,t){return e&&e.type===c.RESERVED&&f(e.text,t)}var h=["case","return","do","if","throw","else","await","break","continue","async"],m=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].replace(/-/g,"_")]=e[n];return t}(["before-newline","after-newline","preserve-newline"]),v=[m.before_newline,m.preserve_newline],g="BlockStatement",y="Statement",b="ObjectLiteral",_="ArrayLiteral",w="ForInitializer",x="Conditional",k="Expression";function E(e,t){t.multiline_frame||t.mode===w||t.mode===x||e.remove_indent(t.start_line_index)}function C(e){return e===_}function S(e){return f(e,[k,w,x])}function O(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new a(t)}O.prototype.create_flags=function(e,t){var n=0;return e&&(n=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>n&&(n=e.line_indent_level)),{mode:t,parent:e,last_token:e?e.last_token:new i(c.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,alignment:0,line_indent_level:e?e.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},O.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new r(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(g);var n=new s(e,this._options);return this._tokens=n.tokenize(),e},O.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&o.lineBreak.test(e||"")&&(t=e.match(o.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(t)},O.prototype.handle_token=function(e,t){e.type===c.START_EXPR?this.handle_start_expr(e):e.type===c.END_EXPR?this.handle_end_expr(e):e.type===c.START_BLOCK?this.handle_start_block(e):e.type===c.END_BLOCK?this.handle_end_block(e):e.type===c.WORD||e.type===c.RESERVED?this.handle_word(e):e.type===c.SEMICOLON?this.handle_semicolon(e):e.type===c.STRING?this.handle_string(e):e.type===c.EQUALS?this.handle_equals(e):e.type===c.OPERATOR?this.handle_operator(e):e.type===c.COMMA?this.handle_comma(e):e.type===c.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===c.COMMENT?this.handle_comment(e,t):e.type===c.DOT?this.handle_dot(e):e.type===c.EOF?this.handle_eof(e):(e.type,c.UNKNOWN,this.handle_unknown(e,t))},O.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,r=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before)for(var i=e.comments_before.next();i;)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next();if(r)for(var o=0;o<n;o+=1)this.print_newline(o>0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var a=1;a<n;a+=1)this.print_newline(!0,t)}};var A=["async","break","continue","return","throw","yield"];O.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var n=this._options.preserve_newlines&&e.newlines||t;if(f(this._flags.last_token.text,u)||f(e.text,u)){var r=f(this._flags.last_token.text,u)&&f(this._options.operator_position,v)||f(e.text,u);n=n&&r}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,A))return;this._output.set_wrap_point()}}},O.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==c.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var n=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&p(n,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},O.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||C(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},O.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===c.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},O.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},O.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},O.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},O.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y&&E(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},O.prototype.start_of_object_property=function(){return this._flags.parent.mode===b&&this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"]))},O.prototype.start_of_statement=function(e){var t=!1;return!!(t=(t=(t=(t=(t=(t=(t=t||d(this._flags.last_token,["var","let","const"])&&e.type===c.WORD)||p(this._flags.last_token,"do"))||!(this._flags.parent.mode===b&&this._flags.mode===y)&&d(this._flags.last_token,A)&&!e.newlines)||p(this._flags.last_token,"else")&&!(p(e,"if")&&!e.comments_before))||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===w||this._previous_flags.mode===x))||this._flags.last_token.type===c.WORD&&this._flags.mode===g&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==c.WORD&&e.type!==c.RESERVED)||this._flags.mode===b&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||d(this._flags.last_token,["get","set"])))&&(this.set_mode(y),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,d(e,["do","for","if","while"])),!0)},O.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=k;if("["===e.text){if(this._flags.last_token.type===c.WORD||")"===this._flags.last_token.text)return d(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=_,C(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),f(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=w):f(this._flags.last_token.text,["if","while"])?(this._output.space_before_token=this._options.space_before_conditional,t=x):f(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(f(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var r=this._tokens.peek(-4);d(n,["async","function"])||"*"===n.text&&d(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===b&&("{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==r.text&&","!==r.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===c.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(f(this._last_last_text,["function","yield"])||this._flags.mode===b&&f(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===c.START_BLOCK?this.print_newline():this._flags.last_token.type!==c.END_EXPR&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==c.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},O.prototype.handle_end_expr=function(e){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==c.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),E(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===x&&(this._previous_flags.mode=k,this._flags.do_block=!1,this._flags.do_while=!1)},O.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(g),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(g):n&&(f(n.text,[":",","])&&f(t.type,[c.STRING,c.WORD,c.RESERVED])||f(t.text,["get","set","..."])&&f(n.type,[c.WORD,c.RESERVED]))?f(this._last_last_text,["class","interface"])?this.set_mode(g):this.set_mode(b):this._flags.last_token.type===c.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(g):f(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"])?this.set_mode(b):this.set_mode(g);var r=!t.comments_before&&"}"===t.text,i=r&&"function"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var o=0,a=null;this._flags.inline_frame=!0;do{if(o+=1,(a=this._tokens.peek(o-1)).newlines){this._flags.inline_frame=!1;break}}while(a.type!==c.EOF&&(a.type!==c.END_BLOCK||a.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(i||this._flags.last_token.type===c.EQUALS||d(this._flags.last_token,h)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!C(this._previous_flags.mode)||this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.COMMA||((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(this._flags.last_token.type!==c.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(e),this.indent(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},O.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===y;)this.restore_mode();var t=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(C(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},O.prototype.handle_word=function(e){if(e.type===c.RESERVED&&(f(e.text,["set","get"])&&this._flags.mode!==b||"import"===e.text&&"("===this._tokens.peek().text||f(e.text,["as","from"])&&!this._flags.import_block||this._flags.mode===b&&":"===this._tokens.peek().text)&&(e.type=c.WORD),this.start_of_statement(e)?d(this._flags.last_token,["var","let","const"])&&e.type===c.WORD&&(this._flags.declaration_statement=!0):!e.newlines||S(this._flags.mode)||this._flags.last_token.type===c.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===c.EQUALS||!this._options.preserve_newlines&&d(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(p(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&p(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(e,["case","default"]))return this.print_newline(),this._flags.last_token.type!==c.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.EQUALS&&this._flags.last_token.type!==c.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e),p(e,"function"))return(f(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!f(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==c.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,A)||p(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!S(this._flags.mode)&&!C(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var t="NONE";this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":d(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===g?t="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&S(this._flags.mode)?t="SPACE":this._flags.last_token.type===c.STRING?t="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||"*"===this._flags.last_token.text&&(f(this._last_last_text,["function","yield"])||this._flags.mode===b&&f(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===c.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),d(e,l)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),d(e,["else","catch","finally"])?(this._flags.last_token.type!==c.END_BLOCK||this._previous_flags.mode!==g||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===t?d(this._flags.last_token,h)||"declare"===this._flags.last_token.text&&d(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?this._flags.last_token.type===c.START_EXPR&&d(e,["var","let","const"])||":"===this._flags.last_token.text||(p(e,"if")&&p(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(e,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0),!e.previous||e.previous.type!==c.WORD&&e.previous.type!==c.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===c.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&p(e,"from")&&(this._flags.import_block=!1))},O.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&p(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},O.prototype.handle_string=function(e){this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):this.print_newline()),this.print_token(e)},O.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},O.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(S(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===b||this._flags.mode===y&&this._flags.parent.mode===b?(this._flags.mode===y&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},O.prototype.handle_operator=function(e){var t="*"===e.text&&(d(this._flags.last_token,["function","yield"])||f(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),n=f(e.text,["-","+"])&&(f(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||f(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var r=!t;this.handle_whitespace_and_comments(e,r)}if(d(this._flags.last_token,h))return this._output.space_before_token=!0,void this.print_token(e);if("*"!==e.text||this._flags.last_token.type!==c.DOT)if("::"!==e.text){if(this._flags.last_token.type===c.OPERATOR&&f(this._options.operator_position,v)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var i=!0,o=!0,a=!1;if(":"===e.text?0===this._flags.ternary_depth?i=!1:(this._flags.ternary_depth-=1,a=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&f(e.text,u)){var s=":"===e.text,p=s&&a,b=s&&!a;switch(this._options.operator_position){case m.before_newline:return this._output.space_before_token=!b,this.print_token(e),s&&!p||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case m.after_newline:return this._output.space_before_token=!0,!s||p?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case m.preserve_newline:return b||this.allow_wrap_or_preserved_newline(e),i=!(this._output.just_added_newline()||b),this._output.space_before_token=i,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),i=!1;var _=this._tokens.peek();o=_&&f(_.type,[c.WORD,c.RESERVED])}else"..."===e.text?(this.allow_wrap_or_preserved_newline(e),i=this._flags.last_token.type===c.START_BLOCK,o=!1):(f(e.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR||this.allow_wrap_or_preserved_newline(e),i=!1,o=!1,!e.newlines||"--"!==e.text&&"++"!==e.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&S(this._flags.mode)&&(i=!0),this._flags.last_token.type===c.RESERVED?i=!0:this._flags.last_token.type===c.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===c.OPERATOR&&(i=f(e.text,["--","-","++","+"])&&f(this._flags.last_token.text,["--","-","++","+"]),f(e.text,["+","-"])&&f(this._flags.last_token.text,["--","++"])&&(o=!0)),(this._flags.mode!==g||this._flags.inline_frame)&&this._flags.mode!==y||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||i,this.print_token(e),this._output.space_before_token=o}else this.print_token(e);else this.print_token(e)},O.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):o.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},O.prototype.print_block_commment=function(e,t){var n,r=function(e){for(var t=[],n=(e=e.replace(o.allLineBreaks,"\n")).indexOf("\n");-1!==n;)t.push(e.substring(0,n)),n=(e=e.substring(n+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),i=!1,a=!1,s=e.whitespace_before,l=s.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(r[0]),this.print_newline(!1,t),r.length>1){for(i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].trim().charAt(0)!==t)return!1;return!0}(r=r.slice(1),"*"),a=function(e,t){for(var n,r=0,i=e.length;r<i;r++)if((n=e[r])&&0!==n.indexOf(t))return!1;return!0}(r,s),i&&(this._flags.alignment=1),n=0;n<r.length;n++)i?(this.print_token_line_indentation(e),this._output.add_token(r[n].replace(/^\s+/g,""))):a&&r[n]?(this.print_token_line_indentation(e),this._output.add_token(r[n].substring(l))):(this._output.current_line.set_indent(-1),this._output.add_token(r[n])),this.print_newline(!1,t);this._flags.alignment=0}},O.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},O.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),d(this._flags.last_token,h)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)},O.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},O.prototype.handle_eof=function(e){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(e)},e.exports.Beautifier=O},function(e,t,n){"use strict";function r(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function i(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function o(e,t){this.__indent_cache=new i(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new r(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}r.prototype.clone_empty=function(){var e=new r(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},r.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},r.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},r.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},r.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return 0===this.__items.length},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},r.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},r.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},r.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},r.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},r.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},i.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},i.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},i.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},i.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},o.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},o.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},o.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},o.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},o.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},o.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(e,t){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(0!==i.item(0).indexOf(e)&&i.item(-1)!==t){this.__lines.splice(n+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},e.exports.Output=o},function(e,t,n){"use strict";e.exports.Token=function(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(e,t,n){"use strict";var r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+r+"])";t.identifier=new RegExp(o+"(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f])*","g"),t.identifierStart=new RegExp(o),t.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a"+r+i+"])+"),t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")},function(e,t,n){"use strict";var r=n(6).Options,i=["before-newline","after-newline","preserve-newline"];function o(e){r.call(this,e,"js");var t=this.raw_options.brace_style||null;"expand-strict"===t?this.raw_options.brace_style="expand":"collapse-preserve-inline"===t?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var o=0;o<n.length;o++)"preserve-inline"===n[o]?this.brace_preserve_inline=!0:this.brace_style=n[o];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",i),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}o.prototype=new r,e.exports.Options=o},function(e,t,n){"use strict";function r(e,t){this.raw_options=i(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function i(e,t){var n,r={};for(n in e=o(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function o(e){var t,n={};for(t in e)n[t.replace(/-/g,"_")]=e[t];return n}r.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},r.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},r.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},r.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},r.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},r.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},r.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=r,e.exports.normalizeOpts=o,e.exports.mergeOpts=i},function(e,t,n){"use strict";var r=n(8).InputScanner,i=n(9).Tokenizer,o=n(9).TOKEN,a=n(13).Directives,s=n(4),l=n(12).Pattern,u=n(14).TemplatablePattern;function c(e,t){return-1!==t.indexOf(e)}var f={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},p=new a(/\/\*/,/\*\//),d=/0[xX][0123456789abcdefABCDEF]*|0[oO][01234567]*|0[bB][01]*|\d+n|(?:\.\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?/,h=/[0-9]/,m=/[^\d\.]/,v=">>> === !== << && >= ** != == <= >> || |> < / - + > : & % ? ^ | *".split(" "),g=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";g=(g="\\?\\.(?!\\d) "+(g=g.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var y,b=new RegExp(g),_="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),w=_.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),x=new RegExp("^(?:"+w.join("|")+")$"),k=function(e,t){i.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new l(this._input),r=new u(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(s.identifier).matching(s.identifierMatch),number:n.matching(d),punct:n.matching(b),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(/<!--/),html_comment_end:n.matching(/-->/),include:n.starting_with(/#include/).until_after(s.lineBreak),shebang:n.starting_with(/#!/).until_after(s.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};(k.prototype=new i)._is_comment=function(e){return e.type===f.COMMENT||e.type===f.BLOCK_COMMENT||e.type===f.UNKNOWN},k.prototype._is_opening=function(e){return e.type===f.START_BLOCK||e.type===f.START_EXPR},k.prototype._is_closing=function(e,t){return(e.type===f.END_BLOCK||e.type===f.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},k.prototype._reset=function(){y=!1},k.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(f.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(r))||this._read_string(r))||this._read_word(e))||this._read_singles(r))||this._read_comment(r))||this._read_regexp(r,e))||this._read_xml(r,e))||this._read_punctuation())||this._create_token(f.UNKNOWN,this._input.next())},k.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(s.allLineBreaks,"\n"),e.type!==f.DOT&&(e.type!==f.RESERVED||"set"!==e.text&&"get"!==e.text)&&x.test(t)?"in"===t||"of"===t?this._create_token(f.OPERATOR,t):this._create_token(f.RESERVED,t):this._create_token(f.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(f.WORD,t):void 0},k.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(f.START_EXPR,e):")"===e||"]"===e?t=this._create_token(f.END_EXPR,e):"{"===e?t=this._create_token(f.START_BLOCK,e):"}"===e?t=this._create_token(f.END_BLOCK,e):";"===e?t=this._create_token(f.SEMICOLON,e):"."===e&&m.test(this._input.peek(1))?t=this._create_token(f.DOT,e):","===e&&(t=this._create_token(f.COMMA,e)),t&&this._input.next(),t},k.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(f.EQUALS,e):"?."===e?this._create_token(f.DOT,e):this._create_token(f.OPERATOR,e)},k.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(f.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(f.UNKNOWN,t.trim()+"\n");e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(h)){do{n+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(f.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(s.newline);)t+=this._input.next();return y=!0,this._create_token(f.COMMENT,t)}}else if(y&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return y=!1,this._create_token(f.COMMENT,t);return null},k.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var r=p.get_directives(n);r&&"start"===r.ignore&&(n+=p.readIgnored(this._input)),n=n.replace(s.allLineBreaks,"\n"),(t=this._create_token(f.BLOCK_COMMENT,n)).directives=r}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(f.COMMENT,n))}return t},k.prototype._read_string=function(e){if("`"===e||"'"===e||'"'===e){var t=this._input.next();return this.has_char_escapes=!1,t+="`"===e?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=function(e){for(var t="",n=0,i=new r(e),o=null;i.hasNext();)if((o=i.match(/([\s]|[^\\]|\\\\)+/g))&&(t+=o[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())o=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){t+="\\",i.hasNext()&&(t+=i.next());continue}o=i.match(/u([0-9A-Fa-f]{4})/g)}if(!o)return e;if((n=parseInt(o[1],16))>126&&n<=255&&0===o[0].indexOf("x"))return e;if(n>=0&&n<32){t+="\\"+o[0];continue}t+=34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return t}(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(s.allLineBreaks,"\n"),this._create_token(f.STRING,t)}return null},k.prototype._allow_regexp_or_xml=function(e){return e.type===f.RESERVED&&c(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===f.END_EXPR&&")"===e.text&&e.opened.previous.type===f.RESERVED&&c(e.opened.previous.text,["if","while","for"])||c(e.type,[f.COMMENT,f.START_EXPR,f.START_BLOCK,f.START,f.END_BLOCK,f.OPERATOR,f.EQUALS,f.EOF,f.SEMICOLON,f.COMMA])},k.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),r=!1,i=!1;this._input.hasNext()&&(r||i||this._input.peek()!==e)&&!this._input.testChar(s.newline);)n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?i=!0:"]"===this._input.peek()&&(i=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(f.STRING,n)}return null},k.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",r=this.__patterns.xml.read_match();if(r){for(var i=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),o=0===i.indexOf("{"),a=0;r;){var l=!!r[1],u=r[2];if(!(r[r.length-1]||"![CDATA["===u.slice(0,8))&&(u===i||o&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=r[0],a<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(s.allLineBreaks,"\n"),this._create_token(f.STRING,n)}}return null},k.prototype._read_string_recursive=function(e,t,n){var r,i;"'"===e?i=this.__patterns.single_quote:'"'===e?i=this.__patterns.double_quote:"`"===e?i=this.__patterns.template_text:"}"===e&&(i=this.__patterns.template_expression);for(var o=i.read(),a="";this._input.hasNext();){if((a=this._input.next())===e||!t&&s.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?("x"===(r=this._input.peek())||"u"===r?this.has_char_escapes=!0:"\r"===r&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(a+=this._input.next()))),o+=a+=i.read()}return o},e.exports.Tokenizer=k,e.exports.TOKEN=f,e.exports.positionable_operators=v.slice(),e.exports.line_starters=_.slice()},function(e,t,n){"use strict";var r=RegExp.prototype.hasOwnProperty("sticky");function i(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position<this.__input_length},i.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},i.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},i.prototype.__match=function(e,t){e.lastIndex=t;var n=e.exec(this.__input);return!n||r&&e.sticky||n.index!==t&&(n=null),n},i.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},i.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},i.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},i.prototype.read=function(e,t,n){var r,i="";return e&&(r=this.match(e))&&(i+=r[0]),!t||!r&&e||(i+=this.readUntil(t,n)),i},i.prototype.readUntil=function(e,t){var n,r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},i.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},i.prototype.get_regexp=function(e,t){var n=null,i="g";return t&&r&&(i="y"),"string"==typeof e&&""!==e?n=new RegExp(e,i):e&&(n=new RegExp(e.source,i)),n},i.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},i.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},i.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=i},function(e,t,n){"use strict";var r=n(8).InputScanner,i=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new r(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new o,this._reset();for(var t=new i(s.START,""),n=null,r=[],a=new o;t.type!==s.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new o),e.parent=n,this._is_opening(e)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new i(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e,t,n){"use strict";function r(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}r.prototype.restart=function(){this.__position=0},r.prototype.isEmpty=function(){return 0===this.__tokens_length},r.prototype.hasNext=function(){return this.__position<this.__tokens_length},r.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},r.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},r.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=r},function(e,t,n){"use strict";var r=n(12).Pattern;function i(e,t){r.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new r,i.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},i.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,r=[],i=e.exec(t);i;)r.push(t.substring(n,i.index)),n=i.index+i[0].length,i=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r},e.exports.WhitespacePattern=i},function(e,t,n){"use strict";function r(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}r.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},r.prototype.read_match=function(){return this._input.match(this._match_pattern)},r.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},r.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},r.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},r.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){},e.exports.Pattern=r},function(e,t,n){"use strict";function r(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}r.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},r.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=r},function(e,t,n){"use strict";var r=n(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1};function o(e,t){r.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new r(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[=]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}o.prototype=new r,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var t=this._create();for(var n in i)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())));return e},e.exports.TemplatablePattern=o}]),void 0===(r=function(){return{js_beautify:i}}.apply(t,[]))||(e.exports=r)},function(e,t,n){var r,i;i=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([,,function(e,t,n){"use strict";function r(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function i(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function o(e,t){this.__indent_cache=new i(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new r(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}r.prototype.clone_empty=function(){var e=new r(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},r.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},r.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},r.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},r.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return 0===this.__items.length},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},r.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},r.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},r.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},r.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},r.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},i.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},i.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},i.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},i.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},o.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},o.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},o.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},o.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},o.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},o.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(e,t){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(0!==i.item(0).indexOf(e)&&i.item(-1)!==t){this.__lines.splice(n+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},e.exports.Output=o},,,,function(e,t,n){"use strict";function r(e,t){this.raw_options=i(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function i(e,t){var n,r={};for(n in e=o(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function o(e){var t,n={};for(t in e)n[t.replace(/-/g,"_")]=e[t];return n}r.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},r.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},r.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},r.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},r.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},r.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},r.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=r,e.exports.normalizeOpts=o,e.exports.mergeOpts=i},,function(e,t,n){"use strict";var r=RegExp.prototype.hasOwnProperty("sticky");function i(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position<this.__input_length},i.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},i.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},i.prototype.__match=function(e,t){e.lastIndex=t;var n=e.exec(this.__input);return!n||r&&e.sticky||n.index!==t&&(n=null),n},i.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},i.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},i.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},i.prototype.read=function(e,t,n){var r,i="";return e&&(r=this.match(e))&&(i+=r[0]),!t||!r&&e||(i+=this.readUntil(t,n)),i},i.prototype.readUntil=function(e,t){var n,r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},i.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},i.prototype.get_regexp=function(e,t){var n=null,i="g";return t&&r&&(i="y"),"string"==typeof e&&""!==e?n=new RegExp(e,i):e&&(n=new RegExp(e.source,i)),n},i.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},i.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},i.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=i},,,,,function(e,t,n){"use strict";function r(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}r.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},r.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=r},,function(e,t,n){"use strict";var r=n(16).Beautifier,i=n(17).Options;e.exports=function(e,t){return new r(e,t).beautify()},e.exports.defaultOptions=function(){return new i}},function(e,t,n){"use strict";var r=n(17).Options,i=n(2).Output,o=n(8).InputScanner,a=new(0,n(13).Directives)(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=/\s/,c=/(?:\s|\n)+/g,f=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,p=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(e,t){this._source_text=e||"",this._options=new r(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}d.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},d.prototype.eatWhitespace=function(e){for(var t=u.test(this._input.peek()),n=!0;u.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(this._options.preserve_newlines||n)&&(n=!1,this._output.add_new_line(!0));return t},d.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},d.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},d.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},d.prototype.indent=function(){this._indentLevel++},d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&s.test(e||"")&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new i(this._options,n),this._input=new o(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var r,d,h=0,m=!1,v=!1,g=!1,y=!1,b=!1,_=this._ch;r=""!==this._input.read(c),d=_,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),_=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(f),x=a.get_directives(w);x&&"start"===x.ignore&&(w+=a.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(p)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(r),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s$/,""),this.print_string(k),this._output.space_before_token=!0),"extend"===(k=k.replace(/\s$/,""))?y=!0:"import"===k&&(b=!0),k in this.NESTED_AT_RULE?(this._nestedLevel+=1,k in this.CONDITIONAL_GROUP_RULE&&(g=!0)):m||0!==h||-1===k.indexOf(":")||(v=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(v&&(v=!1,this.outdent()),this.indent(),this._output.space_before_token=!0,this.print_string(this._ch),g?(g=!1,m=this._indentLevel>this._nestedLevel):m=this._indentLevel>=this._nestedLevel,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===d&&this._output.trim(!0),b=!1,y=!1,v&&(this.outdent(),v=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!m&&!g||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||y||0!==h?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),v||(v=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===h?(v&&(this.outdent(),v=!1),y=!1,b=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),h++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),h&&(h--,this.outdent()))):(this.preserveSingleSpace(r),this.print_string(this._ch),this.eatWhitespace(),h++,this.indent()):")"===this._ch?(h&&(h--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||v||0!==h||b?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||v||0!==h?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),u.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(r),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&u.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=d},function(e,t,n){"use strict";var r=n(6).Options;function i(e){r.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t}i.prototype=new r,e.exports.Options=i}]),void 0===(r=function(){return{css_beautify:i}}.apply(t,[]))||(e.exports=r)},function(e,t,n){var r=n(83),i=n(87);e.exports=function(e,t){return e&&r(e,i(t))}},function(e,t,n){var r=n(160),i=n(20),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(162),i=n(63),o=n(64),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(82),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(39)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(27),i=n(15);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(86)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(28)(n(18),"Map");e.exports=r},function(e,t,n){var r=n(182),i=n(189),o=n(191),a=n(192),s=n(193);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(204),i=n(97),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t,n){var r=n(12),i=n(47),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(105);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(93);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(0),o=l(i),a=l(n(6)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(251));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.Checkboard=function(e){var t=e.white,n=e.grey,l=e.size,u=e.renderers,c=e.borderRadius,f=e.boxShadow,p=e.children,d=(0,a.default)({default:{grid:{borderRadius:c,boxShadow:f,absolute:"0px 0px 0px 0px",background:"url("+s.get(t,n,l,u.canvas)+") center left"}}});return(0,i.isValidElement)(p)?o.default.cloneElement(p,r({},p.props,{style:r({},p.props.style,d.grid)})):o.default.createElement("div",{style:d.grid})};u.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=u},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var i=l({capture:!0},r);e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var i=l({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,i.int)(n.borderTopWidth),t+=(0,i.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,i.int)(n.borderLeftWidth),t+=(0,i.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,i.int)(n.paddingTop),t-=(0,i.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,i.int)(n.paddingLeft),t-=(0,i.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},t.createCSSTransform=function(e,t){var n=p(e,t,"px");return u({},(0,o.browserPrefixToKey)("transform",o.default),n)},t.createSVGTransform=function(e,t){return p(e,t,"")},t.getTranslation=p,t.getTouch=function(e,t){return e.targetTouches&&(0,i.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,i.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&d(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}},t.addClassName=d,t.removeClassName=h;var i=n(49),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(324));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c="";function f(e,t){return c||(c=(0,i.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,i.isFunction)(e[t])}))),!!(0,i.isFunction)(e[c])&&e[c](t)}function p(e,t,n){var r=e.x,i=e.y,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+n),s="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(a,", ").concat(s,")")+o}return o}function d(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function h(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},function(e,t,n){!function(e){"use strict";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),u=t.exec(l);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,u=n.line,c=e.lastLine();u<=c;){for(var f=0;f<l&&!(u>c);f++){var p=e.getLine(u++);s=null==s?p:s+"\n"+p}l*=2,t.lastIndex=n.ch;var d=t.exec(s);if(d){var h=s.slice(0,d.index).split("\n"),m=d[0].split("\n"),v=n.line+h.length-1,g=h[h.length-1].length;return{from:r(v,g),to:r(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:d}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,f=n.line,p=e.firstLine();f>=p;){for(var d=0;d<s&&f>=p;d++){var h=e.getLine(f--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var v=a.slice(0,m.index).split("\n"),g=m[0].split("\n"),y=f+v.length,b=v[v.length-1].length;return{from:r(y,b),to:r(y+g.length-1,1==g.length?b+g[0].length:g[g.length-1].length),match:m}}}}function f(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.lastLine()+1-l.length;u<=p;u++,c=0){var d=e.getLine(u).slice(c),h=s(d);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=f(d,h,m,s)+c,{from:r(u,f(d,h,m,s)+c),to:r(u,f(d,h,m+l[0].length,s)+c)}}var v=h.length-l[0].length;if(h.slice(v)==l[0]){for(var g=1;g<l.length-1;g++)if(s(e.getLine(u+g))!=l[g])continue e;var y=e.getLine(u+l.length-1),b=s(y),_=l[l.length-1];if(b.slice(0,_.length)==_)return{from:r(u,f(d,h,v,s)+c),to:r(u+l.length-1,f(y,b,_.length,s))}}}}function d(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,p=e.firstLine()-1+l.length;u>=p;u--,c=-1){var d=e.getLine(u);c>-1&&(d=d.slice(0,c));var h=s(d);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,f(d,h,m,s)),to:r(u,f(d,h,m+l[0].length,s))}}var v=l[l.length-1];if(h.slice(0,v.length)==v){var g=1;for(o=u-l.length+1;g<l.length-1;g++)if(s(e.getLine(o+g))!=l[g])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(u+1-l.length,f(y,b,y.length-l[0].length,s)),to:r(u,f(d,h,v.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?d:p)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:a)(e,t,r)}:this.matches=function(n,r){return(n?c:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(9))},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,s;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var u=l.length,c=v(l,u);for(n=0;n<u;++n)o(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(l[s[f]]=n[s[f]])}}return l}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(80);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(29))},function(e,t,n){var r=n(84),i=n(32);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(158)();e.exports=r},function(e,t,n){var r=n(159),i=n(59),o=n(12),a=n(38),s=n(60),l=n(61),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),f=!n&&!c&&a(e),p=!n&&!c&&!f&&l(e),d=n||c||f||p,h=d?r(e.length,String):[],m=h.length;for(var v in e)!t&&!u.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(40);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(27),i=n(67),o=n(20),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(194),i=n(20);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(195),i=n(198),o=n(199);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var p=l.get(e),d=l.get(t);if(p&&d)return p==t&&d==e;var h=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var g=e[h],y=t[h];if(a)var b=u?a(y,g,h,t,e,l):a(g,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!i(t,(function(e,t){if(!o(v,t)&&(g===e||s(g,e,n,a,l)))return v.push(t)}))){m=!1;break}}else if(g!==y&&!s(g,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(18).Uint8Array;e.exports=r},function(e,t,n){var r=n(95),i=n(70),o=n(32);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(96),i=n(12);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(15);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(101),i=n(48);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(12),i=n(71),o=n(212),a=n(215);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(83),i=n(224)(r);e.exports=i},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(72),i=n(33),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(28),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){(function(e){var r=n(18),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(39)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(96),i=n(67),o=n(70),a=n(97),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t,n){var r=n(73);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(240),i=n(67),o=n(65);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t,n){var r=n(72),i=n(33);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(15),i=n(271),o=n(272),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,f,p,d,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,p=setTimeout(w,t),m?y(e):f}function _(e){var n=e-d;return void 0===d||n>=t||n<0||v&&e-h>=c}function w(){var e=i();if(_(e))return x(e);p=setTimeout(w,function(e){var n=t-(e-d);return v?s(n,c-(e-h)):n}(e))}function x(e){return p=void 0,g&&l?y(e):(l=u=void 0,f)}function k(){var e=i(),n=_(e);if(l=arguments,u=this,d=e,n){if(void 0===p)return b(d);if(v)return clearTimeout(p),p=setTimeout(w,t),y(d)}return void 0===p&&(p=setTimeout(w,t)),f}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=d=u=p=void 0},k.flush=function(){return void 0===p?f:x(i())},k}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=u(o),s=u(n(113)),l=u(n(21));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(l.default.simpleCheckForValidColor(e)){var r=l.default.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(l.default.simpleCheckForValidColor(e)){var r=l.default.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=r({},l.default.toState(e.color,0)),t.debounce=(0,s.default)((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),i(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),a.default.createElement(e,r({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return r({},l.default.toState(e.color,t.oldHue))}}]),n}(o.PureComponent||o.Component);return t.propTypes=r({},e.propTypes),t.defaultProps=r({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=c},function(e,t,n){"use strict";n.r(t),n.d(t,"red",(function(){return r})),n.d(t,"pink",(function(){return i})),n.d(t,"purple",(function(){return o})),n.d(t,"deepPurple",(function(){return a})),n.d(t,"indigo",(function(){return s})),n.d(t,"blue",(function(){return l})),n.d(t,"lightBlue",(function(){return u})),n.d(t,"cyan",(function(){return c})),n.d(t,"teal",(function(){return f})),n.d(t,"green",(function(){return p})),n.d(t,"lightGreen",(function(){return d})),n.d(t,"lime",(function(){return h})),n.d(t,"yellow",(function(){return m})),n.d(t,"amber",(function(){return v})),n.d(t,"orange",(function(){return g})),n.d(t,"deepOrange",(function(){return y})),n.d(t,"brown",(function(){return b})),n.d(t,"grey",(function(){return _})),n.d(t,"blueGrey",(function(){return w})),n.d(t,"darkText",(function(){return x})),n.d(t,"lightText",(function(){return k})),n.d(t,"darkIcons",(function(){return E})),n.d(t,"lightIcons",(function(){return C})),n.d(t,"white",(function(){return S})),n.d(t,"black",(function(){return O}));var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},i={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},a={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},s={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},l={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},u={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},c={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},f={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},p={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},d={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},h={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},m={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},v={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},y={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},b={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},w={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},x={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},k={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},E={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},C={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},S="#ffffff",O="#000000";t.default={red:r,pink:i,purple:o,deepPurple:a,indigo:s,blue:l,lightBlue:u,cyan:c,teal:f,green:p,lightGreen:d,lime:h,yellow:m,amber:v,orange:g,deepOrange:y,brown:b,grey:_,blueGrey:w,darkText:x,lightText:k,darkIcons:E,lightIcons:C,white:S,black:O}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var s=o(e);if("string"==typeof a){var l,u=s.ownerDocument,c=u.defaultView;if(!((l="parent"===a?s.parentNode:u.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=c.getComputedStyle(s),p=c.getComputedStyle(l);a={left:-s.offsetLeft+(0,r.int)(p.paddingLeft)+(0,r.int)(f.marginLeft),top:-s.offsetTop+(0,r.int)(p.paddingTop)+(0,r.int)(f.marginTop),right:(0,i.innerWidth)(l)-(0,i.outerWidth)(s)-s.offsetLeft+(0,r.int)(p.paddingRight)-(0,r.int)(f.marginRight),bottom:(0,i.innerHeight)(l)-(0,i.outerHeight)(s)-s.offsetTop+(0,r.int)(p.paddingBottom)-(0,r.int)(f.marginBottom)}}(0,r.isNum)(a.right)&&(t=Math.min(t,a.right));(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom));(0,r.isNum)(a.left)&&(t=Math.max(t,a.left));(0,r.isNum)(a.top)&&(n=Math.max(n,a.top));return[t,n]},t.snapToGrid=function(e,t,n){var r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,i.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var a=o(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,i.offsetXYFromParent)(r||e,s,n.props.scale)},t.createCoreData=function(e,t,n){var i=e.state,a=!(0,r.isNum)(i.lastX),s=o(e);return a?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-i.lastX,deltaY:n-i.lastY,lastX:i.lastX,lastY:i.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(49),i=n(75);function o(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){void 0}},function(e,t,n){!function(e){"use strict";function t(e,t){function n(e){clearTimeout(r.doRedraw),r.doRedraw=setTimeout((function(){r.redraw()}),e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout((function(){r.computeScale()&&n(20)}),100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("changes",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",(function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)})),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){!1!==e&&this.computeScale();var t=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,o=t.getOption("lineWrapping"),a=o&&1.5*t.defaultTextHeight(),s=null,l=null;function u(e,n){return s!=e.line&&(s=e.line,l=t.getLineHandle(s)),l.widgets&&l.widgets.length||o&&l.height>a?t.charCoords(e,"local")[n?"top":"bottom"]:t.heightAtLine(l,"local")+(n?0:l.height)}var c=t.lastLine();if(t.display.barWidth)for(var f,p=0;p<i.length;p++){var d=i[p];if(!(d.to.line>c)){for(var h=f||u(d.from,!0)*n,m=u(d.to,!1)*n;p<i.length-1&&!(i[p+1].to.line>c)&&!((f=u(i[p+1].from,!0)*n)>m+.9);)m=u((d=i[++p]).to,!1)*n;if(m!=h){var v=Math.max(m-h,3),g=r.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(h+this.buttonHeight)+"px; height: "+v+"px",g.className=this.options.className,d.id&&g.setAttribute("annotation-id",d.id)}}}this.div.textContent="",this.div.appendChild(r)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(n(9))},function(e,t,n){!function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.line<s)return null;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold&&"fold"!==o){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var u=l(!0);if(r(t,i,"scanUp"))for(;!u&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),u=l(!1);if(u&&!u.cleared&&"unfold"!==o){var c=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,u);e.on(c,"mousedown",(function(t){f.clear(),e.e_preventDefault(t)}));var f=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});f.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return r(this,e,t)}))}(n(9))},function(e,t,n){!function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(n){n=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in l)i[o]=l[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new t(this,n);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},r=window.cancelAnimationFrame||clearTimeout;function i(e){return"string"==typeof e?e:e.text}function o(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,n){this.completion=t,this.data=n,this.picked=!1;var r=this,a=t.cm,s=a.getInputField().ownerDocument,l=s.defaultView||s.parentWindow,u=this.hints=s.createElement("ul"),c=t.cm.options.theme;u.className="CodeMirror-hints "+c,this.selectedHint=n.selectedHint||0;for(var f=n.list,p=0;p<f.length;++p){var d=u.appendChild(s.createElement("li")),h=f[p],m="CodeMirror-hint"+(p!=this.selectedHint?"":" CodeMirror-hint-active");null!=h.className&&(m=h.className+" "+m),d.className=m,h.render?h.render(d,n,h):d.appendChild(s.createTextNode(h.displayText||i(h))),d.hintId=p}var v=t.options.container||s.body,g=a.cursorCoords(t.options.alignWithWord?n.from:null),y=g.left,b=g.bottom,_=!0,w=0,x=0;if(v!==s.body){var k=-1!==["absolute","relative","fixed"].indexOf(l.getComputedStyle(v).position)?v:v.offsetParent,E=k.getBoundingClientRect(),C=s.body.getBoundingClientRect();w=E.left-C.left-k.scrollLeft,x=E.top-C.top-k.scrollTop}u.style.left=y-w+"px",u.style.top=b-x+"px";var S=l.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),O=l.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);v.appendChild(u);var A=u.getBoundingClientRect(),j=A.bottom-O,P=u.scrollHeight>u.clientHeight+1,N=a.getScrollInfo();if(j>0){var T=A.bottom-A.top;if(g.top-(g.bottom-A.top)-T>0)u.style.top=(b=g.top-T-x)+"px",_=!1;else if(T>O){u.style.height=O-5+"px",u.style.top=(b=g.bottom-A.top-x)+"px";var M=a.getCursor();n.from.ch!=M.ch&&(g=a.cursorCoords(M),u.style.left=(y=g.left-w)+"px",A=u.getBoundingClientRect())}}var D,L=A.right-S;if(L>0&&(A.right-A.left>S&&(u.style.width=S-5+"px",L-=A.right-A.left-S),u.style.left=(y=g.left-L-w)+"px"),P)for(var F=u.firstChild;F;F=F.nextSibling)F.style.paddingRight=a.display.nativeBarWidth+"px";return a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:f.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){D=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(D)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=b+N.top-e.top,i=r-(l.pageYOffset||(s.documentElement||s.body).scrollTop);if(_||(i+=u.offsetHeight),i<=n.top||i>=n.bottom)return t.close();u.style.top=r+"px",u.style.left=y+N.left-e.left+"px"}),e.on(u,"dblclick",(function(e){var t=o(u,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(u,"click",(function(e){var n=o(u,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(u,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),this.scrollToActive(),e.signal(n,"select",f[this.selectedHint],u.childNodes[this.selectedHint]),!0}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],o=this;this.cm.operation((function(){r.hint?r.hint(o.cm,t,r):o.cm.replaceRange(i(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),o.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),i=this.cm.getLine(t.line);if(t.line!=this.startPos.line||i.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(i.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=n((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active","")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.hints.childNodes[this.selectedHint],t=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-t.offsetTop:e.offsetTop+e.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=e.offsetTop+e.offsetHeight-this.hints.clientHeight+t.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(o){if(o==r.length)return t(null);s(r[o],e,n,(function(e){e&&e.list.length>0?t(e):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var l={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n(9))},function(e,t,n){},function(e,t){e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},function(e,t){e.exports={L:1,M:0,Q:3,H:2}},function(e,t,n){var r=n(125);function i(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}i.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var o=0;o<e.getLength();o++)t[n+o]^=r.gexp(r.glog(this.get(n))+r.glog(e.get(o)));return new i(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=r.glog(this.get(0))-r.glog(e.get(0)),n=new Array(this.getLength()),o=0;o<this.getLength();o++)n[o]=this.get(o);for(o=0;o<e.getLength();o++)n[o]^=r.gexp(r.glog(e.get(o))+t);return new i(n,0).mod(e)}},e.exports=i},function(e,t){for(var n={glog:function(e){if(e<1)throw new Error("glog("+e+")");return n.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return n.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)n.EXP_TABLE[r]=1<<r;for(r=8;r<256;r++)n.EXP_TABLE[r]=n.EXP_TABLE[r-4]^n.EXP_TABLE[r-5]^n.EXP_TABLE[r-6]^n.EXP_TABLE[r-8];for(r=0;r<255;r++)n.LOG_TABLE[n.EXP_TABLE[r]]=r;e.exports=n},function(e,t,n){"use strict";t.unsafeString=/@cc|<\/?|script|\]\s*\]|<\s*!|</i,t.needEsc=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,t.needEscGlobal=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,t.starSlash=/\*\//,t.identifier=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,t.javascriptURL=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\s*:/i,t.fallsThrough=/^\s*falls?\sthrough\s*$/,t.maxlenException=/^(?:(?:\/\/|\/\*|\*) ?)?[^ ]+$/,t.whitespace=/[ \f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]/,t.nonzeroDigit=/^[1-9]$/,t.decimalDigit=/^[0-9]$/,t.regexpSyntaxChars=/[\^$\\.*+?()[\]{}|]/,t.regexpQuantifiers=/[*+?{]/,t.regexpControlEscapes=/[fnrtv]/,t.regexpCharClasses=/[dDsSwW]/,t.regexpDot=/(^|[^\\])(\\\\)*\./},function(e,t,n){"use strict";var r=n(416),i={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},stmtMissingStrict:function(){return"global"===this.option.strict||!1!==this.option.strict&&!!this.option.globalstrict},allowsGlobalUsd:function(){return"global"===this.option.strict||this.option.globalstrict||this.option.module||this.impliedClosure()},impliedClosure:function(){return this.option.node||this.option.phantom||this.option.browserify},inMoz:function(){return this.option.moz},inES10:function(){return this.esVersion>=10},inES9:function(){return this.esVersion>=9},inES8:function(){return this.esVersion>=8},inES7:function(){return this.esVersion>=7},inES6:function(e){return!(e||!this.option.moz)||this.esVersion>=6},inES5:function(){return!this.esVersion||this.esVersion>=5||this.option.moz},inferEsVersion:function(){var e=null;if(this.option.esversion){if(this.option.es3?e="es3":this.option.es5?e="es5":this.option.esnext&&(e="esnext"),e)return e;2015===this.option.esversion?this.esVersion=6:this.esVersion=this.option.esversion}else this.option.es3?this.esVersion=3:this.option.esnext&&(this.esVersion=6);return null},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={unstable:{}},this.esVersion=5,this.funct=null,this.ignored={},this.directive=Object.create(null),this.jsonMode=!1,this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new r,this.inClassBody=!1}};t.state=i},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),l=r[n];n<o;l=r[++n])m(l)||!_(l)?a+=" "+l:a+=" "+s(l);return a},t.deprecate=function(n,r){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),i=!0}return n.apply(this,arguments)}};var o,a={};function s(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),c(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=c(e,i,r)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(k(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(x(n))return f(n)}var u,_="",E=!1,C=["{","}"];(d(n)&&(E=!0,C=["[","]"]),k(n))&&(_=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(_=" "+RegExp.prototype.toString.call(n)),w(n)&&(_=" "+Date.prototype.toUTCString.call(n)),x(n)&&(_=" "+f(n)),0!==a.length||E&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=E?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)A(t,String(a))?o.push(p(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return p(e,n,r,s,t,E)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,_,C)):C[0]+_+C[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),A(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return _(e)&&"[object RegExp]"===E(e)}function _(e){return"object"==typeof e&&null!==e}function w(e){return _(e)&&"[object Date]"===E(e)}function x(e){return _(e)&&("[object Error]"===E(e)||e instanceof Error)}function k(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(y(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=_,t.isDate=w,t.isError=x,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(426);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=n(427),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=j,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(P,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}}).call(this,n(129))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,f=-1;function p(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&d())}function d(){if(!c){var e=s(p);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPicker=t.TwitterPicker=t.SwatchesPicker=t.SliderPicker=t.SketchPicker=t.PhotoshopPicker=t.MaterialPicker=t.HuePicker=t.GithubPicker=t.CompactPicker=t.ChromePicker=t.default=t.CirclePicker=t.BlockPicker=t.AlphaPicker=void 0;var r=n(153);Object.defineProperty(t,"AlphaPicker",{enumerable:!0,get:function(){return y(r).default}});var i=n(280);Object.defineProperty(t,"BlockPicker",{enumerable:!0,get:function(){return y(i).default}});var o=n(282);Object.defineProperty(t,"CirclePicker",{enumerable:!0,get:function(){return y(o).default}});var a=n(284);Object.defineProperty(t,"ChromePicker",{enumerable:!0,get:function(){return y(a).default}});var s=n(290);Object.defineProperty(t,"CompactPicker",{enumerable:!0,get:function(){return y(s).default}});var l=n(293);Object.defineProperty(t,"GithubPicker",{enumerable:!0,get:function(){return y(l).default}});var u=n(295);Object.defineProperty(t,"HuePicker",{enumerable:!0,get:function(){return y(u).default}});var c=n(297);Object.defineProperty(t,"MaterialPicker",{enumerable:!0,get:function(){return y(c).default}});var f=n(298);Object.defineProperty(t,"PhotoshopPicker",{enumerable:!0,get:function(){return y(f).default}});var p=n(304);Object.defineProperty(t,"SketchPicker",{enumerable:!0,get:function(){return y(p).default}});var d=n(307);Object.defineProperty(t,"SliderPicker",{enumerable:!0,get:function(){return y(d).default}});var h=n(311);Object.defineProperty(t,"SwatchesPicker",{enumerable:!0,get:function(){return y(h).default}});var m=n(315);Object.defineProperty(t,"TwitterPicker",{enumerable:!0,get:function(){return y(m).default}});var v=n(114);Object.defineProperty(t,"CustomPicker",{enumerable:!0,get:function(){return y(v).default}});var g=y(a);function y(e){return e&&e.__esModule?e:{default:e}}t.default=g.default},function(e,t,n){(function(t){e.exports=function(){"use strict";function e(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/[\?\&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function n(e,t){for(var n in t.dataset)if(t.dataset.hasOwnProperty(n))if("env"===n||"dumpLineNumbers"===n||"rootpath"===n||"errorReporting"===n)e[n]=t.dataset[n];else try{e[n]=JSON.parse(t.dataset[n])}catch(e){}}var r=function(t,n,r){var i=r.href||"",o="less:"+(r.title||e(i)),a=t.getElementById(o),s=!1,l=t.createElement("style");l.setAttribute("type","text/css"),r.media&&l.setAttribute("media",r.media),l.id=o,l.styleSheet||(l.appendChild(t.createTextNode(n)),s=null!==a&&a.childNodes.length>0&&l.childNodes.length>0&&a.firstChild.nodeValue===l.firstChild.nodeValue);var u=t.getElementsByTagName("head")[0];if(null===a||!1===s){var c=r&&r.nextSibling||null;c?c.parentNode.insertBefore(l,c):u.appendChild(l)}if(a&&!1===s&&a.parentNode.removeChild(a),l.styleSheet)try{l.styleSheet.cssText=n}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}},i=function(e){var t,n=e.document;return n.currentScript||(t=n.getElementsByTagName("script"))[t.length-1]},o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function s(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var l={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},u={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}},c={colors:l,unitConversions:u},f=function(){function e(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null;var e=this;Object.defineProperty(this,"currentFileInfo",{get:function(){return e.fileInfo()}}),Object.defineProperty(this,"index",{get:function(){return e.getIndex()}})}return e.prototype.setParent=function(t,n){function r(t){t&&t instanceof e&&(t.parent=n)}Array.isArray(t)?t.forEach(r):r(t)},e.prototype.getIndex=function(){return this._index||this.parent&&this.parent.getIndex()||0},e.prototype.fileInfo=function(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}},e.prototype.isRulesetLike=function(){return!1},e.prototype.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e,n,r){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},e.prototype.genCSS=function(e,t){t.add(this.value)},e.prototype.accept=function(e){this.value=e.visit(this.value)},e.prototype.eval=function(){return this},e.prototype._operate=function(e,t,n,r){switch(t){case"+":return n+r;case"-":return n-r;case"*":return n*r;case"/":return n/r}},e.prototype.fround=function(e,t){var n=e&&e.numPrecision;return n?Number((t+2e-16).toFixed(n)):t},e.prototype.blocksVisibility=function(){return null==this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},e.prototype.addVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},e.prototype.removeVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},e.prototype.ensureVisibility=function(){this.nodeVisible=!0},e.prototype.ensureInvisibility=function(){this.nodeVisible=!1},e.prototype.isVisible=function(){return this.nodeVisible},e.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},e.prototype.copyVisibilityInfo=function(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)},e}();f.compare=function(e,t){if(e.compare&&"Quoted"!==t.type&&"Anonymous"!==t.type)return e.compare(t);if(t.compare)return-t.compare(e);if(e.type===t.type){if(e=e.value,t=t.value,!Array.isArray(e))return e===t?0:void 0;if(e.length===t.length){for(var n=0;n<e.length;n++)if(0!==f.compare(e[n],t[n]))return;return 0}}},f.numericCompare=function(e,t){return e<t?-1:e===t?0:e>t?1:void 0};var p=function(e){function t(t,n,r){var i=e.call(this)||this,o=i;return Array.isArray(t)?i.rgb=t:t.length>=6?(i.rgb=[],t.match(/.{2}/g).map((function(e,t){t<3?o.rgb.push(parseInt(e,16)):o.alpha=parseInt(e,16)/255}))):(i.rgb=[],t.split("").map((function(e,t){t<3?o.rgb.push(parseInt(e+e,16)):o.alpha=parseInt(e+e,16)/255}))),i.alpha=i.alpha||("number"==typeof n?n:1),void 0!==r&&(i.value=r),i}return a(t,e),t.prototype.luma=function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,n=this.rgb[2]/255;return.2126*(e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},t.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},t.prototype.toCSS=function(e,t){var n,r,i,o=e&&e.compress&&!t,a=[];if(r=this.fround(e,this.alpha),this.value)if(0===this.value.indexOf("rgb"))r<1&&(i="rgba");else{if(0!==this.value.indexOf("hsl"))return this.value;i=r<1?"hsla":"hsl"}else r<1&&(i="rgba");switch(i){case"rgba":a=this.rgb.map((function(e){return d(Math.round(e),255)})).concat(d(r,1));break;case"hsla":a.push(d(r,1));case"hsl":n=this.toHSL(),a=[this.fround(e,n.h),this.fround(e,100*n.s)+"%",this.fround(e,100*n.l)+"%"].concat(a)}if(i)return i+"("+a.join(","+(o?"":" "))+")";if(n=this.toRGB(),o){var s=n.split("");s[1]===s[2]&&s[3]===s[4]&&s[5]===s[6]&&(n="#"+s[1]+s[3]+s[5])}return n},t.prototype.operate=function(e,n,r){for(var i=new Array(3),o=this.alpha*(1-r.alpha)+r.alpha,a=0;a<3;a++)i[a]=this._operate(e,n,this.rgb[a],r.rgb[a]);return new t(i,o)},t.prototype.toRGB=function(){return h(this.rgb)},t.prototype.toHSL=function(){var e,t,n=this.rgb[0]/255,r=this.rgb[1]/255,i=this.rgb[2]/255,o=this.alpha,a=Math.max(n,r,i),s=Math.min(n,r,i),l=(a+s)/2,u=a-s;if(a===s)e=t=0;else{switch(t=l>.5?u/(2-a-s):u/(a+s),a){case n:e=(r-i)/u+(r<i?6:0);break;case r:e=(i-n)/u+2;break;case i:e=(n-r)/u+4}e/=6}return{h:360*e,s:t,l:l,a:o}},t.prototype.toHSV=function(){var e,t,n=this.rgb[0]/255,r=this.rgb[1]/255,i=this.rgb[2]/255,o=this.alpha,a=Math.max(n,r,i),s=Math.min(n,r,i),l=a,u=a-s;if(t=0===a?0:u/a,a===s)e=0;else{switch(a){case n:e=(r-i)/u+(r<i?6:0);break;case r:e=(i-n)/u+2;break;case i:e=(n-r)/u+4}e/=6}return{h:360*e,s:t,v:l,a:o}},t.prototype.toARGB=function(){return h([255*this.alpha].concat(this.rgb))},t.prototype.compare=function(e){return e.rgb&&e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:void 0},t}(f);function d(e,t){return Math.min(Math.max(e,0),t)}function h(e){return"#"+e.map((function(e){return((e=d(Math.round(e),255))<16?"0":"")+e.toString(16)})).join("")}p.prototype.type="Color",p.fromKeyword=function(e){var t,n=e.toLowerCase();if(l.hasOwnProperty(n)?t=new p(l[n].slice(1)):"transparent"===n&&(t=new p([0,0,0],0)),t)return t.value=e,t};var m=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return a(t,e),t.prototype.genCSS=function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},t.prototype.eval=function(e){return new t(this.value.eval(e))},t}(f);m.prototype.type="Paren";var v={"":!0," ":!0,"|":!0},g=function(e){function t(t){var n=e.call(this)||this;return" "===t?(n.value=" ",n.emptyOrWhitespace=!0):(n.value=t?t.trim():"",n.emptyOrWhitespace=""===n.value),n}return a(t,e),t.prototype.genCSS=function(e,t){var n=e.compress||v[this.value]?"":" ";t.add(n+this.value+n)},t}(f);g.prototype.type="Combinator";var y=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.combinator=t instanceof g?t:new g(t),s.value="string"==typeof n?n.trim():n||"",s.isVariable=r,s._index=i,s._fileInfo=o,s.copyVisibilityInfo(a),s.setParent(s.combinator,s),s}return a(t,e),t.prototype.accept=function(e){var t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},t.prototype.eval=function(e){return new t(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},t.prototype.clone=function(){return new t(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},t.prototype.genCSS=function(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())},t.prototype.toCSS=function(e){void 0===e&&(e={});var t=this.value,n=e.firstSelector;return t instanceof m&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=n,""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e)+t},t}(f);y.prototype.type="Element";var b={ALWAYS:0,PARENS_DIVISION:1,PARENS:2,STRICT_LEGACY:3},_=0,w=1,x=2,k=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var n=function(){function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(e){n=function(){}}try{r=Set}catch(e){r=function(){}}try{i=Promise}catch(e){i=function(){}}function o(a,l,u,c,f){"object"==typeof l&&(u=l.depth,c=l.prototype,f=l.includeNonEnumerable,l=l.circular);var p=[],d=[],h=void 0!==t;return void 0===l&&(l=!0),void 0===u&&(u=1/0),function a(u,m){if(null===u)return null;if(0===m)return u;var v,g;if("object"!=typeof u)return u;if(e(u,n))v=new n;else if(e(u,r))v=new r;else if(e(u,i))v=new i((function(e,t){u.then((function(t){e(a(t,m-1))}),(function(e){t(a(e,m-1))}))}));else if(o.__isArray(u))v=[];else if(o.__isRegExp(u))v=new RegExp(u.source,s(u)),u.lastIndex&&(v.lastIndex=u.lastIndex);else if(o.__isDate(u))v=new Date(u.getTime());else{if(h&&t.isBuffer(u))return v=t.allocUnsafe?t.allocUnsafe(u.length):new t(u.length),u.copy(v),v;e(u,Error)?v=Object.create(u):void 0===c?(g=Object.getPrototypeOf(u),v=Object.create(g)):(v=Object.create(c),g=c)}if(l){var y=p.indexOf(u);if(-1!=y)return d[y];p.push(u),d.push(v)}for(var b in e(u,n)&&u.forEach((function(e,t){var n=a(t,m-1),r=a(e,m-1);v.set(n,r)})),e(u,r)&&u.forEach((function(e){var t=a(e,m-1);v.add(t)})),u){var _;g&&(_=Object.getOwnPropertyDescriptor(g,b)),_&&null==_.set||(v[b]=a(u[b],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(b=0;b<w.length;b++){var x=w[b];(!(E=Object.getOwnPropertyDescriptor(u,x))||E.enumerable||f)&&(v[x]=a(u[x],m-1),E.enumerable||Object.defineProperty(v,x,{enumerable:!1}))}}if(f){var k=Object.getOwnPropertyNames(u);for(b=0;b<k.length;b++){var E,C=k[b];(E=Object.getOwnPropertyDescriptor(u,C))&&E.enumerable||(v[C]=a(u[C],m-1),Object.defineProperty(v,C,{enumerable:!1}))}}return v}(a,u)}function a(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},o.__getRegExpFlags=s,o}();e.exports&&(e.exports=n)}));function E(e,t){for(var n=e+1,r=null,i=-1;--n>=0&&"\n"!==t.charAt(n);)i++;return"number"==typeof e&&(r=(t.slice(0,e).match(/\n/g)||"").length),{line:r,column:i}}function C(e){var t,n=e.length,r=new Array(n);for(t=0;t<n;t++)r[t]=e[t];return r}function S(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function O(e,t){var n=t||{};if(!t._defaults){n={};var r=k(e);n._defaults=r;var i=t?k(t):{};Object.assign(n,r,i)}return n}function A(e,t){if(t&&t._defaults)return t;var n=O(e,t);if(n.strictMath&&(n.math=b.STRICT_LEGACY),n.relativeUrls&&(n.rewriteUrls=x),"string"==typeof n.math)switch(n.math.toLowerCase()){case"always":n.math=b.ALWAYS;break;case"parens-division":n.math=b.PARENS_DIVISION;break;case"strict":case"parens":n.math=b.PARENS;break;case"strict-legacy":n.math=b.STRICT_LEGACY}if("string"==typeof n.rewriteUrls)switch(n.rewriteUrls.toLowerCase()){case"off":n.rewriteUrls=_;break;case"local":n.rewriteUrls=w;break;case"all":n.rewriteUrls=x}return n}function j(e,t){void 0===t&&(t=[]);for(var n=0,r=e.length;n<r;n++){var i=e[n];Array.isArray(i)?j(i,t):void 0!==i&&t.push(i)}return t}var P=Object.freeze({__proto__:null,getLocation:E,copyArray:C,clone:S,defaults:O,copyOptions:A,merge:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},flattenArray:j}),N=/(<anonymous>|Function):(\d+):(\d+)/,T=function(e,t,n){Error.call(this);var r=e.filename||n;if(this.message=e.message,this.stack=e.stack,t&&r){var i=t.contents[r],o=E(e.index,i),a=o.line,s=o.column,l=e.call&&E(e.call,i).line,u=i?i.split("\n"):"";if(this.type=e.type||"Syntax",this.filename=r,this.index=e.index,this.line="number"==typeof a?a+1:null,this.column=s,!this.line&&this.stack){var c=this.stack.match(N),f=new Function("a","throw new Error()"),p=0;try{f()}catch(e){var d=e.stack.match(N);p=1-parseInt(d[2])}c&&(c[2]&&(this.line=parseInt(c[2])+p),c[3]&&(this.column=parseInt(c[3])))}this.callLine=l+1,this.callExtract=u[l],this.extract=[u[this.line-2],u[this.line-1],u[this.line]]}};if(void 0===Object.create){var M=function(){};M.prototype=Error.prototype,T.prototype=new M}else T.prototype=Object.create(Error.prototype);T.prototype.constructor=T,T.prototype.toString=function(e){void 0===e&&(e={});var t="",n=this.extract||[],r=[],i=function(e){return e};if(e.stylize){var o=typeof e.stylize;if("function"!==o)throw Error("options.stylize should be a function, got a "+o+"!");i=e.stylize}if(null!==this.line){if("string"==typeof n[0]&&r.push(i(this.line-1+" "+n[0],"grey")),"string"==typeof n[1]){var a=this.line+" ";n[1]&&(a+=n[1].slice(0,this.column)+i(i(i(n[1].substr(this.column,1),"bold")+n[1].slice(this.column+1),"red"),"inverse")),r.push(a)}"string"==typeof n[2]&&r.push(i(this.line+1+" "+n[2],"grey")),r=r.join("\n")+i("","reset")+"\n"}return t+=i(this.type+"Error: "+this.message,"red"),this.filename&&(t+=i(" in ","red")+this.filename),this.line&&(t+=i(" on line "+this.line+", column "+(this.column+1)+":","grey")),t+="\n"+r,this.callLine&&(t+=i("from ","red")+(this.filename||"")+"/n",t+=i(this.callLine,"grey")+" "+this.callExtract+"/n"),t};var D=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.extendList=n,s.condition=r,s.evaldCondition=!r,s._index=i,s._fileInfo=o,s.elements=s.getElements(t),s.mixinElements_=void 0,s.copyVisibilityInfo(a),s.setParent(s.elements,s),s}return a(t,e),t.prototype.accept=function(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))},t.prototype.createDerived=function(e,n,r){var i=new t(e=this.getElements(e),n||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return i.evaldCondition=null!=r?r:this.evaldCondition,i.mediaEmpty=this.mediaEmpty,i},t.prototype.getElements=function(e){return e?("string"==typeof e&&this.parse.parseNode(e,["selector"],this._index,this._fileInfo,(function(t,n){if(t)throw new T({index:t.index,message:t.message},this.parse.imports,this._fileInfo.filename);e=n[0].elements})),e):[new y("","&",!1,this._index,this._fileInfo)]},t.prototype.createEmptySelectors=function(){var e=[new t([new y("","&",!1,this._index,this._fileInfo)],null,null,this._index,this._fileInfo)];return e[0].mediaEmpty=!0,e},t.prototype.match=function(e){var t,n,r=this.elements,i=r.length;if(0===(t=(e=e.mixinElements()).length)||i<t)return 0;for(n=0;n<t;n++)if(r[n].value!==e[n])return 0;return t},t.prototype.mixinElements=function(){if(this.mixinElements_)return this.mixinElements_;var e=this.elements.map((function(e){return e.combinator.value+(e.value.value||e.value)})).join("").match(/[,&#\*\.\w-]([\w-]|(\\.))*/g);return e?"&"===e[0]&&e.shift():e=[],this.mixinElements_=e},t.prototype.isJustParentSelector=function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},t.prototype.eval=function(e){var t=this.condition&&this.condition.eval(e),n=this.elements,r=this.extendList;return n=n&&n.map((function(t){return t.eval(e)})),r=r&&r.map((function(t){return t.eval(e)})),this.createDerived(n,r,t)},t.prototype.genCSS=function(e,t){var n;for(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.fileInfo(),this.getIndex()),n=0;n<this.elements.length;n++)this.elements[n].genCSS(e,t)},t.prototype.getIsOutput=function(){return this.evaldCondition},t}(f);D.prototype.type="Selector";var L=function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("Value requires an array argument");return Array.isArray(t)?n.value=t:n.value=[t],n}return a(t,e),t.prototype.accept=function(e){this.value&&(this.value=e.visitArray(this.value))},t.prototype.eval=function(e){return 1===this.value.length?this.value[0].eval(e):new t(this.value.map((function(t){return t.eval(e)})))},t.prototype.genCSS=function(e,t){var n;for(n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(e&&e.compress?",":", ")},t}(f);L.prototype.type="Value";var F=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return a(t,e),t.prototype.genCSS=function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)},t}(f);F.prototype.type="Keyword",F.True=new F("true"),F.False=new F("false");var I=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.value=t,s._index=n,s._fileInfo=r,s.mapLines=i,s.rulesetLike=void 0!==o&&o,s.allowRoot=!0,s.copyVisibilityInfo(a),s}return a(t,e),t.prototype.eval=function(){return new t(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},t.prototype.compare=function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:void 0},t.prototype.isRulesetLike=function(){return this.rulesetLike},t.prototype.genCSS=function(e,t){this.nodeVisible=Boolean(this.value),this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)},t}(f);I.prototype.type="Anonymous";var R=b,B=function(e){function t(t,n,r,i,o,a,s,l){var u=e.call(this)||this;return u.name=t,u.value=n instanceof f?n:new L([n?new I(n):null]),u.important=r?" "+r.trim():"",u.merge=i,u._index=o,u._fileInfo=a,u.inline=s||!1,u.variable=void 0!==l?l:t.charAt&&"@"===t.charAt(0),u.allowRoot=!0,u.setParent(u.value,u),u}return a(t,e),t.prototype.genCSS=function(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(e){throw e.index=this._index,e.filename=this._fileInfo.filename,e}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)},t.prototype.eval=function(e){var n,r,i=!1,o=this.name,a=this.variable;"string"!=typeof o&&(o=1===o.length&&o[0]instanceof F?o[0].value:function(e,t){var n,r="",i=t.length,o={add:function(e){r+=e}};for(n=0;n<i;n++)t[n].eval(e).genCSS(e,o);return r}(e,o),a=!1),"font"===o&&e.math===R.ALWAYS&&(i=!0,n=e.math,e.math=R.PARENS_DIVISION);try{if(e.importantScope.push({}),r=this.value.eval(e),!this.variable&&"DetachedRuleset"===r.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};var s=this.important,l=e.importantScope.pop();return!s&&l.important&&(s=l.important),new t(o,r,s,this.merge,this.getIndex(),this.fileInfo(),this.inline,a)}catch(e){throw"number"!=typeof e.index&&(e.index=this.getIndex(),e.filename=this.fileInfo().filename),e}finally{i&&(e.math=n)}},t.prototype.makeImportant=function(){return new t(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)},t}(f);B.prototype.type="Declaration";var $=function(e,t,n){var r="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":r=$.asComment(t);break;case"mediaquery":r=$.asMediaQuery(t);break;case"all":r=$.asComment(t)+(n||"")+$.asMediaQuery(t)}return r};$.asComment=function(e){return e.debugInfo?"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n":""},$.asMediaQuery=function(e){if(!e.debugInfo)return"";var t=e.debugInfo.fileName;return/^[a-z]+:\/\//i.test(t)||(t="file://"+t),"@media -sass-debug-info{filename{font-family:"+t.replace(/([.:\/\\])/g,(function(e){return"\\"==e&&(e="/"),"\\"+e}))+"}line{font-family:\\00003"+e.debugInfo.lineNumber+"}}\n"};var W=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.value=t,o.isLineComment=n,o._index=r,o._fileInfo=i,o.allowRoot=!0,o}return a(t,e),t.prototype.genCSS=function(e,t){this.debugInfo&&t.add($(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)},t.prototype.isSilent=function(e){var t=e.compress&&"!"!==this.value[2];return this.isLineComment||t},t}(f);W.prototype.type="Comment";var z={},H=function(e,t,n){if(e)for(var r=0;r<n.length;r++)e.hasOwnProperty(n[r])&&(t[n[r]]=e[n[r]])},V=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager"];z.Parse=function(e){H(e,this,V),"string"==typeof this.paths&&(this.paths=[this.paths])};var U=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];function q(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function G(e){return"."===e.charAt(0)}z.Eval=function(){function e(e,t){H(e,this,U),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[],this.inCalc=!1,this.mathOn=!0}return e.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},e.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},e.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},e.prototype.outOfParenthesis=function(){this.parensStack.pop()},e.prototype.isMathOn=function(e){return!!this.mathOn&&!!("/"!==e||this.math===b.ALWAYS||this.parensStack&&this.parensStack.length)&&(!(this.math>b.PARENS_DIVISION)||this.parensStack&&this.parensStack.length)},e.prototype.pathRequiresRewrite=function(e){return(this.rewriteUrls===w?G:q)(e)},e.prototype.rewritePath=function(e,t){var n;return t=t||"",n=this.normalizePath(t+e),G(e)&&q(t)&&!1===G(n)&&(n="./"+n),n},e.prototype.normalizePath=function(e){var t,n=e.split("/").reverse();for(e=[];0!==n.length;)switch(t=n.pop()){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(t):e.pop();break;default:e.push(t)}return e.join("/")},e}();var X=function e(t){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){var t=this;Object.keys(e).forEach((function(n){t.add(n,e[n])}))},get:function(e){return this._data[e]||t&&t.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return e(this)},create:function(t){return e(t)}}}(null),Y={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;if(null!=e)return e?F.True:F.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}},K=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.selectors=t,o.rules=n,o._lookups={},o._variables=null,o._properties=null,o.strictImports=r,o.copyVisibilityInfo(i),o.allowRoot=!0,o.setParent(o.selectors,o),o.setParent(o.rules,o),o}return a(t,e),t.prototype.isRulesetLike=function(){return!0},t.prototype.accept=function(e){this.paths?this.paths=e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))},t.prototype.eval=function(e){var n,r,i,o,a,s=!1;if(this.selectors&&(r=this.selectors.length)){for(n=new Array(r),Y.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),o=0;o<r;o++){i=this.selectors[o].eval(e);for(var l=0;l<i.elements.length;l++)if(i.elements[l].isVariable){a=!0;break}n[o]=i,i.evaldCondition&&(s=!0)}if(a){var u=new Array(r);for(o=0;o<r;o++)i=n[o],u[o]=i.toCSS(e);this.parse.parseNode(u.join(","),["selectors"],n[0].getIndex(),n[0].fileInfo(),(function(e,t){t&&(n=j(t))}))}Y.reset()}else s=!0;var c,p,d=this.rules?C(this.rules):null,h=new t(n,d,this.strictImports,this.visibilityInfo());h.originalRuleset=this,h.root=this.root,h.firstRoot=this.firstRoot,h.allowImports=this.allowImports,this.debugInfo&&(h.debugInfo=this.debugInfo),s||(d.length=0),h.functionRegistry=function(e){for(var t,n=0,r=e.length;n!==r;++n)if(t=e[n].functionRegistry)return t;return X}(e.frames).inherit();var m=e.frames;m.unshift(h);var v=e.selectors;v||(e.selectors=v=[]),v.unshift(this.selectors),(h.root||h.allowImports||!h.strictImports)&&h.evalImports(e);var g=h.rules;for(o=0;c=g[o];o++)c.evalFirst&&(g[o]=c.eval(e));var y=e.mediaBlocks&&e.mediaBlocks.length||0;for(o=0;c=g[o];o++)"MixinCall"===c.type?(d=c.eval(e).filter((function(e){return!(e instanceof B&&e.variable&&h.variable(e.name))})),g.splice.apply(g,[o,1].concat(d)),o+=d.length-1,h.resetCache()):"VariableCall"===c.type&&(d=c.eval(e).rules.filter((function(e){return!(e instanceof B&&e.variable)})),g.splice.apply(g,[o,1].concat(d)),o+=d.length-1,h.resetCache());for(o=0;c=g[o];o++)c.evalFirst||(g[o]=c=c.eval?c.eval(e):c);for(o=0;c=g[o];o++)if(c instanceof t&&c.selectors&&1===c.selectors.length&&c.selectors[0]&&c.selectors[0].isJustParentSelector())for(g.splice(o--,1),l=0;p=c.rules[l];l++)p instanceof f&&(p.copyVisibilityInfo(c.visibilityInfo()),p instanceof B&&p.variable||g.splice(++o,0,p));if(m.shift(),v.shift(),e.mediaBlocks)for(o=y;o<e.mediaBlocks.length;o++)e.mediaBlocks[o].bubbleSelectors(n);return h},t.prototype.evalImports=function(e){var t,n,r=this.rules;if(r)for(t=0;t<r.length;t++)"Import"===r[t].type&&((n=r[t].eval(e))&&(n.length||0===n.length)?(r.splice.apply(r,[t,1].concat(n)),t+=n.length-1):r.splice(t,1,n),this.resetCache())},t.prototype.makeImportant=function(){return new t(this.selectors,this.rules.map((function(e){return e.makeImportant?e.makeImportant():e})),this.strictImports,this.visibilityInfo())},t.prototype.matchArgs=function(e){return!e||0===e.length},t.prototype.matchCondition=function(e,t){var n=this.selectors[this.selectors.length-1];return!(!n.evaldCondition||n.condition&&!n.condition.eval(new z.Eval(t,t.frames)))},t.prototype.resetCache=function(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}},t.prototype.variables=function(){return this._variables||(this._variables=this.rules?this.rules.reduce((function(e,t){if(t instanceof B&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){var n=t.root.variables();for(var r in n)n.hasOwnProperty(r)&&(e[r]=t.root.variable(r))}return e}),{}):{}),this._variables},t.prototype.properties=function(){return this._properties||(this._properties=this.rules?this.rules.reduce((function(e,t){if(t instanceof B&&!0!==t.variable){var n=1===t.name.length&&t.name[0]instanceof F?t.name[0].value:t.name;e["$"+n]?e["$"+n].push(t):e["$"+n]=[t]}return e}),{}):{}),this._properties},t.prototype.variable=function(e){var t=this.variables()[e];if(t)return this.parseValue(t)},t.prototype.property=function(e){var t=this.properties()[e];if(t)return this.parseValue(t)},t.prototype.lastDeclaration=function(){for(var e=this.rules.length;e>0;e--){var t=this.rules[e-1];if(t instanceof B)return this.parseValue(t)}},t.prototype.parseValue=function(e){var t=this;function n(e){return e.value instanceof I&&!e.parsed?("string"==typeof e.value.value?this.parse.parseNode(e.value.value,["value","important"],e.value.getIndex(),e.fileInfo(),(function(t,n){t&&(e.parsed=!0),n&&(e.value=n[0],e.important=n[1]||"",e.parsed=!0)})):e.parsed=!0,e):e}if(Array.isArray(e)){var r=[];return e.forEach((function(e){r.push(n.call(t,e))})),r}return n.call(t,e)},t.prototype.rulesets=function(){if(!this.rules)return[];var e,t,n=[],r=this.rules;for(e=0;t=r[e];e++)t.isRuleset&&n.push(t);return n},t.prototype.prependRule=function(e){var t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)},t.prototype.find=function(e,t,n){void 0===t&&(t=this);var r,i,o=[],a=e.toCSS();return a in this._lookups?this._lookups[a]:(this.rulesets().forEach((function(a){if(a!==t)for(var s=0;s<a.selectors.length;s++)if(r=e.match(a.selectors[s])){if(e.elements.length>r){if(!n||n(a)){i=a.find(new D(e.elements.slice(r)),t,n);for(var l=0;l<i.length;++l)i[l].path.push(a);Array.prototype.push.apply(o,i)}}else o.push({rule:a,path:[]});break}})),this._lookups[a]=o,o)},t.prototype.genCSS=function(e,t){var n,r,i,o,a,s=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;var l,u=e.compress?"":Array(e.tabLevel+1).join(" "),c=e.compress?"":Array(e.tabLevel).join(" "),f=0,p=0;for(n=0;o=this.rules[n];n++)o instanceof W?(p===n&&p++,s.push(o)):o.isCharset&&o.isCharset()?(s.splice(f,0,o),f++,p++):"Import"===o.type?(s.splice(p,0,o),p++):s.push(o);if(s=[].concat(s),!this.root){(i=$(e,this,c))&&(t.add(i),t.add(c));var d=this.paths,h=d.length,m=void 0;for(l=e.compress?",":",\n"+c,n=0;n<h;n++)if(m=(a=d[n]).length)for(n>0&&t.add(l),e.firstSelector=!0,a[0].genCSS(e,t),e.firstSelector=!1,r=1;r<m;r++)a[r].genCSS(e,t);t.add((e.compress?"{":" {\n")+u)}for(n=0;o=s[n];n++){n+1===s.length&&(e.lastRule=!0);var v=e.lastRule;o.isRulesetLike(o)&&(e.lastRule=!1),o.genCSS?o.genCSS(e,t):o.value&&t.add(o.value.toString()),e.lastRule=v,!e.lastRule&&o.isVisible()?t.add(e.compress?"":"\n"+u):e.lastRule=!1}this.root||(t.add(e.compress?"}":"\n"+c+"}"),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")},t.prototype.joinSelectors=function(e,t,n){for(var r=0;r<n.length;r++)this.joinSelector(e,t,n[r])},t.prototype.joinSelector=function(e,t,n){function r(e,t){var n,r;if(0===e.length)n=new m(e[0]);else{var i=new Array(e.length);for(r=0;r<e.length;r++)i[r]=new y(null,e[r],t.isVariable,t._index,t._fileInfo);n=new m(new D(i))}return n}function i(e,t){var n;return n=new y(null,e,t.isVariable,t._index,t._fileInfo),new D([n])}function o(e,t,n,r){var i,o,a;if(i=[],e.length>0?(o=(i=C(e)).pop(),a=r.createDerived(C(o.elements))):a=r.createDerived([]),t.length>0){var s=n.combinator,l=t[0].elements[0];s.emptyOrWhitespace&&!l.combinator.emptyOrWhitespace&&(s=l.combinator),a.elements.push(new y(s,l.value,n.isVariable,n._index,n._fileInfo)),a.elements=a.elements.concat(t[0].elements.slice(1))}if(0!==a.elements.length&&i.push(a),t.length>1){var u=t.slice(1);u=u.map((function(e){return e.createDerived(e.elements,[])})),i=i.concat(u)}return i}function a(e,t,n,r,i){var a;for(a=0;a<e.length;a++){var s=o(e[a],t,n,r);i.push(s)}return i}function s(e,t){var n,r;if(0!==e.length)if(0!==t.length)for(n=0;r=t[n];n++)r.length>0?r[r.length-1]=r[r.length-1].createDerived(r[r.length-1].elements.concat(e)):r.push(new D(e));else t.push([new D(e)])}function l(e,t){var n=t.createDerived(t.elements,t.extendList,t.evaldCondition);return n.copyVisibilityInfo(e),n}var u,c;if(!function e(t,n,l){var u,c,f,p,d,h,v,g,b,_,w,x,k=!1;for(p=[],d=[[]],u=0;g=l.elements[u];u++)if("&"!==g.value){var E=(x=void 0,(w=g).value instanceof m&&(x=w.value.value)instanceof D?x:null);if(null!=E){s(p,d);var C,S=[],O=[];for(C=e(S,n,E),k=k||C,f=0;f<S.length;f++)a(d,[i(r(S[f],g),g)],g,l,O);d=O,p=[]}else p.push(g)}else{for(k=!0,h=[],s(p,d),c=0;c<d.length;c++)if(v=d[c],0===n.length)v.length>0&&v[0].elements.push(new y(g.combinator,"",g.isVariable,g._index,g._fileInfo)),h.push(v);else for(f=0;f<n.length;f++){var A=o(v,n[f],g,l);h.push(A)}d=h,p=[]}for(s(p,d),u=0;u<d.length;u++)(b=d[u].length)>0&&(t.push(d[u]),_=d[u][b-1],d[u][b-1]=_.createDerived(_.elements,l.extendList));return k}(c=[],t,n))if(t.length>0)for(c=[],u=0;u<t.length;u++){var f=t[u].map(l.bind(this,n.visibilityInfo()));f.push(n),c.push(f)}else c=[[n]];for(u=0;u<c.length;u++)e.push(c[u])},t}(f);K.prototype.type="Ruleset",K.prototype.isRuleset=!0;var J=function(e){function t(t,n,r,i,o,a,s,l){var u,c=e.call(this)||this;if(c.name=t,c.value=n instanceof f?n:n?new I(n):n,r){for(Array.isArray(r)?c.rules=r:(c.rules=[r],c.rules[0].selectors=new D([],null,null,i,o).createEmptySelectors()),u=0;u<c.rules.length;u++)c.rules[u].allowImports=!0;c.setParent(c.rules,c)}return c._index=i,c._fileInfo=o,c.debugInfo=a,c.isRooted=s||!1,c.copyVisibilityInfo(l),c.allowRoot=!0,c}return a(t,e),t.prototype.accept=function(e){var t=this.value,n=this.rules;n&&(this.rules=e.visitArray(n)),t&&(this.value=e.visit(t))},t.prototype.isRulesetLike=function(){return this.rules||!this.isCharset()},t.prototype.isCharset=function(){return"@charset"===this.name},t.prototype.genCSS=function(e,t){var n=this.value,r=this.rules;t.add(this.name,this.fileInfo(),this.getIndex()),n&&(t.add(" "),n.genCSS(e,t)),r?this.outputRuleset(e,t,r):t.add(";")},t.prototype.eval=function(e){var n,r,i=this.value,o=this.rules;return n=e.mediaPath,r=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],i&&(i=i.eval(e)),o&&((o=[o[0].eval(e)])[0].root=!0),e.mediaPath=n,e.mediaBlocks=r,new t(this.name,i,o,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())},t.prototype.variable=function(e){if(this.rules)return K.prototype.variable.call(this.rules[0],e)},t.prototype.find=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.rules)return K.prototype.find.apply(this.rules[0],e)},t.prototype.rulesets=function(){if(this.rules)return K.prototype.rulesets.apply(this.rules[0])},t.prototype.outputRuleset=function(e,t,n){var r,i=n.length;if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),r=0;r<i;r++)n[r].genCSS(e,t);return t.add("}"),void e.tabLevel--}var o="\n"+Array(e.tabLevel).join(" "),a=o+" ";if(i){for(t.add(" {"+a),n[0].genCSS(e,t),r=1;r<i;r++)t.add(a),n[r].genCSS(e,t);t.add(o+"}")}else t.add(" {"+o+"}");e.tabLevel--},t}(f);J.prototype.type="AtRule";var Z=function(e){function t(t,n){var r=e.call(this)||this;return r.ruleset=t,r.frames=n,r.setParent(r.ruleset,r),r}return a(t,e),t.prototype.accept=function(e){this.ruleset=e.visit(this.ruleset)},t.prototype.eval=function(e){var n=this.frames||C(e.frames);return new t(this.ruleset,n)},t.prototype.callEval=function(e){return this.ruleset.eval(this.frames?new z.Eval(e,this.frames.concat(e.frames)):e)},t}(f);Z.prototype.type="DetachedRuleset",Z.prototype.evalFirst=!0;var Q=function(e){function t(t,n,r){var i=e.call(this)||this;return i.numerator=t?C(t).sort():[],i.denominator=n?C(n).sort():[],r?i.backupUnit=r:t&&t.length&&(i.backupUnit=t[0]),i}return a(t,e),t.prototype.clone=function(){return new t(C(this.numerator),C(this.denominator),this.backupUnit)},t.prototype.genCSS=function(e,t){var n=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!n&&this.backupUnit?t.add(this.backupUnit):!n&&this.denominator.length&&t.add(this.denominator[0])},t.prototype.toString=function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},t.prototype.compare=function(e){return this.is(e.toString())?0:void 0},t.prototype.is=function(e){return this.toString().toUpperCase()===e.toUpperCase()},t.prototype.isLength=function(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS())},t.prototype.isEmpty=function(){return 0===this.numerator.length&&0===this.denominator.length},t.prototype.isSingular=function(){return this.numerator.length<=1&&0===this.denominator.length},t.prototype.map=function(e){var t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)},t.prototype.usedUnits=function(){var e,t,n,r={};for(n in t=function(t){return e.hasOwnProperty(t)&&!r[n]&&(r[n]=t),t},u)u.hasOwnProperty(n)&&(e=u[n],this.map(t));return r},t.prototype.cancel=function(){var e,t,n={};for(t=0;t<this.numerator.length;t++)n[e=this.numerator[t]]=(n[e]||0)+1;for(t=0;t<this.denominator.length;t++)n[e=this.denominator[t]]=(n[e]||0)-1;for(e in this.numerator=[],this.denominator=[],n)if(n.hasOwnProperty(e)){var r=n[e];if(r>0)for(t=0;t<r;t++)this.numerator.push(e);else if(r<0)for(t=0;t<-r;t++)this.denominator.push(e)}this.numerator.sort(),this.denominator.sort()},t}(f);Q.prototype.type="Unit";var ee=function(e){function t(t,n){var r=e.call(this)||this;if(r.value=parseFloat(t),isNaN(r.value))throw new Error("Dimension is not a number.");return r.unit=n&&n instanceof Q?n:new Q(n?[n]:void 0),r.setParent(r.unit,r),r}return a(t,e),t.prototype.accept=function(e){this.unit=e.visit(this.unit)},t.prototype.eval=function(e){return this},t.prototype.toColor=function(){return new p([this.value,this.value,this.value])},t.prototype.genCSS=function(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var n=this.fround(e,this.value),r=String(n);if(0!==n&&n<1e-6&&n>-1e-6&&(r=n.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===n&&this.unit.isLength())return void t.add(r);n>0&&n<1&&(r=r.substr(1))}t.add(r),this.unit.genCSS(e,t)},t.prototype.operate=function(e,n,r){var i=this._operate(e,n,this.value,r.value),o=this.unit.clone();if("+"===n||"-"===n)if(0===o.numerator.length&&0===o.denominator.length)o=r.unit.clone(),this.unit.backupUnit&&(o.backupUnit=this.unit.backupUnit);else if(0===r.unit.numerator.length&&0===o.denominator.length);else{if(r=r.convertTo(this.unit.usedUnits()),e.strictUnits&&r.unit.toString()!==o.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+o.toString()+"' and '"+r.unit.toString()+"'.");i=this._operate(e,n,this.value,r.value)}else"*"===n?(o.numerator=o.numerator.concat(r.unit.numerator).sort(),o.denominator=o.denominator.concat(r.unit.denominator).sort(),o.cancel()):"/"===n&&(o.numerator=o.numerator.concat(r.unit.denominator).sort(),o.denominator=o.denominator.concat(r.unit.numerator).sort(),o.cancel());return new t(i,o)},t.prototype.compare=function(e){var n,r;if(e instanceof t){if(this.unit.isEmpty()||e.unit.isEmpty())n=this,r=e;else if(n=this.unify(),r=e.unify(),0!==n.unit.compare(r.unit))return;return f.numericCompare(n.value,r.value)}},t.prototype.unify=function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},t.prototype.convertTo=function(e){var n,r,i,o,a,s=this.value,l=this.unit.clone(),c={};if("string"==typeof e){for(n in u)u[n].hasOwnProperty(e)&&((c={})[n]=e);e=c}for(r in a=function(e,t){return i.hasOwnProperty(e)?(t?s/=i[e]/i[o]:s*=i[e]/i[o],o):e},e)e.hasOwnProperty(r)&&(o=e[r],i=u[r],l.map(a));return l.cancel(),new t(s,l)},t}(f);ee.prototype.type="Dimension";var te=b,ne=function(e){function t(t,n,r){var i=e.call(this)||this;return i.op=t.trim(),i.operands=n,i.isSpaced=r,i}return a(t,e),t.prototype.accept=function(e){this.operands=e.visitArray(this.operands)},t.prototype.eval=function(e){var n,r=this.operands[0].eval(e),i=this.operands[1].eval(e);if(e.isMathOn(this.op)){if(n="./"===this.op?"/":this.op,r instanceof ee&&i instanceof p&&(r=r.toColor()),i instanceof ee&&r instanceof p&&(i=i.toColor()),!r.operate){if(r instanceof t&&"/"===r.op&&e.math===te.PARENS_DIVISION)return new t(this.op,[r,i],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return r.operate(e,n,i)}return new t(this.op,[r,i],this.isSpaced)},t.prototype.genCSS=function(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)},t}(f);ne.prototype.type="Operation";var re=b,ie=function(e){function t(t,n){var r=e.call(this)||this;if(r.value=t,r.noSpacing=n,!t)throw new Error("Expression requires an array parameter");return r}return a(t,e),t.prototype.accept=function(e){this.value=e.visitArray(this.value)},t.prototype.eval=function(e){var n,r=e.isMathOn(),i=this.parens&&(e.math!==re.STRICT_LEGACY||!this.parensInOp),o=!1;return i&&e.inParenthesis(),this.value.length>1?n=new t(this.value.map((function(t){return t.eval?t.eval(e):t})),this.noSpacing):1===this.value.length?(!this.value[0].parens||this.value[0].parensInOp||e.inCalc||(o=!0),n=this.value[0].eval(e)):n=this,i&&e.outOfParenthesis(),!this.parens||!this.parensInOp||r||o||n instanceof ee||(n=new m(n)),n},t.prototype.genCSS=function(e,t){for(var n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),!this.noSpacing&&n+1<this.value.length&&t.add(" ")},t.prototype.throwAwayComments=function(){this.value=this.value.filter((function(e){return!(e instanceof W)}))},t}(f);ie.prototype.type="Expression";var oe=function(){function e(e,t,n,r){this.name=e.toLowerCase(),this.index=n,this.context=t,this.currentFileInfo=r,this.func=t.frames[0].functionRegistry.get(this.name)}return e.prototype.isValid=function(){return Boolean(this.func)},e.prototype.call=function(e){return Array.isArray(e)&&(e=e.filter((function(e){return"Comment"!==e.type})).map((function(e){if("Expression"===e.type){var t=e.value.filter((function(e){return"Comment"!==e.type}));return 1===t.length?t[0]:new ie(t)}return e}))),this.func.apply(this,e)},e}(),ae=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.name=t,o.args=n,o.calc="calc"===t,o._index=r,o._fileInfo=i,o}return a(t,e),t.prototype.accept=function(e){this.args&&(this.args=e.visitArray(this.args))},t.prototype.eval=function(e){var n=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();var r,i=this.args.map((function(t){return t.eval(e)}));(this.calc||e.inCalc)&&e.exitCalc(),e.mathOn=n;var o=new oe(this.name,e,this.getIndex(),this.fileInfo());if(o.isValid()){try{r=o.call(i)}catch(e){throw{type:e.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(e.message?": "+e.message:""),index:this.getIndex(),filename:this.fileInfo().filename,line:e.lineNumber,column:e.columnNumber}}if(null!=r)return r instanceof f||(r=new I(r&&!0!==r?r.toString():null)),r._index=this._index,r._fileInfo=this._fileInfo,r}return new t(this.name,i,this.getIndex(),this.fileInfo())},t.prototype.genCSS=function(e,t){t.add(this.name+"(",this.fileInfo(),this.getIndex());for(var n=0;n<this.args.length;n++)this.args[n].genCSS(e,t),n+1<this.args.length&&t.add(", ");t.add(")")},t}(f);ae.prototype.type="Call";var se=function(e){function t(t,n,r){var i=e.call(this)||this;return i.name=t,i._index=n,i._fileInfo=r,i}return a(t,e),t.prototype.eval=function(e){var n,r=this.name;if(0===r.indexOf("@@")&&(r="@"+new t(r.slice(1),this.getIndex(),this.fileInfo()).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+r,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,n=this.find(e.frames,(function(t){var n=t.variable(r);if(n)return n.important&&(e.importantScope[e.importantScope.length-1].important=n.important),e.inCalc?new ae("_SELF",[n.value]).eval(e):n.value.eval(e)})))return this.evaluating=!1,n;throw{type:"Name",message:"variable "+r+" is undefined",filename:this.fileInfo().filename,index:this.getIndex()}},t.prototype.find=function(e,t){for(var n=0,r=void 0;n<e.length;n++)if(r=t.call(e,e[n]))return r;return null},t}(f);se.prototype.type="Variable";var le=function(e){function t(t,n,r){var i=e.call(this)||this;return i.name=t,i._index=n,i._fileInfo=r,i}return a(t,e),t.prototype.eval=function(e){var t,n=this.name,r=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+n,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,(function(t){var i,o=t.property(n);if(o){for(var a=0;a<o.length;a++)i=o[a],o[a]=new B(i.name,i.value,i.important,i.merge,i.index,i.currentFileInfo,i.inline,i.variable);return r(o),(i=o[o.length-1]).important&&(e.importantScope[e.importantScope.length-1].important=i.important),i=i.value.eval(e)}})))return this.evaluating=!1,t;throw{type:"Name",message:"Property '"+n+"' is undefined",filename:this.currentFileInfo.filename,index:this.index}},t.prototype.find=function(e,t){for(var n=0,r=void 0;n<e.length;n++)if(r=t.call(e,e[n]))return r;return null},t}(f);le.prototype.type="Property";var ue=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.op=n,i.value=r,i}return a(t,e),t.prototype.eval=function(e){return new t(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value)},t.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},t.prototype.toCSS=function(e){var t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),"["+t+"]"},t}(f);ue.prototype.type="Attribute";var ce=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.escaped=null==r||r,a.value=n||"",a.quote=t.charAt(0),a._index=i,a._fileInfo=o,a.variableRegex=/@\{([\w-]+)\}/g,a.propRegex=/\$\{([\w-]+)\}/g,a.allowRoot=r,a}return a(t,e),t.prototype.genCSS=function(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)},t.prototype.containsVariables=function(){return this.value.match(this.variableRegex)},t.prototype.eval=function(e){var n=this,r=this.value;function i(e,t,n){var r=e;do{e=r.toString(),r=e.replace(t,n)}while(e!==r);return r}return r=i(r,this.variableRegex,(function(r,i){var o=new se("@"+i,n.getIndex(),n.fileInfo()).eval(e,!0);return o instanceof t?o.value:o.toCSS()})),r=i(r,this.propRegex,(function(r,i){var o=new le("$"+i,n.getIndex(),n.fileInfo()).eval(e,!0);return o instanceof t?o.value:o.toCSS()})),new t(this.quote+r+this.quote,r,this.escaped,this.getIndex(),this.fileInfo())},t.prototype.compare=function(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS()===e.toCSS()?0:void 0:f.numericCompare(this.value,e.value)},t}(f);ce.prototype.type="Quoted";var fe=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.value=t,o._index=n,o._fileInfo=r,o.isEvald=i,o}return a(t,e),t.prototype.accept=function(e){this.value=e.visit(this.value)},t.prototype.genCSS=function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},t.prototype.eval=function(e){var n,r=this.value.eval(e);if(!this.isEvald&&("string"==typeof(n=this.fileInfo()&&this.fileInfo().rootpath)&&"string"==typeof r.value&&e.pathRequiresRewrite(r.value)?(r.quote||(n=n.replace(/[\(\)'"\s]/g,(function(e){return"\\"+e}))),r.value=e.rewritePath(r.value,n)):r.value=e.normalizePath(r.value),e.urlArgs&&!r.value.match(/^\s*data:/))){var i=(-1===r.value.indexOf("?")?"?":"&")+e.urlArgs;-1!==r.value.indexOf("#")?r.value=r.value.replace("#",i+"#"):r.value+=i}return new t(r,this.getIndex(),this.fileInfo(),!0)},t}(f);fe.prototype.type="Url";var pe=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;a._index=r,a._fileInfo=i;var s=new D([],null,null,a._index,a._fileInfo).createEmptySelectors();return a.features=new L(n),a.rules=[new K(s,t)],a.rules[0].allowImports=!0,a.copyVisibilityInfo(o),a.allowRoot=!0,a.setParent(s,a),a.setParent(a.features,a),a.setParent(a.rules,a),a}return a(t,e),t.prototype.isRulesetLike=function(){return!0},t.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},t.prototype.genCSS=function(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},t.prototype.eval=function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var n=new t(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,n.debugInfo=this.debugInfo),n.features=this.features.eval(e),e.mediaPath.push(n),e.mediaBlocks.push(n),this.rules[0].functionRegistry=e.frames[0].functionRegistry.inherit(),e.frames.unshift(this.rules[0]),n.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?n.evalTop(e):n.evalNested(e)},t.prototype.evalTop=function(e){var t=this;if(e.mediaBlocks.length>1){var n=new D([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();(t=new K(n,e.mediaBlocks)).multiMedia=!0,t.copyVisibilityInfo(this.visibilityInfo()),this.setParent(t,this)}return delete e.mediaBlocks,delete e.mediaPath,t},t.prototype.evalNested=function(e){var t,n,r=e.mediaPath.concat([this]);for(t=0;t<r.length;t++)n=r[t].features instanceof L?r[t].features.value:r[t].features,r[t]=Array.isArray(n)?n:[n];return this.features=new L(this.permute(r).map((function(e){for(e=e.map((function(e){return e.toCSS?e:new I(e)})),t=e.length-1;t>0;t--)e.splice(t,0,new I("and"));return new ie(e)}))),this.setParent(this.features,this),new K([],[])},t.prototype.permute=function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],n=this.permute(e.slice(1)),r=0;r<n.length;r++)for(var i=0;i<e[0].length;i++)t.push([e[0][i]].concat(n[r]));return t},t.prototype.bubbleSelectors=function(e){e&&(this.rules=[new K(C(e),[this.rules[0]])],this.setParent(this.rules,this))},t}(J);pe.prototype.type="Media";var de=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;if(s.options=r,s._index=i,s._fileInfo=o,s.path=t,s.features=n,s.allowRoot=!0,void 0!==s.options.less||s.options.inline)s.css=!s.options.less||s.options.inline;else{var l=s.getPath();l&&/[#\.\&\?]css([\?;].*)?$/.test(l)&&(s.css=!0)}return s.copyVisibilityInfo(a),s.setParent(s.features,s),s.setParent(s.path,s),s}return a(t,e),t.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=e.visit(this.root))},t.prototype.genCSS=function(e,t){this.css&&void 0===this.path._fileInfo.reference&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},t.prototype.getPath=function(){return this.path instanceof fe?this.path.value.value:this.path.value},t.prototype.isVariableImport=function(){var e=this.path;return e instanceof fe&&(e=e.value),!(e instanceof ce)||e.containsVariables()},t.prototype.evalForImport=function(e){var n=this.path;return n instanceof fe&&(n=n.value),new t(n.eval(e),this.features,this.options,this._index,this._fileInfo,this.visibilityInfo())},t.prototype.evalPath=function(e){var t=this.path.eval(e),n=this._fileInfo;if(!(t instanceof fe)){var r=t.value;n&&r&&e.pathRequiresRewrite(r)?t.value=e.rewritePath(r,n.rootpath):t.value=e.normalizePath(t.value)}return t},t.prototype.eval=function(e){var t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(t.length||0===t.length?t.forEach((function(e){e.addVisibilityBlock()})):t.addVisibilityBlock()),t},t.prototype.doEval=function(e){var n,r,i=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(e){throw e.message="Plugin error during evaluation",new T(e,this.root.imports,this.root.filename)}return(r=e.frames[0]&&e.frames[0].functionRegistry)&&this.root&&this.root.functions&&r.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var o=new I(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new pe([o],this.features.value):[o]}if(this.css){var a=new t(this.evalPath(e),i,this.options,this._index);if(!a.css&&this.error)throw this.error;return a}return(n=new K(null,C(this.root.rules))).evalImports(e),this.features?new pe(n.rules,this.features.value):n.rules},t}(f);de.prototype.type="Import";var he=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.escaped=n,o.expression=t,o._index=r,o._fileInfo=i,o}return a(t,e),t.prototype.eval=function(e){var t=this.evaluateJavaScript(this.expression,e),n=typeof t;return"number"!==n||isNaN(t)?"string"===n?new ce('"'+t+'"',t,this.escaped,this._index):Array.isArray(t)?new I(t.join(", ")):new I(t):new ee(t)},t}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.evaluateJavaScript=function(e,t){var n,r=this,i={};if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};e=e.replace(/@\{([\w-]+)\}/g,(function(e,n){return r.jsify(new se("@"+n,r.getIndex(),r.fileInfo()).eval(t))}));try{e=new Function("return ("+e+")")}catch(t){throw{message:"JavaScript evaluation error: "+t.message+" from `"+e+"`",filename:this.fileInfo().filename,index:this.getIndex()}}var o=t.frames[0].variables();for(var a in o)o.hasOwnProperty(a)&&(i[a.slice(1)]={value:o[a].value,toJS:function(){return this.value.eval(t).toCSS()}});try{n=e.call(i)}catch(e){throw{message:"JavaScript evaluation error: '"+e.name+": "+e.message.replace(/["]/g,"'")+"'",filename:this.fileInfo().filename,index:this.getIndex()}}return n},t.prototype.jsify=function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map((function(e){return e.toCSS()})).join(", ")+"]":e.toCSS()},t}(f));he.prototype.type="JavaScript";var me=function(e){function t(t,n){var r=e.call(this)||this;return r.key=t,r.value=n,r}return a(t,e),t.prototype.accept=function(e){this.value=e.visit(this.value)},t.prototype.eval=function(e){return this.value.eval?new t(this.key,this.value.eval(e)):this},t.prototype.genCSS=function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)},t}(f);me.prototype.type="Assignment";var ve=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.op=t.trim(),a.lvalue=n,a.rvalue=r,a._index=i,a.negate=o,a}return a(t,e),t.prototype.accept=function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},t.prototype.eval=function(e){var t=function(e,t,n){switch(e){case"and":return t&&n;case"or":return t||n;default:switch(f.compare(t,n)){case-1:return"<"===e||"=<"===e||"<="===e;case 0:return"="===e||">="===e||"=<"===e||"<="===e;case 1:return">"===e||">="===e;default:return!1}}}(this.op,this.lvalue.eval(e),this.rvalue.eval(e));return this.negate?!t:t},t}(f);ve.prototype.type="Condition";var ge=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return a(t,e),t}(f);ge.prototype.type="UnicodeDescriptor";var ye=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return a(t,e),t.prototype.genCSS=function(e,t){t.add("-"),this.value.genCSS(e,t)},t.prototype.eval=function(e){return e.isMathOn()?new ne("*",[new ee(-1),this.value]).eval(e):new t(this.value.eval(e))},t}(f);ye.prototype.type="Negative";var be=function(e){function t(n,r,i,o,a){var s=e.call(this)||this;switch(s.selector=n,s.option=r,s.object_id=t.next_id++,s.parent_ids=[s.object_id],s._index=i,s._fileInfo=o,s.copyVisibilityInfo(a),s.allowRoot=!0,r){case"all":s.allowBefore=!0,s.allowAfter=!0;break;default:s.allowBefore=!1,s.allowAfter=!1}return s.setParent(s.selector,s),s}return a(t,e),t.prototype.accept=function(e){this.selector=e.visit(this.selector)},t.prototype.eval=function(e){return new t(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},t.prototype.clone=function(e){return new t(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},t.prototype.findSelfSelectors=function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t].elements,t>0&&n.length&&""===n[0].combinator.value&&(n[0].combinator.value=" "),r=r.concat(e[t].elements);this.selfSelectors=[new D(r)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())},t}(f);be.next_id=0,be.prototype.type="Extend";var _e=function(e){function t(t,n,r){var i=e.call(this)||this;return i.variable=t,i._index=n,i._fileInfo=r,i.allowRoot=!0,i}return a(t,e),t.prototype.eval=function(e){var t,n=new se(this.variable,this.getIndex(),this.fileInfo()).eval(e),r=new T({message:"Could not evaluate variable call "+this.variable});if(!n.ruleset){if(n.rules)t=n;else if(Array.isArray(n))t=new K("",n);else{if(!Array.isArray(n.value))throw r;t=new K("",n.value)}n=new Z(t)}if(n.ruleset)return n.callEval(e);throw r},t}(f);_e.prototype.type="VariableCall";var we=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.value=t,o.lookups=n,o._index=r,o._fileInfo=i,o}return a(t,e),t.prototype.eval=function(e){var t,n,r=this.value.eval(e);for(t=0;t<this.lookups.length;t++){if(n=this.lookups[t],Array.isArray(r)&&(r=new K([new D],r)),""===n)r=r.lastDeclaration();else if("@"===n.charAt(0)){if("@"===n.charAt(1)&&(n="@"+new se(n.substr(1)).eval(e).value),r.variables&&(r=r.variable(n)),!r)throw{type:"Name",message:"variable "+n+" not found",filename:this.fileInfo().filename,index:this.getIndex()}}else{if(n="$@"===n.substring(0,2)?"$"+new se(n.substr(1)).eval(e).value:"$"===n.charAt(0)?n:"$"+n,r.properties&&(r=r.property(n)),!r)throw{type:"Name",message:'property "'+n.substr(1)+'" not found',filename:this.fileInfo().filename,index:this.getIndex()};r=r[r.length-1]}r.value&&(r=r.eval(e).value),r.ruleset&&(r=r.ruleset.eval(e))}return r},t}(f);we.prototype.type="NamespaceValue";var xe=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this)||this;l.name=t||"anonymous mixin",l.selectors=[new D([new y(null,t,!1,l._index,l._fileInfo)])],l.params=n,l.condition=i,l.variadic=o,l.arity=n.length,l.rules=r,l._lookups={};var u=[];return l.required=n.reduce((function(e,t){return!t.name||t.name&&!t.value?e+1:(u.push(t.name),e)}),0),l.optionalParameters=u,l.frames=a,l.copyVisibilityInfo(s),l.allowRoot=!0,l}return a(t,e),t.prototype.accept=function(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))},t.prototype.evalParams=function(e,t,n,r){var i,o,a,s,l,u,c,f,p=new K(null,null),d=C(this.params),h=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(p.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new z.Eval(t,[p].concat(t.frames)),n)for(h=(n=C(n)).length,a=0;a<h;a++)if(u=(o=n[a])&&o.name){for(c=!1,s=0;s<d.length;s++)if(!r[s]&&u===d[s].name){r[s]=o.value.eval(e),p.prependRule(new B(u,o.value.eval(e))),c=!0;break}if(c){n.splice(a,1),a--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+n[a].name+" not found"}}for(f=0,a=0;a<d.length;a++)if(!r[a]){if(o=n&&n[f],u=d[a].name)if(d[a].variadic){for(i=[],s=f;s<h;s++)i.push(n[s].value.eval(e));p.prependRule(new B(u,new ie(i).eval(e)))}else{if(l=o&&o.value)l=Array.isArray(l)?new Z(new K("",l)):l.eval(e);else{if(!d[a].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+h+" for "+this.arity+")"};l=d[a].value.eval(t),p.resetCache()}p.prependRule(new B(u,l)),r[a]=l}if(d[a].variadic&&n)for(s=f;s<h;s++)r[s]=n[s].value.eval(e);f++}return p},t.prototype.makeImportant=function(){var e=this.rules?this.rules.map((function(e){return e.makeImportant?e.makeImportant(!0):e})):this.rules;return new t(this.name,this.params,e,this.condition,this.variadic,this.frames)},t.prototype.eval=function(e){return new t(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||C(e.frames))},t.prototype.evalCall=function(e,t,n){var r,i,o=[],a=this.frames?this.frames.concat(e.frames):e.frames,s=this.evalParams(e,new z.Eval(e,a),t,o);return s.prependRule(new B("@arguments",new ie(o).eval(e))),r=C(this.rules),(i=new K(null,r)).originalRuleset=this,i=i.eval(new z.Eval(e,[this,s].concat(a))),n&&(i=i.makeImportant()),i},t.prototype.matchCondition=function(e,t){return!(this.condition&&!this.condition.eval(new z.Eval(t,[this.evalParams(t,new z.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))},t.prototype.matchArgs=function(e,t){var n,r=e&&e.length||0,i=this.optionalParameters,o=e?e.reduce((function(e,t){return i.indexOf(t.name)<0?e+1:e}),0):0;if(this.variadic){if(o<this.required-1)return!1}else{if(o<this.required)return!1;if(r>this.params.length)return!1}n=Math.min(o,this.arity);for(var a=0;a<n;a++)if(!this.params[a].name&&!this.params[a].variadic&&e[a].value.eval(t).toCSS()!=this.params[a].value.eval(t).toCSS())return!1;return!0},t}(K);xe.prototype.type="MixinDefinition",xe.prototype.evalFirst=!0;var ke=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.selector=new D(t),a.arguments=n||[],a._index=r,a._fileInfo=i,a.important=o,a.allowRoot=!0,a.setParent(a.selector,a),a}return a(t,e),t.prototype.accept=function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},t.prototype.eval=function(e){var t,n,r,i,o,a,s,l,u,c,f,p,d,h,m,v=[],g=[],y=!1,b=[],_=[];function w(t,n){var r,i,o;for(r=0;r<2;r++){for(_[r]=!0,Y.value(r),i=0;i<n.length&&_[r];i++)(o=n[i]).matchCondition&&(_[r]=_[r]&&o.matchCondition(null,e));t.matchCondition&&(_[r]=_[r]&&t.matchCondition(v,e))}return _[0]||_[1]?_[0]!=_[1]?_[1]?1:2:0:-1}for(this.selector=this.selector.eval(e),a=0;a<this.arguments.length;a++)if(o=(i=this.arguments[a]).value.eval(e),i.expand&&Array.isArray(o.value))for(o=o.value,s=0;s<o.length;s++)v.push({value:o[s]});else v.push({name:i.name,value:o});for(m=function(t){return t.matchArgs(null,e)},a=0;a<e.frames.length;a++)if((t=e.frames[a].find(this.selector,null,m)).length>0){for(c=!0,s=0;s<t.length;s++){for(n=t[s].rule,r=t[s].path,u=!1,l=0;l<e.frames.length;l++)if(!(n instanceof xe)&&n===(e.frames[l].originalRuleset||e.frames[l])){u=!0;break}u||n.matchArgs(v,e)&&(-1!==(f={mixin:n,group:w(n,r)}).group&&b.push(f),y=!0)}for(Y.reset(),d=[0,0,0],s=0;s<b.length;s++)d[b[s].group]++;if(d[0]>0)p=2;else if(p=1,d[1]+d[2]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(v)+"`",index:this.getIndex(),filename:this.fileInfo().filename};for(s=0;s<b.length;s++)if(0===(f=b[s].group)||f===p)try{(n=b[s].mixin)instanceof xe||(h=n.originalRuleset||n,(n=new xe("",[],n.rules,null,!1,null,h.visibilityInfo())).originalRuleset=h);var x=n.evalCall(e,v,this.important).rules;this._setVisibilityToReplacement(x),Array.prototype.push.apply(g,x)}catch(e){throw{message:e.message,index:this.getIndex(),filename:this.fileInfo().filename,stack:e.stack}}if(y)return g}throw c?{type:"Runtime",message:"No matching definition was found for `"+this.format(v)+"`",index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.getIndex(),filename:this.fileInfo().filename}},t.prototype._setVisibilityToReplacement=function(e){var t;if(this.blocksVisibility())for(t=0;t<e.length;t++)e[t].addVisibilityBlock()},t.prototype.format=function(e){return this.selector.toCSS().trim()+"("+(e?e.map((function(e){var t="";return e.name&&(t+=e.name+":"),e.value.toCSS?t+=e.value.toCSS():t+="???",t})).join(", "):"")+")"},t}(f);ke.prototype.type="MixinCall";var Ee={Node:f,Color:p,AtRule:J,DetachedRuleset:Z,Operation:ne,Dimension:ee,Unit:Q,Keyword:F,Variable:se,Property:le,Ruleset:K,Element:y,Attribute:ue,Combinator:g,Selector:D,Quoted:ce,Expression:ie,Declaration:B,Call:ae,URL:fe,Import:de,Comment:W,Anonymous:I,Value:L,JavaScript:he,Assignment:me,Condition:ve,Paren:m,Media:pe,UnicodeDescriptor:ge,Negative:ye,Extend:be,VariableCall:_e,NamespaceValue:we,mixin:{Call:ke,Definition:xe}},Ce={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(var t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(var n=0;n<this._listeners.length;n++){var r=this._listeners[n][e];r&&r(t)}},_listeners:[]},Se=function(){function e(e,t){this.fileManagers=t||[],e=e||{};for(var n=[],r=n.concat(["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"]),i=0;i<r.length;i++){var o=r[i],a=e[o];a?this[o]=a.bind(e):i<n.length&&this.warn("missing required function in environment - "+o)}}return e.prototype.getFileManager=function(e,t,n,r,i){e||Ce.warn("getFileManager called with no filename.. Please report this issue. continuing."),null==t&&Ce.warn("getFileManager called with null directory.. Please report this issue. continuing.");var o=this.fileManagers;n.pluginManager&&(o=[].concat(o).concat(n.pluginManager.getFileManagers()));for(var a=o.length-1;a>=0;a--){var s=o[a];if(s[i?"supportsSync":"supports"](e,t,n,r))return s}return null},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.clearFileManagers=function(){this.fileManagers=[]},e}(),Oe=function(){function e(){}return e.prototype.getPath=function(e){var t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)},e.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([\?;].*)$/.test(e)?e:e+t},e.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")},e.prototype.supportsSync=function(){return!1},e.prototype.alwaysMakePathsAbsolute=function(){return!1},e.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)},e.prototype.join=function(e,t){return e?e+t:t},e.prototype.pathDiff=function(e,t){var n,r,i,o,a=this.extractUrlParts(e),s=this.extractUrlParts(t),l="";if(a.hostPart!==s.hostPart)return"";for(r=Math.max(s.directories.length,a.directories.length),n=0;n<r&&s.directories[n]===a.directories[n];n++);for(o=s.directories.slice(n),i=a.directories.slice(n),n=0;n<o.length-1;n++)l+="../";for(n=0;n<i.length-1;n++)l+=i[n]+"/";return l},e.prototype.extractUrlParts=function(e,t){var n,r,i=/^((?:[a-z-]+:)?\/{2}(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,o=e.match(i),a={},s=[],l=[];if(!o)throw new Error("Could not parse sheet href - '"+e+"'");if(t&&(!o[1]||o[2])){if(!(r=t.match(i)))throw new Error("Could not parse page url - '"+t+"'");o[1]=o[1]||r[1]||"",o[2]||(o[3]=r[3]+o[3])}if(o[3])for(s=o[3].replace(/\\/g,"/").split("/"),n=0;n<s.length;n++)".."===s[n]?l.pop():"."!==s[n]&&l.push(s[n]);return a.hostPart=o[1],a.directories=l,a.rawPath=(o[1]||"")+s.join("/"),a.path=(o[1]||"")+l.join("/"),a.filename=o[4],a.fileUrl=a.path+(o[4]||""),a.url=a.fileUrl+(o[5]||""),a},e}(),Ae=function(){function e(){this.require=function(){return null}}return e.prototype.evalPlugin=function(e,t,n,r,i){var o,a,s,l,u,c;l=t.pluginManager,i&&(u="string"==typeof i?i:i.filename);var f=(new this.less.FileManager).extractUrlParts(u).filename;if(u&&(a=l.get(u))){if(c=this.trySetOptions(a,u,f,r))return c;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new T(e,n,u)}return a}s={exports:{},pluginManager:l,fileInfo:i},o=X.create();try{new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e)(s,this.require(u),(function(e){a=e}),o,this.less.tree,this.less,i)}catch(e){return new T(e,n,u)}if(a||(a=s.exports),(a=this.validatePlugin(a,u,f))instanceof T)return a;if(!a)return new T({message:"Not a valid plugin"},n,u);if(a.imports=n,a.filename=u,(!a.minVersion||this.compareVersion("3.0.0",a.minVersion)<0)&&(c=this.trySetOptions(a,u,f,r)))return c;if(l.addPlugin(a,i.filename,o),a.functions=o.getLocalFunctions(),c=this.trySetOptions(a,u,f,r))return c;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new T(e,n,u)}return a},e.prototype.trySetOptions=function(e,t,n,r){if(r&&!e.setOptions)return new T({message:"Options have been provided but the plugin "+n+" does not support any options."});try{e.setOptions&&e.setOptions(r)}catch(e){return new T(e)}},e.prototype.validatePlugin=function(e,t,n){return e?("function"==typeof e&&(e=new e),e.minVersion&&this.compareVersion(e.minVersion,this.less.version)<0?new T({message:"Plugin "+n+" requires version "+this.versionToString(e.minVersion)}):e):null},e.prototype.compareVersion=function(e,t){"string"==typeof e&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/)).shift();for(var n=0;n<e.length;n++)if(e[n]!==t[n])return parseInt(e[n])>parseInt(t[n])?-1:1;return 0},e.prototype.versionToString=function(e){for(var t="",n=0;n<e.length;n++)t+=(t?".":"")+e[n];return t},e.prototype.printUsage=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.printUsage&&n.printUsage()}},e}(),je={visitDeeper:!0},Pe=!1;function Ne(e){return e}var Te=function(){function e(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},Pe||(function e(t,n){var r,i;for(r in t)switch(typeof(i=t[r])){case"function":i.prototype&&i.prototype.type&&(i.prototype.typeIndex=n++);break;case"object":n=e(i,n)}return n}(Ee,1),Pe=!0)}return e.prototype.visit=function(e){if(!e)return e;var t=e.typeIndex;if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e;var n,r=this._implementation,i=this._visitInCache[t],o=this._visitOutCache[t],a=je;if(a.visitDeeper=!0,i||(i=r[n="visit"+e.type]||Ne,o=r[n+"Out"]||Ne,this._visitInCache[t]=i,this._visitOutCache[t]=o),i!==Ne){var s=i.call(r,e,a);e&&r.isReplacing&&(e=s)}if(a.visitDeeper&&e)if(e.length)for(var l=0,u=e.length;l<u;l++)e[l].accept&&e[l].accept(this);else e.accept&&e.accept(this);return o!=Ne&&o.call(r,e),e},e.prototype.visitArray=function(e,t){if(!e)return e;var n,r=e.length;if(t||!this._implementation.isReplacing){for(n=0;n<r;n++)this.visit(e[n]);return e}var i=[];for(n=0;n<r;n++){var o=this.visit(e[n]);void 0!==o&&(o.splice?o.length&&this.flatten(o,i):i.push(o))}return i},e.prototype.flatten=function(e,t){var n,r,i,o,a,s;for(t||(t=[]),r=0,n=e.length;r<n;r++)if(void 0!==(i=e[r]))if(i.splice)for(a=0,o=i.length;a<o;a++)void 0!==(s=i[a])&&(s.splice?s.length&&this.flatten(s,t):t.push(s));else t.push(i);return t},e}(),Me=function(){function e(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}return e.prototype.addImport=function(e){var t=this,n={callback:e,args:null,isReady:!1};return this.imports.push(n),function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.args=Array.prototype.slice.call(e,0),n.isReady=!0,t.tryRun()}},e.prototype.addVariableImport=function(e){this.variableImports.push(e)},e.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var e=this.imports[0];if(!e.isReady)return;this.imports=this.imports.slice(1),e.callback.apply(null,e.args)}if(0===this.variableImports.length)break;var t=this.variableImports[0];this.variableImports=this.variableImports.slice(1),t()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()},e}(),De=function(e,t){this._visitor=new Te(this),this._importer=e,this._finish=t,this.context=new z.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new Me(this._onSequencerEmpty.bind(this))};De.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(e){this.error=e}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){var n=e.options.inline;if(!e.css||n){var r=new z.Eval(this.context,C(this.context.frames)),i=r.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,r,i)):this.processImportNode(e,r,i)}t.visitDeeper=!1},processImportNode:function(e,t,n){var r,i=e.options.inline;try{r=e.evalForImport(t)}catch(t){t.filename||(t.index=e.getIndex(),t.filename=e.fileInfo().filename),e.css=!0,e.error=t}if(!r||r.css&&!i)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{r.options.multiple&&(t.importMultiple=!0);for(var o=void 0===r.css,a=0;a<n.rules.length;a++)if(n.rules[a]===e){n.rules[a]=r;break}var s=this.onImported.bind(this,r,t),l=this._sequencer.addImport(s);this._importer.push(r.getPath(),o,r.fileInfo(),r.options,l)}},onImported:function(e,t,n,r,i,o){n&&(n.filename||(n.index=e.getIndex(),n.filename=e.fileInfo().filename),this.error=n);var a=this,s=e.options.inline,l=e.options.isPlugin,u=e.options.optional,c=i||o in a.recursionDetector;if(t.importMultiple||(e.skip=!!c||function(){return o in a.onceFileDetectionMap||(a.onceFileDetectionMap[o]=!0,!1)}),!o&&u&&(e.skip=!0),r&&(e.root=r,e.importedFilename=o,!s&&!l&&(t.importMultiple||!c))){a.recursionDetector[o]=!0;var f=this.context;this.context=t;try{this._visitor.visit(r)}catch(n){this.error=n}this.context=f}a.importCount--,a.isFinished&&a._sequencer.tryRun()},visitDeclaration:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitDeclarationOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitAtRule:function(e,t){this.context.frames.unshift(e)},visitAtRuleOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}};var Le=function(){function e(e){this.visible=e}return e.prototype.run=function(e){this.visit(e)},e.prototype.visitArray=function(e){if(!e)return e;var t,n=e.length;for(t=0;t<n;t++)this.visit(e[t]);return e},e.prototype.visit=function(e){return e?e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e):e},e}(),Fe=function(){function e(){this._visitor=new Te(this),this.contexts=[],this.allExtendsStack=[[]]}return e.prototype.run=function(e){return(e=this._visitor.visit(e)).allExtends=this.allExtendsStack[0],e},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var n,r,i,o,a=[],s=e.rules,l=s?s.length:0;for(n=0;n<l;n++)e.rules[n]instanceof Ee.Extend&&(a.push(s[n]),e.extendOnEveryPath=!0);var u=e.paths;for(n=0;n<u.length;n++){var c=u[n],f=c[c.length-1].extendList;for((o=f?C(f).concat(a):a)&&(o=o.map((function(e){return e.clone()}))),r=0;r<o.length;r++)this.foundExtends=!0,(i=o[r]).findSelfSelectors(c),i.ruleset=e,0===r&&(i.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(i)}this.contexts.push(e.selectors)}},e.prototype.visitRulesetOut=function(e){e.root||(this.contexts.length=this.contexts.length-1)},e.prototype.visitMedia=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitMediaOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e.prototype.visitAtRule=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitAtRuleOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e}(),Ie=function(){function e(){this._visitor=new Te(this)}return e.prototype.run=function(e){var t=new Fe;if(this.extendIndices={},t.run(e),!t.foundExtends)return e;e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends];var n=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),n},e.prototype.checkExtendsForNonMatched=function(e){var t=this.extendIndices;e.filter((function(e){return!e.hasFoundMatches&&1==e.parent_ids.length})).forEach((function(e){var n="_unknown_";try{n=e.selector.toCSS({})}catch(e){}t[e.index+" "+n]||(t[e.index+" "+n]=!0,Ce.warn("extend '"+n+"' has no matches"))}))},e.prototype.doExtendChaining=function(e,t,n){var r,i,o,a,s,l,u,c,f=[],p=this;for(n=n||0,r=0;r<e.length;r++)for(i=0;i<t.length;i++)l=e[r],u=t[i],l.parent_ids.indexOf(u.object_id)>=0||(s=[u.selfSelectors[0]],(o=p.findMatch(l,s)).length&&(l.hasFoundMatches=!0,l.selfSelectors.forEach((function(e){var t=u.visibilityInfo();a=p.extendSelector(o,s,e,l.isVisible()),(c=new Ee.Extend(u.selector,u.option,0,u.fileInfo(),t)).selfSelectors=a,a[a.length-1].extendList=[c],f.push(c),c.ruleset=u.ruleset,c.parent_ids=c.parent_ids.concat(u.parent_ids,l.parent_ids),u.firstExtendOnThisSelectorPath&&(c.firstExtendOnThisSelectorPath=!0,u.ruleset.paths.push(a))}))));if(f.length){if(this.extendChainCount++,n>100){var d="{unable to calculate}",h="{unable to calculate}";try{d=f[0].selfSelectors[0].toCSS(),h=f[0].selector.toCSS()}catch(e){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+d+":extend("+h+")"}}return f.concat(p.doExtendChaining(f,t,n+1))}return f},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitSelector=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var n,r,i,o,a=this.allExtendsStack[this.allExtendsStack.length-1],s=[],l=this;for(i=0;i<a.length;i++)for(r=0;r<e.paths.length;r++)if(o=e.paths[r],!e.extendOnEveryPath){var u=o[o.length-1].extendList;u&&u.length||(n=this.findMatch(a[i],o)).length&&(a[i].hasFoundMatches=!0,a[i].selfSelectors.forEach((function(e){var t;t=l.extendSelector(n,o,e,a[i].isVisible()),s.push(t)})))}e.paths=e.paths.concat(s)}},e.prototype.findMatch=function(e,t){var n,r,i,o,a,s,l,u=e.selector.elements,c=[],f=[];for(n=0;n<t.length;n++)for(r=t[n],i=0;i<r.elements.length;i++)for(o=r.elements[i],(e.allowBefore||0===n&&0===i)&&c.push({pathIndex:n,index:i,matched:0,initialCombinator:o.combinator}),s=0;s<c.length;s++)l=c[s],""===(a=o.combinator.value)&&0===i&&(a=" "),!this.isElementValuesEqual(u[l.matched].value,o.value)||l.matched>0&&u[l.matched].combinator.value!==a?l=null:l.matched++,l&&(l.finished=l.matched===u.length,l.finished&&!e.allowAfter&&(i+1<r.elements.length||n+1<t.length)&&(l=null)),l?l.finished&&(l.length=u.length,l.endPathIndex=n,l.endPathElementIndex=i+1,c.length=0,f.push(l)):(c.splice(s,1),s--);return f},e.prototype.isElementValuesEqual=function(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof Ee.Attribute)return e.op===t.op&&e.key===t.key&&(e.value&&t.value?(e=e.value.value||e.value)===(t=t.value.value||t.value):!e.value&&!t.value);if(e=e.value,t=t.value,e instanceof Ee.Selector){if(!(t instanceof Ee.Selector)||e.elements.length!==t.elements.length)return!1;for(var n=0;n<e.elements.length;n++){if(e.elements[n].combinator.value!==t.elements[n].combinator.value&&(0!==n||(e.elements[n].combinator.value||" ")!==(t.elements[n].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(e.elements[n].value,t.elements[n].value))return!1}return!0}return!1},e.prototype.extendSelector=function(e,t,n,r){var i,o,a,s,l,u=0,c=0,f=[];for(i=0;i<e.length;i++)o=t[(s=e[i]).pathIndex],a=new Ee.Element(s.initialCombinator,n.elements[0].value,n.elements[0].isVariable,n.elements[0].getIndex(),n.elements[0].fileInfo()),s.pathIndex>u&&c>0&&(f[f.length-1].elements=f[f.length-1].elements.concat(t[u].elements.slice(c)),c=0,u++),l=o.elements.slice(c,s.index).concat([a]).concat(n.elements.slice(1)),u===s.pathIndex&&i>0?f[f.length-1].elements=f[f.length-1].elements.concat(l):(f=f.concat(t.slice(u,s.pathIndex))).push(new Ee.Selector(l)),u=s.endPathIndex,(c=s.endPathElementIndex)>=t[u].elements.length&&(c=0,u++);return u<t.length&&c>0&&(f[f.length-1].elements=f[f.length-1].elements.concat(t[u].elements.slice(c)),u++),f=(f=f.concat(t.slice(u,t.length))).map((function(e){var t=e.createDerived(e.elements);return r?t.ensureVisibility():t.ensureInvisibility(),t}))},e.prototype.visitMedia=function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},e.prototype.visitMediaOut=function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},e.prototype.visitAtRule=function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},e.prototype.visitAtRuleOut=function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},e}(),Re=function(){function e(){this.contexts=[[]],this._visitor=new Te(this)}return e.prototype.run=function(e){return this._visitor.visit(e)},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){var n,r=this.contexts[this.contexts.length-1],i=[];this.contexts.push(i),e.root||((n=e.selectors)&&(n=n.filter((function(e){return e.getIsOutput()})),e.selectors=n.length?n:n=null,n&&e.joinSelectors(i,r,n)),n||(e.rules=null),e.paths=i)},e.prototype.visitRulesetOut=function(e){this.contexts.length=this.contexts.length-1},e.prototype.visitMedia=function(e,t){var n=this.contexts[this.contexts.length-1];e.rules[0].root=0===n.length||n[0].multiMedia},e.prototype.visitAtRule=function(e,t){var n=this.contexts[this.contexts.length-1];e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===n.length||null)},e}(),Be=function(){function e(e){this._visitor=new Te(this),this._context=e}return e.prototype.containsSilentNonBlockedChild=function(e){var t;if(!e)return!1;for(var n=0;n<e.length;n++)if((t=e[n]).isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1},e.prototype.keepOnlyVisibleChilds=function(e){e&&e.rules&&(e.rules=e.rules.filter((function(e){return e.isVisible()})))},e.prototype.isEmpty=function(e){return!e||!e.rules||0===e.rules.length},e.prototype.hasVisibleSelector=function(e){return!(!e||!e.paths)&&e.paths.length>0},e.prototype.resolveVisibility=function(e,t){if(!e.blocksVisibility()){if(this.isEmpty(e)&&!this.containsSilentNonBlockedChild(t))return;return e}var n=e.rules[0];if(this.keepOnlyVisibleChilds(n),!this.isEmpty(n))return e.ensureVisibility(),e.removeVisibilityBlock(),e},e.prototype.isVisibleRuleset=function(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))},e}(),$e=function(e){this._visitor=new Te(this),this._context=e,this.utils=new Be(e)};$e.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){if(!e.blocksVisibility()&&!e.variable)return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!e.blocksVisibility()&&!e.isSilent(this._context))return e},visitMedia:function(e,t){var n=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,n)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitAtRule:function(e,t){return e.rules&&e.rules.length?this.visitAtRuleWithBody(e,t):this.visitAtRuleWithoutBody(e,t)},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e},visitAtRuleWithBody:function(e,t){var n=function(e){var t=e.rules;return function(e){var t=e.rules;return 1===t.length&&(!t[0].paths||0===t[0].paths.length)}(e)?t[0].rules:t}(e);return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,n)},visitAtRuleWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){var n=new Ee.Comment("/* "+e.toCSS(this._context).replace(/\n/g,"")+" */\n");return n.debugInfo=e.debugInfo,this._visitor.visit(n)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];if(t&&r instanceof Ee.Declaration&&!r.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:r.getIndex(),filename:r.fileInfo()&&r.fileInfo().filename};if(r instanceof Ee.Call)throw{message:"Function '"+r.name+"' is undefined",index:r.getIndex(),filename:r.fileInfo()&&r.fileInfo().filename};if(r.type&&!r.allowRoot)throw{message:r.type+" node returned by a function is not valid here",index:r.getIndex(),filename:r.fileInfo()&&r.fileInfo().filename}}},visitRuleset:function(e,t){var n,r=[];if(this.checkValidNodes(e.rules,e.firstRoot),e.root)e.accept(this._visitor),t.visitDeeper=!1;else{this._compileRulesetPaths(e);for(var i=e.rules,o=i?i.length:0,a=0;a<o;)(n=i[a])&&n.rules?(r.push(this._visitor.visit(n)),i.splice(a,1),o--):a++;o>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1}return e.rules&&(this._mergeRules(e.rules),this._removeDuplicateRules(e.rules)),this.utils.isVisibleRuleset(e)&&(e.ensureVisibility(),r.splice(0,0,e)),1===r.length?r[0]:r},_compileRulesetPaths:function(e){e.paths&&(e.paths=e.paths.filter((function(e){var t;for(" "===e[0].elements[0].combinator.value&&(e[0].elements[0].combinator=new Ee.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0;return!1})))},_removeDuplicateRules:function(e){if(e){var t,n,r,i={};for(r=e.length-1;r>=0;r--)if((n=e[r])instanceof Ee.Declaration)if(i[n.name]){(t=i[n.name])instanceof Ee.Declaration&&(t=i[n.name]=[i[n.name].toCSS(this._context)]);var o=n.toCSS(this._context);-1!==t.indexOf(o)?e.splice(r,1):t.push(o)}else i[n.name]=n}},_mergeRules:function(e){if(e){for(var t={},n=[],r=0;r<e.length;r++){var i=e[r];if(i.merge){var o=i.name;t[o]?e.splice(r--,1):n.push(t[o]=[]),t[o].push(i)}}n.forEach((function(e){if(e.length>0){var t=e[0],n=[],r=[new Ee.Expression(n)];e.forEach((function(e){"+"===e.merge&&n.length>0&&r.push(new Ee.Expression(n=[])),n.push(e.value),t.important=t.important||e.important})),t.value=new Ee.Value(r)}}))}}};var We={Visitor:Te,ImportVisitor:De,MarkVisibleSelectorsVisitor:Le,ExtendVisitor:Ie,JoinSelectorVisitor:Re,ToCSSVisitor:$e},ze=function(){var e,t,n,r,i,o,a,s=[],l={};function u(n){for(var r,s,c,f=l.i,p=t,d=l.i-a,h=l.i+o.length-d,m=l.i+=n,v=e;l.i<h;l.i++){if(r=v.charCodeAt(l.i),l.autoCommentAbsorb&&47===r){if("/"===(s=v.charAt(l.i+1))){c={index:l.i,isLineComment:!0};var g=v.indexOf("\n",l.i+2);g<0&&(g=h),l.i=g,c.text=v.substr(c.index,l.i-c.index),l.commentStore.push(c);continue}if("*"===s){var y=v.indexOf("*/",l.i+2);if(y>=0){c={index:l.i,text:v.substr(l.i,y+2-l.i),isLineComment:!1},l.i+=c.text.length-1,l.commentStore.push(c);continue}}break}if(32!==r&&10!==r&&9!==r&&13!==r)break}if(o=o.slice(n+l.i-m+d),a=l.i,!o.length){if(t<i.length-1)return o=i[++t],u(0),!0;l.finished=!0}return f!==l.i||p!==t}return l.save=function(){a=l.i,s.push({current:o,i:l.i,j:t})},l.restore=function(e){(l.i>n||l.i===n&&e&&!r)&&(n=l.i,r=e);var i=s.pop();o=i.current,a=l.i=i.i,t=i.j},l.forget=function(){s.pop()},l.isWhitespace=function(t){var n=l.i+(t||0),r=e.charCodeAt(n);return 32===r||13===r||9===r||10===r},l.$re=function(e){l.i>a&&(o=o.slice(l.i-a),a=l.i);var t=e.exec(o);return t?(u(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null},l.$char=function(t){return e.charAt(l.i)!==t?null:(u(1),t)},l.$str=function(t){for(var n=t.length,r=0;r<n;r++)if(e.charAt(l.i+r)!==t.charAt(r))return null;return u(n),t},l.$quoted=function(t){var n=t||l.i,r=e.charAt(n);if("'"===r||'"'===r){for(var i=e.length,o=n,a=1;a+o<i;a++)switch(e.charAt(a+o)){case"\\":a++;continue;case"\r":case"\n":break;case r:var s=e.substr(o,a+1);return t||0===t?[r,s]:(u(a+1),s)}return null}},l.$parseUntil=function(t){var n,r="",i=null,o=!1,a=0,s=[],c=[],f=e.length,p=l.i,d=l.i,h=l.i,m=!0;n="string"==typeof t?function(e){return e===t}:function(e){return t.test(e)};do{var v=e.charAt(h);if(0===a&&n(v))(i=e.substr(d,h-d))?c.push(i):c.push(" "),i=c,u(h-p),m=!1;else{if(o){"*"===v&&"/"===e.charAt(h+1)&&(h++,a--,o=!1),h++;continue}switch(v){case"\\":h++,v=e.charAt(h),c.push(e.substr(d,h-d+1)),d=h+1;break;case"/":"*"===e.charAt(h+1)&&(h++,o=!0,a++);break;case"'":case'"':(r=l.$quoted(h))?(c.push(e.substr(d,h-d),r),d=(h+=r[1].length-1)+1):(u(h-p),i=v,m=!1);break;case"{":s.push("}"),a++;break;case"(":s.push(")"),a++;break;case"[":s.push("]"),a++;break;case"}":case")":case"]":var g=s.pop();v===g?a--:(u(h-p),i=g,m=!1)}++h>f&&(m=!1)}}while(m);return i||null},l.autoCommentAbsorb=!0,l.commentStore=[],l.finished=!1,l.peek=function(t){if("string"==typeof t){for(var n=0;n<t.length;n++)if(e.charAt(l.i+n)!==t.charAt(n))return!1;return!0}return t.test(o)},l.peekChar=function(t){return e.charAt(l.i)===t},l.currentChar=function(){return e.charAt(l.i)},l.prevChar=function(){return e.charAt(l.i-1)},l.getInput=function(){return e},l.peekNotNumeric=function(){var t=e.charCodeAt(l.i);return t>57||t<43||47===t||44===t},l.start=function(r,s,c){e=r,l.i=t=a=n=0,i=s?function(e,t){var n,r,i,o,a,s,l,u,c,f=e.length,p=0,d=0,h=[],m=0;function v(t){var n=a-m;n<512&&!t||!n||(h.push(e.slice(m,a+1)),m=a+1)}for(a=0;a<f;a++)if(!((l=e.charCodeAt(a))>=97&&l<=122||l<34))switch(l){case 40:d++,r=a;continue;case 41:if(--d<0)return t("missing opening `(`",a);continue;case 59:d||v();continue;case 123:p++,n=a;continue;case 125:if(--p<0)return t("missing opening `{`",a);p||d||v();continue;case 92:if(a<f-1){a++;continue}return t("unescaped `\\`",a);case 34:case 39:case 96:for(c=0,s=a,a+=1;a<f;a++)if(!((u=e.charCodeAt(a))>96)){if(u==l){c=1;break}if(92==u){if(a==f-1)return t("unescaped `\\`",a);a++}}if(c)continue;return t("unmatched `"+String.fromCharCode(l)+"`",s);case 47:if(d||a==f-1)continue;if(47==(u=e.charCodeAt(a+1)))for(a+=2;a<f&&(!((u=e.charCodeAt(a))<=13)||10!=u&&13!=u);a++);else if(42==u){for(i=s=a,a+=2;a<f-1&&(125==(u=e.charCodeAt(a))&&(o=a),42!=u||47!=e.charCodeAt(a+1));a++);if(a==f-1)return t("missing closing `*/`",s);a++}continue;case 42:if(a<f-1&&47==e.charCodeAt(a+1))return t("unmatched `/*`",a);continue}return 0!==p?t(i>n&&o>i?"missing closing `}` or `*/`":"missing closing `}`",n):0!==d?t("missing closing `)`",r):(v(!0),h)}(r,c):[r],o=i[0],u(0)},l.end=function(){var t,i=l.i>=e.length;return l.i<n&&(t=r,l.i=n),{isFinished:i,furthest:l.i,furthestPossibleErrorMessage:t,furthestReachedEnd:l.i>=e.length-1,furthestChar:e[l.i]}},l},He=function e(t,n,r){var i,o=ze();function a(e,t){throw new T({index:o.i,filename:r.filename,type:t||"Syntax",message:e},n)}function s(e,t){var n=e instanceof Function?e.call(i):o.$re(e);if(n)return n;a(t||("string"==typeof e?"expected '"+e+"' got '"+o.currentChar()+"'":"unexpected token"))}function l(e,t){if(o.$char(e))return e;a(t||"expected '"+e+"' got '"+o.currentChar()+"'")}function u(e){var t=r.filename;return{lineNumber:E(e,o.getInput()).line+1,fileName:t}}return{parserInput:o,imports:n,fileInfo:r,parseNode:function(e,t,r,a,s){var l,u=[],c=o;try{c.start(e,!1,(function(e,t){s({message:e,index:t+r})}));for(var f,p=0,d=void 0;d=t[p];p++)if(f=c.i,l=i[d]()){try{l._index=f+r,l._fileInfo=a}catch(e){}u.push(l)}else u.push(null);c.end().isFinished?s(null,u):s(!0,null)}catch(e){throw new T({index:e.index+r,message:e.message},n,a.filename)}},parse:function(i,a,s){var l,u,c,f,p=null,d="";if(u=s&&s.globalVars?e.serializeVars(s.globalVars)+"\n":"",c=s&&s.modifyVars?"\n"+e.serializeVars(s.modifyVars):"",t.pluginManager)for(var h=t.pluginManager.getPreProcessors(),m=0;m<h.length;m++)i=h[m].process(i,{context:t,imports:n,fileInfo:r});(u||s&&s.banner)&&(d=(s&&s.banner?s.banner:"")+u,(f=n.contentsIgnoredChars)[r.filename]=f[r.filename]||0,f[r.filename]+=d.length),i=d+(i=i.replace(/\r\n?/g,"\n")).replace(/^\uFEFF/,"")+c,n.contents[r.filename]=i;try{o.start(i,t.chunkInput,(function(e,t){throw new T({index:t,type:"Parse",message:e,filename:r.filename},n)})),Ee.Node.prototype.parse=this,l=new Ee.Ruleset(null,this.parsers.primary()),Ee.Node.prototype.rootNode=l,l.root=!0,l.firstRoot=!0,l.functionRegistry=X.inherit()}catch(e){return a(new T(e,n,r.filename))}var v=o.end();if(!v.isFinished){var g=v.furthestPossibleErrorMessage;g||(g="Unrecognised input","}"===v.furthestChar?g+=". Possibly missing opening '{'":")"===v.furthestChar?g+=". Possibly missing opening '('":v.furthestReachedEnd&&(g+=". Possibly missing something")),p=new T({type:"Parse",message:g,index:v.furthest,filename:r.filename},n)}var y=function(e){return(e=p||e||n.error)?(e instanceof T||(e=new T(e,n,r.filename)),a(e)):a(null,l)};if(!1===t.processImports)return y();new We.ImportVisitor(n,y).run(l)},parsers:i={primary:function(){for(var e,t=this.mixin,n=[];;){for(;e=this.comment();)n.push(e);if(o.finished)break;if(o.peek("}"))break;if(e=this.extendRule())n=n.concat(e);else if(e=t.definition()||this.declaration()||t.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule())n.push(e);else{for(var r=!1;o.$char(";");)r=!0;if(!r)break}}return n},comment:function(){if(o.commentStore.length){var e=o.commentStore.shift();return new Ee.Comment(e.text,e.isLineComment,e.index,r)}},entities:{mixinLookup:function(){return i.mixin.call(!0,!0)},quoted:function(e){var t,n=o.i,i=!1;if(o.save(),o.$char("~"))i=!0;else if(e)return void o.restore();if(t=o.$quoted())return o.forget(),new Ee.Quoted(t.charAt(0),t.substr(1,t.length-2),i,n,r);o.restore()},keyword:function(){var e=o.$char("%")||o.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(e)return Ee.Color.fromKeyword(e)||new Ee.Keyword(e)},call:function(){var e,t,n,i=o.i;if(!o.peek(/^url\(/i))if(o.save(),e=o.$re(/^([\w-]+|%|progid:[\w\.]+)\(/)){if(e=e[1],(n=this.customFuncCall(e))&&(t=n.parse())&&n.stop)return o.forget(),t;if(t=this.arguments(t),o.$char(")"))return o.forget(),new Ee.Call(e,t,i,r);o.restore("Could not parse call arguments or missing ')'")}else o.forget()},customFuncCall:function(e){return{alpha:t(i.ieAlpha,!0),boolean:t(n),if:t(n)}[e.toLowerCase()];function t(e,t){return{parse:e,stop:t}}function n(){return[s(i.condition,"expected condition")]}},arguments:function(e){var t,n,r=e||[],a=[];for(o.save();;){if(e)e=!1;else{if(!(n=i.detachedRuleset()||this.assignment()||i.expression()))break;n.value&&1==n.value.length&&(n=n.value[0]),r.push(n)}o.$char(",")||(o.$char(";")||t)&&(t=!0,n=r.length<1?r[0]:new Ee.Value(r),a.push(n),r=[])}return o.forget(),t?a:r},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t;if(o.save(),e=o.$re(/^\w+(?=\s?=)/i))if(o.$char("=")){if(t=i.entity())return o.forget(),new Ee.Assignment(e,t);o.restore()}else o.restore();else o.restore()},url:function(){var e,t=o.i;if(o.autoCommentAbsorb=!1,o.$str("url("))return e=this.quoted()||this.variable()||this.property()||o.$re(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",o.autoCommentAbsorb=!0,l(")"),new Ee.URL(null!=e.value||e instanceof Ee.Variable||e instanceof Ee.Property?e:new Ee.Anonymous(e,t),t,r);o.autoCommentAbsorb=!0},variable:function(){var e,t,n=o.i;if(o.save(),"@"===o.currentChar()&&(t=o.$re(/^@@?[\w-]+/))){if("("===(e=o.currentChar())||"["===e&&!o.prevChar().match(/^\s/)){var a=i.variableCall(t);if(a)return o.forget(),a}return o.forget(),new Ee.Variable(t,n,r)}o.restore()},variableCurly:function(){var e,t=o.i;if("@"===o.currentChar()&&(e=o.$re(/^@\{([\w-]+)\}/)))return new Ee.Variable("@"+e[1],t,r)},property:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$[\w-]+/)))return new Ee.Property(e,t,r)},propertyCurly:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$\{([\w-]+)\}/)))return new Ee.Property("$"+e[1],t,r)},color:function(){var e;if(o.save(),"#"===o.currentChar()&&(e=o.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#\[])?/))&&!e[2])return o.forget(),new Ee.Color(e[1],void 0,e[0]);o.restore()},colorKeyword:function(){o.save();var e=o.autoCommentAbsorb;o.autoCommentAbsorb=!1;var t=o.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(o.autoCommentAbsorb=e,t){o.restore();var n=Ee.Color.fromKeyword(t);return n?(o.$str(t),n):void 0}o.forget()},dimension:function(){if(!o.peekNotNumeric()){var e=o.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);return e?new Ee.Dimension(e[1],e[2]):void 0}},unicodeDescriptor:function(){var e;if(e=o.$re(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))return new Ee.UnicodeDescriptor(e[0])},javascript:function(){var e,t=o.i;o.save();var n=o.$char("~");if(o.$char("`")){if(e=o.$re(/^[^`]*`/))return o.forget(),new Ee.JavaScript(e.substr(0,e.length-1),Boolean(n),t,r);o.restore("invalid javascript definition")}else o.restore()}},variable:function(){var e;if("@"===o.currentChar()&&(e=o.$re(/^(@[\w-]+)\s*:/)))return e[1]},variableCall:function(e){var t,n=o.i,a=!!e,s=e;if(o.save(),s||"@"===o.currentChar()&&(s=o.$re(/^(@[\w-]+)(\(\s*\))?/))){if(!(t=this.mixin.ruleLookups())&&(a&&"()"!==o.$str("()")||"()"!==s[2]))return void o.restore("Missing '[...]' lookup in variable call");a||(s=s[1]);var l=new Ee.VariableCall(s,n,r);return!a&&i.end()?(o.forget(),l):(o.forget(),new Ee.NamespaceValue(l,t,n,r))}o.restore()},extend:function(e){var t,n,i,l,u,c=o.i;if(o.$str(e?"&:extend(":":extend(")){do{for(i=null,t=null;!(i=o.$re(/^(all)(?=\s*(\)|,))/))&&(n=this.element());)t?t.push(n):t=[n];i=i&&i[1],t||a("Missing target selector for :extend()."),u=new Ee.Extend(new Ee.Selector(t),i,c,r),l?l.push(u):l=[u]}while(o.$char(","));return s(/^\)/),e&&s(/^;/),l}},extendRule:function(){return this.extend(!0)},mixin:{call:function(e,t){var n,a,s,u,c=o.currentChar(),f=!1,p=o.i;if("."===c||"#"===c){if(o.save(),a=this.elements()){if(o.$char("(")&&(s=this.args(!0).args,l(")"),u=!0),!1!==t&&(n=this.ruleLookups()),!0===t&&!n)return void o.restore();if(e&&!n&&!u)return void o.restore();if(!e&&i.important()&&(f=!0),e||i.end()){o.forget();var d=new Ee.mixin.Call(a,s,p,r,!n&&f);return n?new Ee.NamespaceValue(d,n):d}}o.restore()}},elements:function(){for(var e,t,n,i,a,s=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;a=o.i,t=o.$re(s);)i=new Ee.Element(n,t,!1,a,r),e?e.push(i):e=[i],n=o.$char(">");return e},args:function(e){var t,n,r,s,l,u,c,f=i.entities,p={args:null,variadic:!1},d=[],h=[],m=[],v=!0;for(o.save();;){if(e)u=i.detachedRuleset()||i.expression();else{if(o.commentStore.length=0,o.$str("...")){p.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?h:m).push({variadic:!0});break}u=f.variable()||f.property()||f.literal()||f.keyword()||this.call(!0)}if(!u||!v)break;s=null,u.throwAwayComments&&u.throwAwayComments(),l=u;var g=null;if(e?u.value&&1==u.value.length&&(g=u.value[0]):g=u,g&&(g instanceof Ee.Variable||g instanceof Ee.Property))if(o.$char(":")){if(d.length>0&&(t&&a("Cannot mix ; and , as delimiter types"),n=!0),!(l=i.detachedRuleset()||i.expression())){if(!e)return o.restore(),p.args=[],p;a("could not understand value for named argument")}s=r=g.name}else if(o.$str("...")){if(!e){p.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?h:m).push({name:u.name,variadic:!0});break}c=!0}else e||(r=s=g.name,l=null);l&&d.push(l),m.push({name:s,value:l,expand:c}),o.$char(",")?v=!0:((v=";"===o.$char(";"))||t)&&(n&&a("Cannot mix ; and , as delimiter types"),t=!0,d.length>1&&(l=new Ee.Value(d)),h.push({name:r,value:l,expand:c}),r=null,d=[],n=!1)}return o.forget(),p.args=t?h:m,p},definition:function(){var e,t,n,r,a=[],l=!1;if(!("."!==o.currentChar()&&"#"!==o.currentChar()||o.peek(/^[^{]*\}/)))if(o.save(),t=o.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1];var u=this.args(!1);if(a=u.args,l=u.variadic,!o.$char(")"))return void o.restore("Missing closing ')'");if(o.commentStore.length=0,o.$str("when")&&(r=s(i.conditions,"expected condition")),n=i.block())return o.forget(),new Ee.mixin.Definition(e,a,n,r,l);o.restore()}else o.restore()},ruleLookups:function(){var e,t=[];if("["===o.currentChar()){for(;;){if(o.save(),!(e=this.lookupValue())&&""!==e){o.restore();break}t.push(e),o.forget()}return t.length>0?t:void 0}},lookupValue:function(){if(o.save(),o.$char("[")){var e=o.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(o.$char("]"))return e||""===e?(o.forget(),e):void o.restore();o.restore()}else o.restore()}},entity:function(){var e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.property()||e.call()||e.keyword()||this.mixin.call(!0)||e.javascript()},end:function(){return o.$char(";")||o.peek("}")},ieAlpha:function(){var e;if(o.$re(/^opacity=/i))return(e=o.$re(/^\d+/))||(e="@{"+(e=s(i.entities.variable,"Could not parse alpha")).name.slice(1)+"}"),l(")"),new Ee.Quoted("","alpha(opacity="+e+")")},element:function(){var e,t,n,i=o.i;if(t=this.combinator(),(e=o.$re(/^(?:\d+\.\d+|\d+)%/)||o.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||o.$char("*")||o.$char("&")||this.attribute()||o.$re(/^\([^&()@]+\)/)||o.$re(/^[\.#:](?=@)/)||this.entities.variableCurly())||(o.save(),o.$char("(")?(n=this.selector(!1))&&o.$char(")")?(e=new Ee.Paren(n),o.forget()):o.restore("Missing closing ')'"):o.forget()),e)return new Ee.Element(t,e,e instanceof Ee.Variable,i,r)},combinator:function(){var e=o.currentChar();if("/"===e){o.save();var t=o.$re(/^\/[a-z]+\//i);if(t)return o.forget(),new Ee.Combinator(t);o.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(o.i++,"^"===e&&"^"===o.currentChar()&&(e="^^",o.i++);o.isWhitespace();)o.i++;return new Ee.Combinator(e)}return o.isWhitespace(-1)?new Ee.Combinator(" "):new Ee.Combinator(null)},selector:function(e){var t,n,i,l,u,c,f,p=o.i;for(e=!1!==e;(e&&(n=this.extend())||e&&(c=o.$str("when"))||(l=this.element()))&&(c?f=s(this.conditions,"expected condition"):f?a("CSS guard can only be used at the end of selector"):n?u=u?u.concat(n):n:(u&&a("Extend can only be used at the end of selector"),i=o.currentChar(),t?t.push(l):t=[l],l=null),"{"!==i&&"}"!==i&&";"!==i&&","!==i&&")"!==i););if(t)return new Ee.Selector(t,u,f,p,r);u&&a("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){for(var e,t;(e=this.selector())&&(t?t.push(e):t=[e],o.commentStore.length=0,e.condition&&t.length>1&&a("Guards are only currently allowed on a single selector."),o.$char(","));)e.condition&&a("Guards are only currently allowed on a single selector."),o.commentStore.length=0;return t},attribute:function(){if(o.$char("[")){var e,t,n,r=this.entities;return(e=r.variableCurly())||(e=s(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(n=o.$re(/^[|~*$^]?=/))&&(t=r.quoted()||o.$re(/^[0-9]+%/)||o.$re(/^[\w-]+/)||r.variableCurly()),l("]"),new Ee.Attribute(e,n,t)}},block:function(){var e;if(o.$char("{")&&(e=this.primary())&&o.$char("}"))return e},blockRuleset:function(){var e=this.block();return e&&(e=new Ee.Ruleset(null,e)),e},detachedRuleset:function(){var e,t,n;if(o.save(),!o.$re(/^[.#]\(/)||(t=(e=this.mixin.args(!1)).args,n=e.variadic,o.$char(")"))){var r=this.blockRuleset();if(r)return o.forget(),t?new Ee.mixin.Definition(null,t,r,null,n):new Ee.DetachedRuleset(r);o.restore()}else o.restore()},ruleset:function(){var e,n,r;if(o.save(),t.dumpLineNumbers&&(r=u(o.i)),(e=this.selectors())&&(n=this.block())){o.forget();var i=new Ee.Ruleset(e,n,t.strictImports);return t.dumpLineNumbers&&(i.debugInfo=r),i}o.restore()},declaration:function(){var e,t,n,i,a,s,l=o.i,u=o.currentChar();if("."!==u&&"#"!==u&&"&"!==u&&":"!==u)if(o.save(),e=this.variable()||this.ruleProperty()){if((s="string"==typeof e)&&(t=this.detachedRuleset())&&(n=!0),o.commentStore.length=0,!t){if(a=!s&&e.length>1&&e.pop().value,t=e[0].value&&"--"===e[0].value.slice(0,2)?this.permissiveValue():this.anonymousValue())return o.forget(),new Ee.Declaration(e,t,!1,a,l,r);t||(t=this.value()),t?i=this.important():s&&(t=this.permissiveValue())}if(t&&(this.end()||n))return o.forget(),new Ee.Declaration(e,t,i,a,l,r);o.restore()}else o.restore()},anonymousValue:function(){var e=o.i,t=o.$re(/^([^.#@\$+\/'"*`(;{}-]*);/);if(t)return new Ee.Anonymous(t[1],e)},permissiveValue:function(e){var t,n,i,s,l=e||";",u=o.i,c=[];function f(){var e=o.currentChar();return"string"==typeof l?e===l:l.test(e)}if(!f()){s=[];do{((n=this.comment())||(n=this.entity()))&&s.push(n)}while(n);if(i=f(),s.length>0){if(s=new Ee.Expression(s),i)return s;c.push(s)," "===o.prevChar()&&c.push(new Ee.Anonymous(" ",u))}if(o.save(),s=o.$parseUntil(l)){if("string"==typeof s&&a("Expected '"+s+"'","Parse"),1===s.length&&" "===s[0])return o.forget(),new Ee.Anonymous("",u);var p=void 0;for(t=0;t<s.length;t++)if(p=s[t],Array.isArray(p))c.push(new Ee.Quoted(p[0],p[1],!0,u,r));else{t===s.length-1&&(p=p.trim());var d=new Ee.Quoted("'",p,!0,u,r);d.variableRegex=/@([\w-]+)/g,d.propRegex=/\$([\w-]+)/g,c.push(d)}return o.forget(),new Ee.Expression(c,!0)}o.restore()}},import:function(){var e,t,n=o.i,i=o.$re(/^@import?\s+/);if(i){var s=(i?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures(),o.$char(";")||(o.i=n,a("missing semi-colon or unrecognised media features on import")),t=t&&new Ee.Value(t),new Ee.Import(e,t,s,n,r);o.i=n,a("malformed import statement")}},importOptions:function(){var e,t,n,r={};if(!o.$char("("))return null;do{if(e=this.importOption()){switch(n=!0,t=e){case"css":t="less",n=!1;break;case"once":t="multiple",n=!1}if(r[t]=n,!o.$char(","))break}}while(e);return l(")"),r},importOption:function(){var e=o.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(){var e,t,n=this.entities,i=[];o.save();do{(e=n.keyword()||n.variable()||n.mixinLookup())?i.push(e):o.$char("(")&&(t=this.property(),e=this.value(),o.$char(")")?t&&e?i.push(new Ee.Paren(new Ee.Declaration(t,e,null,null,o.i,r,!0))):e?i.push(new Ee.Paren(e)):a("badly formed media feature definition"):a("Missing closing ')'","Parse"))}while(e);if(o.forget(),i.length>0)return new Ee.Expression(i)},mediaFeatures:function(){var e,t=this.entities,n=[];do{if(e=this.mediaFeature()){if(n.push(e),!o.$char(","))break}else if((e=t.variable()||t.mixinLookup())&&(n.push(e),!o.$char(",")))break}while(e);return n.length>0?n:null},media:function(){var e,n,i,s,l=o.i;if(t.dumpLineNumbers&&(s=u(l)),o.save(),o.$str("@media"))return e=this.mediaFeatures(),(n=this.block())||a("media definitions require block statements after any features"),o.forget(),i=new Ee.Media(n,e,l,r),t.dumpLineNumbers&&(i.debugInfo=s),i;o.restore()},plugin:function(){var e,t,n,i=o.i;if(o.$re(/^@plugin?\s+/)){if(n=(t=this.pluginArgs())?{pluginArgs:t,isPlugin:!0}:{isPlugin:!0},e=this.entities.quoted()||this.entities.url())return o.$char(";")||(o.i=i,a("missing semi-colon on @plugin")),new Ee.Import(e,null,n,i,r);o.i=i,a("malformed @plugin statement")}},pluginArgs:function(){if(o.save(),!o.$char("("))return o.restore(),null;var e=o.$re(/^\s*([^\);]+)\)\s*/);return e[1]?(o.forget(),e[1].trim()):(o.restore(),null)},atrule:function(){var e,n,i,s,l,c,f,p=o.i,d=!0,h=!0;if("@"===o.currentChar()){if(n=this.import()||this.plugin()||this.media())return n;if(o.save(),e=o.$re(/^@[a-z-]+/)){switch(s=e,"-"==e.charAt(1)&&e.indexOf("-",2)>0&&(s="@"+e.slice(e.indexOf("-",2)+1)),s){case"@charset":l=!0,d=!1;break;case"@namespace":c=!0,d=!1;break;case"@keyframes":case"@counter-style":l=!0;break;case"@document":case"@supports":f=!0,h=!1;break;default:f=!0}if(o.commentStore.length=0,l?(n=this.entity())||a("expected "+e+" identifier"):c?(n=this.expression())||a("expected "+e+" expression"):f&&(n=this.permissiveValue(/^[{;]/),d="{"===o.currentChar(),n?n.value||(n=null):d||";"===o.currentChar()||a(e+" rule is missing block or ending semi-colon")),d&&(i=this.blockRuleset()),i||!d&&n&&o.$char(";"))return o.forget(),new Ee.AtRule(e,n,i,p,r,t.dumpLineNumbers?u(p):null,h);o.restore("at-rule options not recognised")}}},value:function(){var e,t=[],n=o.i;do{if((e=this.expression())&&(t.push(e),!o.$char(",")))break}while(e);if(t.length>0)return new Ee.Value(t,n)},important:function(){if("!"===o.currentChar())return o.$re(/^! *important/)},sub:function(){var e,t;if(o.save(),o.$char("("))return(e=this.addition())&&o.$char(")")?(o.forget(),(t=new Ee.Expression([e])).parens=!0,t):void o.restore("Expected ')'");o.restore()},multiplication:function(){var e,t,n,r,i;if(e=this.operand()){for(i=o.isWhitespace(-1);!o.peek(/^\/[*\/]/);){if(o.save(),!(n=o.$char("/")||o.$char("*")||o.$str("./"))){o.forget();break}if(!(t=this.operand())){o.restore();break}o.forget(),e.parensInOp=!0,t.parensInOp=!0,r=new Ee.Operation(n,[r||e,t],i),i=o.isWhitespace(-1)}return r||e}},addition:function(){var e,t,n,r,i;if(e=this.multiplication()){for(i=o.isWhitespace(-1);(n=o.$re(/^[-+]\s+/)||!i&&(o.$char("+")||o.$char("-")))&&(t=this.multiplication());)e.parensInOp=!0,t.parensInOp=!0,r=new Ee.Operation(n,[r||e,t],i),i=o.isWhitespace(-1);return r||e}},conditions:function(){var e,t,n,r=o.i;if(e=this.condition(!0)){for(;o.peek(/^,\s*(not\s*)?\(/)&&o.$char(",")&&(t=this.condition(!0));)n=new Ee.Condition("or",n||e,t,r);return n||e}},condition:function(e){var t,n,r;if(t=this.conditionAnd(e)){if(n=o.$str("or")){if(!(r=this.condition(e)))return;t=new Ee.Condition(n,t,r)}return t}},conditionAnd:function(e){var t,n,r,i,a=this;if(t=(i=a.negatedCondition(e)||a.parenthesisCondition(e))||e?i:a.atomicCondition(e)){if(n=o.$str("and")){if(!(r=this.conditionAnd(e)))return;t=new Ee.Condition(n,t,r)}return t}},negatedCondition:function(e){if(o.$str("not")){var t=this.parenthesisCondition(e);return t&&(t.negate=!t.negate),t}},parenthesisCondition:function(e){var t;if(o.save(),o.$str("(")){if(t=function(t){var n;if(o.save(),n=t.condition(e)){if(o.$char(")"))return o.forget(),n;o.restore()}else o.restore()}(this))return o.forget(),t;if(t=this.atomicCondition(e)){if(o.$char(")"))return o.forget(),t;o.restore("expected ')' got '"+o.currentChar()+"'")}else o.restore()}else o.restore()},atomicCondition:function(e){var t,n,r,i,s=this.entities,l=o.i;function u(){return this.addition()||s.keyword()||s.quoted()||s.mixinLookup()}if(t=(u=u.bind(this))())return o.$char(">")?i=o.$char("=")?">=":">":o.$char("<")?i=o.$char("=")?"<=":"<":o.$char("=")&&(i=o.$char(">")?"=>":o.$char("<")?"=<":"="),i?(n=u())?r=new Ee.Condition(i,t,n,l,!1):a("expected expression"):r=new Ee.Condition("=",t,new Ee.Keyword("true"),l,!1),r},operand:function(){var e,t=this.entities;o.peek(/^-[@\$\(]/)&&(e=o.$char("-"));var n=this.sub()||t.dimension()||t.color()||t.variable()||t.property()||t.call()||t.quoted(!0)||t.colorKeyword()||t.mixinLookup();return e&&(n.parensInOp=!0,n=new Ee.Negative(n)),n},expression:function(){var e,t,n=[],r=o.i;do{(e=this.comment())?n.push(e):((e=this.addition()||this.entity())instanceof Ee.Comment&&(e=null),e&&(n.push(e),o.peek(/^\/[\/*]/)||(t=o.$char("/"))&&n.push(new Ee.Anonymous(t,r))))}while(e);if(n.length>0)return new Ee.Expression(n)},property:function(){var e=o.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){var e,t,n=[],i=[];o.save();var a=o.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(a)return n=[new Ee.Keyword(a[1])],o.forget(),n;function s(e){var t=o.i,r=o.$re(e);if(r)return i.push(t),n.push(r[1])}for(s(/^(\*?)/);s(/^((?:[\w-]+)|(?:[@\$]\{[\w-]+\}))/););if(n.length>1&&s(/^((?:\+_|\+)?)\s*:/)){for(o.forget(),""===n[0]&&(n.shift(),i.shift()),t=0;t<n.length;t++)e=n[t],n[t]="@"!==e.charAt(0)&&"$"!==e.charAt(0)?new Ee.Keyword(e):"@"===e.charAt(0)?new Ee.Variable("@"+e.slice(2,-1),i[t],r):new Ee.Property("$"+e.slice(2,-1),i[t],r);return n}o.restore()}}}};He.serializeVars=function(e){var t="";for(var n in e)if(Object.hasOwnProperty.call(e,n)){var r=e[n];t+=("@"===n[0]?"":"@")+n+": "+r+(";"===String(r).slice(-1)?"":";")}return t};var Ve,Ue={boolean:function(e){return e?F.True:F.False},if:function(e,t,n){return e?t:n||new I}};function qe(e){return Math.min(1,Math.max(0,e))}function Ge(e,t){var n=Ve.hsla(t.h,t.s,t.l,t.a);if(n)return e.value&&/^(rgb|hsl)/.test(e.value)?n.value=e.value:n.value="rgb",n}function Xe(e){if(e.toHSL)return e.toHSL();throw new Error("Argument cannot be evaluated to a color")}function Ye(e){if(e.toHSV)return e.toHSV();throw new Error("Argument cannot be evaluated to a color")}function Ke(e){if(e instanceof ee)return parseFloat(e.unit.is("%")?e.value/100:e.value);if("number"==typeof e)return e;throw{type:"Argument",message:"color functions take numbers as parameters"}}var Je=Ve={rgb:function(e,t,n){var r=Ve.rgba(e,t,n,1);if(r)return r.value="rgb",r},rgba:function(e,t,n,r){try{if(e instanceof p)return r=t?Ke(t):e.alpha,new p(e.rgb,r,"rgba");var i=[e,t,n].map((function(e){return n=255,(t=e)instanceof ee&&t.unit.is("%")?parseFloat(t.value*n/100):Ke(t);var t,n}));return r=Ke(r),new p(i,r,"rgba")}catch(e){}},hsl:function(e,t,n){var r=Ve.hsla(e,t,n,1);if(r)return r.value="hsl",r},hsla:function(e,t,n,r){try{if(e instanceof p)return r=t?Ke(t):e.alpha,new p(e.rgb,r,"hsla");var i,o;function a(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?i+(o-i)*e*6:2*e<1?o:3*e<2?i+(o-i)*(2/3-e)*6:i}e=Ke(e)%360/360,t=qe(Ke(t)),n=qe(Ke(n)),r=qe(Ke(r)),i=2*n-(o=n<=.5?n*(t+1):n+t-n*t);var s=[255*a(e+1/3),255*a(e),255*a(e-1/3)];return r=Ke(r),new p(s,r,"hsla")}catch(e){}},hsv:function(e,t,n){return Ve.hsva(e,t,n,1)},hsva:function(e,t,n,r){var i,o;e=Ke(e)%360/360*360,t=Ke(t),n=Ke(n),r=Ke(r);var a=[n,n*(1-t),n*(1-(o=e/60-(i=Math.floor(e/60%6)))*t),n*(1-(1-o)*t)],s=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return Ve.rgba(255*a[s[i][0]],255*a[s[i][1]],255*a[s[i][2]],r)},hue:function(e){return new ee(Xe(e).h)},saturation:function(e){return new ee(100*Xe(e).s,"%")},lightness:function(e){return new ee(100*Xe(e).l,"%")},hsvhue:function(e){return new ee(Ye(e).h)},hsvsaturation:function(e){return new ee(100*Ye(e).s,"%")},hsvvalue:function(e){return new ee(100*Ye(e).v,"%")},red:function(e){return new ee(e.rgb[0])},green:function(e){return new ee(e.rgb[1])},blue:function(e){return new ee(e.rgb[2])},alpha:function(e){return new ee(Xe(e).a)},luma:function(e){return new ee(e.luma()*e.alpha*100,"%")},luminance:function(e){var t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255;return new ee(t*e.alpha*100,"%")},saturate:function(e,t,n){if(!e.rgb)return null;var r=Xe(e);return void 0!==n&&"relative"===n.value?r.s+=r.s*t.value/100:r.s+=t.value/100,r.s=qe(r.s),Ge(e,r)},desaturate:function(e,t,n){var r=Xe(e);return void 0!==n&&"relative"===n.value?r.s-=r.s*t.value/100:r.s-=t.value/100,r.s=qe(r.s),Ge(e,r)},lighten:function(e,t,n){var r=Xe(e);return void 0!==n&&"relative"===n.value?r.l+=r.l*t.value/100:r.l+=t.value/100,r.l=qe(r.l),Ge(e,r)},darken:function(e,t,n){var r=Xe(e);return void 0!==n&&"relative"===n.value?r.l-=r.l*t.value/100:r.l-=t.value/100,r.l=qe(r.l),Ge(e,r)},fadein:function(e,t,n){var r=Xe(e);return void 0!==n&&"relative"===n.value?r.a+=r.a*t.value/100:r.a+=t.value/100,r.a=qe(r.a),Ge(e,r)},fadeout:function(e,t,n){var r=Xe(e);return void 0!==n&&"relative"===n.value?r.a-=r.a*t.value/100:r.a-=t.value/100,r.a=qe(r.a),Ge(e,r)},fade:function(e,t){var n=Xe(e);return n.a=t.value/100,n.a=qe(n.a),Ge(e,n)},spin:function(e,t){var n=Xe(e),r=(n.h+t.value)%360;return n.h=r<0?360+r:r,Ge(e,n)},mix:function(e,t,n){n||(n=new ee(50));var r=n.value/100,i=2*r-1,o=Xe(e).a-Xe(t).a,a=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-a,l=[e.rgb[0]*a+t.rgb[0]*s,e.rgb[1]*a+t.rgb[1]*s,e.rgb[2]*a+t.rgb[2]*s],u=e.alpha*r+t.alpha*(1-r);return new p(l,u)},greyscale:function(e){return Ve.desaturate(e,new ee(100))},contrast:function(e,t,n,r){if(!e.rgb)return null;if(void 0===n&&(n=Ve.rgba(255,255,255,1)),void 0===t&&(t=Ve.rgba(0,0,0,1)),t.luma()>n.luma()){var i=n;n=t,t=i}return r=void 0===r?.43:Ke(r),e.luma()<r?n:t},argb:function(e){return new I(e.toARGB())},color:function(e){if(e instanceof ce&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(e.value)){var t=e.value.slice(1);return new p(t,void 0,"#"+t)}if(e instanceof p||(e=p.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(e,t){return Ve.mix(Ve.rgb(255,255,255),e,t)},shade:function(e,t){return Ve.mix(Ve.rgb(0,0,0),e,t)}};function Ze(e,t,n){var r,i,o,a,s=t.alpha,l=n.alpha,u=[];o=l+s*(1-l);for(var c=0;c<3;c++)a=e(r=t.rgb[c]/255,i=n.rgb[c]/255),o&&(a=(l*i+s*(r-l*(r+i-a)))/o),u[c]=255*a;return new p(u,o)}var Qe={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return(e*=2)<=1?Qe.multiply(e,t):Qe.screen(e-1,t)},softlight:function(e,t){var n=1,r=e;return t>.5&&(r=1,n=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*r*(n-e)},hardlight:function(e,t){return Qe.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}};for(var et in Qe)Qe.hasOwnProperty(et)&&(Ze[et]=Ze.bind(null,Qe[et]));var tt=function(e){return Array.isArray(e.value)?e.value:Array(e)},nt={_SELF:function(e){return e},extract:function(e,t){return t=t.value-1,tt(e)[t]},length:function(e){return new ee(tt(e).length)},range:function(e,t,n){var r,i,o=1,a=[];t?(i=t,r=e.value,n&&(o=n.value)):(r=1,i=e);for(var s=r;s<=i.value;s+=o)a.push(new ee(s,i.unit));return new ie(a)},each:function(e,t){var n,r,i=[];r=!e.value||e instanceof ce?e.ruleset?e.ruleset.rules:e.rules?e.rules:Array.isArray(e)?e:[e]:Array.isArray(e.value)?e.value:[e.value];var o="@value",a="@key",s="@index";t.params?(o=t.params[0]&&t.params[0].name,a=t.params[1]&&t.params[1].name,s=t.params[2]&&t.params[2].name,t=t.rules):t=t.ruleset;for(var l=0;l<r.length;l++){var u=void 0,c=void 0,f=r[l];f instanceof B?(u="string"==typeof f.name?f.name:f.name[0].value,c=f.value):(u=new ee(l+1),c=f),f instanceof W||(n=t.rules.slice(0),o&&n.push(new B(o,c,!1,!1,this.index,this.currentFileInfo)),s&&n.push(new B(s,new ee(l+1),!1,!1,this.index,this.currentFileInfo)),a&&n.push(new B(a,u,!1,!1,this.index,this.currentFileInfo)),i.push(new K([new D([new y("","&")])],n,t.strictImports,t.visibilityInfo())))}return new K([new D([new y("","&")])],i,t.strictImports,t.visibilityInfo()).eval(this.context)}},rt=function(e,t,n){if(!(n instanceof ee))throw{type:"Argument",message:"argument must be a number"};return null==t?t=n.unit:n=n.unify(),new ee(e(parseFloat(n.value)),t)},it={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var ot in it)it.hasOwnProperty(ot)&&(it[ot]=rt.bind(null,Math[ot],it[ot]));it.round=function(e,t){var n=void 0===t?0:t.value;return rt((function(e){return e.toFixed(n)}),null,e)};var at,st=function(e,t){switch((t=Array.prototype.slice.call(t)).length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var n,r,i,o,a,s,l,u,c=[],f={};for(n=0;n<t.length;n++)if((i=t[n])instanceof ee)if(l=""!==(s=""===(o=""===i.unit.toString()&&void 0!==u?new ee(i.value,u).unify():i.unify()).unit.toString()&&void 0!==l?l:o.unit.toString())&&void 0===l||""!==s&&""===c[0].unify().unit.toString()?s:l,u=""!==s&&void 0===u?i.unit.toString():u,void 0!==(r=void 0!==f[""]&&""!==s&&s===l?f[""]:f[s]))a=""===c[r].unit.toString()&&void 0!==u?new ee(c[r].value,u).unify():c[r].unify(),(e&&o.value<a.value||!e&&o.value>a.value)&&(c[r]=i);else{if(void 0!==l&&s!==l)throw{type:"Argument",message:"incompatible types"};f[s]=c.length,c.push(i)}else Array.isArray(t[n].value)&&Array.prototype.push.apply(t,Array.prototype.slice.call(t[n].value));return 1==c.length?c[0]:(t=c.map((function(e){return e.toCSS(this.context)})).join(this.context.compress?",":", "),new I((e?"min":"max")+"("+t+")"))},lt={min:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return st(!0,e)},max:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return st(!1,e)},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new ee(Math.PI)},mod:function(e,t){return new ee(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new ee(e),t=new ee(t);else if(!(e instanceof ee&&t instanceof ee))throw{type:"Argument",message:"arguments must be numbers"};return new ee(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return rt((function(e){return 100*e}),"%",e)}},ut={e:function(e){return new ce('"',e instanceof he?e.evaluated:e.value,!0)},escape:function(e){return new I(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,n,r){var i=e.value;return n="Quoted"===n.type?n.value:n.toCSS(),i=i.replace(new RegExp(t.value,r?r.value:""),n),new ce(e.quote||"",i,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.value,r=function(e){n=n.replace(/%[sda]/i,(function(n){var r="Quoted"===t[e].type&&n.match(/s/i)?t[e].value:t[e].toCSS();return n.match(/[A-Z]$/)?encodeURIComponent(r):r}))},i=0;i<t.length;i++)r(i);return n=n.replace(/%%/g,"%"),new ce(e.quote||"",n,e.escaped)}},ct=function(e,t){return e instanceof t?F.True:F.False},ft=function(e,t){if(void 0===t)throw{type:"Argument",message:"missing the required second argument to isunit."};if("string"!=typeof(t="string"==typeof t.value?t.value:t))throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return e instanceof ee&&e.unit.is(t)?F.True:F.False},pt={isruleset:function(e){return ct(e,Z)},iscolor:function(e){return ct(e,p)},isnumber:function(e){return ct(e,ee)},isstring:function(e){return ct(e,ce)},iskeyword:function(e){return ct(e,F)},isurl:function(e){return ct(e,fe)},ispixel:function(e){return ft(e,"px")},ispercentage:function(e){return ft(e,"%")},isem:function(e){return ft(e,"em")},isunit:ft,unit:function(e,t){if(!(e instanceof ee))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof ne?". Have you forgotten parenthesis?":"")};return t=t?t instanceof F?t.value:t.toCSS():"",new ee(e.value,t)},"get-unit":function(e){return new I(e.unit)}},dt=function(e){var t={functionRegistry:X,functionCaller:oe};return X.addMultiple(Ue),X.add("default",Y.eval.bind(Y)),X.addMultiple(Je),X.addMultiple(Ze),X.addMultiple(function(e){var t=function(e,t){return new fe(t,e.index,e.currentFileInfo).eval(e.context)};return{"data-uri":function(n,r){r||(r=n,n=null);var i=n&&n.value,o=r.value,a=this.currentFileInfo,s=a.rewriteUrls?a.currentDirectory:a.entryPath,l=o.indexOf("#"),u="";-1!==l&&(u=o.slice(l),o=o.slice(0,l));var c=S(this.context);c.rawBuffer=!0;var f=e.getFileManager(o,s,c,e,!0);if(!f)return t(this,r);var p=!1;if(n)p=/;base64$/.test(i);else{if("image/svg+xml"===(i=e.mimeLookup(o)))p=!1;else{var d=e.charsetLookup(i);p=["US-ASCII","UTF-8"].indexOf(d)<0}p&&(i+=";base64")}var h=f.loadFileSync(o,s,c,e);if(!h.contents)return Ce.warn("Skipped data-uri embedding of "+o+" because file not found"),t(this,r||n);var m=h.contents;if(p&&!e.encodeBase64)return t(this,r);var v="data:"+i+","+(m=p?e.encodeBase64(m):encodeURIComponent(m))+u;return new fe(new ce('"'+v+'"',v,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}}(e)),X.addMultiple(nt),X.addMultiple(it),X.addMultiple(lt),X.addMultiple(ut),X.addMultiple({"svg-gradient":function(e){var t,n,r,i,o,a,s,l,u="linear",c='x="0" y="0" width="1" height="1"',f={compress:!1},d=e.toCSS(f);function h(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(2==arguments.length?(arguments[1].value.length<2&&h(),t=arguments[1].value):arguments.length<3?h():t=Array.prototype.slice.call(arguments,1),d){case"to bottom":n='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":n='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":n='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":n='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":u="radial",n='cx="50%" cy="50%" r="75%"',c='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(r='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><'+u+'Gradient id="g" '+n+">",i=0;i<t.length;i+=1)t[i]instanceof ie?(o=t[i].value[0],a=t[i].value[1]):(o=t[i],a=void 0),o instanceof p&&((0===i||i+1===t.length)&&void 0===a||a instanceof ee)||h(),s=a?a.toCSS(f):0===i?"0%":"100%",l=o.alpha,r+='<stop offset="'+s+'" stop-color="'+o.toRGB()+'"'+(l<1?' stop-opacity="'+l+'"':"")+"/>";return r+="</"+u+"Gradient><rect "+c+' fill="url(#g)" /></svg>',r=encodeURIComponent(r),new fe(new ce("'"+(r="data:image/svg+xml,"+r)+"'",r,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}),X.addMultiple(pt),t},ht=function(e,t){var n;void 0===t&&(t={});var r=t.variables,i=new z.Eval(t);"object"!=typeof r||Array.isArray(r)||(r=Object.keys(r).map((function(e){var t=r[e];return t instanceof Ee.Value||(t instanceof Ee.Expression||(t=new Ee.Expression([t])),t=new Ee.Value([t])),new Ee.Declaration("@"+e,t,!1,null,0)})),i.frames=[new Ee.Ruleset(null,r)]);var o,a,s=[new We.JoinSelectorVisitor,new We.MarkVisibleSelectorsVisitor(!0),new We.ExtendVisitor,new We.ToCSSVisitor({compress:Boolean(t.compress)})],l=[];if(t.pluginManager){a=t.pluginManager.visitor();for(var u=0;u<2;u++)for(a.first();o=a.get();)o.isPreEvalVisitor?0!==u&&-1!==l.indexOf(o)||(l.push(o),o.run(e)):0!==u&&-1!==s.indexOf(o)||(o.isPreVisitor?s.unshift(o):s.push(o))}for(n=e.eval(i),u=0;u<s.length;u++)s[u].run(n);if(t.pluginManager)for(a.first();o=a.get();)-1===s.indexOf(o)&&-1===l.indexOf(o)&&o.run(n);return n},mt=function(){function e(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)}return e.prototype.addPlugins=function(e){if(e)for(var t=0;t<e.length;t++)this.addPlugin(e[t])},e.prototype.addPlugin=function(e,t,n){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,n||this.less.functions.functionRegistry)},e.prototype.get=function(e){return this.pluginCache[e]},e.prototype.addVisitor=function(e){this.visitors.push(e)},e.prototype.addPreProcessor=function(e,t){var n;for(n=0;n<this.preProcessors.length&&!(this.preProcessors[n].priority>=t);n++);this.preProcessors.splice(n,0,{preProcessor:e,priority:t})},e.prototype.addPostProcessor=function(e,t){var n;for(n=0;n<this.postProcessors.length&&!(this.postProcessors[n].priority>=t);n++);this.postProcessors.splice(n,0,{postProcessor:e,priority:t})},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.getPreProcessors=function(){for(var e=[],t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e},e.prototype.getPostProcessors=function(){for(var e=[],t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e},e.prototype.getVisitors=function(){return this.visitors},e.prototype.visitor=function(){var e=this;return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}},e.prototype.getFileManagers=function(){return this.fileManagers},e}();function vt(e,t){return!t&&at||(at=new mt(e)),at}var gt,yt,bt=function(e,t){var n,r=function(e){return function(){function t(t){this._css=[],this._rootNode=t.rootNode,this._contentsMap=t.contentsMap,this._contentsIgnoredCharsMap=t.contentsIgnoredCharsMap,t.sourceMapFilename&&(this._sourceMapFilename=t.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=t.outputFilename,this.sourceMapURL=t.sourceMapURL,t.sourceMapBasepath&&(this._sourceMapBasepath=t.sourceMapBasepath.replace(/\\/g,"/")),t.sourceMapRootpath?(this._sourceMapRootpath=t.sourceMapRootpath.replace(/\\/g,"/"),"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=t.outputSourceFiles,this._sourceMapGeneratorConstructor=e.getSourceMapGenerator(),this._lineNumber=0,this._column=0}return t.prototype.removeBasepath=function(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&("\\"!==(e=e.substring(this._sourceMapBasepath.length)).charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),e},t.prototype.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),e=this.removeBasepath(e),(this._sourceMapRootpath||"")+e},t.prototype.add=function(e,t,n,r){if(e){var i,o,a,s,l;if(t&&t.filename){var u=this._contentsMap[t.filename];if(this._contentsIgnoredCharsMap[t.filename]&&((n-=this._contentsIgnoredCharsMap[t.filename])<0&&(n=0),u=u.slice(this._contentsIgnoredCharsMap[t.filename])),void 0===u)return;s=(o=(u=u.substring(0,n)).split("\n"))[o.length-1]}if(a=(i=e.split("\n"))[i.length-1],t&&t.filename)if(r)for(l=0;l<i.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:o.length+l,column:0===l?s.length:0},source:this.normalizeFilename(t.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:o.length,column:s.length},source:this.normalizeFilename(t.filename)});1===i.length?this._column+=a.length:(this._lineNumber+=i.length-1,this._column=a.length),this._css.push(e)}},t.prototype.isEmpty=function(){return 0===this._css.length},t.prototype.toCSS=function(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var t in this._contentsMap)if(this._contentsMap.hasOwnProperty(t)){var n=this._contentsMap[t];this._contentsIgnoredCharsMap[t]&&(n=n.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),n)}if(this._rootNode.genCSS(e,this),this._css.length>0){var r=void 0,i=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?r=this.sourceMapURL:this._sourceMapFilename&&(r=this._sourceMapFilename),this.sourceMapURL=r,this.sourceMap=i}return this._css.join("")},t}()}(e=new Se(e,t)),i=function(e,t){return function(){function n(e){this.options=e}return n.prototype.toCSS=function(t,n,r){var i=new e({contentsIgnoredCharsMap:r.contentsIgnoredChars,rootNode:t,contentsMap:r.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline}),o=i.toCSS(n);return this.sourceMap=i.sourceMap,this.sourceMapURL=i.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=i.normalizeFilename(this.options.sourceMapInputFilename)),void 0!==this.options.sourceMapBasepath&&void 0!==this.sourceMapURL&&(this.sourceMapURL=i.removeBasepath(this.sourceMapURL)),o+this.getCSSAppendage()},n.prototype.getCSSAppendage=function(){var e=this.sourceMapURL;if(this.options.sourceMapFileInline){if(void 0===this.sourceMap)return"";e="data:application/json;base64,"+t.encodeBase64(this.sourceMap)}return e?"/*# sourceMappingURL="+e+" */":""},n.prototype.getExternalSourceMap=function(){return this.sourceMap},n.prototype.setExternalSourceMap=function(e){this.sourceMap=e},n.prototype.isInline=function(){return this.options.sourceMapFileInline},n.prototype.getSourceMapURL=function(){return this.sourceMapURL},n.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},n.prototype.getInputFilename=function(){return this.sourceMapInputFilename},n}()}(r,e),o=function(e){return function(){function t(e,t){this.root=e,this.imports=t}return t.prototype.toCSS=function(t){var n,r,i={};try{n=ht(this.root,t)}catch(e){throw new T(e,this.imports)}try{var o=Boolean(t.compress);o&&Ce.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var a={compress:o,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8};t.sourceMap?(r=new e(t.sourceMap),i.css=r.toCSS(n,a,this.imports)):i.css=n.toCSS(a)}catch(e){throw new T(e,this.imports)}if(t.pluginManager)for(var s=t.pluginManager.getPostProcessors(),l=0;l<s.length;l++)i.css=s[l].process(i.css,{sourceMap:r,options:t,imports:this.imports});t.sourceMap&&(i.map=r.getExternalSourceMap());var u=this.imports.rootFilename;return i.imports=this.imports.files.filter((function(e){return e!==u})),i},t}()}(i),a=function(e){return function(){function t(e,t,n){this.less=e,this.rootFilename=n.filename,this.paths=t.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=t.mime,this.error=null,this.context=t,this.queue=[],this.files=[]}return t.prototype.push=function(t,n,r,i,o){var a=this,s=this.context.pluginManager.Loader;this.queue.push(t);var l=function(e,n,r){a.queue.splice(a.queue.indexOf(t),1);var s=r===a.rootFilename;if(i.optional&&e)o(null,{rules:[]},!1,null),Ce.info("The file "+r+" was skipped because it was not found and the import was marked optional.");else{var l=a.files;-1===l.indexOf(r)&&l.push(r),e&&!a.error&&(a.error=e),o(e,n,s,r)}},u={rewriteUrls:this.context.rewriteUrls,entryPath:r.entryPath,rootpath:r.rootpath,rootFilename:r.rootFilename},c=e.getFileManager(t,r.currentDirectory,this.context,e);if(c){var f,p=function(e){var t,n=e.filename,o=e.contents.replace(/^\uFEFF/,"");u.currentDirectory=c.getPath(n),u.rewriteUrls&&(u.rootpath=c.join(a.context.rootpath||"",c.pathDiff(u.currentDirectory,u.entryPath)),!c.isPathAbsolute(u.rootpath)&&c.alwaysMakePathsAbsolute()&&(u.rootpath=c.join(u.entryPath,u.rootpath))),u.filename=n;var f=new z.Parse(a.context);f.processImports=!1,a.contents[n]=o,(r.reference||i.reference)&&(u.reference=!0),i.isPlugin?(t=s.evalPlugin(o,f,a,i.pluginArgs,u))instanceof T?l(t,null,n):l(null,t,n):i.inline?l(null,o,n):new He(f,a,u).parse(o,(function(e,t){l(e,t,n)}))},d=S(this.context);n&&(d.ext=i.isPlugin?".js":".less"),i.isPlugin?(d.mime="application/javascript",f=s.loadPlugin(t,r.currentDirectory,d,e,c)):f=c.loadFile(t,r.currentDirectory,d,e,(function(e,t){e?l(e):p(t)})),f&&f.then(p,l)}else l({message:"Could not find a file-manager for "+t})},t}()}(e),l=function(e,t,n){var r=function(e,n,i){if("function"==typeof n?(i=n,n=A(this.options,{})):n=A(this.options,n||{}),!i){var o=this;return new Promise((function(t,i){r.call(o,e,n,(function(e,n){e?i(e):t(n)}))}))}this.parse(e,n,(function(e,n,r,o){if(e)return i(e);var a;try{a=new t(n,r).toCSS(o)}catch(e){return i(e)}i(null,a)}))};return r}(0,o),u=function(e,t,n){var r=function(e,t,i){if("function"==typeof t?(i=t,t=A(this.options,{})):t=A(this.options,t||{}),!i){var o=this;return new Promise((function(n,i){r.call(o,e,t,(function(e,t){e?i(e):n(t)}))}))}var a,s=void 0,l=new vt(this,!t.reUsePluginManager);if(t.pluginManager=l,a=new z.Parse(t),t.rootFileInfo)s=t.rootFileInfo;else{var u=t.filename||"input",c=u.replace(/[^\/\\]*$/,"");(s={filename:u,rewriteUrls:a.rewriteUrls,rootpath:a.rootpath||"",currentDirectory:c,entryPath:c,rootFilename:u}).rootpath&&"/"!==s.rootpath.slice(-1)&&(s.rootpath+="/")}var f=new n(this,a,s);this.importManager=f,t.plugins&&t.plugins.forEach((function(e){var t,n;if(e.fileContent){if(n=e.fileContent.replace(/^\uFEFF/,""),(t=l.Loader.evalPlugin(n,a,f,e.options,e.filename))instanceof T)return i(t)}else l.addPlugin(e)})),new He(a,f,s).parse(e,(function(e,n){if(e)return i(e);i(null,n,f,t)}),t)};return r}(0,0,a),f=dt(e),p={version:[3,11,3],data:c,tree:Ee,Environment:Se,AbstractFileManager:Oe,AbstractPluginLoader:Ae,environment:e,visitors:We,Parser:He,functions:f,contexts:z,SourceMapOutput:r,SourceMapBuilder:i,ParseTree:o,ImportManager:a,render:l,parse:u,LessError:T,transformTree:ht,utils:P,PluginManager:vt,logger:Ce},d=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(e.bind.apply(e,s([void 0],t)))}},h=Object.create(p);for(var m in p.tree)if("function"==typeof(n=p.tree[m]))h[m.toLowerCase()]=d(n);else for(var v in h[m]=Object.create(null),n)h[m][v.toLowerCase()]=d(n[v]);return h},_t={},wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.alwaysMakePathsAbsolute=function(){return!0},t.prototype.join=function(e,t){return e?this.extractUrlParts(t,e).path:t},t.prototype.doXHR=function(e,t,n,r){var i=new XMLHttpRequest,o=!gt.isFileProtocol||gt.fileAsync;function a(t,n,r){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof r&&r(t.status,e)}"function"==typeof i.overrideMimeType&&i.overrideMimeType("text/css"),yt.debug("XHR: Getting '"+e+"'"),i.open("GET",e,o),i.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),i.send(null),gt.isFileProtocol&&!gt.fileAsync?0===i.status||i.status>=200&&i.status<300?n(i.responseText):r(i.status,e):o?i.onreadystatechange=function(){4==i.readyState&&a(i,n,r)}:a(i,n,r)},t.prototype.supports=function(){return!0},t.prototype.clearFileCache=function(){_t={}},t.prototype.loadFile=function(e,t,n,r){t&&!this.isPathAbsolute(e)&&(e=t+e),e=n.ext?this.tryAppendExtension(e,n.ext):e,n=n||{};var i=this.extractUrlParts(e,window.location.href).url,o=this;return new Promise((function(e,t){if(n.useFileCache&&_t[i])try{var r=_t[i];return e({contents:r,filename:i,webInfo:{lastModified:new Date}})}catch(e){return t({filename:i,message:"Error loading file "+i+" error was "+e.message})}o.doXHR(i,n.mime,(function(t,n){_t[i]=t,e({contents:t,filename:i,webInfo:{lastModified:n}})}),(function(e,n){t({type:"File",message:"'"+n+"' wasn't found ("+e+")",href:i})}))}))},t}(Oe),xt=function(e,t){return gt=e,yt=t,wt},kt=function(e){function t(t){var n=e.call(this)||this;return n.less=t,n}return a(t,e),t.prototype.loadPlugin=function(e,t,n,r,i){return new Promise((function(o,a){i.loadFile(e,t,n,r).then(o).catch(a)}))},t}(Ae),Et=function(t,n,i){return{add:function(o,a){i.errorReporting&&"html"!==i.errorReporting?"console"===i.errorReporting?function(e,t){var r=e.filename||t,o=[],a=(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" in "+r,s=function(e,t,n){void 0!==e.extract[t]&&o.push("{line} {content}".replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};e.line&&(s(e,0,""),s(e,1,"line"),s(e,2,""),a+=" on line "+e.line+", column "+(e.column+1)+":\n"+o.join("\n")),e.stack&&(e.extract||i.logLevel>=4)&&(a+="\nStack Trace\n"+e.stack),n.logger.error(a)}(o,a):"function"==typeof i.errorReporting&&i.errorReporting("add",o,a):function(n,o){var a,s,l="less-error-message:"+e(o||""),u=t.document.createElement("div"),c=[],f=n.filename||o,p=f.match(/([^\/]+(\?.*)?)$/)[1];u.id=l,u.className="less-error-message",s="<h3>"+(n.type||"Syntax")+"Error: "+(n.message||"There is an error in your .less file")+'</h3><p>in <a href="'+f+'">'+p+"</a> ";var d=function(e,t,n){void 0!==e.extract[t]&&c.push('<li><label>{line}</label><pre class="{class}">{content}</pre></li>'.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};n.line&&(d(n,0,""),d(n,1,"line"),d(n,2,""),s+="on line "+n.line+", column "+(n.column+1)+":</p><ul>"+c.join("")+"</ul>"),n.stack&&(n.extract||i.logLevel>=4)&&(s+="<br/>Stack Trace</br />"+n.stack.split("\n").slice(1).join("<br/>")),u.innerHTML=s,r(t.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),u.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"===i.env&&(a=setInterval((function(){var e=t.document,n=e.body;n&&(e.getElementById(l)?n.replaceChild(u,e.getElementById(l)):n.insertBefore(u,n.firstChild),clearInterval(a))}),10))}(o,a)},remove:function(n){i.errorReporting&&"html"!==i.errorReporting?"console"===i.errorReporting||"function"==typeof i.errorReporting&&i.errorReporting("remove",n):function(n){var r=t.document.getElementById("less-error-message:"+e(n));r&&r.parentNode.removeChild(r)}(n)}}},Ct={javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:0,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""};if(window.less)for(var St in window.less)window.less.hasOwnProperty(St)&&(Ct[St]=window.less[St]);(function(e,t){n(t,i(e)),void 0===t.isFileProtocol&&(t.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),t.async=t.async||!1,t.fileAsync=t.fileAsync||!1,t.poll=t.poll||(t.isFileProtocol?1e3:1500),t.env=t.env||("127.0.0.1"==e.location.hostname||"0.0.0.0"==e.location.hostname||"localhost"==e.location.hostname||e.location.port&&e.location.port.length>0||t.isFileProtocol?"development":"production");var r=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);r&&(t.dumpLineNumbers=r[1]),void 0===t.useFileCache&&(t.useFileCache=!0),void 0===t.onReady&&(t.onReady=!0),t.relativeUrls&&(t.rewriteUrls="all")})(window,Ct),Ct.plugins=Ct.plugins||[],window.LESS_PLUGINS&&(Ct.plugins=Ct.plugins.concat(window.LESS_PLUGINS));var Ot,At,jt,Pt=function(e,t){var i=e.document,o=bt();o.options=t;var a=o.environment,s=xt(t,o.logger),l=new s;a.addFileManager(l),o.FileManager=s,o.PluginLoader=kt,function(e,t){t.logLevel=void 0!==t.logLevel?t.logLevel:"development"===t.env?3:1,t.loggers||(t.loggers=[{debug:function(e){t.logLevel>=4&&console.log(e)},info:function(e){t.logLevel>=3&&console.log(e)},warn:function(e){t.logLevel>=2&&console.warn(e)},error:function(e){t.logLevel>=1&&console.error(e)}}]);for(var n=0;n<t.loggers.length;n++)e.logger.addListener(t.loggers[n])}(o,t);var u=Et(e,o,t),c=o.cache=t.cache||function(e,t,n){var r=null;if("development"!==t.env)try{r=void 0===e.localStorage?null:e.localStorage}catch(e){}return{setCSS:function(e,t,i,o){if(r){n.info("saving "+e+" to cache.");try{r.setItem(e,o),r.setItem(e+":timestamp",t),i&&r.setItem(e+":vars",JSON.stringify(i))}catch(t){n.error('failed to save "'+e+'" to local storage for caching.')}}},getCSS:function(e,t,n){var i=r&&r.getItem(e),o=r&&r.getItem(e+":timestamp"),a=r&&r.getItem(e+":vars");if(n=n||{},a=a||"{}",o&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(o).valueOf()&&JSON.stringify(n)===a)return i}}}(e,t,o.logger);!function(){function e(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var t={"image-size":function(t){return e(),-1},"image-width":function(t){return e(),-1},"image-height":function(t){return e(),-1}};X.addMultiple(t)}(o.environment),t.functions&&o.functions.functionRegistry.addMultiple(t.functions);var f=/^text\/(x-)?less$/;function p(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function d(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){var r=n.concat(Array.prototype.slice.call(arguments,0));return e.apply(t,r)}}function h(e){for(var n,r=i.getElementsByTagName("style"),a=0;a<r.length;a++)if((n=r[a]).type.match(f)){var s=p(t);s.modifyVars=e;var l=n.innerHTML||"";s.filename=i.location.href.replace(/#.*$/,""),o.render(l,s,d((function(e,t,n){t?u.add(t,"inline"):(e.type="text/css",e.styleSheet?e.styleSheet.cssText=n.css:e.innerHTML=n.css)}),null,n))}}function m(e,r,i,s,f){var d=p(t);n(d,e),d.mime=e.type,f&&(d.modifyVars=f),l.loadFile(e.href,null,d,a).then((function(t){!function(t){var n=t.contents,a=t.filename,f=t.webInfo,p={currentDirectory:l.getPath(a),filename:a,rootFilename:a,rewriteUrls:d.rewriteUrls};if(p.entryPath=p.currentDirectory,p.rootpath=d.rootpath||p.currentDirectory,f){f.remaining=s;var h=c.getCSS(a,f,d.modifyVars);if(!i&&h)return f.local=!0,void r(null,h,n,e,f,a)}u.remove(a),d.rootFileInfo=p,o.render(n,d,(function(t,i){t?(t.href=a,r(t)):(c.setCSS(e.href,f.lastModified,d.modifyVars,i.css),r(null,i.css,n,e,f,a))}))}(t)})).catch((function(e){console.log(e),r(e)}))}function v(e,t,n){for(var r=0;r<o.sheets.length;r++)m(o.sheets[r],e,t,o.sheets.length-(r+1),n)}return o.watch=function(){return o.watchMode||(o.env="development","development"===o.env&&(o.watchTimer=setInterval((function(){o.watchMode&&(l.clearFileCache(),v((function(t,n,i,o,a){t?u.add(t,t.href||o.href):n&&r(e.document,n,o)})))}),t.poll))),this.watchMode=!0,!0},o.unwatch=function(){return clearInterval(o.watchTimer),this.watchMode=!1,!1},o.registerStylesheetsImmediately=function(){var e=i.getElementsByTagName("link");o.sheets=[];for(var t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(f))&&o.sheets.push(e[t])},o.registerStylesheets=function(){return new Promise((function(e,t){o.registerStylesheetsImmediately(),e()}))},o.modifyVars=function(e){return o.refresh(!0,e,!1)},o.refresh=function(t,n,i){return(t||i)&&!1!==i&&l.clearFileCache(),new Promise((function(i,a){var s,l,c,f;s=l=new Date,0===(f=o.sheets.length)?(l=new Date,c=l-s,o.logger.info("Less has finished and no sheets were loaded."),i({startTime:s,endTime:l,totalMilliseconds:c,sheets:o.sheets.length})):v((function(t,n,p,d,h){if(t)return u.add(t,t.href||d.href),void a(t);h.local?o.logger.info("Loading "+d.href+" from cache."):o.logger.info("Rendered "+d.href+" successfully."),r(e.document,n,d),o.logger.info("CSS for "+d.href+" generated in "+(new Date-l)+"ms"),0==--f&&(c=new Date-s,o.logger.info("Less has finished. CSS generated in "+c+"ms"),i({startTime:s,endTime:l,totalMilliseconds:c,sheets:o.sheets.length})),l=new Date}),t,n),h(n)}))},o.refreshStyles=h,o}(window,Ct);function Nt(e){e.filename&&console.warn(e),Ct.async||At.removeChild(jt)}return window.less=Pt,Ct.onReady&&(/!watch/.test(window.location.hash)&&Pt.watch(),Ct.async||(Ot="body { display: none !important }",At=document.head||document.getElementsByTagName("head")[0],(jt=document.createElement("style")).type="text/css",jt.styleSheet?jt.styleSheet.cssText=Ot:jt.appendChild(document.createTextNode(Ot)),At.appendChild(jt)),Pt.registerStylesheetsImmediately(),Pt.pageLoadFinished=Pt.refresh("development"===Pt.env).then(Nt,Nt)),Pt}()}).call(this,n(316).Buffer)},function(e,t,n){var r;window,e.exports=(r=n(0),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"useStateWithCallbackInstant",(function(){return o}));var r=n(0);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=function(e,t){var n=i(Object(r.useState)(e),2),o=n[0],a=n[1];return Object(r.useLayoutEffect)((function(){return t(o)}),[o,t]),[o,a]};t.default=function(e,t){var n=i(Object(r.useState)(e),2),o=n[0],a=n[1];return Object(r.useEffect)((function(){return t(o)}),[o,t]),[o,a]}}]))},function(e,t,n){var r=n(50),i=n(77),o=n(413),a=n(414),s=n(415).Lexer,l=n(126),u=n(127).state,c=n(421),f=n(422),p=n(423),d=n(424),h=(n(425),function(){"use strict";var e,t,n,m,v,g,y,b,_,w,x={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},k=[],E=new i.EventEmitter;function C(e,t,n){var i,o;return t?(i="",o=f.validNames):(i="unstable ",o=f.unstableNames),e=e.trim(),!!/^[+-]W\d{3}$/g.test(e)||(!(-1===o.indexOf(e)&&"jslint"!==n.type&&!r.has(f.removed,e))||(L("E001",n,i,e),!1))}function S(e,t){return!!e&&!(!e.identifier||e.value!==t)}function O(e,t){if(!t.reserved)return!1;var n=t.meta;if(n&&n.isFutureReservedWord){if(u.inES5()){if(!n.es5)return!1;if(t.isProperty)return!1}}else if(n&&n.es5&&!u.inES5())return!1;return!(n&&n.strictOnly&&u.inES5()&&!u.option.strict&&!u.isStrict())&&(!!("await"!==t.id||e&d.async||u.option.module)&&(!!("yield"!==t.id||e&d.yield)||u.isStrict()))}function A(e,t){return e.replace(/\{([^{}]*)\}/g,(function(e,n){var r=t[n];return"string"==typeof r||"number"==typeof r?r:e}))}function j(e,t){Object.keys(t).forEach((function(n){r.has(h.blacklist,n)||(e[n]=t[n])}))}function P(){var e;!function(){if(u.option.enforceall){for(var e in f.bool.enforcing)void 0!==u.option[e]||f.noenforceall[e]||(u.option[e]=!0);for(var t in f.bool.relaxing)void 0===u.option[t]&&(u.option[t]=!1)}}(),(e=u.inferEsVersion())&&N("E059",u.tokens.next,"esversion",e),u.inES5()&&j(w,o.ecmaIdentifiers[5]),u.inES6()&&j(w,o.ecmaIdentifiers[6]),u.inES8()&&j(w,o.ecmaIdentifiers[8]),"global"===u.option.strict&&"globalstrict"in u.option&&N("E059",u.tokens.next,"strict","globalstrict"),u.option.module&&(u.inES6()||M("W134",u.tokens.next,"module",6)),u.option.regexpu&&(u.inES6()||M("W134",u.tokens.next,"regexpu",6)),u.option.couch&&j(w,o.couch),u.option.qunit&&j(w,o.qunit),u.option.rhino&&j(w,o.rhino),u.option.shelljs&&(j(w,o.shelljs),j(w,o.node)),u.option.typed&&j(w,o.typed),u.option.phantom&&j(w,o.phantom),u.option.prototypejs&&j(w,o.prototypejs),u.option.node&&(j(w,o.node),j(w,o.typed)),u.option.devel&&j(w,o.devel),u.option.dojo&&j(w,o.dojo),u.option.browser&&(j(w,o.browser),j(w,o.typed)),u.option.browserify&&(j(w,o.browser),j(w,o.typed),j(w,o.browserify)),u.option.nonstandard&&j(w,o.nonstandard),u.option.jasmine&&j(w,o.jasmine),u.option.jquery&&j(w,o.jquery),u.option.mootools&&j(w,o.mootools),u.option.worker&&j(w,o.worker),u.option.wsh&&j(w,o.wsh),u.option.yui&&j(w,o.yui),u.option.mocha&&j(w,o.mocha)}function N(e,t,n,r){var i=Math.floor(t.line/u.lines.length*100),o=a.errors[e].desc,s={name:"JSHintError",line:t.line,character:t.from,message:o+" ("+i+"% scanned).",raw:o,code:e,a:n,b:r};throw s.reason=A(o,s)+" ("+i+"% scanned).",s}function T(){var e=u.ignoredLines;r.isEmpty(e)||(h.errors=r.reject(h.errors,(function(t){return e[t.line]})))}function M(e,t,n,r,i,o){var s,l,c,f;if(/^W\d{3}$/.test(e)){if(u.ignored[e])return;f=a.warnings[e]}else/E\d{3}/.test(e)?f=a.errors[e]:/I\d{3}/.test(e)&&(f=a.info[e]);return"(end)"===(t=t||u.tokens.next||{}).id&&(t=u.tokens.curr),l=t.line,s=t.from,(c={id:"(error)",raw:f.desc,code:f.code,evidence:u.lines[l-1]||"",line:l,character:s,scope:h.scope,a:n,b:r,c:i,d:o}).reason=A(f.desc,c),h.errors.push(c),T(),h.errors.length>=u.option.maxerr&&N("E043",t),c}function D(e,t,n,r,i,o,a){return M(e,{line:t,from:n},r,i,o,a)}function L(e,t,n,r,i,o){M(e,t,n,r,i,o)}function F(e,t,n,r,i,o,a){return L(e,{line:t,from:n},r,i,o,a)}function I(e,t){h.internals.push({id:"(internal)",elem:e,token:t,code:t.value.replace(/([^\\])(\\*)\2\\n/g,"$1\n")})}function R(e,n){var i=e.body.split(",").map((function(e){return e.trim()})),o={};if("falls through"!==e.type){if("globals"===e.type)for(var a in i.forEach((function(t,n){var r=t.split(":"),a=r[0].trim();if("-"!==a&&a.length)"-"===a.charAt(0)?(a=a.slice(1),h.blacklist[a]=a,delete w[a]):o[a]=r.length>1&&"true"===r[1].trim();else{if(n>0&&n===i.length-1)return;L("E002",e)}})),j(w,o),o)r.has(o,a)&&(t[a]=e);"exported"===e.type&&i.forEach((function(t,n){if(t.length)u.funct["(scope)"].addExported(t);else{if(n>0&&n===i.length-1)return;L("E002",e)}})),"members"===e.type&&(_=_||{},i.forEach((function(e){var t=e.charAt(0);t!==e.charAt(e.length-1)||'"'!==t&&"'"!==t||(e=e.substr(1,e.length-2).replace('\\"','"')),_[e]=!1})));var s=["maxstatements","maxparams","maxdepth","maxcomplexity","maxerr","maxlen","indent"];"jshint"!==e.type&&"jslint"!==e.type&&"jshint.unstable"!==e.type||(i.forEach((function(t){var n,r=t.split(":"),i=r[0].trim(),o=r.length>1?r[1].trim():"";if(C(i,"jshint.unstable"!==e.type,e))if(s.indexOf(i)>=0)if("false"!==o){if("number"!=typeof(n=+o)||!isFinite(n)||n<=0||Math.floor(n)!==n)return void L("E032",e,o);u.option[i]=n}else u.option[i]="indent"===i&&4;else{if("validthis"===i)return u.funct["(global)"]?void L("E009"):"true"!==o&&"false"!==o?void L("E002",e):void(u.option.validthis="true"===o);if("quotmark"!==i)if("shadow"!==i)if("unused"!==i)if("latedef"!==i)if("ignore"!==i)if("strict"!==i)if("module"===i&&(Te(u.funct)||L("E055",e,"module")),"esversion"!==i){var a,l=/^([+-])(W\d{3})$/g.exec(i);if(l)u.ignored[l[2]]="-"===l[1];else"true"!==o&&"false"!==o?L("E002",e):"jslint"===e.type?(a=f.renamed[i]||i,u.option[a]="true"===o,void 0!==f.inverted[a]&&(u.option[a]=!u.option[a])):"jshint.unstable"===e.type?u.option.unstable[i]="true"===o:u.option[i]="true"===o}else{switch(o){case"3":case"5":case"6":case"7":case"8":case"9":case"10":u.option.moz=!1,u.option.esversion=+o;break;case"2015":case"2016":case"2017":case"2018":case"2019":u.option.moz=!1,u.option.esversion=+o-2009;break;default:L("E002",e)}Te(u.funct)||L("E055",e,"esversion")}else switch(o){case"true":u.option.strict=!0;break;case"false":u.option.strict=!1;break;case"global":case"implied":u.option.strict=o;break;default:L("E002",e)}else switch(o){case"line":u.ignoredLines[e.line]=!0,T();break;default:L("E002",e)}else switch(o){case"true":u.option.latedef=!0;break;case"false":u.option.latedef=!1;break;case"nofunc":u.option.latedef="nofunc";break;default:L("E002",e)}else switch(o){case"true":u.option.unused=!0;break;case"false":u.option.unused=!1;break;case"vars":case"strict":u.option.unused=o;break;default:L("E002",e)}else switch(o){case"true":u.option.shadow=!0;break;case"outer":u.option.shadow="outer";break;case"false":case"inner":u.option.shadow="inner";break;default:L("E002",e)}else switch(o){case"true":case"false":u.option.quotmark="true"===o;break;case"double":case"single":u.option.quotmark=o;break;default:L("E002",e)}}})),P())}else n.caseFallsThrough=!0}function B(e){var t,n=e||0,r=g.length;if(n<r)return g[n];for(;r<=n;){if(!(t=y.token()))return g.length?g[r-1]:u.tokens.next;g[r]=t,r+=1}return t}function $(){var e,t=0;do{e=B(t++)}while("(endline)"===e.id);return e}function W(e,t){var n=u.tokens.next;for(e&&n.id!==e&&(t?"(end)"===n.id?L("E019",t,t.id):L("E020",n,e,t.id,t.line,n.value):"(identifier)"===n.type&&n.value===e||L("E021",n,e,n.value)),u.tokens.prev=u.tokens.curr,u.tokens.curr=u.tokens.next;;){if(u.tokens.next=g.shift()||y.token(),u.tokens.next||N("E041",u.tokens.curr),"(end)"===u.tokens.next.id||"(error)"===u.tokens.next.id)return;if(u.tokens.next.check&&u.tokens.next.check(),u.tokens.next.isSpecial)R(u.tokens.next,u.tokens.curr);else if("(endline)"!==u.tokens.next.id)break}}function z(e,t,n){return arguments.length<=1&&(t=u.tokens.curr,n=u.tokens.next),!!("in"===n.id&&e&d.noin)||(";"===n.id||"}"===n.id||":"===n.id||(n.infix===t.infix||"yield"===t.id&&t.rbp<n.rbp)&&!V(t,n))}function H(e,t){var n,r,i=!1,o=!1,a=e&d.initial;if(e&=~d.initial,u.nameStack.push(),"(end)"===u.tokens.next.id&&L("E006",u.tokens.curr),W(),a&&(u.funct["(verb)"]=u.tokens.curr.value,u.tokens.curr.beginsStmt=!0),r=u.tokens.curr,a&&r.fud&&(!r.useFud||r.useFud(e)))n=u.tokens.curr.fud(e);else for(u.tokens.curr.nud?n=u.tokens.curr.nud(e,t):L("E030",u.tokens.curr,u.tokens.curr.id);t<u.tokens.next.lbp&&!z(e);)i="Array"===u.tokens.curr.value,o="Object"===u.tokens.curr.value,n&&(n.value||n.first&&n.first.value)&&("new"!==n.value||n.first&&n.first.value&&"."===n.first.value)&&(i=!1,n.value!==u.tokens.curr.value&&(o=!1)),W(),i&&"("===u.tokens.curr.id&&")"===u.tokens.next.id&&M("W009",u.tokens.curr),o&&"("===u.tokens.curr.id&&")"===u.tokens.next.id&&M("W010",u.tokens.curr),n&&u.tokens.curr.led?n=u.tokens.curr.led(e,n):L("E033",u.tokens.curr,u.tokens.curr.id);return u.nameStack.pop(),n}function V(e,t){return e.line===(t.startLine||t.line)}function U(e,t){u.option.laxbreak||V(e,t)||M("W014",t,t.value)}function q(e){V(e,u.tokens.next)||M("E022",e,e.value)}function G(e){var t=u.tokens.prev,n=u.tokens.curr;if(e=e||{},V(t,n)||u.option.laxcomma||(G.first&&(M("I001",n),G.first=!1),M("W014",t,n.value)),u.tokens.next.identifier&&(!e.property||!u.inES5()))switch(u.tokens.next.value){case"break":case"case":case"catch":case"continue":case"default":case"do":case"else":case"finally":case"for":case"if":case"in":case"instanceof":case"return":case"switch":case"throw":case"try":case"var":case"let":case"while":case"with":return L("E024",u.tokens.next,u.tokens.next.value),!1}if("(punctuator)"===u.tokens.next.type)switch(u.tokens.next.value){case"}":case"]":case",":case")":return!!e.allowTrailing||(L("E024",u.tokens.next,u.tokens.next.value),!1)}return!0}function X(e,t){var n=u.syntax[e];return n&&"object"==typeof n||(u.syntax[e]=n={id:e,lbp:t,rbp:t,value:e}),n}function Y(e){var t=X(e,0);return t.delim=!0,t}function K(e,t){var n=Y(e);return n.identifier=n.reserved=!0,n.fud=t,n}function J(e,t){var n=K(e,t);return n.block=!0,n}function Z(e){var t=e.id.charAt(0);return(t>="a"&&t<="z"||t>="A"&&t<="Z")&&(e.identifier=e.reserved=!0),e}function Q(e,t){var n=X(e,150);return Z(n),n.nud="function"==typeof t?t:function(e){return this.arity="unary",this.right=H(e,150),"++"!==this.id&&"--"!==this.id||(u.option.plusplus&&M("W016",this,this.id),this.right&&ue(e,this.right,this)),this},n}function ee(e,t){var n=X(e,0);return n.type=e,n.nud=t,n}function te(e,t){var n=ee(e,t);return n.identifier=!0,n.reserved=!0,n}function ne(e,t){var n=ee(e,u.syntax["(identifier)"].nud);return(t=t||{}).isFutureReservedWord=!0,n.value=e,n.identifier=!0,n.reserved=!0,n.meta=t,n}function re(e,t,n,r){var i=X(e,n);return Z(i),i.infix=!0,i.led=function(i,o){return r||U(u.tokens.prev,u.tokens.curr),"in"!==e&&"instanceof"!==e||"!"!==o.id||M("W018",o,"!"),"function"==typeof t?t(i,o,this):(this.left=o,this.right=H(i,n),this)},i}function ie(e,t){var n=X(e,100);return n.infix=!0,n.led=function(e,n){U(u.tokens.prev,u.tokens.curr),this.left=n;var r=this.right=H(e,100);return S(n,"NaN")||S(r,"NaN")?M("W019",this):t&&t.apply(this,[e,n,r]),n&&r||N("E041",u.tokens.curr),"!"===n.id&&M("W018",n,"!"),"!"===r.id&&M("W018",r,"!"),this},n}function oe(e){return"unary"===e.arity&&"++"!==e.id&&"--"!==e.id}var ae={};function se(e,t,n){var i;return!n.option.notypeof&&(!(!e||!t)&&(i=n.inES6()?ae.es6:ae.es3,"(identifier)"===t.type&&"typeof"===t.value&&"(string)"===e.type&&("bigint"===e.value?(n.option.unstable.bigint||M("W144",e,"BigInt","bigint"),!1):!r.includes(i,e.value))))}function le(e,t){var n=!1;return"this"===e.type&&null===t.funct["(context)"]?n=!0:"(identifier)"===e.type&&(t.option.node&&"global"===e.value?n=!0:!t.option.browser||"window"!==e.value&&"document"!==e.value||(n=!0)),n}function ue(e,t,n,r){var i=r&&r.allowDestructuring;if(n=n||t,u.option.freeze){var o=function(e){var t=["Array","ArrayBuffer","Boolean","Collator","DataView","Date","DateTimeFormat","Error","EvalError","Float32Array","Float64Array","Function","Infinity","Intl","Int16Array","Int32Array","Int8Array","Iterator","Number","NumberFormat","Object","RangeError","ReferenceError","RegExp","StopIteration","String","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError"],n=function e(t){if("object"==typeof t)return"prototype"===t.right?t:e(t.left)}(e);if(n)return function(e){for(;!e.identifier&&"object"==typeof e.left;)e=e.left;if(e.identifier&&t.indexOf(e.value)>=0&&u.funct["(scope)"].isPredefined(e.value))return e.value}(n)}(t);o&&M("W121",t,o)}if(t.identifier&&!t.isMetaProperty&&u.funct["(scope)"].block.reassign(t.value,t),"."===t.id)return t.left&&("arguments"!==t.left.value||u.isStrict())||M("W143",n),u.nameStack.set(u.tokens.prev),!0;if("{"===t.id||"["===t.id)return i&&t.destructAssign||("{"!==t.id&&t.left?"arguments"!==t.left.value||u.isStrict()||M("W143",n):M("E031",n)),"["===t.id&&u.nameStack.set(t.right),!0;if(t.identifier&&!O(e,t)&&!t.isMetaProperty){if("exception"===u.funct["(scope)"].bindingtype(t.value)&&M("W022",t),"eval"===t.value&&u.isStrict())return L("E031",n),!1;if("arguments"===t.value){if(u.isStrict())return L("E031",n),!1;M("W143",n)}return u.nameStack.set(t),!0}return L("E031",n),!1}function ce(e,t){var n=re(e,"function"==typeof t?t:function(e,t,n){return n.left=t,ue(e,t,n,{allowDestructuring:!0}),n.right=H(e,10),n},20);return n.exps=!0,n.assign=!0,n}function fe(e,t,n){var r=X(e,n);return Z(r),r.infix=!0,r.led="function"==typeof t?t:function(e,t){return u.option.bitwise&&M("W016",this,this.id),this.left=t,this.right=H(e,n),this},r}function pe(e){return X(e,20).exps=!0,re(e,(function(e,t,n){return u.option.bitwise&&M("W016",n,n.id),ue(e,t,n),n.right=H(e,10),n}),20)}function de(e){var t=X(e,150);return t.led=function(e,t){return u.option.plusplus&&M("W016",this,this.id),ue(e,t,this),this.left=t,this},t}function he(e,t,n){if(u.tokens.next.identifier){n||W();var r=u.tokens.curr,i=u.tokens.curr.value;return O(e,r)?(t&&u.inES5()||M("W024",u.tokens.curr,u.tokens.curr.id),i):i}}function me(e){if(!tt(u.tokens.next,"..."))return!1;if(u.inES6(!0)||M("W119",u.tokens.next,e+" operator","6"),W(),tt(u.tokens.next,"..."))for(M("E024",u.tokens.next,"...");tt(u.tokens.next,"...");)W();return!0}function ve(e,t){var n=he(e,t,!1);if(n)return n;L("E030",u.tokens.next,u.tokens.next.value),";"!==u.tokens.next.id&&W()}function ge(e){var t,n=0;if(";"===u.tokens.next.id&&!e.inBracelessBlock)for(;;){do{t=B(n),n+=1}while("(end)"!==t.id&&"(comment)"===t.id);if(t.reach)return;if("(endline)"!==t.id){if("function"===t.id){!0===u.option.latedef&&M("W026",t);break}M("W027",t,t.value,e.value);break}}}function ye(e){if(";"!==u.tokens.next.id){if(u.tokens.next.isUnclosed)return W();var t=V(u.tokens.curr,u.tokens.next)&&"(end)"!==u.tokens.next.id,n=tt(u.tokens.next,"}");!t||n||"do"===e.id&&u.inES6(!0)?u.option.asi||n&&t&&u.option.lastsemic||D("W033",u.tokens.curr.line,u.tokens.curr.character):F("E058",u.tokens.curr.line,u.tokens.curr.character)}else W(";")}function be(e){var t,n=v,r=u.tokens.next,i=!1;if(e|=d.initial,";"!==r.id){var o=O(e,r);return o&&r.meta&&r.meta.isFutureReservedWord&&!r.fud&&(M("W024",r,r.id),o=!1),r.identifier&&!o&&":"===B().id&&(W(),W(":"),i=!0,u.funct["(scope)"].stack(),u.funct["(scope)"].block.addLabel(r.value,{token:u.tokens.curr}),u.tokens.next.labelled||"{"===u.tokens.next.value||M("W028",u.tokens.next,r.value,u.tokens.next.value),r=u.tokens.next),"{"===r.id?(xe(e,!0,!0,!1,!1,"case"===u.funct["(verb)"]&&":"===u.tokens.curr.value),void(i&&u.funct["(scope)"].unstack())):(!(t=H(e,0))||t.identifier&&"function"===t.value||"(punctuator)"===t.type&&t.left&&t.left.identifier&&"function"===t.left.value||!u.isStrict()&&u.stmtMissingStrict()&&M("E007"),r.block||(u.option.expr||t&&t.exps?u.option.nonew&&t&&t.left&&"("===t.id&&"new"===t.left.id&&M("W031",r):M("W030",u.tokens.curr),ye(r)),v=n,i&&u.funct["(scope)"].unstack(),t)}W(";")}function _e(e){for(var t,n=[];!u.tokens.next.reach&&"(end)"!==u.tokens.next.id;)";"===u.tokens.next.id?((!(t=B())||"("!==t.id&&"["!==t.id)&&M("W032"),W(";")):n.push(be(e));return n}function we(){for(var e=u.tokens.next;"(string)"===u.tokens.next.id;){var t=$();if(!z(0,e,t))break;e=t,W();var n=u.tokens.curr.value;(u.directive[n]||"use strict"===n&&"implied"===u.option.strict)&&M("W034",u.tokens.curr,n),"use strict"===n&&u.inES7()&&!u.funct["(global)"]&&!1===u.funct["(hasSimpleParams)"]&&L("E065",u.tokens.curr),u.directive[n]=!0,ye(e)}u.isStrict()&&(u.option.undef=!0)}function xe(e,t,n,r,i,o){var a,s,l,c,f=m,p=v;m=t,l=u.tokens.next;var h=u.funct["(metrics)"];if(h.nestedBlockDepth+=1,h.verifyMaxNestedBlockDepthPerFunction(),"{"===u.tokens.next.id){if(W("{"),u.funct["(scope)"].stack(),"}"!==u.tokens.next.id){for(v+=u.option.indent;!t&&u.tokens.next.from>v;)v+=u.option.indent;if(r){for(c in s={},u.directive)s[c]=u.directive[c];we(),u.funct["(isStrict)"]=u.isStrict(),u.option.strict&&u.funct["(context)"]["(global)"]&&(s["use strict"]||u.isStrict()||M("E007"))}a=_e(e),h.statementCount+=a.length,v-=u.option.indent}else r&&(u.funct["(isStrict)"]=u.isStrict());W("}",l),r&&(u.funct["(scope)"].validateParams(i),s&&(u.directive=s)),u.funct["(scope)"].unstack(),v=p}else if(t){u.funct["(scope)"].stack(),n&&!u.option.curly||M("W116",u.tokens.next,"{",u.tokens.next.value);var g="if"===u.funct["(verb)"]||"else"===u.tokens.curr.id;u.tokens.next.inBracelessBlock=!0,v+=u.option.indent,a=[be(e)],v-=u.option.indent,!a[0]||!a[0].declaration||g&&"function"===a[0].id||L("E048",a[0],a[0].id[0].toUpperCase()+a[0].id.slice(1)),u.funct["(scope)"].unstack()}else if(r){u.funct["(scope)"].stack(),!n||i||u.inMoz()||L("W118",u.tokens.curr,"function closure expressions"),i&&u.funct["(scope)"].validateParams(!0);var y=H(e,10);u.option.noreturnawait&&e&d.async&&y.identifier&&"await"===y.value&&M("W146",y),u.option.strict&&u.funct["(context)"]["(global)"]&&(u.isStrict()||M("E007")),u.funct["(scope)"].unstack()}else L("E021",u.tokens.next,"{",u.tokens.next.value);switch(u.funct["(verb)"]){case"break":case"continue":case"return":case"throw":if(o)break;default:u.funct["(verb)"]=null}return m=f,!t||!u.option.noempty||a&&0!==a.length||M("W035",u.tokens.prev),h.nestedBlockDepth-=1,a}function ke(e){_&&"boolean"!=typeof _[e]&&M("W036",u.tokens.curr,e),"number"==typeof b[e]?b[e]+=1:b[e]=1}ae.legacy=["xml","unknown"],ae.es3=["undefined","boolean","number","string","function","object"],ae.es3=ae.es3.concat(ae.legacy),ae.es6=ae.es3.concat("symbol","bigint"),ee("(number)",(function(){return"."===u.tokens.next.id&&M("W005",this),this})),ee("(string)",(function(){return this})),u.syntax["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(e){var t=this.value,n="=>"===u.tokens.next.id;return O(e,this)?M("W024",this,t):n||u.funct["(comparray)"].check(t)||u.funct["(scope)"].block.use(t,u.tokens.curr),this},led:function(){L("E033",u.tokens.next,u.tokens.next.value)}};var Ee,Ce={identifier:!1,template:!0};u.syntax["(template)"]=r.extend({lbp:155,type:"(template)",nud:Me,led:Me,noSubst:!1},Ce),u.syntax["(template middle)"]=r.extend({lbp:0,type:"(template middle)",noSubst:!1},Ce),u.syntax["(template tail)"]=r.extend({lbp:0,type:"(template tail)",tail:!0,noSubst:!1},Ce),u.syntax["(no subst template)"]=r.extend({lbp:155,type:"(template)",nud:Me,led:Me,noSubst:!0,tail:!0},Ce),ee("(regexp)",(function(){return this})),Y("(endline)"),(Ee=Y("(begin)")).line=Ee.from=0,Y("(end)").reach=!0,Y("(error)").reach=!0,Y("}").reach=!0,Y(")"),Y("]"),Y('"').reach=!0,Y("'").reach=!0,Y(";"),Y(":").reach=!0,Y("#"),te("else"),te("case").reach=!0,te("catch"),te("default").reach=!0,te("finally"),te("true",(function(){return this})),te("false",(function(){return this})),te("null",(function(){return this})),te("this",(function(){return u.isStrict()&&!u.funct["(method)"]&&!u.option.validthis&&(u.funct["(statement)"]&&u.funct["(name)"].charAt(0)>"Z"||u.funct["(global)"])&&M("W040",this),this})),te("super",(function(){return Ye.call(u.tokens.curr,this),this})),ce("=","assign"),ce("+=","assignadd"),ce("-=","assignsub"),ce("*=","assignmult"),ce("/=","assigndiv").nud=function(){L("E014")},ce("%=","assignmod"),ce("**=",(function(e,t,n){return u.inES7()||M("W119",n,"Exponentiation operator","7"),n.left=t,ue(e,t,n),n.right=H(e,10),n})),pe("&="),pe("|="),pe("^="),pe("<<="),pe(">>="),pe(">>>="),re(",",(function(e,t,n){return u.option.nocomma&&M("W127",n),n.left=t,G()?n.right=H(e,10):n.right=null,n}),10,!0),re("?",(function(e,t,n){return Fe(),n.left=t,n.right=H(e&~d.noin,10),W(":"),H(e,10),n}),30),re("||",(function(e,t,n){return Fe(),n.left=t,n.right=H(e,40),n}),40);re("&&",(function(e,t,n){return Fe(),n.left=t,n.right=H(e,50),n}),50),re("**",(function(e,t,n){return u.inES7()||M("W119",n,"Exponentiation operator","7"),!t.paren&&oe(t)&&L("E024",n,"**"),n.left=t,n.right=H(e,n.rbp),n}),150),u.syntax["**"].rbp=140,fe("|","bitor",70),fe("^","bitxor",80),fe("&","bitand",90),ie("==",(function(e,t,n){switch(!0){case!(u.option.eqnull&&("null"===(t&&t.value)||"null"===(n&&n.value)))&&u.option.eqeqeq:this.from=this.character,M("W116",this,"===","==");break;case se(n,t,u):M("W122",this,n.value);break;case se(t,n,u):M("W122",this,t.value)}return this})),ie("===",(function(e,t,n){return se(n,t,u)?M("W122",this,n.value):se(t,n,u)&&M("W122",this,t.value),this})),ie("!=",(function(e,t,n){return!(u.option.eqnull&&("null"===(t&&t.value)||"null"===(n&&n.value)))&&u.option.eqeqeq?(this.from=this.character,M("W116",this,"!==","!=")):se(n,t,u)?M("W122",this,n.value):se(t,n,u)&&M("W122",this,t.value),this})),ie("!==",(function(e,t,n){return se(n,t,u)?M("W122",this,n.value):se(t,n,u)&&M("W122",this,t.value),this})),ie("<"),ie(">"),ie("<="),ie(">="),fe("<<","shiftleft",120),fe(">>","shiftright",120),fe(">>>","shiftrightunsigned",120),re("in","in",120),re("instanceof",(function(e,t,n){var r,i=u.funct["(scope)"];return n.left=t,n.right=r=H(e,120),r?(("(number)"===r.id||"(string)"===r.id||"null"===r.value||"undefined"===r.value&&!i.has("undefined")||"unary"===r.arity||"{"===r.id||"["===r.id&&!r.right||"(regexp)"===r.id||"(template)"===r.id&&!r.tag)&&L("E060"),"function"===r.id&&M("W139"),n):n}),120),re("+",(function(e,t,n){var r,i=u.tokens.next;return n.left=t,n.right=r=H(e,130),t&&r&&"(string)"===t.id&&"(string)"===r.id?(t.value+=r.value,t.character=r.character,!u.option.scripturl&&l.javascriptURL.test(t.value)&&M("W050",t),t):("+"!==i.id&&"++"!==i.id||M("W007",n.right),n)}),130),Q("+",(function(e){var t=u.tokens.next;return this.arity="unary",this.right=H(e,150),"+"!==t.id&&"++"!==t.id||M("W007",this.right),this})),re("-",(function(e,t,n){var r=u.tokens.next;return n.left=t,n.right=H(e,130),"-"!==r.id&&"--"!==r.id||M("W006",n.right),n}),130),Q("-",(function(e){var t=u.tokens.next;return this.arity="unary",this.right=H(e,150),"-"!==t.id&&"--"!==t.id||M("W006",this.right),this})),re("*","mult",140),re("/","div",140),re("%","mod",140),de("++"),Q("++","preinc"),u.syntax["++"].exps=!0,de("--"),Q("--","predec"),u.syntax["--"].exps=!0,Q("delete",(function(e){this.arity="unary";var t=H(e,150);return t?("."!==t.id&&"["!==t.id&&M("W051"),this.first=t,t.identifier&&!u.isStrict()&&(t.forgiveUndef=!0),this):this})).exps=!0,Q("~",(function(e){return u.option.bitwise&&M("W016",this,"~"),this.arity="unary",this.right=H(e,150),this})),re("..."),Q("!",(function(e){return this.arity="unary",this.right=H(e,150),this.right||N("E041",this),!0===x[this.right.id]&&M("W018",this,"!"),this})),Q("typeof",(function(e){this.arity="unary";var t=H(e,150);return this.first=this.right=t,t||N("E041",this),t.identifier&&(t.forgiveUndef=!0),this})),Q("new",(function(e){var t=function(e,t,n){if(tt(u.tokens.next,".")){var r=u.tokens.curr.id;W(".");var i=ve(e);return u.tokens.curr.isMetaProperty=!0,t!==i?L("E057",u.tokens.prev,r,i):n(),u.tokens.curr}}(e,"target",(function(){u.inES6(!0)||M("W119",u.tokens.prev,"new.target","6");for(var e,t=u.funct;t&&(e=!t["(global)"],t["(arrow)"]);)t=t["(context)"];e||M("W136",u.tokens.prev,"new.target")}));if(t)return t;var n,r=H(e,155);if(r&&"function"!==r.id)if(r.identifier)switch(r.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":M("W053",u.tokens.prev,r.value);break;case"Symbol":u.inES6()&&M("W053",u.tokens.prev,r.value);break;case"Function":u.option.evil||M("W054");break;case"Date":case"RegExp":case"this":break;default:n=r.value.substr(0,1),u.option.newcap&&(n<"A"||n>"Z")&&!u.funct["(scope)"].isPredefined(r.value)&&M("W055",u.tokens.curr)}else"."!==r.id&&"["!==r.id&&"("!==r.id&&M("W056",u.tokens.curr);else u.option.supernew||M("W057",this);return"("===u.tokens.next.id||u.option.supernew||M("W058",u.tokens.curr,u.tokens.curr.value),this.first=this.right=r,this})),u.syntax.new.exps=!0;var Se=J("class",(function(e){var t,n,r=e&d.export;return u.inES6()||M("W104",u.tokens.curr,"class","6"),u.inClassBody=!0,u.tokens.next.identifier&&"extends"!==u.tokens.next.value&&(t=(n=u.tokens.next).value,ve(e),u.funct["(scope)"].addbinding(t,{type:"class",initialized:!1,token:n})),"extends"===u.tokens.next.value&&(W("extends"),H(e,0)),n&&(this.name=t,u.funct["(scope)"].initialize(t),r&&u.funct["(scope)"].setExported(t,n)),u.funct["(scope)"].stack(),Oe(this,e),this}));function Oe(e,t){var n,r,i,o,a,s,l=Object.create(null);for("{"===u.tokens.next.value?W("{"):(M("W116",u.tokens.curr,"identifier",u.tokens.next.type),W());"}"!==u.tokens.next.value;)switch(o=!1,a=!1,t&=~d.preAsync,"static"!==u.tokens.next.value||tt(B(),"(")||(o=!0,W()),"async"===u.tokens.next.value&&(tt(B(),"(")||(t|=d.preAsync,W(),q(u.tokens.curr),tt(u.tokens.next,"*")&&(a=!0,W("*"),u.inES9()||M("W119",u.tokens.next,"async generators","9")),u.inES8()||M("W119",u.tokens.curr,"async functions","8"))),"*"===u.tokens.next.value&&(a=!0,W()),"set"!==(i=u.tokens.next).value&&"get"!==i.value||tt(B(),"(")?r=null:(a&&L("E024",i,i.value),r=i.value,W(),i=u.tokens.next,o||"constructor"!==i.value?o&&"prototype"===i.value&&L("E049",i,"static class "+r+"ter method",i.value):L("E049",i,"class "+r+"ter method",i.value)),i.value){case";":M("W032",i),W();break;case"constructor":o?(Je(l,n=Pe(t),i,!0,o),Ae(e,t,n,a)):(a||t&d.preAsync||s?L("E024",i,i.value):s=!r&&!o,W(),Ae(e,t,u.nameStack.infer()));break;case"[":Ae(e,t,n=Qe(t),a);break;default:if(void 0===(n=Pe(t))){L("E024",i,i.value),W();break}r?(Ze(r,l,n,i,!0,o),n=u.nameStack.infer()):(o&&"prototype"===n&&L("E049",i,"static class method",n),Je(l,n,i,!0,o)),Ae(e,t,n,a)}W("}"),Re(l),u.inClassBody=!1,u.funct["(scope)"].unstack()}function Ae(e,t,n,r){if(r&&(u.inES6()||M("W119",u.tokens.curr,"function*","6")),"("!==u.tokens.next.value){if(L("E054",u.tokens.next,u.tokens.next.value),W(),"{"===u.tokens.next.value)return W(),void("}"===u.tokens.next.value&&(M("W116",u.tokens.next,"(",u.tokens.next.value),W(),ve(t),W()));for(;"("!==u.tokens.next.value;)W()}De(t,{name:n,type:r?"generator":null,isMethod:!0,statement:e})}function je(e){var t,n=u.tokens.next,r=-1;do{"("===n.value?e+=1:")"===n.value&&(e-=1),t=n,n=B(r+=1)}while((0!==e||")"!==t.value)&&"(end)"!==n.type);return n}function Pe(e,t){var n,r=!0;return(n="object"==typeof t?t:he(e,!0,r=t))?"object"==typeof n&&("(string)"===n.id||"(identifier)"===n.id?n=n.value:"(number)"===n.id&&(n=n.value.toString())):"(string)"===u.tokens.next.id?(n=u.tokens.next.value,r||W()):"(number)"===u.tokens.next.id&&(n=u.tokens.next.value.toString(),r||W()),"hasOwnProperty"===n&&M("W001"),n}function Ne(e,t,n){var i={"(name)":e,"(breakage)":0,"(loopage)":0,"(isStrict)":"unknown","(global)":!1,"(line)":null,"(character)":null,"(metrics)":null,"(statement)":null,"(context)":null,"(scope)":null,"(comparray)":null,"(yielded)":null,"(arrow)":null,"(async)":null,"(params)":null};return t&&r.extend(i,{"(line)":t.line,"(character)":t.character,"(metrics)":Le(t)}),r.extend(i,n),i["(context)"]&&(i["(scope)"]=i["(context)"]["(scope)"],i["(comparray)"]=i["(context)"]["(comparray)"]),i}function Te(e){return e["(global)"]&&!e["(verb)"]}function Me(e,t){var n=this.context,r=this.noSubst,i=this.depth,o="number"==typeof t?null:t;if(!r)for(;!a();)!u.tokens.next.template||u.tokens.next.depth>i?H(e,0):W();return{id:"(template)",type:"(template)",tag:o};function a(){if(u.tokens.curr.template&&u.tokens.curr.tail&&u.tokens.curr.context===n)return!0;var e=u.tokens.next.template&&u.tokens.next.tail&&u.tokens.next.context===n;return e&&W(),e||u.tokens.next.isUnclosed}}function De(e,t){var i,o,a,s,l,c,f,p,h,m=u.option,v=u.ignored,g=e&d.preAsync;t&&(a=t.name,s=t.statement,l=t.classExprBinding,c="generator"===t.type,f="arrow"===t.type,p=t.isMethod,h=t.ignoreLoopFunc),e&=~d.noin,e&=~d.tryClause,g?e|=d.async:e&=~d.async,c?e|=d.yield:f||(e&=~d.yield),e&=~d.preAsync,u.option=Object.create(u.option),u.ignored=Object.create(u.ignored),u.funct=Ne(a||u.nameStack.infer(),u.tokens.next,{"(statement)":s,"(context)":u.funct,"(arrow)":f,"(method)":p,"(async)":g}),i=u.funct,o=u.tokens.curr,n.push(u.funct),u.funct["(scope)"].stack("functionouter");var y=!p&&(a||l);y&&u.funct["(scope)"].block.add(y,l?"class":"function",u.tokens.curr,!1),f||u.funct["(scope)"].funct.add("arguments","var",o,!1),u.funct["(scope)"].stack("functionparams");var b=function(e,t){var n,i,o,a=[],s=[],l=!1,c=!1,f=0,p=t&&t.loneArg,d=!1;if(p&&!0===p.identifier)return u.funct["(scope)"].addParam(p.value,p),{arity:1,params:[p.value],isSimple:!0};if(n=u.tokens.next,t&&t.parsedOpening||W("("),")"!==u.tokens.next.id)for(;;){f++;var h=[];if(c=me("rest"),r.includes(["{","["],u.tokens.next.id))for(o in d=!0,s=Be(e))(o=s[o]).id&&(a.push(o.id),h.push([o.id,o.token]));else if(i=ve(e))a.push(i),h.push([i,u.tokens.curr]);else for(;!et(u.tokens.next,[",",")"]);)W();if(l&&"="!==u.tokens.next.id&&L("W138",u.tokens.curr),"="===u.tokens.next.id&&(u.inES6()||M("W119",u.tokens.next,"default parameters","6"),c&&L("E062",u.tokens.next),W("="),l=!0,H(e,10)),h.forEach(m),","===u.tokens.next.id&&(c&&M("W131",u.tokens.next),W(","),G({allowTrailing:!0})),")"===u.tokens.next.id)return","!==u.tokens.curr.id||u.inES8()||M("W119",u.tokens.curr,"Trailing comma in function parameters","8"),W(")",n),{arity:f,params:a,isSimple:!d&&!c&&!l}}else W(")");function m(e){u.funct["(scope)"].addParam.apply(u.funct["(scope)"],e)}}(e,t);return b?(u.funct["(params)"]=b.params,u.funct["(hasSimpleParams)"]=b.isSimple,u.funct["(metrics)"].arity=b.arity,u.funct["(metrics)"].verifyMaxParametersPerFunction()):(u.funct["(params)"]=[],u.funct["(metrics)"].arity=0,u.funct["(hasSimpleParams)"]=!0),f&&(e&=~d.yield,u.inES6(!0)||M("W119",u.tokens.curr,"arrow function syntax (=>)","6"),t.loneArg||W("=>")),xe(e,!1,!0,!0,f),u.option.noyield||!c||u.funct["(yielded)"]||M("W124",u.tokens.curr),u.funct["(metrics)"].verifyMaxStatementsPerFunction(),u.funct["(metrics)"].verifyMaxComplexityPerFunction(),u.funct["(unusedOption)"]=u.option.unused,u.option=m,u.ignored=v,u.funct["(last)"]=u.tokens.curr.line,u.funct["(lastcharacter)"]=u.tokens.curr.character,u.funct["(scope)"].unstack(),u.funct["(scope)"].unstack(),u.funct=u.funct["(context)"],h||u.option.loopfunc||!u.funct["(loopage)"]||i["(outerMutables)"]&&M("W083",o,i["(outerMutables)"].join(", ")),i}function Le(e){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){u.option.maxstatements&&this.statementCount>u.option.maxstatements&&M("W071",e,this.statementCount)},verifyMaxParametersPerFunction:function(){r.isNumber(u.option.maxparams)&&this.arity>u.option.maxparams&&M("W072",e,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){u.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===u.option.maxdepth+1&&M("W073",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var t=u.option.maxcomplexity,n=this.ComplexityCount;t&&n>t&&M("W074",e,n)}}}function Fe(){u.funct["(metrics)"].ComplexityCount+=1}function Ie(e){if(e&&!e.paren)if(","!==e.id)switch(e.id){case"=":case"+=":case"-=":case"*=":case"%=":case"&=":case"|=":case"^=":case"/=":u.option.boss||M("W084",e)}else Ie(e.right)}function Re(e){if(u.inES5())for(var t in e)e[t]&&e[t].setterToken&&!e[t].getterToken&&!e[t].static&&M("W078",e[t].setterToken)}function Be(e,t){var n=t&&t.assignment;return e&=~d.noin,u.inES6()||M("W104",u.tokens.curr,n?"destructuring assignment":"destructuring binding","6"),function e(t,n){var r,i,o,a,s=[],l=n&&n.openingParsed,c=n&&n.assignment,f=c?{assignment:c}:null,p=l?u.tokens.curr:u.tokens.next,d=function(){var n;if(et(u.tokens.next,["[","{"]))for(r=e(t,f),i=0;i<r.length;i++)s.push({id:r[i].id,token:r[i].token});else if(tt(u.tokens.next,","))s.push({id:null,token:u.tokens.curr});else if(tt(u.tokens.next,"("))W("("),d(),W(")");else{if(c){var o=H(t,20);o&&(ue(t,o),o.identifier&&(n=o.value))}else n=ve(t);n&&s.push({id:n,token:u.tokens.curr})}},h=function(e){var t,n;if(tt(u.tokens.next,"["))W("["),H(e,10),W("]"),W(":"),d();else if("(string)"===u.tokens.next.id||"(number)"===u.tokens.next.id)W(),W(":"),d();else{var r=me("rest");r?(u.inES9()||M("W119",u.tokens.next,"object rest property","9"),"(identifier)"===u.tokens.next.type?t=ve(e):L("E030",n=H(e,10),n.value)):t=ve(e),!r&&tt(u.tokens.next,":")?(W(":"),d()):t&&(c&&ue(e,u.tokens.curr),s.push({id:t,token:u.tokens.curr})),r&&tt(u.tokens.next,",")&&M("W130",u.tokens.next)}};if(tt(p,"[")){l||W("["),tt(u.tokens.next,"]")&&M("W137",u.tokens.curr);for(var m=!1;!tt(u.tokens.next,"]");){var v=me("rest");d(),v&&!m&&tt(u.tokens.next,",")&&(M("W130",u.tokens.next),m=!0),!v&&tt(u.tokens.next,"=")&&(tt(u.tokens.prev,"...")?W("]"):W("="),o=u.tokens.prev,(a=H(t,10))&&a.identifier&&"undefined"===a.value&&M("W080",o,o.value)),tt(u.tokens.next,"]")||W(",")}W("]")}else if(tt(p,"{")){for(l||W("{"),tt(u.tokens.next,"}")&&M("W137",u.tokens.curr);!tt(u.tokens.next,"}")&&(h(t),tt(u.tokens.next,"=")&&(W("="),o=u.tokens.prev,(a=H(t,10))&&a.identifier&&"undefined"===a.value&&M("W080",o,o.value)),tt(u.tokens.next,"}")||(W(","),!tt(u.tokens.next,"}"))););W("}")}return s}(e,t)}function $e(e,t){var n=t.first;n&&r.zip(e,Array.isArray(n)?n:[n]).forEach((function(e){var t=e[0],n=e[1];t&&n?t.first=n:t&&t.first&&!n&&M("W080",t.first,t.first.value)}))}function We(e,t,n){var i,o,a,s,l=n&d.noin,c=n&d.export,f="let"===e,p="const"===e;for(u.inES6()||M("W104",u.tokens.curr,e,"6"),f&&He()&&(W("("),u.funct["(scope)"].stack(),s=!0,t.declaration=!1),t.first=[];;){var h=[];for(var m in r.includes(["{","["],u.tokens.next.value)?(i=Be(n),o=!1):(i=[{id:ve(n),token:u.tokens.curr}],o=!0),!l&&p&&"="!==u.tokens.next.id&&M("E012",u.tokens.curr,u.tokens.curr.value),i)i.hasOwnProperty(m)&&("let"===(m=i[m]).id&&M("W024",m.token,m.id),u.funct["(scope)"].block.isGlobal()&&!1===w[m.id]&&M("W079",m.token,m.id),m.id&&(u.funct["(scope)"].addbinding(m.id,{type:e,token:m.token}),h.push(m.token)));if("="===u.tokens.next.id){t.hasInitializer=!0,W("="),!l&&"="===B(0).id&&u.tokens.next.identifier&&M("W120",u.tokens.next,u.tokens.next.value);var v=u.tokens.prev;(a=H(n,10))&&(a.identifier&&"undefined"===a.value&&M("W080",v,v.value),o||$e(h,a))}if("in"!==u.tokens.next.value&&"of"!==u.tokens.next.value)for(m in i)i.hasOwnProperty(m)&&(m=i[m],u.funct["(scope)"].initialize(m.id),o&&c&&u.funct["(scope)"].setExported(m.token.value,m.token));if(t.first=t.first.concat(h),","!==u.tokens.next.id)break;t.hasComma=!0,W(","),G()}return s&&(W(")"),xe(n,!0,!0),t.block=!0,u.funct["(scope)"].unstack()),t}Se.exps=!0,Se.declaration=!0,Q("class",(function(e){var t,n;return u.inES6()||M("W104",u.tokens.curr,"class","6"),u.inClassBody=!0,u.tokens.next.identifier&&"extends"!==u.tokens.next.value&&(t=(n=u.tokens.next).value,ve(e)),"extends"===u.tokens.next.value&&(W("extends"),H(e,0)),u.funct["(scope)"].stack(),n&&(this.name=t,u.funct["(scope)"].addbinding(t,{type:"class",initialized:!0,token:n}),u.funct["(scope)"].block.use(t,n)),Oe(this,e),this})),Q("void").exps=!0,re(".",(function(e,t,n){var r=ve(e,!0);return"string"==typeof r&&ke(r),n.left=t,n.right=r,r&&"hasOwnProperty"===r&&"="===u.tokens.next.value&&M("W001"),!t||"arguments"!==t.value||"callee"!==r&&"caller"!==r?u.option.evil||!t||"document"!==t.value||"write"!==r&&"writeln"!==r||M("W060",t):u.option.noarg?M("W059",t,r):u.isStrict()&&L("E008"),u.option.evil||"eval"!==r&&"execScript"!==r||le(t,u)&&M("W061"),n}),160,!0),re("(",(function(e,t,n){u.option.immed&&t&&!t.immed&&"function"===t.id&&M("W062"),u.option.asi&&et(u.tokens.prev,[")","]"])&&!V(u.tokens.prev,u.tokens.curr)&&M("W014",u.tokens.curr,u.tokens.curr.id);var r=0,i=[];if(t&&"(identifier)"===t.type&&t.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1==="Array Number String Boolean Date Object Error Symbol".indexOf(t.value)&&("Math"===t.value?M("W063",t):u.option.newcap&&M("W064",t)),")"!==u.tokens.next.id)for(;me("spread"),i[i.length]=H(e,10),r+=1,","===u.tokens.next.id;)if(W(","),G({allowTrailing:!0}),")"===u.tokens.next.id){u.inES8()||M("W119",u.tokens.curr,"Trailing comma in arguments lists","8");break}return W(")"),"object"==typeof t&&(u.inES5()||"parseInt"!==t.value||1!==r||M("W065",u.tokens.curr),u.option.evil||("eval"===t.value||"Function"===t.value||"execScript"===t.value?M("W061",t):(!i[0]||"(string)"!==i[0].id||"setTimeout"!==t.value&&"setInterval"!==t.value)&&(!i[0]||"(string)"!==i[0].id||"."!==t.value||"window"!==t.left.value||"setTimeout"!==t.right&&"setInterval"!==t.right)||(M("W066",t),I(t,i[0]))),t.identifier||"."===t.id||"["===t.id||"=>"===t.id||"("===t.id||"&&"===t.id||"||"===t.id||"?"===t.id||"async"===t.id||u.inES6()&&t["(name)"]||M("W067",n)),n.left=t,n}),155,!0).exps=!0,Q("(",(function(e,t){var n,r,i,o,a=u.tokens.curr,s=u.tokens.prev,l=!u.option.singleGroups,c=je(1);if("function"===u.tokens.next.id&&(r=u.tokens.next.immed=!0),"=>"===c.value)return c.funct=De(e,{type:"arrow",parsedOpening:!0}),c;if(")"!==u.tokens.next.id){if(n=H(e,0),W(")",this),n){if(n.paren=!0,u.option.immed&&n&&"function"===n.id&&"("!==u.tokens.next.id&&"."!==u.tokens.next.id&&"["!==u.tokens.next.id&&M("W068",this),","===n.id){for(i=n.left;","===i.id;)i=i.left;o=n.right}else i=o=n,l||(r||(r="async"===n.id),l=a.beginsStmt&&("{"===n.id||r)||r&&(!z()||"}"!==u.tokens.prev.id)||"=>"===n.id&&!z()||"{"===n.id&&"=>"===s.id||oe(n)&&"**"===u.tokens.next.id||"(number)"===n.type&&tt(c,".")&&/^\d+$/.test(n.value)||a.beginsStmt&&"="===n.id&&"{"===n.left.id);var f;return!l&&((f=i).first||f.right||f.left||"yield"===f.id||"await"===f.id||i!==o)&&(l=t>i.lbp||t>0&&t===i.lbp||!z()&&o.rbp<u.tokens.next.lbp),l||M("W126",a),n}}else W(")")})),function(e){var t=X(e,42);t.infix=!0,t.led=function(e,t){return U(u.tokens.prev,u.tokens.curr),this.left=t,this.right=De(e,{type:"arrow",loneArg:t}),this}}("=>"),re("[",(function(e,t,n){var r,i;return u.option.asi&&et(u.tokens.prev,[")","]"])&&!V(u.tokens.prev,u.tokens.curr)&&M("W014",u.tokens.curr,u.tokens.curr.id),(r=H(e&~d.noin,10))&&"(string)"===r.type&&(u.option.evil||"eval"!==r.value&&"execScript"!==r.value||le(t,u)&&M("W061"),ke(r.value),!u.option.sub&&l.identifier.test(r.value)&&((i=u.syntax[r.value])?!O(e,i):"eval"!==r.value&&"arguments"!==r.value)&&M("W069",u.tokens.prev,r.value)),W("]",n),r&&"hasOwnProperty"===r.value&&"="===u.tokens.next.value&&M("W001"),n.left=t,n.right=r,n}),160,!0),Q("[",(function(e){var t=Ke();if(t.isCompArray)return u.option.esnext||u.inMoz()||M("W118",u.tokens.curr,"array comprehension"),function(e){var t={exps:!0};u.funct["(comparray)"].stack();var n=!1;return"for"!==u.tokens.next.value&&(n=!0,u.inMoz()||M("W116",u.tokens.next,"for",u.tokens.next.value),u.funct["(comparray)"].setState("use"),t.right=H(e,10)),W("for"),"each"===u.tokens.next.value&&(W("each"),u.inMoz()||M("W118",u.tokens.curr,"for each")),W("("),u.funct["(comparray)"].setState("define"),t.left=H(e,130),r.includes(["in","of"],u.tokens.next.value)?W():L("E045",u.tokens.curr),u.funct["(comparray)"].setState("generate"),H(e,10),W(")"),"if"===u.tokens.next.value&&(W("if"),W("("),u.funct["(comparray)"].setState("filter"),H(e,10),W(")")),n||(u.funct["(comparray)"].setState("use"),t.right=H(e,10)),W("]"),u.funct["(comparray)"].unstack(),t}(e);if(t.isDestAssign)return this.destructAssign=Be(e,{openingParsed:!0,assignment:!0}),this;var n=!V(u.tokens.curr,u.tokens.next);for(this.first=[],n&&(v+=u.option.indent,u.tokens.next.from===v+u.option.indent&&(v+=u.option.indent));"(end)"!==u.tokens.next.id;){for(;","===u.tokens.next.id;){if(!u.option.elision){if(u.inES5()){M("W128");do{W(",")}while(","===u.tokens.next.id);continue}M("W070")}W(",")}if("]"===u.tokens.next.id)break;if(me("spread"),this.first.push(H(e,10)),","!==u.tokens.next.id){u.option.trailingcomma&&u.inES5()&&D("W140",u.tokens.curr.line,u.tokens.curr.character);break}if(W(","),G({allowTrailing:!0}),"]"===u.tokens.next.id&&!u.inES5()){M("W070",u.tokens.curr);break}}return n&&(v-=u.option.indent),W("]",this),this})),function(e){e.nud=function(e){var t,n,r,i,o,a,s=!1,l=Object.create(null),c=!1;if((t=!V(u.tokens.curr,u.tokens.next))&&(v+=u.option.indent,u.tokens.next.from===v+u.option.indent&&(v+=u.option.indent)),Ke().isDestAssign)return this.destructAssign=Be(e,{openingParsed:!0,assignment:!0}),this;for(u.inObjectBody=!0;"}"!==u.tokens.next.id;){if(a=u.tokens.next.value,!u.tokens.next.identifier||","!==$().id&&"}"!==$().id)if(":"===B().id||"get"!==a&&"set"!==a)if(me("spread"))u.inES9()||M("W119",u.tokens.next,"object spread property","9"),H(e,10);else{if("async"!==u.tokens.next.id||et(B(),["(",":"])?c=!1:(u.inES8()||M("W119",u.tokens.next,"async functions","8"),c=!0,W(),q(u.tokens.curr)),"*"===u.tokens.next.value&&"(punctuator)"===u.tokens.next.type?(c&&!u.inES9()?M("W119",u.tokens.next,"async generators","9"):u.inES6()||M("W104",u.tokens.next,"generator functions","6"),W("*"),s=!0):s=!1,"["===u.tokens.next.id)r=Qe(e),u.nameStack.set(r);else if(u.nameStack.set(u.tokens.next),Je(l,r=Pe(e),u.tokens.next),"string"!=typeof r)break;"("===u.tokens.next.value?(u.inES6()||M("W104",u.tokens.curr,"concise methods","6"),De(c?e|d.preAsync:e,{isMethod:!0,type:s?"generator":null})):(W(":"),H(e,10))}else W(a),u.inES5()||L("E034"),"["===u.tokens.next.id?r=Qe(e):(r=Pe(e))||u.inES6()||L("E035"),r&&Ze(a,l,r,u.tokens.curr),o=u.tokens.next,i=(n=De(e,{isMethod:!0}))["(params)"],"get"===a&&r&&i.length?M("W076",o,i[0],r):"set"===a&&r&&1!==n["(metrics)"].arity&&M("W077",o,r);else u.inES6()||M("W104",u.tokens.next,"object short notation","6"),Je(l,r=Pe(e,!0),u.tokens.next),H(e,10);if(ke(r),","!==u.tokens.next.id){u.option.trailingcomma&&u.inES5()&&D("W140",u.tokens.curr.line,u.tokens.curr.character);break}W(","),G({allowTrailing:!0,property:!0}),","===u.tokens.next.id?M("W070",u.tokens.curr):"}"!==u.tokens.next.id||u.inES5()||M("W070",u.tokens.curr)}return t&&(v-=u.option.indent),W("}",this),Re(l),u.inObjectBody=!1,this},e.fud=function(){L("E036",u.tokens.curr)}}(Y("{"));var ze=K("const",(function(e){return We("const",this,e)}));function He(){return"("===u.tokens.next.id&&u.inMoz()}ze.exps=!0,ze.declaration=!0;var Ve,Ue,qe=K("let",(function(e){return We("let",this,e)}));qe.nud=function(e,t){if(!He())return this.exps=!1,u.syntax["(identifier)"].nud.apply(this,arguments);u.funct["(scope)"].stack(),W("("),u.tokens.prev.fud(e),W(")"),H(e,t),u.funct["(scope)"].unstack()},qe.meta={es5:!0,isFutureReservedWord:!1,strictOnly:!0},qe.exps=!0,qe.declaration=!0,qe.useFud=function(e){var t=u.tokens.next;return!(this.line!==t.line&&!u.inES6())&&(t.identifier&&(!O(e,t)||"let"===t.id)||et(t,["{","["])||He())},K("var",(function(e){var t,n,i,a,s=e&d.noin,l=e&d.export;for(this.first=[];;){var c=[];for(var f in r.includes(["{","["],u.tokens.next.value)?(t=Be(e),n=!1):(t=[],(a=ve(e))&&t.push({id:a,token:u.tokens.curr}),n=!0),u.option.varstmt&&M("W132",this),t)t.hasOwnProperty(f)&&(f=t[f],u.funct["(global)"]&&!u.impliedClosure()&&(!1===w[f.id]?M("W079",f.token,f.id):!1===u.option.futurehostile&&(!u.inES5()&&!1===o.ecmaIdentifiers[5][f.id]||!u.inES6()&&!1===o.ecmaIdentifiers[6][f.id])&&M("W129",f.token,f.id)),f.id&&(u.funct["(scope)"].addbinding(f.id,{type:"var",token:f.token}),n&&l&&u.funct["(scope)"].setExported(f.id,f.token),c.push(f.token)));if("="===u.tokens.next.id&&(this.hasInitializer=!0,u.nameStack.set(u.tokens.curr),W("="),"="===B(0).id&&u.tokens.next.identifier&&((s||u.funct["(params)"])&&-1!==u.funct["(params)"].indexOf(u.tokens.next.value)||M("W120",u.tokens.next,u.tokens.next.value)),a=u.tokens.prev,(i=H(e,10))&&(!u.funct["(loopage)"]&&i.identifier&&"undefined"===i.value&&M("W080",a,a.value),n||$e(c,i))),this.first=this.first.concat(c),","!==u.tokens.next.id)break;this.hasComma=!0,W(","),G()}return this})).exps=!0,J("function",(function(e){var t=e&d.export,n=!1,r=e&d.preAsync,i="";r&&(i="async "),"*"===u.tokens.next.value&&(r&&!u.inES9()?M("W119",u.tokens.prev,"async generators","9"):r||u.inES6(!0)||M("W119",u.tokens.next,"function*","6"),W("*"),i+="generator ",n=!0),i+="function",m&&M("W082",u.tokens.curr);var o=he(e)?u.tokens.curr:null;o?(u.funct["(scope)"].addbinding(o.value,{type:i,token:u.tokens.curr,initialized:!0}),t&&u.funct["(scope)"].setExported(o.value,u.tokens.prev)):t||M("W025");var a=De(e,{name:o&&o.value,statement:this,type:n?"generator":null,ignoreLoopFunc:m}),s=a["(isStrict)"]&&!u.isStrict();return o&&("arguments"===a["(name)"]||"eval"===a["(name)"])&&s&&L("E008",o),"("===u.tokens.next.id&&u.tokens.next.line===u.tokens.curr.line&&L("E039"),this})).declaration=!0,Q("function",(function(e){var t=!1,n=e&d.preAsync;"*"===u.tokens.next.value&&(n&&!u.inES9()?M("W119",u.tokens.prev,"async generators","9"):n||u.inES6(!0)||M("W119",u.tokens.curr,"function*","6"),W("*"),t=!0);var r=he(n?e|d.async:e)?u.tokens.curr:null,i=De(e,{name:r&&r.value,type:t?"generator":null});return t&&r&&"yield"===r.value&&L("E024",r,"yield"),r&&("arguments"===i["(name)"]||"eval"===i["(name)"])&&i["(isStrict)"]&&L("E008",r),this})),J("if",(function(e){var t=u.tokens.next;Fe(),W("(");var n=H(e,0);n||N("E041",this),Ie(n);var r=null;u.option.forin&&u.forinifcheckneeded&&(u.forinifcheckneeded=!1,r=u.forinifchecks[u.forinifchecks.length-1],"(punctuator)"===n.type&&"!"===n.value?r.type="(negative)":r.type="(positive)"),W(")",t);var i=xe(e,!0,!0);return r&&"(negative)"===r.type&&i&&i[0]&&"(identifier)"===i[0].type&&"continue"===i[0].value&&(r.type="(negative-with-continue)"),"else"===u.tokens.next.id&&(W("else"),"if"===u.tokens.next.id||"switch"===u.tokens.next.id?be(e):xe(e,!0,!0)),this})),J("try",(function(e){var t,n=!1;function i(){if(W("("),et(u.tokens.next,["[","{"])){var t=Be(e);r.each(t,(function(e){e.id&&u.funct["(scope)"].addParam(e.id,e,"exception")}))}else"(identifier)"!==u.tokens.next.type?M("E030",u.tokens.next,u.tokens.next.value):u.funct["(scope)"].addParam(ve(e),u.tokens.curr,"exception");"if"===u.tokens.next.value&&(u.inMoz()||M("W118",u.tokens.curr,"catch filter"),W("if"),H(e,0)),W(")")}for(xe(e|d.tryClause,!0);"catch"===u.tokens.next.id;)Fe(),t&&!u.inMoz()&&M("W118",u.tokens.next,"multiple catch blocks"),W("catch"),"{"!==u.tokens.next.id?(u.funct["(scope)"].stack("catchparams"),n=!0,i()):u.inES10()||M("W119",u.tokens.curr,"optional catch binding","10"),xe(e,!1),n&&(u.funct["(scope)"].unstack(),n=!1),t=!0;return"finally"===u.tokens.next.id?(W("finally"),void xe(e,!0)):(t||L("E021",u.tokens.next,"catch",u.tokens.next.value),this)})),J("while",(function(e){var t=u.tokens.next;return u.funct["(breakage)"]+=1,u.funct["(loopage)"]+=1,Fe(),W("("),Ie(H(e,0)),W(")",t),xe(e,!0,!0),u.funct["(breakage)"]-=1,u.funct["(loopage)"]-=1,this})).labelled=!0,J("with",(function(e){var t=u.tokens.next;return u.isStrict()?L("E010",u.tokens.curr):u.option.withstmt||M("W085",u.tokens.curr),W("("),H(e,0),W(")",t),xe(e,!0,!0),this})),J("switch",(function(e){var t=u.tokens.next,n=!1,r=!1,i=!1;for(u.funct["(breakage)"]+=1,W("("),Ie(H(e,0)),W(")",t),t=u.tokens.next,W("{"),u.funct["(scope)"].stack(),u.tokens.next.from===v&&(r=!0),r||(v+=u.option.indent);;)switch(u.tokens.next.id){case"case":switch(u.funct["(verb)"]){case"yield":case"break":case"case":case"continue":case"return":case"switch":case"throw":break;case"default":u.option.leanswitch&&M("W145",u.tokens.next);break;default:u.tokens.curr.caseFallsThrough||M("W086",u.tokens.curr,"case")}W("case"),H(e,0),i=!0,Fe(),n=!0,W(":"),u.funct["(verb)"]="case";break;case"default":switch(u.funct["(verb)"]){case"yield":case"break":case"continue":case"return":case"throw":break;case"case":u.option.leanswitch&&M("W145",u.tokens.curr);break;default:i&&!u.tokens.curr.caseFallsThrough&&M("W086",u.tokens.curr,"default")}W("default"),n=!0,W(":"),u.funct["(verb)"]="default";break;case"}":return r||(v-=u.option.indent),W("}",t),u.funct["(scope)"].unstack(),u.funct["(breakage)"]-=1,void(u.funct["(verb)"]=void 0);case"(end)":return void L("E023",u.tokens.next,"}");default:if(v+=u.option.indent,n)switch(u.tokens.curr.id){case",":return void L("E040");case":":n=!1,_e(e);break;default:return void L("E025",u.tokens.curr)}else{if(":"!==u.tokens.curr.id)return void L("E021",u.tokens.next,"case",u.tokens.next.value);W(":"),L("E024",u.tokens.curr,":"),_e(e)}v-=u.option.indent}})).labelled=!0,K("debugger",(function(){return u.option.debug||M("W087",this),this})).exps=!0,function(){var e=K("do",(function(e){u.funct["(breakage)"]+=1,u.funct["(loopage)"]+=1,Fe(),this.first=xe(e,!0,!0),W("while");var t=u.tokens.next;return W("("),Ie(H(e,0)),W(")",t),u.funct["(breakage)"]-=1,u.funct["(loopage)"]-=1,this}));e.labelled=!0,e.exps=!0}(),J("for",(function(e){var t,n,i,o,a,s,l,c,f=u.tokens.next,p=!1,h=!1,m=null;"each"===f.value&&(m=f,W("each"),u.inMoz()||M("W118",u.tokens.curr,"for each")),u.tokens.next.identifier&&"await"===u.tokens.next.value&&(W("await"),h=!0,e&d.async?u.inES9()||M("W119",u.tokens.curr,"asynchronous iteration","9"):L("E024",u.tokens.curr,"await")),Fe(),W("(");var v=B(),g=e|d.noin;if("var"===u.tokens.next.id)W("var"),i=(c=u.tokens.curr.fud(g)).hasComma?c:null,o=c.hasInitializer?c:null;else if("const"===u.tokens.next.id||"let"===u.tokens.next.id&&(v.identifier&&"in"!==v.id||et(v,["{","["])))W(u.tokens.next.id),p=!0,u.funct["(scope)"].stack(),i=(c=u.tokens.curr.fud(g)).hasComma?c:null,o=c.hasInitializer?c:null;else if(!tt(u.tokens.next,";")){for(s=[];"in"!==u.tokens.next.value&&"of"!==u.tokens.next.value&&!tt(u.tokens.next,";");)et(u.tokens.next,["{","["])?(Be(g,{assignment:!0}).forEach((function(e){this.push(e.token)}),s),tt(u.tokens.next,"=")&&(W("="),o=u.tokens.curr,H(g,10))):(l=H(g,10))&&("(identifier)"===l.type?s.push(l):tt(l,"=")&&(o=l,s.push(l))),tt(u.tokens.next,",")&&(W(","),i||(i=u.tokens.curr));o||i||s.forEach((function(e){u.funct["(scope)"].has(e.value)||M("W088",e,e.value)}))}if(n=u.tokens.next,h&&"of"!==n.value&&L("E066",n),r.includes(["in","of"],n.value)){if("of"===n.value?(a=20,u.inES6()||M("W104",n,"for of","6")):a=0,i&&L("W133",i,n.value,"more than one ForBinding"),o&&L("W133",o,n.value,"initializer is forbidden"),!l||i||o||ue(e,l,n),W(n.value),H(e,a),W(")",f),"in"===n.value&&u.option.forin&&(u.forinifcheckneeded=!0,void 0===u.forinifchecks&&(u.forinifchecks=[]),u.forinifchecks.push({type:"(none)"})),u.funct["(breakage)"]+=1,u.funct["(loopage)"]+=1,t=xe(e,!0,!0),"in"===n.value&&u.option.forin){if(u.forinifchecks&&u.forinifchecks.length>0){var y=u.forinifchecks.pop();(t&&t.length>0&&("object"!=typeof t[0]||"if"!==t[0].value)||"(positive)"===y.type&&t.length>1||"(negative)"===y.type)&&M("W089",this)}u.forinifcheckneeded=!1}u.funct["(breakage)"]-=1,u.funct["(loopage)"]-=1}else{if(m&&L("E045",m),W(";"),c&&c.first&&c.first[0]&&("const"!==c.value||c.hasInitializer||M("E012",c,c.first[0].value),c.first.forEach((function(e){u.funct["(scope)"].initialize(e.value)}))),u.funct["(loopage)"]+=1,";"!==u.tokens.next.id&&Ie(H(e,0)),W(";"),";"===u.tokens.next.id&&L("E021",u.tokens.next,")",";"),")"!==u.tokens.next.id)for(;H(e,0),","===u.tokens.next.id;)W(","),G();W(")",f),u.funct["(breakage)"]+=1,xe(e,!0,!0),u.funct["(breakage)"]-=1,u.funct["(loopage)"]-=1}return p&&u.funct["(scope)"].unstack(),this})).labelled=!0,K("break",(function(){var e=u.tokens.next.value;return u.tokens.next.identifier&&V(u.tokens.curr,u.tokens.next)?(u.funct["(scope)"].funct.hasLabel(e)||M("W090",u.tokens.next,e),this.first=u.tokens.next,W()):0===u.funct["(breakage)"]&&M("W052",u.tokens.next,this.value),ge(this),this})).exps=!0,K("continue",(function(){var e=u.tokens.next.value;return 0!==u.funct["(breakage)"]&&u.funct["(loopage)"]||M("W052",u.tokens.next,this.value),u.tokens.next.identifier&&V(u.tokens.curr,u.tokens.next)&&(u.funct["(scope)"].funct.hasLabel(e)||M("W090",u.tokens.next,e),this.first=u.tokens.next,W()),ge(this),this})).exps=!0,K("return",(function(e){return V(this,u.tokens.next)?";"===u.tokens.next.id||u.tokens.next.reach||(this.first=H(e,0),!this.first||"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||u.option.boss||M("W093",this.first),u.option.noreturnawait&&e&d.async&&!(e&d.tryClause)&&this.first.identifier&&"await"===this.first.value&&M("W146",this.first)):"(punctuator)"===u.tokens.next.type&&["[","{","+","-"].indexOf(u.tokens.next.value)>-1&&q(this),ge(this),this})).exps=!0,Q("await",(function(e){return e&d.async?(u.funct["(params)"]||L("E024",this,"await"),H(e,10),this):(this.exps=!1,u.syntax["(identifier)"].nud.apply(this,arguments))})).exps=!0,(Ve=Q("async",(function(e,t){return this.isFunc(e)?(u.inES8()||M("W119",this,"async functions","8"),e|=d.preAsync,this.func=H(e,t),this.identifier=!1,this):(this.exps=!1,u.syntax["(identifier)"].nud.apply(this,arguments))}))).meta={es5:!0,isFutureReservedWord:!0,strictOnly:!0},Ve.isFunc=function(){var e=u.tokens.next;return this.line===e.line&&("function"===e.id||("("===e.id?"=>"===je(0).id:!!e.identifier&&"=>"===B().id))},Ve.useFud=Ve.isFunc,Ve.fud=function(e){return u.inES8()||M("W119",this,"async functions","8"),e|=d.preAsync,e|=d.initial,this.func=H(e,0),this.block=this.func.block,this.exps=this.func.exps,this},Ve.exps=!0,delete Ve.reserved,(Ue=Q("yield",(function(e){if(u.inMoz())return Ge.call(this,e);if(!(e&d.yield))return this.exps=!1,u.syntax["(identifier)"].nud.apply(this,arguments);var t=u.tokens.prev;return u.funct["(params)"]||L("E024",this,"yield"),!this.beginsStmt&&t.lbp>30&&!et(t,["("])&&L("E061",this),u.inES6()||M("W104",u.tokens.curr,"yield","6"),u.funct["(yielded)"]=!0,"*"===u.tokens.next.value&&W("*"),("*"===u.tokens.curr.value||V(u.tokens.curr,u.tokens.next))&&(u.tokens.next.nud?(U(u.tokens.curr,u.tokens.next),this.first=H(e,10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||u.option.boss||M("W093",this.first)):u.tokens.next.led&&","!==u.tokens.next.id&&L("W017",u.tokens.next)),this}))).rbp=Ue.lbp=25,Ue.exps=!0;var Ge=function(e){var t=u.tokens.prev;!u.inES6(!0)||e&d.yield||L("E046",u.tokens.curr,"yield"),u.funct["(yielded)"]=!0;var n=!1;return"*"===u.tokens.next.value&&(n=!0,W("*")),V(this,u.tokens.next)?((n||";"!==u.tokens.next.id&&!u.option.asi&&!u.tokens.next.reach&&u.tokens.next.nud)&&(U(u.tokens.curr,u.tokens.next),this.first=H(e,10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||u.option.boss||M("W093",this.first)),")"!==u.tokens.next.id&&(t.lbp>30||!t.assign&&!z())&&L("E050",this)):u.option.asi||q(this),this};function Xe(e,t){return("call"!==e||!t["(async)"])&&(!("property"!==e||!t["(method)"])||(!("call"!==e||!t["(statement)"]||"class"!==t["(statement)"].id)||!!t["(arrow)"]&&Xe(e,t["(context)"])))}K("throw",(function(e){return q(this),this.first=H(e,20),ge(this),this})).exps=!0,K("import",(function(e){if(u.funct["(scope)"].block.isGlobal()||L("E053",u.tokens.curr,"Import"),u.inES6()||M("W119",u.tokens.curr,"import","6"),"(string)"===u.tokens.next.type)return W("(string)"),this;if(u.tokens.next.identifier){if(this.name=ve(e),u.funct["(scope)"].addbinding(this.name,{type:"import",initialized:!0,token:u.tokens.curr}),","!==u.tokens.next.value)return W("from"),W("(string)"),this;W(",")}if("*"===u.tokens.next.id)W("*"),W("as"),u.tokens.next.identifier&&(this.name=ve(e),u.funct["(scope)"].addbinding(this.name,{type:"import",initialized:!0,token:u.tokens.curr}));else for(W("{");;){if("}"===u.tokens.next.value){W("}");break}var t;if("default"===u.tokens.next.type?(t="default",W("default")):t=ve(e),"as"===u.tokens.next.value&&(W("as"),t=ve(e)),u.funct["(scope)"].addbinding(t,{type:"import",initialized:!0,token:u.tokens.curr}),","!==u.tokens.next.value){if("}"===u.tokens.next.value){W("}");break}L("E024",u.tokens.next,u.tokens.next.value);break}W(",")}return W("from"),W("(string)"),this})).exps=!0,K("export",(function(e){var t,n,r,i=!0;if(e|=d.export,u.inES6()||(M("W119",u.tokens.curr,"export","6"),i=!1),u.funct["(scope)"].block.isGlobal()||(L("E053",u.tokens.curr,"Export"),i=!1),"*"===u.tokens.next.value)return W("*"),W("from"),W("(string)"),this;if("default"===u.tokens.next.type){u.nameStack.set(u.tokens.next),W("default");var o=u.tokens.next.id;return"function"===o?(this.block=!0,W("function"),u.syntax.function.fud(e)):"async"===o&&"function"===B().id?(this.block=!0,W("async"),W("function"),u.syntax.function.fud(e|d.preAsync)):"class"===o?(this.block=!0,W("class"),u.syntax.class.fud(e)):(t=H(e,10)).identifier&&(n=t.value,u.funct["(scope)"].setExported(n,t)),this}if("{"===u.tokens.next.value){W("{");for(var a=[];!tt(u.tokens.next,"}");)u.tokens.next.identifier||L("E030",u.tokens.next,u.tokens.next.value),W(),a.push(u.tokens.curr),"as"===u.tokens.next.value&&(W("as"),u.tokens.next.identifier||L("E030",u.tokens.next,u.tokens.next.value),W()),tt(u.tokens.next,"}")||W(",");return W("}"),"from"===u.tokens.next.value?(W("from"),r=u.tokens.next,W("(string)")):i&&a.forEach((function(e){u.funct["(scope)"].setExported(e.value,e)})),0===a.length&&(r?M("W142",this,"export",r.value):M("W141",this,"export")),this}return"var"===u.tokens.next.id?(W("var"),u.tokens.curr.fud(e)):"let"===u.tokens.next.id?(W("let"),u.tokens.curr.fud(e)):"const"===u.tokens.next.id?(W("const"),u.tokens.curr.fud(e)):"function"===u.tokens.next.id?(this.block=!0,W("function"),u.syntax.function.fud(e)):"async"===u.tokens.next.id&&"function"===B().id?(this.block=!0,W("async"),W("function"),u.syntax.function.fud(e|d.preAsync)):"class"===u.tokens.next.id?(this.block=!0,W("class"),u.syntax.class.fud(e)):L("E024",u.tokens.next,u.tokens.next.value),this})).exps=!0;var Ye=function(){var e=u.tokens.next;return et(e,["[","."])?Xe("property",u.funct)||L("E063",this):tt(e,"(")?Xe("call",u.funct)||L("E064",this):L("E024",e,e.value||e.id),this};ne("abstract"),ne("boolean"),ne("byte"),ne("char"),ne("double"),ne("enum",{es5:!0}),ne("export",{es5:!0}),ne("extends",{es5:!0}),ne("final"),ne("float"),ne("goto"),ne("implements",{es5:!0,strictOnly:!0}),ne("import",{es5:!0}),ne("int"),ne("interface",{es5:!0,strictOnly:!0}),ne("long"),ne("native"),ne("package",{es5:!0,strictOnly:!0}),ne("private",{es5:!0,strictOnly:!0}),ne("protected",{es5:!0,strictOnly:!0}),ne("public",{es5:!0,strictOnly:!0}),ne("short"),ne("static",{es5:!0,strictOnly:!0}),ne("synchronized"),ne("transient"),ne("volatile");var Ke=function(){var e,t,n,r=-1,i=0,o={};et(u.tokens.curr,["[","{"])&&(i+=1);do{if(n=-1===r?u.tokens.curr:e,e=-1===r?u.tokens.next:B(r),t=B(r+1),r+=1,et(e,["[","{"])?i+=1:et(e,["]","}"])&&(i-=1),1===i&&e.identifier&&"for"===e.value&&!tt(n,".")){o.isCompArray=!0,o.notJson=!0;break}if(0===i&&et(e,["}","]"])){if("="===t.value){o.isDestAssign=!0,o.notJson=!0;break}if("."===t.value){o.notJson=!0;break}}tt(e,";")&&(o.notJson=!0)}while(i>0&&"(end)"!==e.id);return o};function Je(e,t,n,r,i,o){n.identifier&&(t=n.value);var a=t;if(r&&i&&(a="static "+t),e[a]&&"__proto__"!==t&&!o){var s=["key","class method","static class method"];s=s[(r||!1)+(i||!1)],M("W075",u.tokens.next,s,t)}else e[a]=Object.create(null);e[a].basic=!0,e[a].basictkn=n}function Ze(e,t,n,r,i,o){var a="get"===e?"getterToken":"setterToken",s=n;if(u.tokens.curr.accessorType=e,u.nameStack.set(r),i&&o&&(s="static "+n),t[s]){if((t[s].basic||t[s][a])&&"__proto__"!==n){var l="";i?(o&&(l+="static "),l+=e+"ter method"):l="key",M("W075",u.tokens.next,l,n)}}else t[s]=Object.create(null);t[s][a]=r,o&&(t[s].static=!0)}function Qe(e){W("["),u.tokens.curr.delim=!0,u.tokens.curr.lbp=0,u.inES6()||M("W119",u.tokens.curr,"computed property names","6");var t=H(e&~d.noin,10);return W("]"),t}function et(e,t){return"(punctuator)"===e.type&&r.includes(t,e.value)}function tt(e,t){return"(punctuator)"===e.type&&e.value===t}function nt(e){var t=Ke();t.notJson?(!u.inES6()&&t.isDestAssign&&M("W104",u.tokens.curr,"destructuring assignment","6"),_e(e)):(u.option.laxbreak=!0,u.jsonMode=!0,function e(){function t(){var t={},n=u.tokens.next;if(W("{"),"}"!==u.tokens.next.id)for(;;){if("(end)"===u.tokens.next.id)L("E026",u.tokens.next,n.line);else{if("}"===u.tokens.next.id){M("W094",u.tokens.curr);break}","===u.tokens.next.id?L("E028",u.tokens.next):"(string)"!==u.tokens.next.id&&M("W095",u.tokens.next,u.tokens.next.value)}if(!0===t[u.tokens.next.value]?M("W075",u.tokens.next,"key",u.tokens.next.value):"__proto__"===u.tokens.next.value&&!u.option.proto||"__iterator__"===u.tokens.next.value&&!u.option.iterator?M("W096",u.tokens.next,u.tokens.next.value):t[u.tokens.next.value]=!0,W(),W(":"),e(),","!==u.tokens.next.id)break;W(",")}W("}")}function n(){var t=u.tokens.next;if(W("["),"]"!==u.tokens.next.id)for(;;){if("(end)"===u.tokens.next.id)L("E027",u.tokens.next,t.line);else{if("]"===u.tokens.next.id){M("W094",u.tokens.curr);break}","===u.tokens.next.id&&L("E028",u.tokens.next)}if(e(),","!==u.tokens.next.id)break;W(",")}W("]")}switch(u.tokens.next.id){case"{":t();break;case"[":n();break;case"true":case"false":case"null":case"(number)":case"(string)":W();break;case"-":W("-"),W("(number)");break;default:L("E003",u.tokens.next)}}())}var rt=function(){var e,t=function(){this.mode="use",this.variables=[]},n=[];function i(t){return 0===e.variables.filter((function(e){if(e.value===t&&!e.undef)return!0===e.unused&&(e.unused=!1),t})).length}return{stack:function(){e=new t,n.push(e)},unstack:function(){e.variables.filter((function(e){e.unused&&M("W098",e.token,e.token.raw_text||e.value),e.undef&&u.funct["(scope)"].block.use(e.value,e.token)})),n.splice(-1,1),e=n[n.length-1]},setState:function(t){r.includes(["use","define","generate","filter"],t)&&(e.mode=t)},check:function(t){if(e)return e&&"use"===e.mode?(i(t)&&e.variables.push({token:u.tokens.curr,value:t,undef:!0,unused:!1}),!0):e&&"define"===e.mode?(function(t){return 0!==e.variables.filter((function(e){if(e.value===t)return e.undef=!1,t})).length}(t)||e.variables.push({token:u.tokens.curr,value:t,undef:!1,unused:!0}),!0):e&&"generate"===e.mode?(u.funct["(scope)"].block.use(t,u.tokens.curr),!0):!(!e||"filter"!==e.mode)&&(i(t)&&u.funct["(scope)"].block.use(t,u.tokens.curr),!0)}}};var it=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},ot=function(i,a,l){var c,f,d,x,S,O;a=r.clone(a),u.reset(),S=u.option,O=u.ignored,a&&a.scope?h.scope=a.scope:(h.errors=[],h.internals=[],h.blacklist={},h.scope="(main)"),j(w=Object.create(null),o.ecmaIdentifiers[3]),j(w,o.reservedVars),t=Object.create(null);var A=Object.create(null);function T(e,t){e&&(Array.isArray(e)||"object"!=typeof e||(e=Object.keys(e)),e.forEach(t))}if(a)for(T([a.predef,a.globals],(function(e){T(e,(function(t){var n,r;"-"===t[0]?(n=t.slice(1),h.blacklist[n]=n,delete w[n]):(r=Object.getOwnPropertyDescriptor(e,t),w[t]=!!r&&r.value)}))})),T(a.exported||null,(function(e){A[e]=!0})),delete a.predef,delete a.exported,x=Object.keys(a),c=0;c<x.length;c++)if(/^-W\d{3}$/g.test(x[c]))O[x[c].slice(1)]=!0;else{var I=x[c];S[I]=a[I]}u.option=S,u.ignored=O,u.option.indent=u.option.indent||4,u.option.maxerr=u.option.maxerr||50,v=1;var R,B,$=p(u,w,A,t);if($.on("warning",(function(e){M.apply(null,[e.code,e.token].concat(e.data))})),$.on("error",(function(e){L.apply(null,[e.code,e.token].concat(e.data))})),u.funct=Ne("(global)",null,{"(global)":!0,"(scope)":$,"(comparray)":rt(),"(metrics)":Le(u.tokens.next)}),n=[u.funct],b={},_=null,m=!1,g=[],R=i,"[object String]"!==Object.prototype.toString.call(R)&&!Array.isArray(i))return F("E004",0),!1;for(B in e={get isJSON(){return u.jsonMode},getOption:function(e){return u.option[e]||null},getCache:function(e){return u.cache[e]},setCache:function(e,t){u.cache[e]=t},warn:function(e,t){D.apply(null,[e,t.line,t.char].concat(t.data))},on:function(e,t){e.split(" ").forEach(function(e){E.on(e,t)}.bind(this))}},E.removeAllListeners(),(k||[]).forEach((function(t){t(e)})),u.tokens.prev=u.tokens.curr=u.tokens.next=u.syntax["(begin)"],a&&a.ignoreDelimiters&&(Array.isArray(a.ignoreDelimiters)||(a.ignoreDelimiters=[a.ignoreDelimiters]),a.ignoreDelimiters.forEach((function(e){e.start&&e.end&&(f=it(e.start)+"[\\s\\S]*?"+it(e.end),d=new RegExp(f,"ig"),i=i.replace(d,(function(e){return e.replace(/./g," ")})))}))),(y=new s(i)).on("warning",(function(e){D.apply(null,[e.code,e.line,e.character].concat(e.data))})),y.on("error",(function(e){F.apply(null,[e.code,e.line,e.character].concat(e.data))})),y.on("fatal",(function(e){N("E041",e)})),y.on("Identifier",(function(e){E.emit("Identifier",e)})),y.on("String",(function(e){E.emit("String",e)})),y.on("Number",(function(e){E.emit("Number",e)})),a)r.has(a,B)&&C(B,!0,u.tokens.curr);if(a)for(B in a.unstable)r.has(a.unstable,B)&&C(B,!1,u.tokens.curr);try{switch(P(),j(w,l||{}),G.first=!0,W(),u.tokens.next.id){case"{":case"[":nt(0);break;default:we(),u.directive["use strict"]&&(u.allowsGlobalUsd()||M("W097",u.tokens.prev)),_e(0)}"(end)"!==u.tokens.next.id&&N("E041",u.tokens.curr),u.funct["(scope)"].unstack()}catch(e){if(!e||"JSHintError"!==e.name)throw e;var z=u.tokens.next||{};h.errors.push({scope:"(main)",raw:e.raw,code:e.code,reason:e.reason,line:e.line||z.line,character:e.character||z.from})}return"(main)"===h.scope&&function(e,t,n){var r,i,o,a;for(i=0;i<e.length;i+=1)for(a=e[i],t.scope=a.elem,r=h.errors.length,ot(a.code,t,n),o=r;o<h.errors.length;o+=1)h.errors[o].line+=a.token.line-1}(h.internals,a||{},l),0===h.errors.length};return ot.addModule=function(e){k.push(e)},ot.addModule(c.register),ot.data=function(){var e,t,r,i,o,a={functions:[],options:u.option};ot.errors.length&&(a.errors=ot.errors),u.jsonMode&&(a.json=!0);var s=u.funct["(scope)"].getImpliedGlobals();for(s.length>0&&(a.implieds=s),(o=u.funct["(scope)"].getUsedOrDefinedGlobals()).length>0&&(a.globals=o),r=1;r<n.length;r+=1)t=n[r],(e={}).name=t["(name)"],e.param=t["(params)"],e.line=t["(line)"],e.character=t["(character)"],e.last=t["(last)"],e.lastcharacter=t["(lastcharacter)"],e.metrics={complexity:t["(metrics)"].ComplexityCount,parameters:t["(metrics)"].arity,statements:t["(metrics)"].statementCount},a.functions.push(e);var l=u.funct["(scope)"].getUnuseds();for(i in l.length>0&&(a.unused=l),b)if("number"==typeof b[i]){a.member=b;break}return a},ot.jshint=ot,ot}());t&&(t.JSHINT=h)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function r(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}}).call(this,n(129))},function(e,t,n){"use strict";var r=n(79),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113,t.unstable_SuspenseList=60120;var u=60115,c=60116,f=60121;if(t.unstable_DebugTracingMode=60129,t.unstable_LegacyHidden=60131,"function"==typeof Symbol&&Symbol.for){var p=Symbol.for;i=p("react.element"),o=p("react.portal"),t.Fragment=p("react.fragment"),t.StrictMode=p("react.strict_mode"),t.Profiler=p("react.profiler"),a=p("react.provider"),s=p("react.context"),l=p("react.forward_ref"),t.Suspense=p("react.suspense"),t.unstable_SuspenseList=p("react.suspense_list"),u=p("react.memo"),c=p("react.lazy"),f=p("react.block"),t.unstable_DebugTracingMode=p("react.debug_trace_mode"),t.unstable_LegacyHidden=p("react.legacy_hidden")}var d="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var _=b.prototype=new y;_.constructor=b,r(_,g.prototype),_.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:w.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+O(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),A(a,t,n,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+O(s=e[u],u);l+=A(s,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(s=e.next()).done;)l+=A(s=s.value,t,n,c=r+O(s,u++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function j(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}function N(e){return{$$typeof:f,_data:e.load.apply(null,e.args),_render:e.render}}var T={current:null};function M(){var e=T.current;if(null===e)throw Error(h(321));return e}var D={transition:0},L={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:D,ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error(h(143));return e}},t.Component=g,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.unstable_block=function(e,t){return void 0===t?function(){return{$$typeof:f,_data:void 0,_render:e}}:function(){return{$$typeof:c,_payload:{load:t,args:arguments,render:e},_init:N}}},t.unstable_createMutableSource=function(e,t){return{_getVersion:t,_source:e,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}},t.unstable_startTransition=function(e){var t=D.transition;D.transition=1;try{e()}finally{D.transition=t}},t.unstable_useDeferredValue=function(e){return M().useDeferredValue(e)},t.unstable_useMutableSource=function(e,t,n){return M().useMutableSource(e,t,n)},t.unstable_useOpaqueIdentifier=function(){return M().useOpaqueIdentifier()},t.unstable_useTransition=function(){return M().useTransition()},t.useCallback=function(e,t){return M().useCallback(e,t)},t.useContext=function(e,t){return M().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return M().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return M().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return M().useLayoutEffect(e,t)},t.useMemo=function(e,t){return M().useMemo(e,t)},t.useReducer=function(e,t,n){return M().useReducer(e,t,n)},t.useRef=function(e){return M().useRef(e)},t.useState=function(e){return M().useState(e)},t.version="17.0.0-alpha.0-experimental-4ead6b530"},function(e,t,n){"use strict";var r=n(0),i=n(79),o=n(137);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,k=60106,E=60107,C=60108,S=60114,O=60109,A=60110,j=60112,P=60113,N=60120,T=60115,M=60116,D=60121,L=60128,F=60129,I=60130,R=60131;if("function"==typeof Symbol&&Symbol.for){var B=Symbol.for;x=B("react.element"),k=B("react.portal"),E=B("react.fragment"),C=B("react.strict_mode"),S=B("react.profiler"),O=B("react.provider"),A=B("react.context"),j=B("react.forward_ref"),P=B("react.suspense"),N=B("react.suspense_list"),T=B("react.memo"),M=B("react.lazy"),D=B("react.block"),B("react.scope"),L=B("react.opaque.id"),F=B("react.debug_trace_mode"),I=B("react.offscreen"),R=B("react.legacy_hidden")}var $,W="function"==typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=W&&e[W]||e["@@iterator"])?e:null}function H(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var V=!1;function U(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 22:return e=U(e.type._render,!1);case 1:return e=U(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case k:return"Portal";case S:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return G(e.type);case D:return G(e._render);case M:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=X(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=X(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+X(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:X(n)}}function ue(e,t){var n=X(t.value),r=X(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var xe=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ke(e,t){if(t){if(xe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Ee(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Oe=null,Ae=null;function je(e){if(e=ni(e)){if("function"!=typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=ii(t),Se(e.stateNode,e.type,t))}}function Pe(e){Oe?Ae?Ae.push(e):Ae=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=Ae;if(Ae=Oe=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function Te(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function De(){}var Le=Te,Fe=!1,Ie=!1;function Re(){null===Oe&&null===Ae||(De(),Ne())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=ii(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var $e=!1;if(f)try{var We={};Object.defineProperty(We,"passive",{get:function(){$e=!0}}),window.addEventListener("test",We,We),window.removeEventListener("test",We,We)}catch(e){$e=!1}function ze(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var He=!1,Ve=null,Ue=!1,qe=null,Ge={onError:function(e){He=!0,Ve=e}};function Xe(e,t,n,r,i,o,a,s,l){He=!1,Ve=null,ze.apply(Ge,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Je(e){if(Ye(e)!==e)throw Error(a(188))}function Ze(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Je(i),e;if(o===r)return Je(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Qe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it,ot,at=!1,st=[],lt=null,ut=null,ct=null,ft=new Map,pt=new Map,dt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function vt(e,t,n,r,i){if(e=mt(e,t,n,r,i),st.push(e),1===st.length)for(;null!==e.blockedOn&&null!==(t=ni(e.blockedOn))&&(et(t),null===e.blockedOn);)xt()}function gt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ft.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pt.delete(t.pointerId)}}function yt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=mt(t,n,r,i,o),null!==t&&(null!==(t=ni(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function bt(e){var t=ti(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function _t(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=tn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ni(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function wt(e,t,n){_t(e)&&n.delete(t)}function xt(){for(at=!1;0<st.length;){var e=st[0];if(null!==e.blockedOn){null!==(e=ni(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=tn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&st.shift()}null!==lt&&_t(lt)&&(lt=null),null!==ut&&_t(ut)&&(ut=null),null!==ct&&_t(ct)&&(ct=null),ft.forEach(wt),pt.forEach(wt)}function kt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,xt)))}function Et(e){function t(t){return kt(t,e)}if(0<st.length){kt(st[0],e);for(var n=1;n<st.length;n++){var r=st[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&kt(lt,e),null!==ut&&kt(ut,e),null!==ct&&kt(ct,e),ft.forEach(t),pt.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)bt(n),null===n.blockedOn&&dt.shift()}function Ct(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:Ct("Animation","AnimationEnd"),animationiteration:Ct("Animation","AnimationIteration"),animationstart:Ct("Animation","AnimationStart"),transitionend:Ct("Transition","TransitionEnd")},Ot={},At={};function jt(e){if(Ot[e])return Ot[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in At)return Ot[e]=n[t];return e}f&&(At=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Pt=jt("animationend"),Nt=jt("animationiteration"),Tt=jt("animationstart"),Mt=jt("transitionend"),Dt=new Map,Lt=new Map,Ft=["abort","abort",Pt,"animationEnd",Nt,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Mt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Lt.set(r,t),Dt.set(r,i),u(i,[r])}}(0,o.unstable_now)();var Rt=0,Bt=8;function $t(e){if(0!=(1&e))return Bt=15,1;if(0!=(2&e))return Bt=14,2;if(0!=(4&e))return Bt=13,4;var t=24&e;return 0!==t?(Bt=12,t):0!=(32&e)?(Bt=11,32):0!==(t=192&e)?(Bt=10,t):0!=(256&e)?(Bt=9,256):0!==(t=3584&e)?(Bt=8,t):0!=(4096&e)?(Bt=7,4096):0!==(t=4186112&e)?(Bt=6,t):0!==(t=62914560&e)?(Bt=5,t):67108864&e?(Bt=4,67108864):0!=(134217728&e)?(Bt=3,134217728):0!==(t=805306368&e)?(Bt=2,t):0!=(1073741824&e)?(Bt=1,1073741824):(Bt=8,e)}function Wt(e,t){var n=e.pendingLanes;if(0===n)return Bt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Bt=15;else if(0!==(o=134217727&n)){var l=o&~a;0!==l?(r=$t(l),i=Bt):0!==(s&=o)&&(r=$t(s),i=Bt)}else 0!==(o=n&~a)?(r=$t(o),i=Bt):0!==s&&(r=$t(s),i=Bt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if($t(t),i<=Bt)return t;Bt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ht(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?Ht(10,t):e;case 10:return 0===(e=Vt(192&~t))?Ht(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&(0===(e=Vt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Vt(e){return e&-e}function Ut(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/Xt|0)|0},Gt=Math.log,Xt=Math.LN2;var Yt=o.unstable_UserBlockingPriority,Kt=o.unstable_runWithPriority,Jt=!0;function Zt(e,t,n,r){Fe||De();var i=en,o=Fe;Fe=!0;try{Me(i,e,t,n,r)}finally{(Fe=o)||Re()}}function Qt(e,t,n,r){Kt(Yt,en.bind(null,e,t,n,r))}function en(e,t,n,r){var i;if(Jt)if((i=0==(4&t))&&0<st.length&&-1<ht.indexOf(e))vt(null,e,t,n,r);else{var o=tn(e,t,n,r);if(null===o)i&>(e,r);else{if(i){if(-1<ht.indexOf(e))return void vt(o,e,t,n,r);if(function(e,t,n,r,i){switch(t){case"focusin":return lt=yt(lt,e,t,n,r,i),!0;case"dragenter":return ut=yt(ut,e,t,n,r,i),!0;case"mouseover":return ct=yt(ct,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ft.set(o,yt(ft.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,pt.set(o,yt(pt.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;gt(e,r)}Mr(e,t,r,null,n)}}}function tn(e,t,n,r){var i=Ce(r);if(null!==(i=ti(i))){var o=Ye(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Mr(e,t,r,i,n),null}var nn=null,rn=null,on=null;function an(){if(on)return on;var e,t,n=rn,r=n.length,i="value"in nn?nn.value:nn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return on=i.slice(e,1<t?1-t:void 0)}function sn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ln(){return!0}function un(){return!1}function cn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?ln:un,this.isPropagationStopped=un,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ln)},persist:function(){},isPersistent:ln}),t}var fn,pn,dn,hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mn=cn(hn),vn=i({},hn,{view:0,detail:0}),gn=cn(vn),yn=i({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(fn=e.screenX-dn.screenX,pn=e.screenY-dn.screenY):pn=fn=0,dn=e),fn)},movementY:function(e){return"movementY"in e?e.movementY:pn}}),bn=cn(yn),_n=cn(i({},yn,{dataTransfer:0})),wn=cn(i({},vn,{relatedTarget:0})),xn=cn(i({},hn,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=cn(i({},hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=cn(i({},hn,{data:0})),Cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function An(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function jn(){return An}var Pn=cn(i({},vn,{key:function(e){if(e.key){var t=Cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=sn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jn,charCode:function(e){return"keypress"===e.type?sn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?sn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Nn=cn(i({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=cn(i({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jn})),Mn=cn(i({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=cn(i({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Ln=[9,13,27,32],Fn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Rn=f&&"TextEvent"in window&&!In,Bn=f&&(!Fn||In&&8<In&&11>=In),$n=String.fromCharCode(32),Wn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Gn(e,t,n,r){Pe(r),0<(t=Lr(t,"onChange")).length&&(n=new mn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xn=null,Yn=null;function Kn(e){Or(e,0)}function Jn(e){if(J(ri(e)))return e}function Zn(e,t){if("change"===e)return t}var Qn=!1;if(f){var er;if(f){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Qn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Xn&&(Xn.detachEvent("onpropertychange",ir),Yn=Xn=null)}function ir(e){if("value"===e.propertyName&&Jn(Yn)){var t=[];if(Gn(t,Yn,e,Ce(e)),e=Kn,Fe)e(t);else{Fe=!0;try{Te(e,t)}finally{Fe=!1,Re()}}}}function or(e,t,n){"focusin"===e?(rr(),Yn=n,(Xn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Yn)}function sr(e,t){if("click"===e)return Jn(t)}function lr(e,t){if("input"===e||"change"===e)return Jn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cr=Object.prototype.hasOwnProperty;function fr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!cr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function hr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vr=f&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,_r=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==gr||gr!==Z(r)||("selectionStart"in(r=gr)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&fr(br,r)||(br=r,0<(r=Lr(yr,"onSelect")).length&&(t=new mn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Ft,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<xr.length;kr++)Lt.set(xr[kr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Er));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,u){if(Xe.apply(this,arguments),He){if(!He)throw Error(a(198));var c=Ve;He=!1,Ve=null,Ue||(Ue=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Sr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Sr(i,s,u),o=l}}}if(Ue)throw e=qe,Ue=!1,qe=null,e}function Ar(e,t){var n=oi(t),r=e+"__bubble";n.has(r)||(Tr(t,e,2,!1),n.add(r))}var jr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[jr]||(e[jr]=!0,s.forEach((function(t){Cr.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)})))}function Nr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=oi(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Tr(o,e,i,t),a.add(s))}function Tr(e,t,n,r){var i=Lt.get(t);switch(void 0===i?2:i){case 0:i=Zt;break;case 1:i=Qt;break;default:i=en}n=i.bind(null,t,n,e),i=void 0,!$e||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Mr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ti(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ie)return e(t,n);Ie=!0;try{Le(e,t,n)}finally{Ie=!1,Re()}}((function(){var r=o,i=Ce(n),a=[];e:{var s=Dt.get(e);if(void 0!==s){var l=mn,u=e;switch(e){case"keypress":if(0===sn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=wn;break;case"focusout":u="blur",l=wn;break;case"beforeblur":case"afterblur":l=wn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=bn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=_n;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Pt:case Nt:case Tt:l=xn;break;case Mt:l=Mn;break;case"scroll":l=gn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var c=0!=(4&t),f=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var d,h=r;null!==h;){var m=(d=h).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==p&&(null!=(m=Be(h,p))&&c.push(Dr(h,m,d)))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!ti(u)&&!u[Qr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ti(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=bn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,m="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==l?s:ri(l),d=null==u?s:ri(u),(s=new c(m,h+"leave",l,n,i)).target=f,s.relatedTarget=d,m=null,ti(i)===r&&((c=new c(p,h+"enter",u,n,i)).target=d,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(p=u,h=0,d=c=l;d;d=Fr(d))h++;for(d=0,m=p;m;m=Fr(m))d++;for(;0<h-d;)c=Fr(c),h--;for(;0<d-h;)p=Fr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Fr(c),p=Fr(p)}c=null}else c=null;null!==l&&Ir(a,s,l,c,!1),null!==u&&null!==f&&Ir(a,f,u,c,!0)}if("select"===(l=(s=r?ri(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Zn;else if(qn(s))if(Qn)v=lr;else{v=ar;var g=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=sr);switch(v&&(v=v(e,r))?Gn(a,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ie(s,"number",s.value)),g=r?ri(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(gr=g,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,wr(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(Fn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=an()):(rn="value"in(nn=i)?nn.value:nn.textContent,Vn=!0)),0<(g=Lr(r,b)).length&&(b=new En(b,e,null,n,i),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Wn=!0,$n);case"textInput":return(e=t.data)===$n&&Wn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Fn&&zn(e,t)?(e=an(),on=rn=nn=null,Vn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(i=new En("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Or(a,t)}))}function Dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Be(e,n))&&r.unshift(Dr(e,o,i)),null!=(o=Be(e,t))&&r.push(Dr(e,o,i))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ir(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Be(n,o))&&a.unshift(Dr(n,l,s)):i||null!=(l=Be(n,o))&&a.push(Dr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Rr(){}var Br=null,$r=null;function Wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"==typeof setTimeout?setTimeout:void 0,Vr="function"==typeof clearTimeout?clearTimeout:void 0;function Ur(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Et(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Et(t)}function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t&&("$"===(t=e.data)||"$!"===t||"$?"===t))break}return e}function Xr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var Kr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Kr,Zr="__reactProps$"+Kr,Qr="__reactContainer$"+Kr,ei="__reactEvents$"+Kr;function ti(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Xr(e);null!==e;){if(n=e[Jr])return n;e=Xr(e)}return t}n=(e=n).parentNode}return null}function ni(e){return!(e=e[Jr]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ri(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ii(e){return e[Zr]||null}function oi(e){var t=e[ei];return void 0===t&&(t=e[ei]=new Set),t}var ai=[],si=-1;function li(e){return{current:e}}function ui(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ci(e,t){si++,ai[si]=e.current,e.current=t}var fi={},pi=li(fi),di=li(!1),hi=fi;function mi(e,t){var n=e.type.contextTypes;if(!n)return fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!=(e=e.childContextTypes)}function gi(){ui(di),ui(pi)}function yi(e,t,n){if(pi.current!==fi)throw Error(a(168));ci(pi,t),ci(di,n)}function bi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,G(t)||"Unknown",o));return i({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,hi=pi.current,ci(pi,e),ci(di,di.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bi(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,ui(di),ui(pi),ci(pi,e)):ui(di),ci(di,n)}var xi=null,ki=null,Ei=o.unstable_runWithPriority,Ci=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Oi=o.unstable_shouldYield,Ai=o.unstable_requestPaint,ji=o.unstable_now,Pi=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,Ti=o.unstable_UserBlockingPriority,Mi=o.unstable_NormalPriority,Di=o.unstable_LowPriority,Li=o.unstable_IdlePriority,Fi={},Ii=void 0!==Ai?Ai:function(){},Ri=null,Bi=null,$i=!1,Wi=ji(),zi=1e4>Wi?ji:function(){return ji()-Wi};function Hi(){switch(Pi()){case Ni:return 99;case Ti:return 98;case Mi:return 97;case Di:return 96;case Li:return 95;default:throw Error(a(332))}}function Vi(e){switch(e){case 99:return Ni;case 98:return Ti;case 97:return Mi;case 96:return Di;case 95:return Li;default:throw Error(a(332))}}function Ui(e,t){return e=Vi(e),Ei(e,t)}function qi(e,t,n){return e=Vi(e),Ci(e,t,n)}function Gi(){if(null!==Bi){var e=Bi;Bi=null,Si(e)}Xi()}function Xi(){if(!$i&&null!==Ri){$i=!0;var e=0;try{var t=Ri;Ui(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),Ci(Ni,Gi),t}finally{$i=!1}}}var Yi=w.ReactCurrentBatchConfig;function Ki(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ji=li(null),Zi=null,Qi=null,eo=null;function to(){eo=Qi=Zi=null}function no(e){var t=Ji.current;ui(Ji),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function io(e,t){Zi=e,eo=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ra=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qi){if(null===Zi)throw Error(a(308));Qi=t,Zi.dependencies={lanes:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var ao=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function po(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;var f=e.alternate;if(null!==f){var p=(f=f.updateQueue).lastBaseUpdate;p!==s&&(null===p?f.firstBaseUpdate=c:p.next=c,f.lastBaseUpdate=u)}}if(null!==a){for(p=o.baseState,s=0,f=c=u=null;;){l=a.lane;var d=a.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,d=n,m.tag){case 1:if("function"==typeof(h=m.payload)){p=h.call(d,p,l);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(l="function"==typeof(h=m.payload)?h.call(d,p,l):h))break e;p=i({},p,l);break e;case 2:ao=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else d={eventTime:d,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=d,u=p):f=f.next=d,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===f&&(u=p),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Hs|=s,e.lanes=s,e.memoizedState=p}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var mo=(new r.Component).refs;function vo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var go={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hl(),i=ml(e),o=uo(r,i);o.payload=t,null!=n&&(o.callback=n),co(e,o),vl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hl(),i=ml(e),o=uo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),co(e,o),vl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hl(),r=ml(e),i=uo(n,r);i.tag=2,null!=t&&(i.callback=t),co(e,i),vl(e,r,n)}};function yo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!fr(n,r)||!fr(i,o))}function bo(e,t,n){var r=!1,i=fi,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(i=vi(t)?hi:pi.current,o=(r=null!=(r=t.contextTypes))?mi(e,i):fi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _o(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mo,so(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=oo(o):(o=vi(t)?hi:pi.current,i.context=mi(e,o)),po(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&go.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var xo=Array.isArray;function ko(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Eo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Co(e){try{return(0,e._init)(e._payload)}catch(t){return e}}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Zl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=nu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){if(null!==t){if(t.elementType===n.type){var o=i(t,n.props);return o.ref=ko(e,t,n),o.return=e,o}if(22===t.tag&&((o=n.type).$$typeof===M&&(o=Co(o)),o.$$typeof===D&&o._render===t.type._render))return(t=i(t,n.props)).return=e,t.type=o,t}return(o=Ql(n.type,n.key,n.props,null,e.mode,r)).ref=ko(e,t,n),o.return=e,o}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ru(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=eu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=nu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Ql(t.type,t.key,t.props,null,e.mode,n)).ref=ko(e,null,t),n.return=e,n;case k:return(t=ru(t,e.mode,n)).return=e,t;case M:return p(e,(0,t._init)(t._payload),n)}if(xo(t)||z(t))return(t=eu(t,e.mode,n,null)).return=e,t;Eo(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?n.type===E?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null;case M:return d(e,t,(i=n._init)(n._payload),r)}if(xo(n)||z(n))return null!==i?null:f(e,t,n,r,null);Eo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?n:r.key)||null,r.type===E?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case M:return h(e,t,n,(0,r._init)(r._payload),i)}if(xo(r)||z(r))return f(t,e=e.get(n)||null,r,i,null);Eo(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,f=a,m=a=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=d(i,f,s[m],l);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===s.length)return n(i,f),u;if(null===f){for(;m<s.length;m++)null!==(f=p(i,s[m],l))&&(a=o(f,a,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<s.length;m++)null!==(v=h(f,i,m,s[m],l))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),u}function v(i,s,l,u){var c=z(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var f=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=d(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=p(i,y.value,u))&&(s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;v++,y=l.next())null!==(y=h(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function e(r,o,l,u){var c="object"==typeof l&&null!==l&&l.type===E&&null===l.key;c&&(l=l.props.children);var f="object"==typeof l&&null!==l;if(f)switch(l.$$typeof){case x:e:{for(f=l.key,c=o;null!==c;){if(c.key===f){switch(c.tag){case 7:if(l.type===E){n(r,c.sibling),(o=i(c,l.props.children)).return=r,r=o;break e}break;case 22:if((f=l.type).$$typeof===M&&(f=Co(f)),f.$$typeof===D&&f._render===c.type._render){n(r,c.sibling),(o=i(c,l.props)).type=f,o.return=r,r=o;break e}default:if(c.elementType===l.type){n(r,c.sibling),(o=i(c,l.props)).ref=ko(r,c,l),o.return=r,r=o;break e}}n(r,c);break}t(r,c),c=c.sibling}l.type===E?((o=eu(l.props.children,r.mode,u,l.key)).return=r,r=o):((u=Ql(l.type,l.key,l.props,null,r.mode,u)).ref=ko(r,o,l),u.return=r,r=u)}return s(r);case k:e:{for(c=l.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===l.containerInfo&&o.stateNode.implementation===l.implementation){n(r,o.sibling),(o=i(o,l.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=ru(l,r.mode,u)).return=r,r=o}return s(r);case M:return e(r,o,(c=l._init)(l._payload),u)}if("string"==typeof l||"number"==typeof l)return l=""+l,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,l)).return=r,r=o):(n(r,o),(o=nu(l,r.mode,u)).return=r,r=o),s(r);if(xo(l))return m(r,o,l,u);if(z(l))return v(r,o,l,u);if(f&&Eo(r,l),void 0===l&&!c)switch(r.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(r.type)||"Component"))}return n(r,o)}}var Oo=So(!0),Ao=So(!1),jo={},Po=li(jo),No=li(jo),To=li(jo);function Mo(e){if(e===jo)throw Error(a(174));return e}function Do(e,t){switch(ci(To,t),ci(No,e),ci(Po,jo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Po),ci(Po,t)}function Lo(){ui(Po),ui(No),ui(To)}function Fo(e){Mo(To.current);var t=Mo(Po.current),n=he(t,e.type);t!==n&&(ci(No,e),ci(Po,n))}function Io(e){No.current===e&&(ui(Po),ui(No))}var Ro=li(0);function Bo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $o=null,Wo=null,zo=!1;function Ho(e,t){var n=Kl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(e.memoizedState={dehydrated:t,retryLane:1073741824},(n=Kl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,!0);default:return!1}}function Uo(e){if(zo){var t=Wo;if(t){var n=t;if(!Vo(e,t)){if(!(t=Gr(n.nextSibling))||!Vo(e,t))return e.flags=-1025&e.flags|2,zo=!1,void($o=e);Ho($o,n)}$o=e,Wo=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,zo=!1,$o=e}}function qo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;$o=e}function Go(e){if(e!==$o)return!1;if(!zo)return qo(e),zo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!zr(t,e.memoizedProps))for(t=Wo;t;)Ho(e,t),t=Gr(t.nextSibling);if(qo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Wo=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Wo=null}}else Wo=$o?Gr(e.stateNode.nextSibling):null;return!0}function Xo(){Wo=$o=null,zo=!1}var Yo=[];function Ko(){for(var e=0;e<Yo.length;e++)Yo[e]._workInProgressVersionPrimary=null;Yo.length=0}var Jo=w.ReactCurrentDispatcher,Zo=w.ReactCurrentBatchConfig,Qo=0,ea=null,ta=null,na=null,ra=!1,ia=!1;function oa(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function sa(e,t,n,r,i,o){if(Qo=o,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jo.current=null===e||null===e.memoizedState?Da:La,e=n(r,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(a(301));o+=1,na=ta=null,t.updateQueue=null,Jo.current=Fa,e=n(r,i)}while(ia)}if(Jo.current=Ma,t=null!==ta&&null!==ta.next,Qo=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function la(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~n}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function ca(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function fa(e,t){return"function"==typeof t?t(e):t}function pa(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,u=i;do{var c=u.lane;if((Qo&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=f,o=r):l=l.next=f,ea.lanes|=c,Hs|=c}u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,ur(r,t.memoizedState)||(Ra=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ur(o,t.memoizedState)||(Ra=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ha(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Qo&e)===e)&&(t._workInProgressVersionPrimary=r,Yo.push(t))),e)return n(t._source);throw Yo.push(t),Error(a(350))}function ma(e,t,n,r){var i=Ls;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=Jo.current,u=l.useState((function(){return ha(i,t,n)})),c=u[1],f=u[0];u=na;var p=e.memoizedState,d=p.refs,h=d.getSnapshot,m=p.source;p=p.subscribe;var v=ea;return e.memoizedState={refs:d,source:t,subscribe:r},l.useEffect((function(){d.getSnapshot=n,d.setSnapshot=c;var e=o(t._source);if(!ur(s,e)){e=n(t._source),ur(f,e)||(c(e),e=ml(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-qt(a),u=1<<l;r[l]|=e,a&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=ml(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:fa,lastRenderedState:f}).dispatch=c=Ta.bind(null,ea,e),u.queue=e,u.baseQueue=null,f=ha(i,t,n),u.memoizedState=u.baseState=f),f}function va(e,t,n){return ma(ca(),e,t,n)}function ga(e){var t=ua();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e}).dispatch=Ta.bind(null,ea,e),[t.memoizedState,e]}function ya(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ba(e){return e={current:e},ua().memoizedState=e}function _a(){return ca().memoizedState}function wa(e,t,n,r){var i=ua();ea.flags|=e,i.memoizedState=ya(1|t,n,void 0,void 0===r?null:r)}function xa(e,t,n,r){var i=ca();r=void 0===r?null:r;var o=void 0;if(null!==ta){var a=ta.memoizedState;if(o=a.destroy,null!==r&&aa(r,a.deps))return void ya(t,n,o,r)}ea.flags|=e,i.memoizedState=ya(1|t,n,o,r)}function ka(e,t){return wa(516,4,e,t)}function Ea(e,t){return xa(516,4,e,t)}function Ca(e,t){return xa(4,2,e,t)}function Sa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Oa(e,t,n){return n=null!=n?n.concat([e]):null,xa(4,2,Sa.bind(null,t,e),n)}function Aa(){}function ja(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Pa(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Na(e,t){var n=Hi();Ui(98>n?98:n,(function(){e(!0)})),Ui(97<n?97:n,(function(){var n=Zo.transition;Zo.transition=1;try{e(!1),t()}finally{Zo.transition=n}}))}function Ta(e,t,n){var r=hl(),i=ml(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ea||null!==a&&a===ea)ia=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,ur(l,s))return}catch(e){}vl(e,i,r)}}var Ma={readContext:oo,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Da={readContext:oo,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:ka,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wa(4,2,Sa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=ua();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ua();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,ea,e),[r.memoizedState,e]},useRef:ba,useState:ga,useDebugValue:Aa,useDeferredValue:function(e){var t=ga(e),n=t[0],r=t[1];return ka((function(){var t=Zo.transition;Zo.transition=1;try{r(e)}finally{Zo.transition=t}}),[e]),n},useTransition:function(){var e=ga(!1),t=e[0];return ba(e=Na.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ua();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ma(r,e,t,n)},useOpaqueIdentifier:function(){if(zo){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(a(355))})),n=ga(t)[1];return 0==(2&ea.mode)&&(ea.flags|=516,ya(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return ga(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},La={readContext:oo,useCallback:ja,useContext:oo,useEffect:Ea,useImperativeHandle:Oa,useLayoutEffect:Ca,useMemo:Pa,useReducer:pa,useRef:_a,useState:function(){return pa(fa)},useDebugValue:Aa,useDeferredValue:function(e){var t=pa(fa),n=t[0],r=t[1];return Ea((function(){var t=Zo.transition;Zo.transition=1;try{r(e)}finally{Zo.transition=t}}),[e]),n},useTransition:function(){var e=pa(fa)[0];return[_a().current,e]},useMutableSource:va,useOpaqueIdentifier:function(){return pa(fa)[0]},unstable_isNewReconciler:!1},Fa={readContext:oo,useCallback:ja,useContext:oo,useEffect:Ea,useImperativeHandle:Oa,useLayoutEffect:Ca,useMemo:Pa,useReducer:da,useRef:_a,useState:function(){return da(fa)},useDebugValue:Aa,useDeferredValue:function(e){var t=da(fa),n=t[0],r=t[1];return Ea((function(){var t=Zo.transition;Zo.transition=1;try{r(e)}finally{Zo.transition=t}}),[e]),n},useTransition:function(){var e=da(fa)[0];return[_a().current,e]},useMutableSource:va,useOpaqueIdentifier:function(){return da(fa)[0]},unstable_isNewReconciler:!1},Ia=w.ReactCurrentOwner,Ra=!1;function Ba(e,t,n,r){t.child=null===e?Ao(t,null,n,r):Oo(t,e.child,n,r)}function $a(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=sa(e,t,n,r,o,i),null===e||Ra?(t.flags|=1,Ba(e,t,r,i),t.child):(la(e,t,i),us(e,t,i))}function Wa(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Jl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ql(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:fr)(i,r)&&e.ref===t.ref)?us(e,t,o):(t.flags|=1,(e=Zl(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,i,o){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(Ra=!1,0==(o&i))return t.lanes=e.lanes,us(e,t,o);0!=(16384&e.flags)&&(Ra=!0)}return Ua(e,t,n,r,o)}function Ha(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},Cl(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Cl(t,e),null;t.memoizedState={baseLanes:0},Cl(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Cl(t,r);return Ba(e,t,i,n),t.child}function Va(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ua(e,t,n,r,i){var o=vi(n)?hi:pi.current;return o=mi(t,o),io(t,i),n=sa(e,t,n,r,o,i),null===e||Ra?(t.flags|=1,Ba(e,t,n,i),t.child):(la(e,t,i),us(e,t,i))}function qa(e,t,n,r,i){var o=n._render;return n=n._data,io(t,i),r=sa(e,t,o,r,n,i),null===e||Ra?(t.flags|=1,Ba(e,t,r,i),t.child):(la(e,t,i),us(e,t,i))}function Ga(e,t,n,r,i){if(vi(n)){var o=!0;_i(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bo(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=oo(u):u=mi(t,u=vi(n)?hi:pi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&_o(t,a,r,u),ao=!1;var p=t.memoizedState;a.state=p,po(t,r,a,i),l=t.memoizedState,s!==r||p!==l||di.current||ao?("function"==typeof c&&(vo(t,n,c,r),l=t.memoizedState),(s=ao||yo(t,n,s,r,p,l,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,lo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ki(t.type,s),a.props=u,f=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=oo(l):l=mi(t,l=vi(n)?hi:pi.current);var d=n.getDerivedStateFromProps;(c="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||p!==l)&&_o(t,a,r,l),ao=!1,p=t.memoizedState,a.state=p,po(t,r,a,i);var h=t.memoizedState;s!==f||p!==h||di.current||ao?("function"==typeof d&&(vo(t,n,d,r),h=t.memoizedState),(u=ao||yo(t,n,u,r,p,h,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Xa(e,t,n,r,o,i)}function Xa(e,t,n,r,i,o){Va(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&wi(t,n,!1),us(e,t,o);r=t.stateNode,Ia.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,s,o)):Ba(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Ya(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Do(e,t.containerInfo)}var Ka,Ja,Za,Qa={dehydrated:null,retryLane:0};function es(e,t,n){var r,i=t.pendingProps,o=Ro.current,s=!1,l=0!=(64&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(s=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ci(Ro,1&o),null===e){if(void 0!==i.fallback&&(Uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)))return 0==(2&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=256:t.lanes=1073741824,null;e=i.children;var u=i.fallback;return s?(e=ns(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qa,e):"number"==typeof i.unstable_expectedLoadTime?(e=ns(t,e,u,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qa,t.lanes=33554432,e):ts(t,e,n)}if(null!==(o=e.memoizedState)){if(null!==(r=o.dehydrated)){if(l)return null!==t.memoizedState?(t.child=e.child,t.flags|=64,null):(s=i.fallback,u=t.mode,i=tu(i.children,u,0,null),(s=eu(s,u,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,0!=(2&t.mode)&&Oo(t,e.child,null,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qa,s);if(0!=(64&Ds)||0==(2&t.mode)||"$!"===r.data)t=os(e,t,n);else if(i=0!=(n&e.childLanes),Ra||i){if(null!==(i=Ls)){switch($t(n),Bt){case 15:case 14:u=0;break;case 13:case 12:u=4;break;case 11:case 10:u=32;break;case 9:case 8:u=256;break;case 7:case 6:case 5:u=4096;break;case 4:u=67108864;break;case 3:case 2:u=134217728;break;case 1:case 0:u=0;break;default:throw Error(a(360,u))}0!==(i=0!=(u&(i.suspendedLanes|n))?0:u)&&i!==o.retryLane&&(o.retryLane=i,vl(e,i,-1))}Pl(),t=os(e,t,n)}else"$?"===r.data?(t.flags|=64,t.child=e.child,t=Gl.bind(null,e),r._reactRetry=t,t=null):(Wo=Gr(r.nextSibling),qo(t),zo=!0,(t=ts(t,t.pendingProps.children,n)).flags|=1024);return t}return s?(i=is(e,t,i.children,i.fallback,n),s=t.child,u=e.child.memoizedState,s.memoizedState=null===u?{baseLanes:n}:{baseLanes:u.baseLanes|n},s.childLanes=e.childLanes&~n,t.memoizedState=Qa,i):(n=rs(e,t,i.children,n),t.memoizedState=null,n)}return s?(i=is(e,t,i.children,i.fallback,n),s=t.child,u=e.child.memoizedState,s.memoizedState=null===u?{baseLanes:n}:{baseLanes:u.baseLanes|n},s.childLanes=e.childLanes&~n,t.memoizedState=Qa,i):(n=rs(e,t,i.children,n),t.memoizedState=null,n)}function ts(e,t,n){return(t=tu({mode:"visible",children:t},e.mode,n,null)).return=e,e.child=t}function ns(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=tu(t,i,0,null),n=eu(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function rs(e,t,n,r){var i=e.child;return e=i.sibling,n=Zl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function is(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Zl(a,s),null!==e?r=Zl(e,r):(r=eu(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function os(e,t,n){return Oo(t,e.child,null,n),(e=ts(t,t.pendingProps.children,n)).flags|=2,t.memoizedState=null,e}function as(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function ss(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function ls(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ba(e,t,r.children,n),0!=(2&(r=Ro.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&as(e,n);else if(19===e.tag)as(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ci(Ro,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Bo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ss(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Bo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ss(t,!0,n,null,o,t.lastEffect);break;case"together":ss(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Hs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Zl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Zl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function cs(e,t){if(!zo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fs(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vi(t.type)&&gi(),null;case 3:return Lo(),ui(di),ui(pi),Ko(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Go(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Io(t);var o=Mo(To.current);if(n=t.type,null!==e&&null!=t.stateNode)Ja(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Mo(Po.current),Go(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jr]=t,r[Zr]=s,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<Er.length;e++)Ar(Er[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":ee(r,s),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ar("invalid",r);break;case"textarea":le(r,s),Ar("invalid",r)}for(var u in ke(n,s),e=null,s)s.hasOwnProperty(u)&&(o=s[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Ar("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Jr]=t,e[Zr]=r,Ka(e,t),t.stateNode=e,u=Ee(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),o=r;break;case"iframe":case"object":case"embed":Ar("load",e),o=r;break;case"video":case"audio":for(o=0;o<Er.length;o++)Ar(Er[o],e);o=r;break;case"source":Ar("error",e),o=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),o=r;break;case"details":Ar("toggle",e),o=r;break;case"input":ee(e,r),o=Q(e,r),Ar("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Ar("invalid",e);break;default:o=r}ke(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?we(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Ar("scroll",e):null!=f&&_(e,s,f,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+X(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Rr)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Za(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Mo(To.current),Mo(Po.current),Go(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:if(ui(Ro),null!==(r=t.memoizedState)&&null!==r.dehydrated){if(null===e){if(!Go(t))throw Error(a(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(a(317));r[Jr]=t}else Xo(),0==(64&t.flags)&&(t.memoizedState=null),t.flags|=4;return null}return 0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Go(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ro.current)?0===$s&&($s=3):Pl()),(r||n)&&(t.flags|=4),null);case 4:return Lo(),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return no(t),null;case 17:return vi(t.type)&&gi(),null;case 19:if(ui(Ro),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(u=r.rendering))if(s)cs(r,!1);else{if(0!==$s||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Bo(e))){for(t.flags|=64,cs(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ci(Ro,1&Ro.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>Xs&&(t.flags|=64,s=!0,cs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Bo(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),cs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!zo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>Xs&&1073741824!==n&&(t.flags|=64,s=!0,cs(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=Ro.current,ci(Ro,s?1&t|2:1&t),n):null;case 22:return null;case 23:case 24:return Sl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ps(e){switch(e.tag){case 1:vi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Lo(),ui(di),ui(pi),Ko(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Io(e),null;case 13:if(ui(Ro),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(a(340));Xo()}return 4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(Ro),null;case 4:return Lo(),null;case 10:return no(e),null;case 23:case 24:return Sl(),null;default:return null}}function ds(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function hs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ka=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ja=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Mo(Po.current);var a,s=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in ke(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var u=o[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Ar("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===L?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Za=function(e,t,n,r){n!==r&&(t.flags|=4)};var ms="function"==typeof WeakMap?WeakMap:Map;function vs(e,t,n){(n=uo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zs||(Zs=!0,Qs=r),hs(0,t)},n}function gs(e,t,n){(n=uo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return hs(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===el?el=new Set([this]):el.add(this),hs(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ys="function"==typeof WeakSet?WeakSet:Set;function bs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Vl(e,t)}else t.current=null}function _s(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ki(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ws(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Wl(n,e),$l(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ki(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function xs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ks(e,t){if(ki&&"function"==typeof ki.onCommitFiberUnmount)try{ki.onCommitFiberUnmount(xi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Wl(t,n);else{r=t;try{i()}catch(e){Vl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(bs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Vl(t,e)}break;case 5:bs(t);break;case 4:Os(e,t)}}function Es(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Cs(e){return 5===e.tag||3===e.tag||4===e.tag}function Ss(e){e:{for(var t=e.return;null!==t;){if(Cs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Cs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Rr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function Os(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,u=l;;)if(ks(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(18===i.tag)r?(s=n,l=i.stateNode,8===s.nodeType?Ur(s.parentNode,l):1===s.nodeType&&Ur(s,l),Et(s)):Ur(n,i.stateNode);else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(ks(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function As(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,i),t=Ee(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?ve(n,l):"children"===s?ge(n,l):_(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Gs=zi(),xs(t.child,!0)),void js(t);case 19:return void js(t);case 17:return;case 23:case 24:return void xs(t,null!==t.memoizedState)}throw Error(a(163))}function js(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ys),t.forEach((function(t){var r=Xl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ps(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ns=Math.ceil,Ts=w.ReactCurrentDispatcher,Ms=w.ReactCurrentOwner,Ds=0,Ls=null,Fs=null,Is=0,Rs=0,Bs=li(0),$s=0,Ws=null,zs=0,Hs=0,Vs=0,Us=0,qs=null,Gs=0,Xs=1/0;function Ys(){Xs=zi()+500}var Ks,Js=null,Zs=!1,Qs=null,el=null,tl=!1,nl=null,rl=90,il=[],ol=[],al=null,sl=0,ll=null,ul=-1,cl=0,fl=0,pl=null,dl=!1;function hl(){return 0!=(48&Ds)?zi():-1!==ul?ul:ul=zi()}function ml(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Hi()?1:2;if(0===cl&&(cl=zs),0!==Yi.transition){0!==fl&&(fl=null!==qs?qs.pendingLanes:0),e=cl;var t=4186112&~fl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Hi(),0!=(4&Ds)&&98===e?e=Ht(12,cl):e=Ht(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),cl),e}function vl(e,t,n){if(50<sl)throw sl=0,ll=null,Error(a(185));if(null===(e=gl(e,t)))return null;Ut(e,t,n),e===Ls&&(Vs|=t,4===$s&&_l(e,Is));var r=Hi();1===t?0!=(8&Ds)&&0==(48&Ds)?wl(e):(yl(e,n),0===Ds&&(Ys(),Gi())):(0==(4&Ds)||98!==r&&99!==r||(null===al?al=new Set([e]):al.add(e)),yl(e,n)),qs=e}function gl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function yl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-qt(s),u=1<<l,c=o[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,$t(u);var f=Bt;o[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Wt(e,e===Ls?Is:0),t=Bt,0===r)null!==n&&(n!==Fi&&Si(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Fi&&Si(n)}15===t?(n=wl.bind(null,e),null===Ri?(Ri=[n],Bi=Ci(Ni,Xi)):Ri.push(n),n=Fi):14===t?n=qi(99,wl.bind(null,e)):n=qi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),bl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function bl(e){if(ul=-1,fl=cl=0,0!=(48&Ds))throw Error(a(327));var t=e.callbackNode;if(Bl()&&e.callbackNode!==t)return null;var n=Wt(e,e===Ls?Is:0);if(0===n)return null;var r=n,i=Ds;Ds|=16;var o=jl();for(Ls===e&&Is===r||(Ys(),Ol(e,r));;)try{Ml();break}catch(t){Al(e,t)}if(to(),Ts.current=o,Ds=i,null!==Fs?r=0:(Ls=null,Is=0,r=$s),0!=(zs&Vs))Ol(e,0);else if(0!==r){if(2===r&&(Ds|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=zt(e))&&(r=Nl(e,n))),1===r)throw t=Ws,Ol(e,0),_l(e,n),yl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Fl(e);break;case 3:if(_l(e,n),(62914560&n)===n&&10<(r=Gs+500-zi())){if(0!==Wt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){hl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hr(Fl.bind(null,e),r);break}Fl(e);break;case 4:if(_l(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-qt(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ns(n/1960))-n)){e.timeoutHandle=Hr(Fl.bind(null,e),n);break}Fl(e);break;case 5:Fl(e);break;default:throw Error(a(329))}}return yl(e,zi()),e.callbackNode===t?bl.bind(null,e):null}function _l(e,t){for(t&=~Us,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function wl(e){if(0!=(48&Ds))throw Error(a(327));if(Bl(),e===Ls&&0!=(e.expiredLanes&Is)){var t=Is,n=Nl(e,t);0!=(zs&Vs)&&(n=Nl(e,t=Wt(e,t)))}else n=Nl(e,t=Wt(e,0));if(0!==e.tag&&2===n&&(Ds|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=zt(e))&&(n=Nl(e,t))),1===n)throw n=Ws,Ol(e,0),_l(e,t),yl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fl(e),yl(e,zi()),null}function xl(e,t){var n=Ds;Ds|=1;try{return e(t)}finally{0===(Ds=n)&&(Ys(),Gi())}}function kl(e,t){var n=Ds;Ds&=-2,Ds|=8;try{return e(t)}finally{0===(Ds=n)&&(Ys(),Gi())}}function El(e,t){var n=Ds;if(0!=(48&n))return e(t);Ds|=1;try{if(e)return Ui(99,e.bind(null,t))}finally{Ds=n,Gi()}}function Cl(e,t){ci(Bs,Rs),Rs|=t,zs|=t}function Sl(){Rs=Bs.current,ui(Bs)}function Ol(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Vr(n)),null!==Fs)for(n=Fs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&gi();break;case 3:Lo(),ui(di),ui(pi),Ko();break;case 5:Io(r);break;case 4:Lo();break;case 13:case 19:ui(Ro);break;case 10:no(r);break;case 23:case 24:Sl()}n=n.return}Ls=e,Fs=Zl(e.current,null),Is=Rs=zs=t,$s=0,Ws=null,Us=Vs=Hs=0}function Al(e,t){for(;;){var n=Fs;try{if(to(),Jo.current=Ma,ra){for(var r=ea.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ra=!1}if(Qo=0,na=ta=ea=null,ia=!1,Ms.current=null,null===n||null===n.return){$s=1,Ws=t,Fs=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Is,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&Ro.current),p=a;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var m=p.memoizedProps;d=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(d){var v=p.updateQueue;if(null===v){var g=new Set;g.add(u),p.updateQueue=g}else v.add(u);if(0==(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=uo(-1,1);y.tag=2,co(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new ms,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var _=Ul.bind(null,o,u,s);u.then(_,_)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==$s&&($s=2),l=ds(l,s),p=a;do{switch(p.tag){case 3:o=l,p.flags|=4096,t&=-t,p.lanes|=t,fo(p,vs(0,o,t));break e;case 1:o=l;var w=p.type,x=p.stateNode;if(0==(64&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===el||!el.has(x)))){p.flags|=4096,t&=-t,p.lanes|=t,fo(p,gs(p,o,t));break e}}p=p.return}while(null!==p)}Ll(n)}catch(e){t=e,Fs===n&&null!==n&&(Fs=n=n.return);continue}break}}function jl(){var e=Ts.current;return Ts.current=Ma,null===e?Ma:e}function Pl(){0!==$s&&3!==$s||($s=4),null===Ls||0==(134217727&Hs)&&0==(134217727&Vs)||_l(Ls,Is)}function Nl(e,t){var n=Ds;Ds|=16;var r=jl();for(Ls===e&&Is===t||Ol(e,t);;)try{Tl();break}catch(t){Al(e,t)}if(to(),Ds=n,Ts.current=r,null!==Fs)throw Error(a(261));return Ls=null,Is=0,$s}function Tl(){for(;null!==Fs;)Dl(Fs)}function Ml(){for(;null!==Fs&&!Oi();)Dl(Fs)}function Dl(e){var t=Ks(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?Ll(e):Fs=t,Ms.current=null}function Ll(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=fs(n,t,Rs)))return void(Fs=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Rs)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ps(t)))return n.flags&=2047,void(Fs=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Fs=t);Fs=t=e}while(null!==t);0===$s&&($s=5)}function Fl(e){var t=Hi();return Ui(99,Il.bind(null,e,t)),null}function Il(e,t){do{Bl()}while(null!==nl);if(0!=(48&Ds))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-qt(o),c=1<<u;i[u]=0,s[u]=-1,l[u]=-1,o&=~c}if(null!==al&&0==(24&r)&&al.has(e)&&al.delete(e),e===Ls&&(Fs=Ls=null,Is=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ds,Ds|=32,Ms.current=null,Br=Jt,mr(s=hr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var f=0,p=-1,d=-1,h=0,m=0,v=s,g=null;t:for(;;){for(var y;v!==l||0!==o&&3!==v.nodeType||(p=f+o),v!==u||0!==c&&3!==v.nodeType||(d=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===s)break t;if(g===l&&++h===o&&(p=f),g===u&&++m===c&&(d=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}l=-1===p||-1===d?null:{start:p,end:d}}else l=null;l=l||{start:0,end:0}}else l=null;$r={focusedElem:s,selectionRange:l},Jt=!1,pl=null,dl=!1,Js=r;do{try{Rl()}catch(e){if(null===Js)throw Error(a(330));Vl(Js,e),Js=Js.nextEffect}}while(null!==Js);pl=null,Js=r;do{try{for(s=e;null!==Js;){var b=Js.flags;if(16&b&&ge(Js.stateNode,""),128&b){var _=Js.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:Ss(Js),Js.flags&=-3;break;case 6:Ss(Js),Js.flags&=-3,As(Js.alternate,Js);break;case 1024:Js.flags&=-1025;break;case 1028:Js.flags&=-1025,As(Js.alternate,Js);break;case 4:As(Js.alternate,Js);break;case 8:Os(s,l=Js);var x=l.alternate;Es(l),null!==x&&Es(x)}Js=Js.nextEffect}}catch(e){if(null===Js)throw Error(a(330));Vl(Js,e),Js=Js.nextEffect}}while(null!==Js);if(w=$r,_=hr(),b=w.focusedElem,s=w.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==s&&mr(b)&&(_=s.start,void 0===(w=s.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,x=Math.min(s.start,l),s=void 0===s.end?x:Math.min(s.end,l),!w.extend&&x>s&&(l=s,s=x,x=l),l=dr(b,x),o=dr(b,s),l&&o&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),x>s?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Jt=!!Br,$r=Br=null,e.current=n,Js=r;do{try{for(b=e;null!==Js;){var k=Js.flags;if(36&k&&ws(b,Js.alternate,Js),128&k){_=void 0;var E=Js.ref;if(null!==E){var C=Js.stateNode;switch(Js.tag){case 5:_=C;break;default:_=C}"function"==typeof E?E(_):E.current=_}}Js=Js.nextEffect}}catch(e){if(null===Js)throw Error(a(330));Vl(Js,e),Js=Js.nextEffect}}while(null!==Js);Js=null,Ii(),Ds=i}else e.current=n;if(tl)tl=!1,nl=e,rl=t;else for(Js=r;null!==Js;)t=Js.nextEffect,Js.nextEffect=null,8&Js.flags&&((k=Js).sibling=null,k.stateNode=null),Js=t;if(0===(r=e.pendingLanes)&&(el=null),1===r?e===ll?sl++:(sl=0,ll=e):sl=0,n=n.stateNode,ki&&"function"==typeof ki.onCommitFiberRoot)try{ki.onCommitFiberRoot(xi,n,void 0,64==(64&n.current.flags))}catch(e){}if(yl(e,zi()),Zs)throw Zs=!1,e=Qs,Qs=null,e;return 0!=(8&Ds)||Gi(),null}function Rl(){for(;null!==Js;){var e=Js.alternate;dl||null===pl||(0!=(8&Js.flags)?Qe(Js,pl)&&(dl=!0):13===Js.tag&&Ps(e,Js)&&Qe(Js,pl)&&(dl=!0));var t=Js.flags;0!=(256&t)&&_s(e,Js),0==(512&t)||tl||(tl=!0,qi(97,(function(){return Bl(),null}))),Js=Js.nextEffect}}function Bl(){if(90!==rl){var e=97<rl?97:rl;return rl=90,Ui(e,zl)}return!1}function $l(e,t){il.push(t,e),tl||(tl=!0,qi(97,(function(){return Bl(),null})))}function Wl(e,t){ol.push(t,e),tl||(tl=!0,qi(97,(function(){return Bl(),null})))}function zl(){if(null===nl)return!1;var e=nl;if(nl=null,0!=(48&Ds))throw Error(a(331));var t=Ds;Ds|=32;var n=ol;ol=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===o)throw Error(a(330));Vl(o,e)}}for(n=il,il=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(a(330));Vl(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ds=t,Gi(),!0}function Hl(e,t,n){co(e,t=vs(0,t=ds(n,t),1)),t=hl(),null!==(e=gl(e,1))&&(Ut(e,1,t),yl(e,t))}function Vl(e,t){if(3===e.tag)Hl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Hl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===el||!el.has(r))){var i=gs(n,e=ds(t,e),1);if(co(n,i),i=hl(),null!==(n=gl(n,1)))Ut(n,1,i),yl(n,i);else if("function"==typeof r.componentDidCatch&&(null===el||!el.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Ul(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=hl(),e.pingedLanes|=e.suspendedLanes&n,Ls===e&&(Is&n)===n&&(4===$s||3===$s&&(62914560&Is)===Is&&500>zi()-Gs?Ol(e,0):Us|=n),yl(e,t)}function ql(e,t){0===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Hi()?1:2:(0===cl&&(cl=zs),0===(t=Vt(62914560&~cl))&&(t=4194304)));var n=hl();null!==(e=gl(e,t))&&(Ut(e,t,n),yl(e,n))}function Gl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ql(e,n)}function Xl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),ql(e,n)}function Yl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Kl(e,t,n,r){return new Yl(e,t,n,r)}function Jl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Zl(e,t){var n=e.alternate;return null===n?((n=Kl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ql(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Jl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case E:return eu(n.children,i,o,t);case F:s=8,i|=16;break;case C:s=8,i|=1;break;case S:return(e=Kl(12,n,t,8|i)).elementType=S,e.type=S,e.lanes=o,e;case P:return(e=Kl(13,n,t,i)).type=P,e.elementType=P,e.lanes=o,e;case N:return(e=Kl(19,n,t,i)).elementType=N,e.lanes=o,e;case I:return tu(n,i,o,t);case R:return(e=Kl(24,n,t,i)).elementType=R,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case A:s=9;break e;case j:s=11;break e;case T:s=14;break e;case M:s=16,r=null;break e;case D:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Kl(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function eu(e,t,n,r){return(e=Kl(7,e,r,t)).lanes=n,e}function tu(e,t,n,r){return(e=Kl(23,e,r,t)).elementType=I,e.lanes=n,e}function nu(e,t,n){return(e=Kl(6,e,null,t)).lanes=n,e}function ru(e,t,n){return(t=Kl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Array(31).fill(0),this.expirationTimes=Array(31).fill(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Array(31).fill(0),this.mutableSourceEagerHydrationData=null}function ou(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function au(e,t,n,r){var i=t.current,o=hl(),s=ml(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(vi(u)){n=bi(n,u,l);break e}}n=l}else n=fi;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(i,t),vl(i,s,o),s}function su(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function lu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function uu(e,t){lu(e,t),(e=e.alternate)&&lu(e,t)}function cu(e,t){var n=Rt;try{return Rt=e,t()}finally{Rt=n}}function fu(e,t){this._internalRoot=du(e,2,t)}function pu(e,t,n){this._internalRoot=du(e,t,n)}function du(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new iu(e,t,null!=n&&!0===n.hydrate),t=Kl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Qr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}return n}function hu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function mu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=su(a);s.call(e)}}au(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new pu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=su(a);l.call(e)}}kl((function(){au(t,a,e,i)}))}return su(a)}function vu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!hu(t))throw Error(a(200));return ou(e,t,null,n)}Ks=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||di.current)Ra=!0;else{if(0==(n&r)){switch(Ra=!1,t.tag){case 3:Ya(t),Xo();break;case 5:Fo(t);break;case 1:vi(t.type)&&_i(t);break;case 4:Do(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ci(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ci(Ro,1&Ro.current),t.flags|=64,null):0!=(n&t.child.childLanes)?es(e,t,n):(ci(Ro,1&Ro.current),null!==(t=us(e,t,n))?t.sibling:null);ci(Ro,1&Ro.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ls(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ci(Ro,Ro.current),r)break;return null;case 23:case 24:return t.lanes=0,Ha(e,t,n)}return us(e,t,n)}Ra=0!=(16384&e.flags)}else Ra=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=mi(t,pi.current),io(t,n),i=sa(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)){var o=!0;_i(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&vo(t,r,s,e),i.updater=go,t.stateNode=i,i._reactInternals=t,wo(t,r,e,n),t=Xa(null,t,r,!0,o,n)}else t.tag=0,Ba(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Jl(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===T)return 14;if(e===D)return 22}return 2}(i),s=Ki(i,e),o){case 0:t=Ua(null,t,i,s,n);break e;case 1:t=Ga(null,t,i,s,n);break e;case 11:t=$a(null,t,i,s,n);break e;case 14:t=Wa(null,t,i,Ki(i.type,s),r,n);break e;case 22:t=qa(null,t,i,e,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ua(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ga(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 3:if(Ya(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),po(t,r,null,n),(r=t.memoizedState.element)===i)Xo(),t=us(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Wo=Gr(t.stateNode.containerInfo.firstChild),$o=t,o=zo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Yo.push(o);for(n=Ao(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ba(e,t,r,n),Xo();t=t.child}return t;case 5:return Fo(t),null===e&&Uo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,zr(r,i)?s=null:null!==o&&zr(r,o)&&(t.flags|=16),Va(e,t),Ba(e,t,s,n),t.child;case 6:return null===e&&Uo(t),null;case 13:return es(e,t,n);case 4:return Do(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oo(t,null,r,n):Ba(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,$a(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 7:return Ba(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ba(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(ci(Ji,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=ur(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!di.current){t=us(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===s.tag&&((c=uo(-1,n&-n)).tag=2,co(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),ro(s.return,n),u.lanes|=n;break}c=c.next}}else if(10===s.tag)l=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(l=s.return))throw Error(a(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ro(l,n),l=s.sibling}else l=s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Ba(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.flags|=1,Ba(e,t,r,n),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),Wa(e,t,i,o=Ki(i.type,o),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ki(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,vi(r)?(e=!0,_i(t)):e=!1,io(t,n),bo(t,r,i),wo(t,r,i,n),Xa(null,t,r,!0,e,n);case 19:return ls(e,t,n);case 22:return qa(e,t,t.type,t.pendingProps,n);case 23:case 24:return Ha(e,t,n)}throw Error(a(156,t.tag))},fu.prototype.render=pu.prototype.render=function(e){au(e,this._internalRoot,null,null)},fu.prototype.unmount=pu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;au(null,e,null,(function(){t[Qr]=null}))},et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.hydrate){var n=$t(t.pendingLanes);t.expiredLanes|=n&t.pendingLanes,yl(t,zi()),0==(48&Ds)&&(Ys(),Gi())}break;case 13:var r=hl();El((function(){return vl(e,1,r)})),uu(e,4)}},tt=function(e){13===e.tag&&(vl(e,4,hl()),uu(e,4))},nt=function(e){13===e.tag&&(vl(e,67108864,hl()),uu(e,67108864))},rt=function(e){if(13===e.tag){var t=hl(),n=ml(e);vl(e,n,t),uu(e,n)}},it=function(){return Rt},ot=cu,Se=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ii(r);if(!i)throw Error(a(90));J(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Te=xl,Me=function(e,t,n,r,i){var o=Ds;Ds|=4;try{return Ui(98,e.bind(null,t,n,r,i))}finally{0===(Ds=o)&&(Ys(),Gi())}},De=function(){0==(49&Ds)&&(function(){if(null!==al){var e=al;al=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,yl(e,zi())}))}Gi()}(),Bl())},Le=function(e,t){var n=Ds;Ds|=2;try{return e(t)}finally{0===(Ds=n)&&(Ys(),Gi())}};var gu={Events:[ni,ri,ii,Pe,Ne,Bl,{current:!1}]},yu={findFiberByHostInstance:ti,bundleType:0,version:"17.0.0-alpha.0-experimental-4ead6b530",rendererPackageName:"react-dom"},bu={bundleType:yu.bundleType,version:yu.version,rendererPackageName:yu.rendererPackageName,rendererConfig:yu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:yu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var _u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_u.isDisabled&&_u.supportsFiber)try{xi=_u.inject(bu),ki=_u}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gu,t.createPortal=vu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=El,t.hydrate=function(e,t,n){if(!hu(t))throw Error(a(200));return mu(null,e,t,!0,n)},t.render=function(e,t,n){if(!hu(t))throw Error(a(200));return mu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!hu(e))throw Error(a(40));return!!e._reactRootContainer&&(kl((function(){mu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qr]=null}))})),!0)},t.unstable_batchedUpdates=xl,t.unstable_createBlockingRoot=function(e,t){if(!hu(e))throw Error(a(299));return new pu(e,1,t)},t.unstable_createPortal=function(e,t){return vu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_createRoot=function(e,t){if(!hu(e))throw Error(a(299));return new fu(e,t)},t.unstable_flushControlled=function(e){var t=Ds;Ds|=1;try{Ui(99,e)}finally{0===(Ds=t)&&(Ys(),Gi())}},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!hu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return mu(e,t,n,!1,r)},t.unstable_runWithPriority=cu,t.unstable_scheduleHydration=function(e){if(e){var t=o.unstable_getCurrentPriorityLevel(),n=it();for(e={blockedOn:null,target:e,priority:t,lanePriority:n},n=0;n<dt.length&&!(t<=dt[n].priority);n++);dt.splice(n,0,e),0===n&&bt(e)}},t.version="17.0.0-alpha.0-experimental-4ead6b530"},function(e,t,n){"use strict";e.exports=n(138)},function(e,t,n){"use strict";var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,p=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(p,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,y=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+b;try{g(!0,e)?x.postMessage(null):(v=!1,g=null)}catch(e){throw x.postMessage(null),e}}else v=!1},r=function(e){g=e,v||(v=!0,x.postMessage(null))},i=function(e,n){y=d((function(){e(t.unstable_now())}),n)},o=function(){h(y),y=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<S(i,t)))break e;e[r]=t,e[n]=i,n=r}}function E(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>S(a,n))void 0!==l&&0>S(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>S(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],A=[],j=1,P=null,N=3,T=!1,M=!1,D=!1;function L(e){for(var t=E(A);null!==t;){if(null===t.callback)C(A);else{if(!(t.startTime<=e))break;C(A),t.sortIndex=t.expirationTime,k(O,t)}t=E(A)}}function F(e){if(D=!1,L(e),!M)if(null!==E(O))M=!0,r(I);else{var t=E(A);null!==t&&i(F,t.startTime-e)}}function I(e,n){M=!1,D&&(D=!1,o()),T=!0;var r=N;try{for(L(n),P=E(O);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=P.callback;if("function"==typeof a){P.callback=null,N=P.priorityLevel;var s=a(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?P.callback=s:P===E(O)&&C(O),L(n)}else C(O);P=E(O)}if(null!==P)var l=!0;else{var u=E(A);null!==u&&i(F,u.startTime-n),l=!1}return l}finally{P=null,N=r,T=!1}}var R=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||T||(M=!0,r(I))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return E(O)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=R,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:j++,callback:n,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(A,e),null===E(O)&&e===E(A)&&(D?o():D=!0,i(F,a-s))):(e.sortIndex=l,k(O,e),M||T||(M=!0,r(I))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){var r=n(80);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof c?t:c,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function c(){}function f(){}function p(){}var d={};d[i]=function(){return this};var h=Object.getPrototypeOf,m=h&&h(h(k([])));m&&m!==t&&n.call(m,i)&&(d=m);var v=p.prototype=c.prototype=Object.create(d);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function y(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,p[a]=f.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[o]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new y(s(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),v[a]="Generator",v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(149);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=u(o),s=n(2),l=u(n(151));function u(e){return e&&e.__esModule?e:{default:e}}var c={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(c);var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleRef=n.handleRef.bind(n),n._handlerByEvent={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new l.default(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(e){this._updateEventHook(e),this.updateScroll(),e.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var e=this;Object.keys(this._handlerByEvent).forEach((function(t){var n=e._handlerByEvent[t];n&&e._container.removeEventListener(t,n,!1)})),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.keys(c).forEach((function(n){var r=e.props[c[n]],i=t[c[n]];if(r!==i){if(i){var o=e._handlerByEvent[n];e._container.removeEventListener(n,o,!1),e._handlerByEvent[n]=null}if(r){var a=function(){return r(e._container)};e._container.addEventListener(n,a,!1),e._handlerByEvent[n]=a}}}))}},{key:"_updateClassName",value:function(){var e=this.props.className,t=this._container.className.split(" ").filter((function(e){return e.match(/^ps([-_].+|)$/)})).join(" ");this._container&&(this._container.className="scrollbar-container"+(e?" "+e:"")+(t?" "+t:""))}},{key:"updateScroll",value:function(){this.props.onSync(this._ps)}},{key:"handleRef",value:function(e){this._container=e,this.props.containerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.className,e.style),n=(e.option,e.options,e.containerRef,e.onScrollY,e.onScrollX,e.onScrollUp,e.onScrollDown,e.onScrollLeft,e.onScrollRight,e.onYReachStart,e.onYReachEnd,e.onXReachStart,e.onXReachEnd,e.component),i=(e.onSync,e.children),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"]),s=n;return a.default.createElement(s,r({style:t,ref:this.handleRef},o),i)}}]),t}(o.Component);t.default=f,f.defaultProps={className:"",style:void 0,option:void 0,options:void 0,containerRef:function(){},onScrollY:void 0,onScrollX:void 0,onScrollUp:void 0,onScrollDown:void 0,onScrollLeft:void 0,onScrollRight:void 0,onYReachStart:void 0,onYReachEnd:void 0,onXReachStart:void 0,onXReachEnd:void 0,onSync:function(e){return e.update()},component:"div"},f.propTypes={children:s.PropTypes.node.isRequired,className:s.PropTypes.string,style:s.PropTypes.object,option:s.PropTypes.object,options:s.PropTypes.object,containerRef:s.PropTypes.func,onScrollY:s.PropTypes.func,onScrollX:s.PropTypes.func,onScrollUp:s.PropTypes.func,onScrollDown:s.PropTypes.func,onScrollLeft:s.PropTypes.func,onScrollRight:s.PropTypes.func,onYReachStart:s.PropTypes.func,onYReachEnd:s.PropTypes.func,onXReachStart:s.PropTypes.func,onXReachEnd:s.PropTypes.func,onSync:s.PropTypes.func,component:s.PropTypes.string},e.exports=t.default},function(e,t,n){"use strict";function r(e){return getComputedStyle(e)}function i(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function o(e){var t=document.createElement("div");return t.className=e,t}n.r(t);var a="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function s(e,t){if(!a)throw new Error("No element matching method supported");return a.call(e,t)}function l(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function u(e,t){return Array.prototype.filter.call(e.children,(function(e){return s(e,t)}))}var c="ps",f="ps__rtl",p={thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},d={focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}},h={x:null,y:null};function m(e,t){var n=e.element.classList,r=d.scrolling(t);n.contains(r)?clearTimeout(h[t]):n.add(r)}function v(e,t){h[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(d.scrolling(t))}),e.settings.scrollingThreshold)}var g=function(e){this.element=e,this.handlers={}},y={isEmpty:{configurable:!0}};g.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},g.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)}))},g.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},y.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(g.prototype,y);var b=function(){this.eventElements=[]};function _(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function w(e,t,n,r,i){var o;if(void 0===r&&(r=!0),void 0===i&&(i=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,i){var o=n[0],a=n[1],s=n[2],l=n[3],u=n[4],c=n[5];void 0===r&&(r=!0);void 0===i&&(i=!1);var f=e.element;e.reach[l]=null,f[s]<1&&(e.reach[l]="start");f[s]>e[o]-e[a]-1&&(e.reach[l]="end");t&&(f.dispatchEvent(_("ps-scroll-"+l)),t<0?f.dispatchEvent(_("ps-scroll-"+u)):t>0&&f.dispatchEvent(_("ps-scroll-"+c)),r&&function(e,t){m(e,t),v(e,t)}(e,l));e.reach[l]&&(t||i)&&f.dispatchEvent(_("ps-"+l+"-reach-"+e.reach[l]))}(e,n,o,r,i)}function x(e){return parseInt(e,10)||0}b.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new g(e),this.eventElements.push(t)),t},b.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},b.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},b.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},b.prototype.once=function(e,t,n){var r=this.eventElement(e),i=function(e){r.unbind(t,i),n(e)};r.bind(t,i)};var k={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function E(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.ceil(r.width),e.containerHeight=Math.ceil(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(u(t,p.rail("x")).forEach((function(e){return l(e)})),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(u(t,p.rail("y")).forEach((function(e){return l(e)})),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=C(e,x(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=x((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=C(e,x(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=x(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft;t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r;i(t.scrollbarXRail,n);var o={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?o.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:o.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?o.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:o.left=t.scrollbarYLeft+e.scrollLeft;i(t.scrollbarYRail,o),i(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),i(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(d.active("x")):(t.classList.remove(d.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?t.classList.add(d.active("y")):(t.classList.remove(d.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function C(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function S(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=e.element,p=null,h=null,g=null;function y(t){t.touches&&t.touches[0]&&(t[i]=t.touches[0].pageY),f[l]=p+g*(t[i]-h),m(e,u),E(e),t.stopPropagation(),t.preventDefault()}function b(){v(e,u),e[c].classList.remove(d.clicking),e.event.unbind(e.ownerDocument,"mousemove",y)}function _(t,a){p=f[l],a&&t.touches&&(t[i]=t.touches[0].pageY),h=t[i],g=(e[r]-e[n])/(e[o]-e[s]),a?e.event.bind(e.ownerDocument,"touchmove",y):(e.event.bind(e.ownerDocument,"mousemove",y),e.event.once(e.ownerDocument,"mouseup",b),t.preventDefault()),e[c].classList.add(d.clicking),t.stopPropagation()}e.event.bind(e[a],"mousedown",(function(e){_(e)})),e.event.bind(e[a],"touchstart",(function(e){_(e,!0)}))}var O={"click-rail":function(e){e.element,e.event.bind(e.scrollbarY,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarYRail,"mousedown",(function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,E(e),t.stopPropagation()})),e.event.bind(e.scrollbarX,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarXRail,"mousedown",(function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,E(e),t.stopPropagation()}))},"drag-thumb":function(e){S(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),S(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(s(t,":hover")||s(e.scrollbarX,":focus")||s(e.scrollbarY,":focus"))){var r,i=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(s(r=i,"input,[contenteditable]")||s(r,"select,[contenteditable]")||s(r,"textarea,[contenteditable]")||s(r,"button,[contenteditable]"))return}var o=0,a=0;switch(n.which){case 37:o=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:a=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:o=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:a=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:a=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==o||e.settings.suppressScrollY&&0!==a||(t.scrollTop-=a,t.scrollLeft+=o,E(e),function(n,r){var i=Math.floor(t.scrollTop);if(0===n){if(!e.scrollbarYActive)return!1;if(0===i&&r>0||i>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var o=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===o&&n<0||o>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(o,a)&&n.preventDefault())}}))},wheel:function(e){var t=e.element;function n(n){var i=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),o=i[0],a=i[1];if(!function(e,n,i){if(!k.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var o=e;o&&o!==t;){if(o.classList.contains(p.consuming))return!0;var a=r(o);if(i&&a.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&(o.scrollTop>0&&i<0||o.scrollTop<s&&i>0))return!0}if(n&&a.overflowX.match(/(scroll|auto)/)){var l=o.scrollWidth-o.clientWidth;if(l>0&&(o.scrollLeft>0&&n<0||o.scrollLeft<l&&n>0))return!0}o=o.parentNode}return!1}(n.target,o,a)){var s=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(a?t.scrollTop-=a*e.settings.wheelSpeed:t.scrollTop+=o*e.settings.wheelSpeed,s=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(o?t.scrollLeft+=o*e.settings.wheelSpeed:t.scrollLeft-=a*e.settings.wheelSpeed,s=!0):(t.scrollTop-=a*e.settings.wheelSpeed,t.scrollLeft+=o*e.settings.wheelSpeed),E(e),(s=s||function(n,r){var i=Math.floor(t.scrollTop),o=0===t.scrollTop,a=i+t.offsetHeight===t.scrollHeight,s=0===t.scrollLeft,l=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(r)>Math.abs(n)?o||a:s||l)||!e.settings.wheelPropagation}(o,a))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?e.event.bind(t,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(k.supportsTouch||k.supportsIePointer){var t=e.element,n={},i=0,o={},a=null;k.supportsTouch?(e.event.bind(t,"touchstart",c),e.event.bind(t,"touchmove",f),e.event.bind(t,"touchend",d)):k.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",c),e.event.bind(t,"pointermove",f),e.event.bind(t,"pointerup",d)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",c),e.event.bind(t,"MSPointerMove",f),e.event.bind(t,"MSPointerUp",d)))}function s(n,r){t.scrollTop-=r,t.scrollLeft-=n,E(e)}function l(e){return e.targetTouches?e.targetTouches[0]:e}function u(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&(!(!e.targetTouches||1!==e.targetTouches.length)||!(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function c(e){if(u(e)){var t=l(e);n.pageX=t.pageX,n.pageY=t.pageY,i=(new Date).getTime(),null!==a&&clearInterval(a)}}function f(a){if(u(a)){var c=l(a),f={pageX:c.pageX,pageY:c.pageY},d=f.pageX-n.pageX,h=f.pageY-n.pageY;if(function(e,n,i){if(!t.contains(e))return!1;for(var o=e;o&&o!==t;){if(o.classList.contains(p.consuming))return!0;var a=r(o);if(i&&a.overflowY.match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&(o.scrollTop>0&&i<0||o.scrollTop<s&&i>0))return!0}if(n&&a.overflowX.match(/(scroll|auto)/)){var l=o.scrollWidth-o.clientWidth;if(l>0&&(o.scrollLeft>0&&n<0||o.scrollLeft<l&&n>0))return!0}o=o.parentNode}return!1}(a.target,d,h))return;s(d,h),n=f;var m=(new Date).getTime(),v=m-i;v>0&&(o.x=d/v,o.y=h/v,i=m),function(n,r){var i=Math.floor(t.scrollTop),o=t.scrollLeft,a=Math.abs(n),s=Math.abs(r);if(s>a){if(r<0&&i===e.contentHeight-e.containerHeight||r>0&&0===i)return 0===window.scrollY&&r>0&&k.isChrome}else if(a>s&&(n<0&&o===e.contentWidth-e.containerWidth||n>0&&0===o))return!0;return!0}(d,h)&&a.preventDefault()}}function d(){e.settings.swipeEasing&&(clearInterval(a),a=setInterval((function(){e.isInitialized?clearInterval(a):o.x||o.y?Math.abs(o.x)<.01&&Math.abs(o.y)<.01?clearInterval(a):(s(30*o.x,30*o.y),o.x*=.8,o.y*=.8):clearInterval(a)}),10))}}},A=function(e,t){var n=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var a in this.element=e,e.classList.add(c),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)this.settings[a]=t[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,l,u=function(){return e.classList.add(d.focus)},h=function(){return e.classList.remove(d.focus)};this.isRtl="rtl"===r(e).direction,!0===this.isRtl&&e.classList.add(f),this.isNegativeScroll=(l=e.scrollLeft,e.scrollLeft=-1,s=e.scrollLeft<0,e.scrollLeft=l,s),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new b,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=o(p.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=o(p.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",u),this.event.bind(this.scrollbarX,"blur",h),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var m=r(this.scrollbarXRail);this.scrollbarXBottom=parseInt(m.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=x(m.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=x(m.borderLeftWidth)+x(m.borderRightWidth),i(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=x(m.marginLeft)+x(m.marginRight),i(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=o(p.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=o(p.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",u),this.event.bind(this.scrollbarY,"blur",h),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var v=r(this.scrollbarYRail);this.scrollbarYRight=parseInt(v.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=x(v.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=r(e);return x(t.width)+x(t.paddingLeft)+x(t.paddingRight)+x(t.borderLeftWidth)+x(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=x(v.borderTopWidth)+x(v.borderBottomWidth),i(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=x(v.marginTop)+x(v.marginBottom),i(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(e){return O[e](n)})),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",(function(e){return n.onScroll(e)})),E(this)};A.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,i(this.scrollbarXRail,{display:"block"}),i(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=x(r(this.scrollbarXRail).marginLeft)+x(r(this.scrollbarXRail).marginRight),this.railYMarginHeight=x(r(this.scrollbarYRail).marginTop)+x(r(this.scrollbarYRail).marginBottom),i(this.scrollbarXRail,{display:"none"}),i(this.scrollbarYRail,{display:"none"}),E(this),w(this,"top",0,!1,!0),w(this,"left",0,!1,!0),i(this.scrollbarXRail,{display:""}),i(this.scrollbarYRail,{display:""}))},A.prototype.onScroll=function(e){this.isAlive&&(E(this),w(this,"top",this.element.scrollTop-this.lastScrollTop),w(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},A.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),l(this.scrollbarX),l(this.scrollbarY),l(this.scrollbarXRail),l(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},A.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(e){return!e.match(/^ps([-_].+|)$/)})).join(" ")},t.default=A},function(e,t,n){var r,i,o;o=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([,,function(e,t,n){"use strict";function r(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function i(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function o(e,t){this.__indent_cache=new i(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new r(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}r.prototype.clone_empty=function(){var e=new r(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},r.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},r.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},r.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},r.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return 0===this.__items.length},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},r.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},r.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},r.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},r.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},r.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},i.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},i.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},i.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},i.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},o.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},o.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},o.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},o.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},o.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},o.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(e,t){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(0!==i.item(0).indexOf(e)&&i.item(-1)!==t){this.__lines.splice(n+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},e.exports.Output=o},function(e,t,n){"use strict";e.exports.Token=function(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e,t,n){"use strict";function r(e,t){this.raw_options=i(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function i(e,t){var n,r={};for(n in e=o(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function o(e){var t,n={};for(t in e)n[t.replace(/-/g,"_")]=e[t];return n}r.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},r.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},r.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},r.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},r.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},r.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},r.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=r,e.exports.normalizeOpts=o,e.exports.mergeOpts=i},,function(e,t,n){"use strict";var r=RegExp.prototype.hasOwnProperty("sticky");function i(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position<this.__input_length},i.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},i.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},i.prototype.__match=function(e,t){e.lastIndex=t;var n=e.exec(this.__input);return!n||r&&e.sticky||n.index!==t&&(n=null),n},i.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},i.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},i.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},i.prototype.read=function(e,t,n){var r,i="";return e&&(r=this.match(e))&&(i+=r[0]),!t||!r&&e||(i+=this.readUntil(t,n)),i},i.prototype.readUntil=function(e,t){var n,r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},i.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},i.prototype.get_regexp=function(e,t){var n=null,i="g";return t&&r&&(i="y"),"string"==typeof e&&""!==e?n=new RegExp(e,i):e&&(n=new RegExp(e.source,i)),n},i.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},i.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},i.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=i},function(e,t,n){"use strict";var r=n(8).InputScanner,i=n(3).Token,o=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new r(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new o,this._reset();for(var t=new i(s.START,""),n=null,r=[],a=new o;t.type!==s.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new o),e.parent=n,this._is_opening(e)?(r.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=r.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new i(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e,t,n){"use strict";function r(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}r.prototype.restart=function(){this.__position=0},r.prototype.isEmpty=function(){return 0===this.__tokens_length},r.prototype.hasNext=function(){return this.__position<this.__tokens_length},r.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},r.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},r.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=r},function(e,t,n){"use strict";var r=n(12).Pattern;function i(e,t){r.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new r,i.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},i.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,r=[],i=e.exec(t);i;)r.push(t.substring(n,i.index)),n=i.index+i[0].length,i=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r},e.exports.WhitespacePattern=i},function(e,t,n){"use strict";function r(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}r.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},r.prototype.read_match=function(){return this._input.match(this._match_pattern)},r.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},r.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},r.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},r.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){},e.exports.Pattern=r},function(e,t,n){"use strict";function r(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}r.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},r.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=r},function(e,t,n){"use strict";var r=n(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1};function o(e,t){r.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new r(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[=]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}o.prototype=new r,o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},o.prototype.read_options=function(e){var t=this._create();for(var n in i)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},o.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},o.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},o.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},o.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())));return e},e.exports.TemplatablePattern=o},,,,function(e,t,n){"use strict";var r=n(19).Beautifier,i=n(20).Options;e.exports=function(e,t,n,i){return new r(e,t,n,i).beautify()},e.exports.defaultOptions=function(){return new i}},function(e,t,n){"use strict";var r=n(20).Options,i=n(2).Output,o=n(21).Tokenizer,a=n(21).TOKEN,s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new i(e,t)};u.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},u.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},u.prototype.print_preserved_newlines=function(e){var t=0;e.type!==a.TEXT&&e.previous.type!==a.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},u.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines||(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),0))},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(e){this._output.add_new_line(e)},u.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var c=function(e,t){var n=null,r=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),(n=function(e){for(var t=null,n=e.next;n.type!==a.EOF&&e.closed!==n;){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n).search("text/css")>-1?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):null};function f(e,t){return-1!==t.indexOf(e)}function p(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function d(e){this._printer=e,this._current_frame=null}function h(e,t,n,i){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=i,this._tag_stack=null;var o=new r(t,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(e){var t=new p(this._current_frame,e,this._printer.indent_level);this._current_frame=t},d.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},d.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},d.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},d.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},h.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&s.test(e)&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],r={text:"",type:""},i=new m,c=new u(this._options,n),f=new o(e,this._options).tokenize();this._tag_stack=new d(c);for(var p=null,h=f.next();h.type!==a.EOF;)h.type===a.TAG_OPEN||h.type===a.COMMENT?i=p=this._handle_tag_open(c,h,i,r):h.type===a.ATTRIBUTE||h.type===a.EQUALS||h.type===a.VALUE||h.type===a.TEXT&&!i.tag_complete?p=this._handle_inside_tag(c,h,i,f):h.type===a.TAG_CLOSE?p=this._handle_tag_close(c,h,i):h.type===a.TEXT?p=this._handle_text(c,h,i):c.add_raw_token(h),r=p,h=f.next();return c._output.get_code(t)},h.prototype._handle_tag_close=function(e,t,n){var r={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),r},h.prototype._handle_inside_tag=function(e,t,n,r){var i=n.has_wrapped_attrs,o={text:t.text,type:t.type};if(e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted)e.add_raw_token(t);else if("{"===n.tag_start_char&&t.type===a.TEXT)e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t);else{if(t.type===a.ATTRIBUTE?(e.set_space_before_token(!0),n.attr_count+=1):(t.type===a.EQUALS||t.type===a.VALUE&&t.previous.type===a.EQUALS)&&e.set_space_before_token(!1),t.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),i=i||0!==t.newlines),this._is_wrap_attributes_force)){var s=n.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var l,u=!0,c=0;do{if((l=r.peek(c)).type===a.ATTRIBUTE){u=!1;break}c+=1}while(c<4&&l.type!==a.EOF&&l.type!==a.TAG_CLOSE);s=!u}s&&(e.print_newline(!1),i=!0)}e.print_token(t),i=i||e.previous_token_wrapped(),n.has_wrapped_attrs=i}return o},h.prototype._handle_text=function(e,t,n){var r={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),r},h.prototype._print_custom_beatifier_text=function(e,t,n){var r=this;if(""!==t.text){var i,o=t.text,a=1,s="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?i=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?i=this._css_beautify:"html"===n.custom_beautifier_name&&(i=function(e,t){return new h(e,t,r._js_beautify,r._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-e.indent_level);var u=e.get_full_indent(a);if(o=o.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===o[0]&&o.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(o);if(!c)return void e.add_raw_token(t);s=u+c[1]+"\n",o=c[4],c[5]&&(l=u+c[5]),o=o.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/))&&(t.whitespace_before=c[0])}if(o)if(i){var f=function(){this.eol="\n"};f.prototype=this._options.raw_options,o=i(u+o,new f)}else{var p=t.whitespace_before;p&&(o=o.replace(new RegExp("\n("+p+")?","g"),"\n")),o=u+o.replace(/\n/g,"\n"+u)}s&&(o=o?s+o+"\n"+l:s+l),e.print_newline(!1),o&&(t.text=o,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},h.prototype._handle_tag_open=function(e,t,n,r){var i=this._get_tag_open_token(t);return(n.is_unformatted||n.is_content_unformatted)&&t.type===a.TAG_OPEN&&0===t.text.indexOf("</")?(e.add_raw_token(t),i.start_tag_token=this._tag_stack.try_pop(i.tag_name)):(e.traverse_whitespace(t),this._set_tag_position(e,t,i,n,r),i.is_inline_element||e.set_wrap_point(),e.print_token(t)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(i.alignment_size=t.text.length+1),i.tag_complete||i.is_unformatted||(e.alignment_size=i.alignment_size),i};var m=function(e,t){var n;this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",t?(this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"","{{#>"===t.text&&">"===this.tag_check&&null!==t.next&&(this.tag_check=t.next.text)),this.tag_check=this.tag_check.toLowerCase(),t.type===a.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};h.prototype._get_tag_open_token=function(e){var t=new m(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||f(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&f(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&f(t.tag_check,this._options.content_unformatted),t.is_inline_element=f(t.tag_name,this._options.inline)||"{"===t.tag_start_char,t},h.prototype._set_tag_position=function(e,t,n,r,i){n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||(n.parent&&(n.parent.multiline_content=!0),e.print_newline(!1))),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=c(n.tag_check,t)))),f(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element?("{"===n.tag_start_char&&"else"===n.tag_check&&(this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1)),"!--"===n.tag_name&&i.type===a.TAG_CLOSE&&r.is_end_tag&&-1===n.text.indexOf("\n")||n.is_inline_element||n.is_unformatted||e.print_newline(!1)):n.is_unformatted||n.is_content_unformatted?n.is_inline_element||n.is_unformatted||e.print_newline(!1):n.is_end_tag?(n.start_tag_token&&n.start_tag_token.multiline_content||!(n.is_inline_element||r.is_inline_element||i.type===a.TAG_CLOSE&&n.start_tag_token===r||"TK_CONTENT"===i.type))&&e.print_newline(!1):(n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||"TK_CONTENT"===i.type||(n.parent&&(n.parent.multiline_content=!0),e.print_newline(!1)))};var v=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],g=["a","audio","del","ins","map","noscript","video"];h.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==v.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==g.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=h},function(e,t,n){"use strict";var r=n(6).Options;function i(e){r.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}i.prototype=new r,e.exports.Options=i},function(e,t,n){"use strict";var r=n(9).Tokenizer,i=n(9).TOKEN,o=n(13).Directives,a=n(14).TemplatablePattern,s=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},u=new o(/<\!--/,/-->/),c=function(e,t){r.call(this,e,t),this._current_tag_name="";var n=new a(this._input).read_options(this._options),i=new s(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),handlebars_open:i.until(/[\n\r\t }]/),handlebars_raw_close:i.until(/}}/),comment:i.starting_with(/<!--/).until_after(/-->/),cdata:i.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:i.starting_with(/<!\[/).until_after(/]>/),processing:i.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=i.matching(o).until_after(o)}};(c.prototype=new r)._is_comment=function(e){return!1},c.prototype._is_opening=function(e){return e.type===l.TAG_OPEN},c.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(r,t))||this._read_attribute(r,e,t))||this._read_raw_content(r,e,t))||this._read_close(r,t))||this._read_content_word(r))||this._read_comment_or_cdata(r))||this._read_processing(r))||this._read_open(r,t))||this._create_token(l.UNKNOWN,this._input.next())},c.prototype._read_comment_or_cdata=function(e){var t=null,n=null,r=null;return"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(r=u.get_directives(n))&&"start"===r.ignore&&(n+=u.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=r)),t},c.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var r=this._input.peek(1);"!"!==r&&"?"!==r||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},c.prototype._read_open=function(e,t){var n=null,r=null;return t||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),r=this._create_token(l.TAG_OPEN,n)),r},c.prototype._read_open_handlebars=function(e,t){var n=null,r=null;return t||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),r=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),r=this._create_token(l.TAG_OPEN,n))),r},c.prototype._read_close=function(e,t){var n=null,r=null;return t&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),r=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(l.TAG_CLOSE,"}}"))),r},c.prototype._read_attribute=function(e,t,n){var r=null,i="";if(n&&"<"===n.text[0])if("="===e)r=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var o=this._input.next();o+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),r=this._create_token(l.VALUE,o)}else(i=this.__patterns.attribute.read())&&(r=t.type===l.EQUALS?this._create_token(l.VALUE,i):this._create_token(l.ATTRIBUTE,i));return r},c.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},c.prototype._read_raw_content=function(e,t,n){var r="";if(n&&"{"===n.text[0])r=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]){var i=t.opened.text.substr(1).toLowerCase();if("script"===i||"style"===i){var o=this._read_comment_or_cdata(e);if(o)return o.type=l.TEXT,o;r=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(i)&&(r=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig")))}return r?this._create_token(l.TEXT,r):null},c.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token(l.TEXT,t)},e.exports.Tokenizer=c,e.exports.TOKEN=l}]),r=[n,n(56),n(57)],void 0===(i=function(e){var t=n(56),r=n(57);return{html_beautify:function(e,n){return o(e,n,t.js_beautify,r.css_beautify)}}}.apply(t,r))||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=l(n(0)),o=l(n(6)),a=n(8),s=l(n(279));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.AlphaPicker=function(e){var t=e.rgb,n=e.hsl,s=e.width,l=e.height,u=e.onChange,c=e.direction,f=e.style,p=e.renderers,d=e.pointer,h=e.className,m=void 0===h?"":h,v=(0,o.default)({default:{picker:{position:"relative",width:s,height:l},alpha:{radius:"2px",style:f}}});return i.default.createElement("div",{style:v.picker,className:"alpha-picker "+m},i.default.createElement(a.Alpha,r({},v.alpha,{rgb:t,hsl:n,pointer:d,renderers:p,onChange:u,direction:c})))};u.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:s.default},t.default=(0,a.ColorWrap)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(155)),i=s(n(58)),o=s(n(88)),a=s(n(22));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,o.default)(t)?(0,i.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=l},function(e,t,n){var r=n(27),i=n(12),o=n(20);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(31),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(27),i=n(20);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(27),i=n(62),o=n(20),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(65),i=n(164),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(86)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(166),i=n(210),o=n(40),a=n(12),s=n(220);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(167),i=n(209),o=n(99);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(41),i=n(91);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],f=e[c],p=u[1];if(l&&u[2]){if(void 0===f&&!(c in e))return!1}else{var d=new r;if(o)var h=o(f,p,c,e,t,d);if(!(void 0===h?i(p,f,3,o,d):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(43),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(43);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(43);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(43);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(42);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(42),i=n(68),o=n(69);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(66),i=n(179),o=n(15),a=n(90),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},function(e,t,n){var r,i=n(180),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(18)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(183),i=n(42),o=n(68);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(184),i=n(185),o=n(186),a=n(187),s=n(188);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(44);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(44),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(44),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(44);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(45);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(45);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(45);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(45);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(41),i=n(92),o=n(200),a=n(203),s=n(46),l=n(12),u=n(38),c=n(61),f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,h,m){var v=l(e),g=l(t),y=v?"[object Array]":s(e),b=g?"[object Array]":s(t),_=(y="[object Arguments]"==y?f:y)==f,w=(b="[object Arguments]"==b?f:b)==f,x=y==b;if(x&&u(e)){if(!u(t))return!1;v=!0,_=!1}if(x&&!_)return m||(m=new r),v||c(e)?i(e,t,n,d,h,m):o(e,t,y,n,d,h,m);if(!(1&n)){var k=_&&p.call(e,"__wrapped__"),E=w&&p.call(t,"__wrapped__");if(k||E){var C=k?e.value():e,S=E?t.value():t;return m||(m=new r),h(C,S,n,d,m)}}return!!x&&(m||(m=new r),a(e,t,n,d,h,m))}},function(e,t,n){var r=n(69),i=n(196),o=n(197);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(31),i=n(93),o=n(33),a=n(92),s=n(201),l=n(202),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=s;case"[object Set]":var h=1&r;if(d||(d=l),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var v=a(d(e),d(t),r,u,f,p);return p.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(94),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var f=c;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var d=s.get(e),h=s.get(t);if(d&&h)return d==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=l;++f<c;){var g=e[p=u[f]],y=t[p];if(o)var b=l?o(y,g,p,t,e,s):o(g,y,p,e,t,s);if(!(void 0===b?g===y||a(g,y,n,o,s):b)){m=!1;break}v||(v="constructor"==p)}if(m&&!v){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t,n){var r=n(28)(n(18),"DataView");e.exports=r},function(e,t,n){var r=n(28)(n(18),"Promise");e.exports=r},function(e,t,n){var r=n(28)(n(18),"Set");e.exports=r},function(e,t,n){var r=n(28)(n(18),"WeakMap");e.exports=r},function(e,t,n){var r=n(98),i=n(32);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(91),i=n(211),o=n(217),a=n(71),s=n(98),l=n(99),u=n(48);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t,n){var r=n(100);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(213),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(214);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(69);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(216);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(31),i=n(89),o=n(12),a=n(47),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(218),i=n(219);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(101),i=n(59),o=n(12),a=n(60),s=n(62),l=n(48);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,f=!1;++u<c;){var p=l(t[u]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(p,c)&&(o(e)||i(e))}},function(e,t,n){var r=n(221),i=n(222),o=n(71),a=n(48);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(100);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(102),i=n(30);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(30);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(58)),i=a(n(226)),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map((function(t){var i=e[t];return i&&(0,r.default)(i,(function(e,t){n[t]||(n[t]={}),n[t]=o({},n[t],i[t])})),t})),n};t.default=s},function(e,t,n){var r=n(227);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(41),i=n(103),o=n(104),a=n(228),s=n(229),l=n(106),u=n(107),c=n(232),f=n(233),p=n(94),d=n(234),h=n(46),m=n(235),v=n(236),g=n(110),y=n(12),b=n(38),_=n(241),w=n(15),x=n(243),k=n(32),E=n(35),C={};C["[object Arguments]"]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C["[object Object]"]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C["[object Function]"]=C["[object WeakMap]"]=!1,e.exports=function e(t,n,S,O,A,j){var P,N=1&n,T=2&n,M=4&n;if(S&&(P=A?S(t,O,A,j):S(t)),void 0!==P)return P;if(!w(t))return t;var D=y(t);if(D){if(P=m(t),!N)return u(t,P)}else{var L=h(t),F="[object Function]"==L||"[object GeneratorFunction]"==L;if(b(t))return l(t,N);if("[object Object]"==L||"[object Arguments]"==L||F&&!A){if(P=T||F?{}:g(t),!N)return T?f(t,s(P,t)):c(t,a(P,t))}else{if(!C[L])return A?t:{};P=v(t,L,N)}}j||(j=new r);var I=j.get(t);if(I)return I;j.set(t,P),x(t)?t.forEach((function(r){P.add(e(r,n,S,r,t,j))})):_(t)&&t.forEach((function(r,i){P.set(i,e(r,n,S,i,t,j))}));var R=D?void 0:(M?T?d:p:T?E:k)(t);return i(R||t,(function(r,i){R&&(r=t[i=r]),o(P,i,e(r,n,S,i,t,j))})),P}},function(e,t,n){var r=n(34),i=n(32);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(34),i=n(35);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(15),i=n(65),o=n(231),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(34),i=n(70);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(34),i=n(108);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(95),i=n(108),o=n(35);e.exports=function(e){return r(e,o,i)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(73),i=n(237),o=n(238),a=n(239),s=n(109);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Set]":return new l;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(73);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(31),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(15),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(242),i=n(63),o=n(64),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(46),i=n(20);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(244),i=n(63),o=n(64),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(46),i=n(20);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,i=n(58),o=(r=i)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},l=t.autoprefix=function(e){var t={};return(0,o.default)(e,(function(e,n){var r={};(0,o.default)(e,(function(e,t){var n=s[t];n?r=a({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,u;s(this,r);for(var c=arguments.length,f=Array(c),p=0;p<c;p++)f[p]=arguments[p];return o=u=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(f))),u.state={hover:!1},u.handleMouseOver=function(){return u.setState({hover:!0})},u.handleMouseOut=function(){return u.setState({hover:!1})},u.render=function(){return a.default.createElement(t,{onMouseOver:u.handleMouseOver,onMouseOut:u.handleMouseOut},a.default.createElement(e,i({},u.props,u.state)))},l(u,o)}return u(r,n),r}(a.default.Component)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,u;s(this,r);for(var c=arguments.length,f=Array(c),p=0;p<c;p++)f[p]=arguments[p];return o=u=l(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(f))),u.state={active:!1},u.handleMouseDown=function(){return u.setState({active:!0})},u.handleMouseUp=function(){return u.setState({active:!1})},u.render=function(){return a.default.createElement(t,{onMouseDown:u.handleMouseDown,onMouseUp:u.handleMouseUp},a.default.createElement(e,i({},u.props,u.state)))},l(u,o)}return u(r,n),r}(a.default.Component)};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=c(o),s=c(n(6)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(250)),u=c(n(74));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=t.Alpha=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=l.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,s.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:r({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return a.default.createElement("div",{style:n.alpha},a.default.createElement("div",{style:n.checkboard},a.default.createElement(u.default,{renderers:this.props.renderers})),a.default.createElement("div",{style:n.gradient}),a.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("div",{style:n.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:n.slider}))))}}]),t}(o.PureComponent||o.Component);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r,i){var o=i.clientWidth,a=i.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=s-(i.getBoundingClientRect().left+window.pageXOffset),c=l-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var f=void 0;if(f=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var p=void 0;if(r!==(p=u<0?0:u>o?1:Math.round(100*u/o)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},i=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null};t.get=function(e,t,n,o){var a=e+"-"+t+"-"+n+(o?"-server":"");if(r[a])return r[a];var s=i(e,t,n,o);return r[a]=s,s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=s(i),a=s(n(6));function s(e){return e&&e.__esModule?e:{default:e}}var l=[38,40],u=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,l.indexOf(t)>-1)){var i=n.getArrowOffset(),o=38===e.keyCode?r+i:r-i;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,a.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.default.createElement("div",{style:t.wrap},o.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(i.PureComponent||i.Component);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=l(i),a=l(n(6)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(254));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=t.Hue=function(e){function t(){var e,n,r;u(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=s.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,a.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return o.default.createElement("div",{style:r.hue},o.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),o.default.createElement("div",{style:r.pointer},this.props.pointer?o.default.createElement(this.props.pointer,this.props):o.default.createElement("div",{style:r.slider}))))}}]),t}(i.PureComponent||i.Component);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(r.getBoundingClientRect().left+window.pageXOffset),u=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(u<0)c=359;else if(u>o)c=0;else{c=360*(-100*u/o+100)/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var f=void 0;if(l<0)f=0;else if(l>i)f=359;else{f=360*(100*l/i)/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=s(n(0)),i=s(n(2)),o=s(n(6)),a=s(n(13));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.Raised=function(e){var t=e.zDepth,n=e.radius,i=e.background,s=e.children,l=e.styles,u=void 0===l?{}:l,c=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},u),{"zDepth-1":1===t});return r.default.createElement("div",{style:c.wrap},r.default.createElement("div",{style:c.bg}),r.default.createElement("div",{style:c.content},s))};l.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},l.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=l},function(e,t,n){var r=n(41),i=n(111),o=n(84),a=n(257),s=n(15),l=n(35),u=n(112);e.exports=function e(t,n,c,f,p){t!==n&&o(n,(function(o,l){if(p||(p=new r),s(o))a(t,n,l,c,e,f,p);else{var d=f?f(u(t,l),o,l+"",t,n,p):void 0;void 0===d&&(d=o),i(t,l,d)}}),l)}},function(e,t,n){var r=n(111),i=n(106),o=n(109),a=n(107),s=n(110),l=n(59),u=n(12),c=n(258),f=n(38),p=n(66),d=n(15),h=n(88),m=n(61),v=n(112),g=n(259);e.exports=function(e,t,n,y,b,_,w){var x=v(e,n),k=v(t,n),E=w.get(k);if(E)r(e,n,E);else{var C=_?_(x,k,n+"",e,t,w):void 0,S=void 0===C;if(S){var O=u(k),A=!O&&f(k),j=!O&&!A&&m(k);C=k,O||A||j?u(x)?C=x:c(x)?C=a(x):A?(S=!1,C=i(k,!0)):j?(S=!1,C=o(k,!0)):C=[]:h(k)||l(k)?(C=x,l(x)?C=g(x):d(x)&&!p(x)||(C=s(k))):S=!1}S&&(w.set(k,C),b(C,k,y,_,w),w.delete(k)),r(e,n,C)}}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(e){return i(e)&&r(e)}},function(e,t,n){var r=n(34),i=n(35);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(261),i=n(268);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},function(e,t,n){var r=n(40),i=n(262),o=n(264);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(263),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(265),i=n(267)(r);e.exports=i},function(e,t,n){var r=n(266),i=n(105),o=n(40),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(33),i=n(30),o=n(60),a=n(15);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=u(i),a=u(n(6)),s=u(n(270)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(273));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,l.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,s.default)((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,s=t.pointer,l=t.circle,u=(0,a.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:s,circle:l}},{custom:!!this.props.style});return o.default.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),o.default.createElement("div",{style:u.white,className:"saturation-white"},o.default.createElement("div",{style:u.black,className:"saturation-black"}),o.default.createElement("div",{style:u.pointer},this.props.pointer?o.default.createElement(this.props.pointer,this.props):o.default.createElement("div",{style:u.circle}))))}}]),t}(i.PureComponent||i.Component);t.default=c},function(e,t,n){var r=n(113),i=n(15);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},function(e,t,n){var r=n(18);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(15),i=n(47),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>i&&(l=i),u<0?u=0:u>o&&(u=o);var c=l/i,f=1-u/o;return{h:t.h,s:c,v:f,a:t.a,source:"hsv"}}},function(e,t,n){e.exports=n(275)},function(e,t,n){var r=n(103),i=n(102),o=n(87),a=n(12);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},function(e,t,n){var r;!function(i){var o=/^\s+/,a=/\s+$/,s=0,l=i.round,u=i.min,c=i.max,f=i.random;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,l=null,f=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(P[e])e=P[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=H.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=H.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=H.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=H.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=H.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=H.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=H.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:B(t[4]),format:n?"name":"hex8"};if(t=H.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:n?"name":"hex"};if(t=H.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:B(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=H.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(V(e.r)&&V(e.g)&&V(e.b)?(d=e.r,h=e.g,m=e.b,t={r:255*M(d,255),g:255*M(h,255),b:255*M(m,255)},f=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):V(e.h)&&V(e.s)&&V(e.v)?(r=I(e.s),s=I(e.v),t=function(e,t,n){e=6*M(e,360),t=M(t,100),n=M(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),l=n*(1-(1-o)*t),u=r%6;return{r:255*[n,s,a,a,l,n][u],g:255*[l,n,n,s,a,a][u],b:255*[a,a,l,n,n,s][u]}}(e.h,r,s),f=!0,p="hsv"):V(e.h)&&V(e.s)&&V(e.l)&&(r=I(e.s),l=I(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=M(e,360),t=M(t,100),n=M(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,l),f=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,m;return n=T(n),{ok:f,format:e.format||p,r:u(255,c(t.r,0)),g:u(255,c(t.g,0)),b:u(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=s++}function d(e,t,n){e=M(e,255),t=M(t,255),n=M(n,255);var r,i,o=c(e,t,n),a=u(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,l:s}}function h(e,t,n){e=M(e,255),t=M(t,255),n=M(n,255);var r,i,o=c(e,t,n),a=u(e,t,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:i,v:s}}function m(e,t,n,r){var i=[F(l(e).toString(16)),F(l(t).toString(16)),F(l(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function v(e,t,n,r){return[F(R(r)),F(l(e).toString(16)),F(l(t).toString(16)),F(l(n).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s-=t/100,n.s=D(n.s),p(n)}function y(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s+=t/100,n.s=D(n.s),p(n)}function b(e){return p(e).desaturate(100)}function _(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l+=t/100,n.l=D(n.l),p(n)}function w(e,t){t=0===t?0:t||10;var n=p(e).toRgb();return n.r=c(0,u(255,n.r-l(-t/100*255))),n.g=c(0,u(255,n.g-l(-t/100*255))),n.b=c(0,u(255,n.b-l(-t/100*255))),p(n)}function x(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l-=t/100,n.l=D(n.l),p(n)}function k(e,t){var n=p(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,p(n)}function E(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function C(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+120)%360,s:t.s,l:t.l}),p({h:(n+240)%360,s:t.s,l:t.l})]}function S(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+90)%360,s:t.s,l:t.l}),p({h:(n+180)%360,s:t.s,l:t.l}),p({h:(n+270)%360,s:t.s,l:t.l})]}function O(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+72)%360,s:t.s,l:t.l}),p({h:(n+216)%360,s:t.s,l:t.l})]}function A(e,t,n){t=t||6,n=n||30;var r=p(e).toHsl(),i=360/n,o=[p(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(p(r));return o}function j(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(p({h:r,s:i,v:o})),o=(o+s)%1;return a}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[F(l(e).toString(16)),F(l(t).toString(16)),F(l(n).toString(16)),F(R(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*M(this._r,255))+"%",g:l(100*M(this._g,255))+"%",b:l(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%)":"rgba("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=p(e);n="#"+v(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:I(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:f(),g:f(),b:f()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),i=p(t).toRgb(),o=n/100;return p({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,i,o=p.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},p.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=p.readability(e,t[u]))>l&&(l=r,s=p(t[u]));return p.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var P=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(P);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function M(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return u(1,c(0,e))}function L(e){return parseInt(e,16)}function F(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function R(e){return i.round(255*parseFloat(e)).toString(16)}function B(e){return L(e)/255}var $,W,z,H=(W="[\\s|\\(]+("+($="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",z="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(e){return!!H.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=l(n(0)),o=l(n(6)),a=n(278),s=l(n(74));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.Swatch=function(e){var t=e.color,n=e.style,a=e.onClick,l=void 0===a?function(){}:a,u=e.onHover,c=e.title,f=void 0===c?t:c,p=e.children,d=e.focus,h=e.focusStyle,m=void 0===h?{}:h,v="transparent"===t,g=(0,o.default)({default:{swatch:r({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,d?m:{})}}),y={};return u&&(y.onMouseOver=function(e){return u(t,e)}),i.default.createElement("div",r({style:g.swatch,onClick:function(e){return l(t,e)},title:f,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&l(t,e)}},y),p,v&&i.default.createElement(s.default,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,a.handleFocus)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;l(this,r);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=n=u(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(o))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},u(n,t)}return c(r,n),o(r,[{key:"render",value:function(){return s.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},s.default.createElement(e,i({},this.props,this.state)))}}]),r}(s.default.Component)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPointer=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.AlphaPointer=function(e){var t=e.direction,n=(0,i.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var r=c(n(0)),i=c(n(2)),o=c(n(6)),a=c(n(13)),s=c(n(21)),l=n(8),u=c(n(281));function c(e){return e&&e.__esModule?e:{default:e}}var f=t.Block=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,c=e.colors,f=e.width,p=e.triangle,d=e.styles,h=void 0===d?{}:d,m=e.className,v=void 0===m?"":m,g="transparent"===i,y=function(e,n){s.default.isValidHex(e)&&t({hex:e,source:"hex"},n)},b=(0,o.default)((0,a.default)({default:{card:{width:f,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:s.default.getContrastingColor(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},h),{"hide-triangle":"hide"===p});return r.default.createElement("div",{style:b.card,className:"block-picker "+v},r.default.createElement("div",{style:b.triangle}),r.default.createElement("div",{style:b.head},g&&r.default.createElement(l.Checkboard,{borderRadius:"6px 6px 0 0"}),r.default.createElement("div",{style:b.label},i)),r.default.createElement("div",{style:b.body},r.default.createElement(u.default,{colors:c,onClick:y,onSwatchHover:n}),r.default.createElement(l.EditableInput,{style:{input:b.input},value:i,onChange:y})))};f.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.string),triangle:i.default.oneOf(["top","hide"]),styles:i.default.object},f.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},t.default=(0,l.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var r=s(n(0)),i=s(n(6)),o=s(n(22)),a=n(8);function s(e){return e&&e.__esModule?e:{default:e}}var l=t.BlockSwatches=function(e){var t=e.colors,n=e.onClick,s=e.onSwatchHover,l=(0,i.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.default.createElement("div",{style:l.swatches},(0,o.default)(t,(function(e){return r.default.createElement(a.Swatch,{key:e,color:e,style:l.swatch,onClick:n,onHover:s,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:l.clear}))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var r=f(n(0)),i=f(n(2)),o=f(n(6)),a=f(n(22)),s=f(n(13)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(115)),u=n(8),c=f(n(283));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Circle=function(e){var t=e.width,n=e.onChange,i=e.onSwatchHover,l=e.colors,u=e.hex,f=e.circleSize,p=e.styles,d=void 0===p?{}:p,h=e.circleSpacing,m=e.className,v=void 0===m?"":m,g=(0,o.default)((0,s.default)({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},d)),y=function(e,t){return n({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:g.card,className:"circle-picker "+v},(0,a.default)(l,(function(e){return r.default.createElement(c.default,{key:e,color:e,onClick:y,onSwatchHover:i,active:u===e.toLowerCase(),circleSize:f,circleSpacing:h})})))};p.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),circleSize:i.default.number,circleSpacing:i.default.number,styles:i.default.object},p.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[l.red[500],l.pink[500],l.purple[500],l.deepPurple[500],l.indigo[500],l.blue[500],l.lightBlue[500],l.cyan[500],l.teal[500],l.green[500],l.lightGreen[500],l.lime[500],l.yellow[500],l.amber[500],l.orange[500],l.deepOrange[500],l.brown[500],l.blueGrey[500]],styles:{}},t.default=(0,u.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleSwatch=void 0;var r=s(n(0)),i=n(6),o=s(i),a=n(8);function s(e){return e&&e.__esModule?e:{default:e}}var l=t.CircleSwatch=function(e){var t=e.color,n=e.onClick,i=e.onSwatchHover,s=e.hover,l=e.active,u=e.circleSize,c=e.circleSpacing,f=(0,o.default)({default:{swatch:{width:u,height:u,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(u/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:s,active:l});return r.default.createElement("div",{style:f.swatch},r.default.createElement(a.Swatch,{style:f.Swatch,color:t,onClick:n,onHover:i,focusStyle:{boxShadow:f.Swatch.boxShadow+", 0 0 5px "+t}}))};l.defaultProps={circleSize:28,circleSpacing:14},t.default=(0,i.handleHover)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var r=f(n(0)),i=f(n(2)),o=f(n(6)),a=f(n(13)),s=n(8),l=f(n(285)),u=f(n(288)),c=f(n(289));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Chrome=function(e){var t=e.width,n=e.onChange,i=e.disableAlpha,f=e.rgb,p=e.hsl,d=e.hsv,h=e.hex,m=e.renderers,v=e.styles,g=void 0===v?{}:v,y=e.className,b=void 0===y?"":y,_=e.defaultView,w=(0,o.default)((0,a.default)({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+f.r+", "+f.g+", "+f.b+", "+f.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},g),{disableAlpha:i});return r.default.createElement("div",{style:w.picker,className:"chrome-picker "+b},r.default.createElement("div",{style:w.saturation},r.default.createElement(s.Saturation,{style:w.Saturation,hsl:p,hsv:d,pointer:c.default,onChange:n})),r.default.createElement("div",{style:w.body},r.default.createElement("div",{style:w.controls,className:"flexbox-fix"},r.default.createElement("div",{style:w.color},r.default.createElement("div",{style:w.swatch},r.default.createElement("div",{style:w.active}),r.default.createElement(s.Checkboard,{renderers:m}))),r.default.createElement("div",{style:w.toggles},r.default.createElement("div",{style:w.hue},r.default.createElement(s.Hue,{style:w.Hue,hsl:p,pointer:u.default,onChange:n})),r.default.createElement("div",{style:w.alpha},r.default.createElement(s.Alpha,{style:w.Alpha,rgb:f,hsl:p,pointer:u.default,renderers:m,onChange:n})))),r.default.createElement(l.default,{rgb:f,hsl:p,hex:h,view:_,onChange:n,disableAlpha:i})))};p.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),disableAlpha:i.default.bool,styles:i.default.object,defaultView:i.default.oneOf(["hex","rgb","hsl"])},p.defaultProps={width:225,disableAlpha:!1,styles:{}},t.default=(0,s.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeFields=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(0)),o=c(n(6)),a=c(n(21)),s=c(n(286)),l=n(8),u=c(n(287));function c(e){return e&&e.__esModule?e:{default:e}}var f=t.ChromeFields=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?a.default.isValidHex(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number((0,s.default)(e.s)?n.props.hsl.s:e.s),l:Number((0,s.default)(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this,t=(0,o.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,i.default.createElement("div",{style:t.toggle},i.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},i.default.createElement(u.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(i.default.Component);f.defaultProps={view:"hex"},t.default=f},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:l},c)},f),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointer=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.ChromePointer=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointerCircle=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.ChromePointerCircle=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var r=p(n(0)),i=p(n(2)),o=p(n(6)),a=p(n(22)),s=p(n(13)),l=p(n(21)),u=n(8),c=p(n(291)),f=p(n(292));function p(e){return e&&e.__esModule?e:{default:e}}var d=t.Compact=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.colors,p=e.hex,d=e.rgb,h=e.styles,m=void 0===h?{}:h,v=e.className,g=void 0===v?"":v,y=(0,o.default)((0,s.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},m)),b=function(e,n){e.hex?l.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.default.createElement(u.Raised,{style:y.Compact,styles:m},r.default.createElement("div",{style:y.compact,className:"compact-picker "+g},r.default.createElement("div",null,(0,a.default)(i,(function(e){return r.default.createElement(c.default,{key:e,color:e,active:e.toLowerCase()===p,onClick:b,onSwatchHover:n})})),r.default.createElement("div",{style:y.clear})),r.default.createElement(f.default,{hex:p,rgb:d,onChange:b})))};d.propTypes={colors:i.default.arrayOf(i.default.string),styles:i.default.object},d.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},t.default=(0,u.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactColor=void 0;var r=s(n(0)),i=s(n(6)),o=s(n(21)),a=n(8);function s(e){return e&&e.__esModule?e:{default:e}}var l=t.CompactColor=function(e){var t=e.color,n=e.onClick,s=void 0===n?function(){}:n,l=e.onSwatchHover,u=e.active,c=(0,i.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:o.default.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:u,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(a.Swatch,{style:c.color,color:t,onClick:s,onHover:l,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:c.dot}))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var r=a(n(0)),i=a(n(6)),o=n(8);function a(e){return e&&e.__esModule?e:{default:e}}var s=t.CompactFields=function(e){var t=e.hex,n=e.rgb,a=e.onChange,s=(0,i.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),l=function(e,t){e.r||e.g||e.b?a({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):a({hex:e.hex,source:"hex"},t)};return r.default.createElement("div",{style:s.fields,className:"flexbox-fix"},r.default.createElement("div",{style:s.active}),r.default.createElement(o.EditableInput,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"hex",value:t,onChange:l}),r.default.createElement(o.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:n.r,onChange:l}),r.default.createElement(o.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:n.g,onChange:l}),r.default.createElement(o.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:n.b,onChange:l}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Github=void 0;var r=c(n(0)),i=c(n(2)),o=c(n(6)),a=c(n(22)),s=c(n(13)),l=n(8),u=c(n(294));function c(e){return e&&e.__esModule?e:{default:e}}var f=t.Github=function(e){var t=e.width,n=e.colors,i=e.onChange,l=e.onSwatchHover,c=e.triangle,f=e.styles,p=void 0===f?{}:f,d=e.className,h=void 0===d?"":d,m=(0,o.default)((0,s.default)({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},p),{"hide-triangle":"hide"===c,"top-left-triangle":"top-left"===c,"top-right-triangle":"top-right"===c,"bottom-left-triangle":"bottom-left"===c,"bottom-right-triangle":"bottom-right"===c}),v=function(e,t){return i({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:m.card,className:"github-picker "+h},r.default.createElement("div",{style:m.triangleShadow}),r.default.createElement("div",{style:m.triangle}),(0,a.default)(n,(function(e){return r.default.createElement(u.default,{color:e,key:e,onClick:v,onSwatchHover:l})})))};f.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.string),triangle:i.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:i.default.object},f.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},t.default=(0,l.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GithubSwatch=void 0;var r=s(n(0)),i=n(6),o=s(i),a=n(8);function s(e){return e&&e.__esModule?e:{default:e}}var l=t.GithubSwatch=function(e){var t=e.hover,n=e.color,i=e.onClick,s=e.onSwatchHover,l={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},u=(0,o.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:l}},{hover:t});return r.default.createElement("div",{style:u.swatch},r.default.createElement(a.Swatch,{color:n,onClick:i,onHover:s,focusStyle:l}))};t.default=(0,i.handleHover)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HuePicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=c(n(0)),o=c(n(2)),a=c(n(6)),s=c(n(13)),l=n(8),u=c(n(296));function c(e){return e&&e.__esModule?e:{default:e}}var f=t.HuePicker=function(e){var t=e.width,n=e.height,o=e.onChange,u=e.hsl,c=e.direction,f=e.pointer,p=e.styles,d=void 0===p?{}:p,h=e.className,m=void 0===h?"":h,v=(0,a.default)((0,s.default)({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},d));return i.default.createElement("div",{style:v.picker,className:"hue-picker "+m},i.default.createElement(l.Hue,r({},v.hue,{hsl:u,pointer:f,onChange:function(e){return o({a:1,h:e.h,l:.5,s:1})},direction:c})))};f.propTypes={styles:o.default.object},f.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:u.default,styles:{}},t.default=(0,l.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderPointer=function(e){var t=e.direction,n=(0,i.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Material=void 0;var r=l(n(0)),i=l(n(6)),o=l(n(13)),a=l(n(21)),s=n(8);function l(e){return e&&e.__esModule?e:{default:e}}var u=t.Material=function(e){var t=e.onChange,n=e.hex,l=e.rgb,u=e.styles,c=void 0===u?{}:u,f=e.className,p=void 0===f?"":f,d=(0,i.default)((0,o.default)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},c)),h=function(e,n){e.hex?a.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||l.r,g:e.g||l.g,b:e.b||l.b,source:"rgb"},n)};return r.default.createElement(s.Raised,{styles:c},r.default.createElement("div",{style:d.material,className:"material-picker "+p},r.default.createElement(s.EditableInput,{style:{wrap:d.HEXwrap,input:d.HEXinput,label:d.HEXlabel},label:"hex",value:n,onChange:h}),r.default.createElement("div",{style:d.split,className:"flexbox-fix"},r.default.createElement("div",{style:d.third},r.default.createElement(s.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"r",value:l.r,onChange:h})),r.default.createElement("div",{style:d.third},r.default.createElement(s.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"g",value:l.g,onChange:h})),r.default.createElement("div",{style:d.third},r.default.createElement(s.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"b",value:l.b,onChange:h})))))};t.default=(0,s.ColorWrap)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=h(n(0)),o=h(n(2)),a=h(n(6)),s=h(n(13)),l=n(8),u=h(n(299)),c=h(n(300)),f=h(n(301)),p=h(n(302)),d=h(n(303));function h(e){return e&&e.__esModule?e:{default:e}}var m=t.Photoshop=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,o=void 0===r?"":r,h=(0,a.default)((0,s.default)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return i.default.createElement("div",{style:h.picker,className:"photoshop-picker "+o},i.default.createElement("div",{style:h.head},this.props.header),i.default.createElement("div",{style:h.body,className:"flexbox-fix"},i.default.createElement("div",{style:h.saturation},i.default.createElement(l.Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:c.default,onChange:this.props.onChange})),i.default.createElement("div",{style:h.hue},i.default.createElement(l.Hue,{direction:"vertical",hsl:this.props.hsl,pointer:f.default,onChange:this.props.onChange})),i.default.createElement("div",{style:h.controls},i.default.createElement("div",{style:h.top,className:"flexbox-fix"},i.default.createElement("div",{style:h.previews},i.default.createElement(d.default,{rgb:this.props.rgb,currentColor:this.state.currentColor})),i.default.createElement("div",{style:h.actions},i.default.createElement(p.default,{label:"OK",onClick:this.props.onAccept,active:!0}),i.default.createElement(p.default,{label:"Cancel",onClick:this.props.onCancel}),i.default.createElement(u.default,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(i.default.Component);m.propTypes={header:o.default.string,styles:o.default.object},m.defaultProps={header:"Color Picker",styles:{}},t.default=(0,l.ColorWrap)(m)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var r=s(n(0)),i=s(n(6)),o=s(n(21)),a=n(8);function s(e){return e&&e.__esModule?e:{default:e}}var l=t.PhotoshopPicker=function(e){var t=e.onChange,n=e.rgb,s=e.hsv,l=e.hex,u=(0,i.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),c=function(e,r){e["#"]?o.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||s.h,s:e.s||s.s,v:e.v||s.v,source:"hsv"},r)};return r.default.createElement("div",{style:u.fields},r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"h",value:Math.round(s.h),onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"s",value:Math.round(100*s.s),onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"v",value:Math.round(100*s.v),onChange:c}),r.default.createElement("div",{style:u.divider}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:n.r,onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:n.g,onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:n.b,onChange:c}),r.default.createElement("div",{style:u.divider}),r.default.createElement(a.EditableInput,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"#",value:l.replace("#",""),onChange:c}),r.default.createElement("div",{style:u.fieldSymbols},r.default.createElement("div",{style:u.symbol},"°"),r.default.createElement("div",{style:u.symbol},"%"),r.default.createElement("div",{style:u.symbol},"%")))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(e){var t=e.hsl,n=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(){var e=(0,i.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.default.createElement("div",{style:e.pointer},r.default.createElement("div",{style:e.left},r.default.createElement("div",{style:e.leftInside})),r.default.createElement("div",{style:e.right},r.default.createElement("div",{style:e.rightInside})))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopButton=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopButton=function(e){var t=e.onClick,n=e.label,o=e.children,a=e.active,s=(0,i.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.default.createElement("div",{style:s.button,onClick:t},n||o)};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,o=(0,i.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.default.createElement("div",null,r.default.createElement("div",{style:o.label},"new"),r.default.createElement("div",{style:o.swatches},r.default.createElement("div",{style:o.new}),r.default.createElement("div",{style:o.current})),r.default.createElement("div",{style:o.label},"current"))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=f(n(0)),o=f(n(2)),a=f(n(6)),s=f(n(13)),l=n(8),u=f(n(305)),c=f(n(306));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Sketch=function(e){var t=e.width,n=e.rgb,o=e.hex,f=e.hsv,p=e.hsl,d=e.onChange,h=e.onSwatchHover,m=e.disableAlpha,v=e.presetColors,g=e.renderers,y=e.styles,b=void 0===y?{}:y,_=e.className,w=void 0===_?"":_,x=(0,a.default)((0,s.default)({default:r({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},b),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},b),{disableAlpha:m});return i.default.createElement("div",{style:x.picker,className:"sketch-picker "+w},i.default.createElement("div",{style:x.saturation},i.default.createElement(l.Saturation,{style:x.Saturation,hsl:p,hsv:f,onChange:d})),i.default.createElement("div",{style:x.controls,className:"flexbox-fix"},i.default.createElement("div",{style:x.sliders},i.default.createElement("div",{style:x.hue},i.default.createElement(l.Hue,{style:x.Hue,hsl:p,onChange:d})),i.default.createElement("div",{style:x.alpha},i.default.createElement(l.Alpha,{style:x.Alpha,rgb:n,hsl:p,renderers:g,onChange:d}))),i.default.createElement("div",{style:x.color},i.default.createElement(l.Checkboard,null),i.default.createElement("div",{style:x.activeColor}))),i.default.createElement(u.default,{rgb:n,hsl:p,hex:o,onChange:d,disableAlpha:m}),i.default.createElement(c.default,{colors:v,onClick:d,onSwatchHover:h}))};p.propTypes={disableAlpha:o.default.bool,width:o.default.oneOfType([o.default.string,o.default.number]),styles:o.default.object},p.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,l.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchFields=void 0;var r=s(n(0)),i=s(n(6)),o=s(n(21)),a=n(8);function s(e){return e&&e.__esModule?e:{default:e}}var l=t.SketchFields=function(e){var t=e.onChange,n=e.rgb,s=e.hsl,l=e.hex,u=e.disableAlpha,c=(0,i.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),f=function(e,r){e.hex?o.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:s.h,s:s.s,l:s.l,a:e.a,source:"rgb"},r))};return r.default.createElement("div",{style:c.fields,className:"flexbox-fix"},r.default.createElement("div",{style:c.double},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"hex",value:l.replace("#",""),onChange:f})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"r",value:n.r,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"g",value:n.g,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"b",value:n.b,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.alpha},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"a",value:Math.round(100*n.a),onChange:f,dragLabel:"true",dragMax:"100"})))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=l(n(0)),o=l(n(2)),a=l(n(6)),s=n(8);function l(e){return e&&e.__esModule?e:{default:e}}var u=t.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,o=void 0===n?function(){}:n,l=e.onSwatchHover,u=(0,a.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),c=function(e,t){o({hex:e,source:"hex"},t)};return i.default.createElement("div",{style:u.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return i.default.createElement("div",{key:n,style:u.swatchWrap},i.default.createElement(s.Swatch,r({},t,{style:u.swatch,onClick:c,onHover:l,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};u.propTypes={colors:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.shape({color:o.default.string,title:o.default.string})])).isRequired},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;var r=c(n(0)),i=c(n(2)),o=c(n(6)),a=c(n(13)),s=n(8),l=c(n(308)),u=c(n(310));function c(e){return e&&e.__esModule?e:{default:e}}var f=t.Slider=function(e){var t=e.hsl,n=e.onChange,i=e.pointer,u=e.styles,c=void 0===u?{}:u,f=e.className,p=void 0===f?"":f,d=(0,o.default)((0,a.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},c));return r.default.createElement("div",{style:d.wrap||{},className:"slider-picker "+p},r.default.createElement("div",{style:d.hue},r.default.createElement(s.Hue,{style:d.Hue,hsl:t,pointer:i,onChange:n})),r.default.createElement("div",{style:d.swatches},r.default.createElement(l.default,{hsl:t,onClick:n})))};f.propTypes={styles:i.default.object},f.defaultProps={pointer:u.default,styles:{}},t.default=(0,s.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatches=void 0;var r=a(n(0)),i=a(n(6)),o=a(n(309));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.SliderSwatches=function(e){var t=e.onClick,n=e.hsl,a=(0,i.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return r.default.createElement("div",{style:a.swatches},r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<.1&&Math.abs(n.s-.5)<.1,onClick:t,first:!0})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<.1&&Math.abs(n.s-.5)<.1,onClick:t,last:!0})),r.default.createElement("div",{style:a.clear}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatch=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderSwatch=function(e){var t=e.hsl,n=e.offset,o=e.onClick,a=void 0===o?function(){}:o,s=e.active,l=e.first,u=e.last,c=(0,i.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:l,last:u});return r.default.createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=o(n(0)),i=o(n(6));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderPointer=function(){var e=(0,i.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatches=void 0;var r=f(n(0)),i=f(n(2)),o=f(n(6)),a=f(n(22)),s=f(n(13)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(115)),u=n(8),c=f(n(312));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Swatches=function(e){var t=e.width,n=e.height,i=e.onChange,l=e.onSwatchHover,f=e.colors,p=e.hex,d=e.styles,h=void 0===d?{}:d,m=e.className,v=void 0===m?"":m,g=(0,o.default)((0,s.default)({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},h)),y=function(e,t){return i({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:g.picker,className:"swatches-picker "+v},r.default.createElement(u.Raised,null,r.default.createElement("div",{style:g.overflow},r.default.createElement("div",{style:g.body},(0,a.default)(f,(function(e){return r.default.createElement(c.default,{key:e.toString(),group:e,active:p,onClick:y,onSwatchHover:l})})),r.default.createElement("div",{style:g.clear})))))};p.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.arrayOf(i.default.string)),styles:i.default.object},p.defaultProps={width:320,height:240,colors:[[l.red[900],l.red[700],l.red[500],l.red[300],l.red[100]],[l.pink[900],l.pink[700],l.pink[500],l.pink[300],l.pink[100]],[l.purple[900],l.purple[700],l.purple[500],l.purple[300],l.purple[100]],[l.deepPurple[900],l.deepPurple[700],l.deepPurple[500],l.deepPurple[300],l.deepPurple[100]],[l.indigo[900],l.indigo[700],l.indigo[500],l.indigo[300],l.indigo[100]],[l.blue[900],l.blue[700],l.blue[500],l.blue[300],l.blue[100]],[l.lightBlue[900],l.lightBlue[700],l.lightBlue[500],l.lightBlue[300],l.lightBlue[100]],[l.cyan[900],l.cyan[700],l.cyan[500],l.cyan[300],l.cyan[100]],[l.teal[900],l.teal[700],l.teal[500],l.teal[300],l.teal[100]],["#194D33",l.green[700],l.green[500],l.green[300],l.green[100]],[l.lightGreen[900],l.lightGreen[700],l.lightGreen[500],l.lightGreen[300],l.lightGreen[100]],[l.lime[900],l.lime[700],l.lime[500],l.lime[300],l.lime[100]],[l.yellow[900],l.yellow[700],l.yellow[500],l.yellow[300],l.yellow[100]],[l.amber[900],l.amber[700],l.amber[500],l.amber[300],l.amber[100]],[l.orange[900],l.orange[700],l.orange[500],l.orange[300],l.orange[100]],[l.deepOrange[900],l.deepOrange[700],l.deepOrange[500],l.deepOrange[300],l.deepOrange[100]],[l.brown[900],l.brown[700],l.brown[500],l.brown[300],l.brown[100]],[l.blueGrey[900],l.blueGrey[700],l.blueGrey[500],l.blueGrey[300],l.blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},t.default=(0,u.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesGroup=void 0;var r=s(n(0)),i=s(n(6)),o=s(n(22)),a=s(n(313));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.SwatchesGroup=function(e){var t=e.onClick,n=e.onSwatchHover,s=e.group,l=e.active,u=(0,i.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r.default.createElement("div",{style:u.group},(0,o.default)(s,(function(e,i){return r.default.createElement(a.default,{key:e,color:e,active:e.toLowerCase()===l,first:0===i,last:i===s.length-1,onClick:t,onSwatchHover:n})})))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesColor=void 0;var r=l(n(0)),i=l(n(6)),o=l(n(21)),a=n(8),s=l(n(314));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.SwatchesColor=function(e){var t=e.color,n=e.onClick,l=void 0===n?function(){}:n,u=e.onSwatchHover,c=e.first,f=e.last,p=e.active,d=(0,i.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:o.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:c,last:f,active:p,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(a.Swatch,{color:t,style:d.color,onClick:l,onHover:u,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:d.check},r.default.createElement(s.default,null)))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(0),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:l},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Twitter=void 0;var r=c(n(0)),i=c(n(2)),o=c(n(6)),a=c(n(22)),s=c(n(13)),l=c(n(21)),u=n(8);function c(e){return e&&e.__esModule?e:{default:e}}var f=t.Twitter=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,c=e.colors,f=e.width,p=e.triangle,d=e.styles,h=void 0===d?{}:d,m=e.className,v=void 0===m?"":m,g=(0,o.default)((0,s.default)({default:{card:{width:f,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},h),{"hide-triangle":"hide"===p,"top-left-triangle":"top-left"===p,"top-right-triangle":"top-right"===p}),y=function(e,n){l.default.isValidHex(e)&&t({hex:e,source:"hex"},n)};return r.default.createElement("div",{style:g.card,className:"twitter-picker "+v},r.default.createElement("div",{style:g.triangleShadow}),r.default.createElement("div",{style:g.triangle}),r.default.createElement("div",{style:g.body},(0,a.default)(c,(function(e,t){return r.default.createElement(u.Swatch,{key:t,color:e,hex:e,style:g.swatch,onClick:y,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:g.hash},"#"),r.default.createElement(u.EditableInput,{label:null,style:{input:g.input},value:i.replace("#",""),onChange:y}),r.default.createElement("div",{style:g.clear})))};f.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),triangle:i.default.oneOf(["hide","top-left","top-right"]),colors:i.default.arrayOf(i.default.string),styles:i.default.object},f.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},t.default=(0,u.ColorWrap)(f)},function(e,t,n){"use strict";(function(e){var r=n(317),i=n(318),o=n(319);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|d(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return $(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,p=0;p<l;p++)if(u(e,o+p)!==u(t,p)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return z($(t,e.length-n),e,n,r)}function w(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function k(e,t,n,r){return z(W(t),e,n,r)}function E(e,t,n,r){return z(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){o=u[f],a=c[f];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function j(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=B(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||T(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||T(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);T(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);T(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:$(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var R=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function $(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(29))},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=p(n(2)),o=p(n(14)),a=p(n(78)),s=n(75),l=n(116),u=n(49),c=p(n(325)),f=p(n(117));function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(n,e);var t=E(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),A(S(r=t.call(this,e)),"onDragStart",(function(e,t){if((0,f.default)("Draggable: onDragStart: %j",t),!1===r.props.onStart(e,(0,l.createDraggableData)(S(r),t)))return!1;r.setState({dragging:!0,dragged:!0})})),A(S(r),"onDrag",(function(e,t){if(!r.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",t);var n=(0,l.createDraggableData)(S(r),t),i={x:n.x,y:n.y};if(r.props.bounds){var o=i.x,a=i.y;i.x+=r.state.slackX,i.y+=r.state.slackY;var s=g((0,l.getBoundPosition)(S(r),i.x,i.y),2),u=s[0],c=s[1];i.x=u,i.y=c,i.slackX=r.state.slackX+(o-i.x),i.slackY=r.state.slackY+(a-i.y),n.x=i.x,n.y=i.y,n.deltaX=i.x-r.state.x,n.deltaY=i.y-r.state.y}if(!1===r.props.onDrag(e,n))return!1;r.setState(i)})),A(S(r),"onDragStop",(function(e,t){if(!r.state.dragging)return!1;if(!1===r.props.onStop(e,(0,l.createDraggableData)(S(r),t)))return!1;(0,f.default)("Draggable: onDragStop: %j",t);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(r.props.position)){var i=r.props.position,o=i.x,a=i.y;n.x=o,n.y=a}r.setState(n)})),r.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:_({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),r}return x(n,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:_({},n)})}}]),x(n,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),i=t.defaultPosition,o=t.defaultClassName,u=t.defaultClassNameDragging,f=t.defaultClassNameDragged,p=t.position,d=t.positionOffset,h=(t.scale,v(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),g={},y=null,b=!Boolean(p)||this.state.dragging,w=p||i,x={x:(0,l.canDragX)(this)&&b?this.state.x:w.x,y:(0,l.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(x,d):g=(0,s.createCSSTransform)(x,d);var k=(0,a.default)(n.props.className||"",o,(A(e={},u,this.state.dragging),A(e,f,this.state.dragged),e));return r.createElement(c.default,m({},h,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:k,style:_(_({},n.props.style),g),transform:y}))}}]),n}(r.Component);t.default=j,A(j,"displayName","Draggable"),A(j,"propTypes",_(_({},c.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe})),A(j,"defaultProps",_(_({},c.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=i,t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var r=["Moz","Webkit","O","ms"];function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n<r.length;n++)if(o(e,r[n])in t)return r[n];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var a=i();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=c(n(2)),o=c(n(14)),a=n(75),s=n(116),l=n(49),u=c(n(117));function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k={start:"touchstart",move:"touchmove",stop:"touchend"},E={start:"mousedown",move:"mousemove",stop:"mouseup"},C=E,S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(c,e);var t,n,i,l=y(c);function c(){var e;m(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return x(_(e=l.call.apply(l,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),x(_(e),"mounted",!1),x(_(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,a.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,a.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var i=(0,a.getTouchIdentifier)(t);e.setState({touchIdentifier:i});var o=(0,s.getControlPosition)(t,i,_(e));if(null!=o){var l=o.x,c=o.y,f=(0,s.createCoreData)(_(e),l,c);(0,u.default)("DraggableCore: handleDragStart: %j",f),(0,u.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:l,lastY:c}),(0,a.addEvent)(r,C.move,e.handleDrag),(0,a.addEvent)(r,C.stop,e.handleDragStop))}}})),x(_(e),"handleDrag",(function(t){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,_(e));if(null!=n){var r=n.x,i=n.y;if(Array.isArray(e.props.grid)){var o=r-e.state.lastX,a=i-e.state.lastY,l=d((0,s.snapToGrid)(e.props.grid,o,a),2);if(o=l[0],a=l[1],!o&&!a)return;r=e.state.lastX+o,i=e.state.lastY+a}var c=(0,s.createCoreData)(_(e),r,i);if((0,u.default)("DraggableCore: handleDrag: %j",c),!1!==e.props.onDrag(t,c)&&!1!==e.mounted)e.setState({lastX:r,lastY:i});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),x(_(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,_(e));if(null!=n){var r=n.x,i=n.y,o=(0,s.createCoreData)(_(e),r,i);if(!1===e.props.onStop(t,o)||!1===e.mounted)return!1;var l=e.findDOMNode();l&&e.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(l.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",o),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),l&&((0,u.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(l.ownerDocument,C.move,e.handleDrag),(0,a.removeEvent)(l.ownerDocument,C.stop,e.handleDragStop))}}})),x(_(e),"onMouseDown",(function(t){return C=E,e.handleDragStart(t)})),x(_(e),"onMouseUp",(function(t){return C=E,e.handleDragStop(t)})),x(_(e),"onTouchStart",(function(t){return C=k,e.handleDragStart(t)})),x(_(e),"onTouchEnd",(function(t){return C=k,e.handleDragStop(t)})),e}return t=c,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,a.addEvent)(e,k.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,a.removeEvent)(t,E.move,this.handleDrag),(0,a.removeEvent)(t,k.move,this.handleDrag),(0,a.removeEvent)(t,E.stop,this.handleDragStop),(0,a.removeEvent)(t,k.stop,this.handleDragStop),(0,a.removeEvent)(e,k.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this)}},{key:"render",value:function(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&v(t.prototype,n),i&&v(t,i),c}(r.Component);t.default=S,x(S,"displayName","DraggableCore"),x(S,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),x(S,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},function(e,t,n){},function(e,t,n){!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),u=0;u<a.length;u++){if(!a[u].empty())return e.Pass;var c=l(t,a[u].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(u=a.length-1;u>=0;u--){var f=a[u].head;t.replaceRange("",n(f.line,f.ch-1),n(f.line,f.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var u=l(t,o[a].head);if(!u||i.indexOf(u)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),t.execCommand("goCharLeft"),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(t){return function(i){return function(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),l=a.indexOf(i);if(-1==l)return e.Pass;for(var c,f=r(o,"closeBefore"),p=r(o,"triples"),d=a.charAt(l+1)==i,h=t.listSelections(),m=l%2==0,v=0;v<h.length;v++){var g,y=h[v],b=y.head,_=t.getRange(b,n(b.line,b.ch+1));if(m&&!y.empty())g="surround";else if(!d&&m||_!=i)if(d&&b.ch>1&&p.indexOf(i)>=0&&t.getRange(n(b.line,b.ch-2),b)==i+i){if(b.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(b.line,b.ch-2))))return e.Pass;g="addFour"}else if(d){var w=0==b.ch?" ":t.getRange(n(b.line,b.ch-1),b);if(e.isWordChar(_)||w==i||e.isWordChar(w))return e.Pass;g="both"}else{if(!m||!(0===_.length||/\s/.test(_)||f.indexOf(_)>-1))return e.Pass;g="both"}else g=d&&u(t,b)?"both":p.indexOf(i)>=0&&t.getRange(b,n(b.line,b.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=g)return e.Pass}else c=g}var x=l%2?a.charAt(l-1):i,k=l%2?i:a.charAt(l+1);t.operation((function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var r=0;r<3;r++)t.execCommand("goCharRight");else if("surround"==c){var i=t.getSelections();for(r=0;r<i.length;r++)i[r]=x+i[r]+k;for(t.replaceSelections(i,"around"),i=t.listSelections().slice(),r=0;r<i.length;r++)i[r]=(o=i[r],a=void 0,a=e.cmpPos(o.anchor,o.head)>0,{anchor:new n(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new n(o.head.line,o.head.ch+(a?1:-1))});t.setSelections(i)}else"both"==c?(t.replaceSelection(x+k,null),t.triggerElectric(x+k),t.execCommand("goCharLeft")):"addFour"==c&&(t.replaceSelection(x+x+x+x,"before"),t.execCommand("goCharRight"));var o,a}))}(i,t)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function u(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(9))},function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),f=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!f)return null;var p=">"==f.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(l==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(p>0?1:0)),p,d||null,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:p>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],f=i(s),p=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),d=t.line;d!=p;d+=o){var h=e.getLine(d);if(h){var m=o>0?0:h.length-1,v=o>0?h.length:-1;if(!(h.length>l))for(d==t.line&&(m=t.ch-(o<0?1:0));m!=v;m+=o){var g=h.charAt(m);if(f.test(g)&&(void 0===a||e.getTokenTypeAt(n(d,m+1))==a)){var y=r[g];if(y&&">"==y.charAt(1)==o>0)c.push(g);else{if(!c.length)return{pos:n(d,m),ch:g};c.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=e.listSelections(),u=0;u<l.length;u++){var c=l[u].empty()&&o(e,l[u].head,i);if(c&&e.getLine(c.from.line).length<=a){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(c.from,n(c.from.line,c.from.ch+1),{className:f})),c.to&&e.getLine(c.to.line).length<=a&&s.push(e.markText(c.to,n(c.to.line,c.to.ch+1),{className:f}))}}if(s.length){t&&e.state.focused&&e.focus();var p=function(){e.operation((function(){for(var e=0;e<s.length;e++)s[e].clear()}))};if(!r)return p;setTimeout(p,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}e.defineOption("matchBrackets",!1,(function(t,n,r){function i(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",i),i(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",i))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(9))},function(e,t,n){!function(e){"use strict";function t(t,n,r){this.orientation=n,this.scroll=r,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=t+"-"+n,this.inner=this.node.appendChild(document.createElement("div"));var i=this;function o(t){var n=e.wheelEventPixels(t)["horizontal"==i.orientation?"x":"y"],r=i.pos;i.moveTo(i.pos+n),i.pos!=r&&e.e_preventDefault(t)}e.on(this.inner,"mousedown",(function(t){if(1==t.which){e.e_preventDefault(t);var n="horizontal"==i.orientation?"pageX":"pageY",r=t[n],o=i.pos;e.on(document,"mousemove",s),e.on(document,"mouseup",a)}function a(){e.off(document,"mousemove",s),e.off(document,"mouseup",a)}function s(e){if(1!=e.which)return a();i.moveTo(o+(e[n]-r)*(i.total/i.size))}})),e.on(this.node,"click",(function(t){e.e_preventDefault(t);var n,r=i.inner.getBoundingClientRect();n="horizontal"==i.orientation?t.clientX<r.left?-1:t.clientX>r.right?1:0:t.clientY<r.top?-1:t.clientY>r.bottom?1:0,i.moveTo(i.pos+n*i.screen)})),e.on(this.node,"mousewheel",o),e.on(this.node,"DOMMouseScroll",o)}function n(e,n,r){this.addClass=e,this.horiz=new t(e,"horizontal",r),n(this.horiz.node),this.vert=new t(e,"vertical",r),n(this.vert.node),this.width=null}t.prototype.setPos=function(e,t){return e<0&&(e=0),e>this.total-this.screen&&(e=this.total-this.screen),!(!t&&e==this.pos||(this.pos=e,this.inner.style["horizontal"==this.orientation?"left":"top"]=e*(this.size/this.total)+"px",0))},t.prototype.moveTo=function(e){this.setPos(e)&&this.scroll(e,this.orientation)},t.prototype.update=function(e,t,n){var r=this.screen!=t||this.total!=e||this.size!=n;r&&(this.screen=t,this.total=e,this.size=n);var i=this.screen*(this.size/this.total);i<10&&(this.size-=10-i,i=10),this.inner.style["horizontal"==this.orientation?"width":"height"]=i+"px",this.setPos(this.pos,r)},n.prototype.update=function(e){if(null==this.width){var t=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;t&&(this.width=parseInt(t.height))}var n=this.width||0,r=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1;return this.vert.node.style.display=i?"block":"none",this.horiz.node.style.display=r?"block":"none",i&&(this.vert.update(e.scrollHeight,e.clientHeight,e.viewHeight-(r?n:0)),this.vert.node.style.bottom=r?n+"px":"0"),r&&(this.horiz.update(e.scrollWidth,e.clientWidth,e.viewWidth-(i?n:0)-e.barLeft),this.horiz.node.style.right=i?n+"px":"0",this.horiz.node.style.left=e.barLeft+"px"),{right:i?n:0,bottom:r?n:0}},n.prototype.setScrollTop=function(e){this.vert.setPos(e)},n.prototype.setScrollLeft=function(e){this.horiz.setPos(e)},n.prototype.clear=function(){var e=this.horiz.node.parentNode;e.removeChild(this.horiz.node),e.removeChild(this.vert.node)},e.scrollbarModel.simple=function(e,t){return new n("CodeMirror-simplescroll",e,t)},e.scrollbarModel.overlay=function(e,t){return new n("CodeMirror-overlayscroll",e,t)}}(n(9))},function(e,t,n){!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function l(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function u(t,r,i,a){var s=n(t);if(s.query)return c(t,r);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var d=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),d&&(d.style.opacity=1),c(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((d=r).style.opacity=.4)})))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){f(e)},onKeyDown:i})}(t,p(t),u,h,(function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),l(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))})),a&&u&&(l(t,s,u),c(t,r))}else o(t,p(t),"Search for:",u,(function(e){e&&!s.query&&t.operation((function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),c(t,r)}))}))}function c(t,r,o){t.operation((function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function f(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function p(e){return'<span class="CodeMirror-search-label">'+e.phrase("Search:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function d(e,t,n){e.operation((function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else r.replace(n)}))}function h(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,l='<span class="CodeMirror-search-label">'+(t?e.phrase("Replace all:"):e.phrase("Replace:"))+"</span>";o(e,l+function(e){return' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}(e),l,r,(function(n){n&&(n=s(n),o(e,function(e){return'<span class="CodeMirror-search-label">'+e.phrase("With:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>'}(e),e.phrase("Replace with:"),"",(function(r){if(r=a(r),t)d(e,n,r);else{f(e);var o=i(e,n,e.getCursor("from")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return'<span class="CodeMirror-search-label">'+e.phrase("Replace?")+"</span> <button>"+e.phrase("Yes")+"</button> <button>"+e.phrase("No")+"</button> <button>"+e.phrase("All")+"</button> <button>"+e.phrase("Stop")+"</button> "}(e),e.phrase("Replace?"),[function(){l(t)},s,function(){d(e,n,r)}]))},l=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),s()};s()}})))}))}}e.commands.find=function(e){f(e),u(e)},e.commands.findPersistent=function(e){f(e),u(e,!1,!0)},e.commands.findPersistentNext=function(e){u(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){u(e,!0,!0,!0)},e.commands.findNext=u,e.commands.findPrev=function(e){u(e,!0)},e.commands.clearSearch=f,e.commands.replace=h,e.commands.replaceAll=function(e){h(e,!0)}}(n(9),n(76),n(331))},function(e,t,n){!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)f.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,f=a.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&e.on(f,"input",(function(e){o.onInput(e,f.value,u)})),o.onKeyUp&&e.on(f,"keyup",(function(e){o.onKeyUp(e,f.value,u)})),e.on(f,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),u()),13==t.keyCode&&i(f.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){u(),l.focus()})),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function f(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var p=0;p<s.length;++p){var d=s[p];!function(t){e.on(d,"click",(function(n){e.e_preventDefault(n),f(),t&&t(u)}))}(i[p]),e.on(d,"blur",(function(){--c,setTimeout((function(){c<=0&&f()}),200)})),e.on(d,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(r,i){n(this,u);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function u(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),u()})),l&&(o=setTimeout(u,l)),u}))}(n(9))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){this.cm=e,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(i),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}function n(e,t,n){return e<=t?e:Math.max(t,e+n)}e.defineExtension("showMatchesOnScrollbar",(function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)})),t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length&&!((i=this.matches[t]).from.line>=this.gap.to);t++)i.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var n=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),r=this.options&&this.options.maxMatches||1e3;n.findNext();){var i;if((i={from:n.from(),to:n.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,i),this.matches.length>r)break}this.gap=null}},t.prototype.onChange=function(t){var r=t.from.line,i=e.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,r,o),t.from.line),this.gap.to=Math.max(n(this.gap.to,r,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var a=0;a<this.matches.length;a++){var s=this.matches[a],l=n(s.from.line,r,o);l!=s.from.line&&(s.from=e.Pos(l,s.from.ch));var u=n(s.to.line,r,o);u!=s.to.line&&(s.to=e.Pos(u,s.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout((function(){c.updateAfterChange()}),250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}(n(9),n(76),n(118))},function(e,t,n){!function(e){"use strict";e.defineOption("foldGutter",!1,(function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",l),t.off("changes",u),t.off("viewportChange",c),t.off("fold",f),t.off("unfold",f),t.off("swapDoc",u)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(t),t.on("gutterClick",l),t.on("changes",u),t.on("viewportChange",c),t.on("fold",f),t.on("unfold",f),t.on("swapDoc",u))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,n,o){var s=e.state.foldGutter.options,l=n-1,u=e.foldOption(s,"minFoldSize"),c=e.foldOption(s,"rangeFinder"),f="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),p="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(n,o,(function(n){++l;var o=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(e,l)){if(f&&a&&f.test(a.className))return;o=i(s.indicatorFolded)}else{var d=t(l,0),h=c&&c(e,d);if(h&&h.to.line-h.from.line>=u){if(p&&a&&p.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){o(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}}(n(9),n(119))},function(e,t,n){!function(e){"use strict";e.registerHelper("fold","brace",(function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var s=n.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=u){if(1==l&&u<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,u+1)),!/^(comment|string)/.test(r))return u+1;s=u-1}else{if(1==l)break;l=1,s=o.length}}}var s="{",l="}",u=a("{");if(null==u&&(s="[",l="]",u=a("[")),null!=u){var c,f,p=1,d=t.lastLine();e:for(var h=i;h<=d;++h)for(var m=t.getLine(h),v=h==i?u:0;;){var g=m.indexOf(s,v),y=m.indexOf(l,v);if(g<0&&(g=m.length),y<0&&(y=m.length),(v=Math.min(g,y))==m.length)break;if(t.getTokenTypeAt(e.Pos(h,v+1))==r)if(v==g)++p;else if(!--p){c=h,f=v;break e}++v}if(null!=c&&i!=c)return{from:e.Pos(i,u),to:e.Pos(c,f)}}})),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}(n(9))},function(e,t,n){!function(e){"use strict";e.registerGlobalHelper("fold","comment",(function(e){return e.blockCommentStart&&e.blockCommentEnd}),(function(t,n){var r=t.getModeAt(n),i=r.blockCommentStart,o=r.blockCommentEnd;if(i&&o){for(var a,s=n.line,l=t.getLine(s),u=n.ch,c=0;;){var f=u<=0?-1:l.lastIndexOf(i,u-1);if(-1!=f){if(1==c&&f<n.ch)return;if(/comment/.test(t.getTokenTypeAt(e.Pos(s,f+1)))&&(0==f||l.slice(f-o.length,f)==o||!/comment/.test(t.getTokenTypeAt(e.Pos(s,f))))){a=f+i.length;break}u=f-1}else{if(1==c)return;c=1,u=l.length}}var p,d,h=1,m=t.lastLine();e:for(var v=s;v<=m;++v)for(var g=t.getLine(v),y=v==s?a:0;;){var b=g.indexOf(i,y),_=g.indexOf(o,y);if(b<0&&(b=g.length),_<0&&(_=g.length),(y=Math.min(b,_))==g.length)break;if(y==b)++h;else if(!--h){p=v,d=y;break e}++y}if(null!=p&&(s!=p||d!=a))return{from:e.Pos(s,a),to:e.Pos(p,d)}}}))}(n(9))},function(e,t,n){},function(e,t,n){!function(e){"use strict";var t={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};e.registerHelper("hint","css",(function(n){var r=n.getCursor(),i=n.getTokenAt(r),o=e.innerMode(n.getMode(),i.state);if("css"==o.mode.name){if("keyword"==i.type&&0=="!important".indexOf(i.string))return{list:["!important"],from:e.Pos(r.line,i.start),to:e.Pos(r.line,i.end)};var a=i.start,s=r.ch,l=i.string.slice(0,s-a);/[^\w$_-]/.test(l)&&(l="",a=s=r.ch);var u=e.resolveMode("text/css"),c=[],f=o.state.state;return"pseudo"==f||"variable-3"==i.type?p(t):"block"==f||"maybeprop"==f?p(u.propertyKeywords):"prop"==f||"parens"==f||"at"==f||"params"==f?(p(u.valueKeywords),p(u.colorKeywords)):"media"!=f&&"media_parens"!=f||(p(u.mediaTypes),p(u.mediaFeatures)),c.length?{list:c,from:e.Pos(r.line,a),to:e.Pos(r.line,s)}:void 0}function p(e){for(var t in e)l&&0!=t.lastIndexOf(l,0)||c.push(t)}}))}(n(9),n(55))},function(e,t,n){"use strict";function r(e,...t){return(...n)=>e(...t,...n)}function i(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}n.r(t),n.d(t,"apply",(function(){return r})),n.d(t,"applyEach",(function(){return P})),n.d(t,"applyEachSeries",(function(){return M})),n.d(t,"asyncify",(function(){return c})),n.d(t,"auto",(function(){return F})),n.d(t,"autoInject",(function(){return z})),n.d(t,"cargo",(function(){return q})),n.d(t,"cargoQueue",(function(){return G})),n.d(t,"compose",(function(){return K})),n.d(t,"concat",(function(){return Q})),n.d(t,"concatLimit",(function(){return Z})),n.d(t,"concatSeries",(function(){return ee})),n.d(t,"constant",(function(){return te})),n.d(t,"detect",(function(){return re})),n.d(t,"detectLimit",(function(){return ie})),n.d(t,"detectSeries",(function(){return oe})),n.d(t,"dir",(function(){return se})),n.d(t,"doUntil",(function(){return ue})),n.d(t,"doWhilst",(function(){return le})),n.d(t,"each",(function(){return fe})),n.d(t,"eachLimit",(function(){return pe})),n.d(t,"eachOf",(function(){return A})),n.d(t,"eachOfLimit",(function(){return C})),n.d(t,"eachOfSeries",(function(){return N})),n.d(t,"eachSeries",(function(){return de})),n.d(t,"ensureAsync",(function(){return he})),n.d(t,"every",(function(){return me})),n.d(t,"everyLimit",(function(){return ve})),n.d(t,"everySeries",(function(){return ge})),n.d(t,"filter",(function(){return we})),n.d(t,"filterLimit",(function(){return xe})),n.d(t,"filterSeries",(function(){return ke})),n.d(t,"forever",(function(){return Ee})),n.d(t,"groupBy",(function(){return Se})),n.d(t,"groupByLimit",(function(){return Ce})),n.d(t,"groupBySeries",(function(){return Oe})),n.d(t,"log",(function(){return Ae})),n.d(t,"map",(function(){return j})),n.d(t,"mapLimit",(function(){return J})),n.d(t,"mapSeries",(function(){return T})),n.d(t,"mapValues",(function(){return Pe})),n.d(t,"mapValuesLimit",(function(){return je})),n.d(t,"mapValuesSeries",(function(){return Ne})),n.d(t,"memoize",(function(){return Te})),n.d(t,"nextTick",(function(){return Me})),n.d(t,"parallel",(function(){return Le})),n.d(t,"parallelLimit",(function(){return Fe})),n.d(t,"priorityQueue",(function(){return We})),n.d(t,"queue",(function(){return Ie})),n.d(t,"race",(function(){return ze})),n.d(t,"reduce",(function(){return X})),n.d(t,"reduceRight",(function(){return He})),n.d(t,"reflect",(function(){return Ve})),n.d(t,"reflectAll",(function(){return Ue})),n.d(t,"reject",(function(){return Ge})),n.d(t,"rejectLimit",(function(){return Xe})),n.d(t,"rejectSeries",(function(){return Ye})),n.d(t,"retry",(function(){return Je})),n.d(t,"retryable",(function(){return Qe})),n.d(t,"seq",(function(){return Y})),n.d(t,"series",(function(){return et})),n.d(t,"setImmediate",(function(){return u})),n.d(t,"some",(function(){return tt})),n.d(t,"someLimit",(function(){return nt})),n.d(t,"someSeries",(function(){return rt})),n.d(t,"sortBy",(function(){return it})),n.d(t,"timeout",(function(){return ot})),n.d(t,"times",(function(){return st})),n.d(t,"timesLimit",(function(){return at})),n.d(t,"timesSeries",(function(){return lt})),n.d(t,"transform",(function(){return ut})),n.d(t,"tryEach",(function(){return ct})),n.d(t,"unmemoize",(function(){return ft})),n.d(t,"until",(function(){return dt})),n.d(t,"waterfall",(function(){return ht})),n.d(t,"whilst",(function(){return pt})),n.d(t,"all",(function(){return me})),n.d(t,"allLimit",(function(){return ve})),n.d(t,"allSeries",(function(){return ge})),n.d(t,"any",(function(){return tt})),n.d(t,"anyLimit",(function(){return nt})),n.d(t,"anySeries",(function(){return rt})),n.d(t,"find",(function(){return re})),n.d(t,"findLimit",(function(){return ie})),n.d(t,"findSeries",(function(){return oe})),n.d(t,"flatMap",(function(){return Q})),n.d(t,"flatMapLimit",(function(){return Z})),n.d(t,"flatMapSeries",(function(){return ee})),n.d(t,"forEach",(function(){return fe})),n.d(t,"forEachSeries",(function(){return de})),n.d(t,"forEachLimit",(function(){return pe})),n.d(t,"forEachOf",(function(){return A})),n.d(t,"forEachOfSeries",(function(){return N})),n.d(t,"forEachOfLimit",(function(){return C})),n.d(t,"inject",(function(){return X})),n.d(t,"foldl",(function(){return X})),n.d(t,"foldr",(function(){return He})),n.d(t,"select",(function(){return we})),n.d(t,"selectLimit",(function(){return xe})),n.d(t,"selectSeries",(function(){return ke})),n.d(t,"wrapSync",(function(){return c})),n.d(t,"during",(function(){return pt})),n.d(t,"doDuring",(function(){return le}));var o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function s(e){setTimeout(e,0)}function l(e){return(t,...n)=>e(()=>t(...n))}var u=l(o?setImmediate:a?process.nextTick:s);function c(e){return d(e)?function(...t){const n=t.pop();return f(e.apply(this,t),n)}:i((function(t,n){var r;try{r=e.apply(this,t)}catch(e){return n(e)}if(r&&"function"==typeof r.then)return f(r,n);n(null,r)}))}function f(e,t){return e.then(e=>{p(t,null,e)},e=>{p(t,e&&e.message?e:new Error(e))})}function p(e,t,n){try{e(t,n)}catch(e){u(e=>{throw e},e)}}function d(e){return"AsyncFunction"===e[Symbol.toStringTag]}function h(e){if("function"!=typeof e)throw new Error("expected a function");return d(e)?c(e):e}function m(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise((r,i)=>{n[t-1]=(e,...t)=>{if(e)return i(e);r(t.length>1?t:t[0])},e.apply(this,n)})}}function v(e){return function(t,...n){return m((function(r){var i=this;return e(t,(e,t)=>{h(e).apply(i,n.concat(t))},r)}))}}function g(e,t,n,r){t=t||[];var i=[],o=0,a=h(n);return e(t,(e,t,n)=>{var r=o++;a(e,(e,t)=>{i[r]=t,n(e)})},e=>{r(e,i)})}function y(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}const b={};function _(e){function t(...t){if(null!==e){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function w(e){if(y(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,r,i,o=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return o?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(o):(n=(t=e)?Object.keys(t):[],r=-1,i=n.length,function(){var e=n[++r];return r<i?{value:t[e],key:e}:null})}function x(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function k(e,t,n,r){let i=!1,o=!1,a=!1,s=0,l=0;function u(){s>=t||a||i||(a=!0,e.next().then(({value:e,done:t})=>{if(!o&&!i){if(a=!1,t)return i=!0,void(s<=0&&r(null));s++,n(e,l,c),l++,u()}}).catch(f))}function c(e,t){if(s-=1,!o)return e?f(e):!1===e?(i=!0,void(o=!0)):t===b||i&&s<=0?(i=!0,r(null)):void u()}function f(e){o||(a=!1,i=!0,r(e))}u()}var E=e=>(t,n,r)=>{if(r=_(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if("AsyncGenerator"===t[Symbol.toStringTag])return k(t,e,n,r);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return k(t[Symbol.asyncIterator](),e,n,r);var i=w(t),o=!1,a=!1,s=0,l=!1;function u(e,t){if(!a)if(s-=1,e)o=!0,r(e);else if(!1===e)o=!0,a=!0;else{if(t===b||o&&s<=0)return o=!0,r(null);l||c()}}function c(){for(l=!0;s<e&&!o;){var t=i();if(null===t)return o=!0,void(s<=0&&r(null));s+=1,n(t.value,t.key,x(u))}l=!1}c()};var C=m((function(e,t,n,r){return E(t)(e,h(n),r)}),4);function S(e,t,n){n=_(n);var r=0,i=0,{length:o}=e,a=!1;function s(e,t){!1===e&&(a=!0),!0!==a&&(e?n(e):++i!==o&&t!==b||n(null))}for(0===o&&n(null);r<o;r++)t(e[r],r,x(s))}function O(e,t,n){return C(e,1/0,t,n)}var A=m((function(e,t,n){return(y(e)?S:O)(e,h(t),n)}),3);var j=m((function(e,t,n){return g(A,e,t,n)}),3),P=v(j);var N=m((function(e,t,n){return C(e,1,t,n)}),3);var T=m((function(e,t,n){return g(N,e,t,n)}),3),M=v(T);const D=Symbol("promiseCallback");function L(){let e,t;function n(n,...r){if(n)return t(n);e(r.length>1?r:r[0])}return n[D]=new Promise((n,r)=>{e=n,t=r}),n}function F(e,t,n){"number"!=typeof t&&(n=t,t=null),n=_(n||L());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var i={},o=0,a=!1,s=!1,l=Object.create(null),u=[],c=[],f={};function p(e,t){u.push(()=>function(e,t){if(s)return;var r=x((t,...r)=>{if(o--,!1!==t)if(r.length<2&&([r]=r),t){var u={};if(Object.keys(i).forEach(e=>{u[e]=i[e]}),u[e]=r,s=!0,l=Object.create(null),a)return;n(t,u)}else i[e]=r,(l[e]||[]).forEach(e=>e()),d();else a=!0});o++;var u=h(t[t.length-1]);t.length>1?u(i,r):u(r)}(e,t))}function d(){if(!a){if(0===u.length&&0===o)return n(null,i);for(;u.length&&o<t;){u.shift()()}}}function m(t){var n=[];return Object.keys(e).forEach(r=>{const i=e[r];Array.isArray(i)&&i.indexOf(t)>=0&&n.push(r)}),n}return Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n))return p(t,[n]),void c.push(t);var r=n.slice(0,n.length-1),i=r.length;if(0===i)return p(t,n),void c.push(t);f[t]=i,r.forEach(o=>{if(!e[o])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+o+"` in "+r.join(", "));!function(e,t){var n=l[e];n||(n=l[e]=[]);n.push(t)}(o,()=>{0===--i&&p(t,n)})})}),function(){var e,t=0;for(;c.length;)e=c.pop(),t++,m(e).forEach(e=>{0==--f[e]&&c.push(e)});if(t!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),d(),n[D]}var I=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,R=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,B=/,/,$=/(=.+)?(\s*)$/,W=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function z(e,t){var n={};return Object.keys(e).forEach(t=>{var r,i=e[t],o=d(i),a=!o&&1===i.length||o&&0===i.length;if(Array.isArray(i))r=[...i],i=r.pop(),n[t]=r.concat(r.length>0?s:i);else if(a)n[t]=i;else{if(r=function(e){const t=e.toString().replace(W,"");let n=t.match(I);if(n||(n=t.match(R)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,r]=n;return r.replace(/\s/g,"").split(B).map(e=>e.replace($,"").trim())}(i),0===i.length&&!o&&0===r.length)throw new Error("autoInject task functions require explicit parameters.");o||r.pop(),n[t]=r.concat(s)}function s(e,t){var n=r.map(t=>e[t]);n.push(t),h(i)(...n)}}),F(n,t)}class H{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):V(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):V(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function V(e,t){e.length=1,e.head=e.tail=t}function U(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var r=h(e),i=0,o=[];const a={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function s(e,t){return e?t?void(a[e]=a[e].filter(e=>e!==t)):a[e]=[]:Object.keys(a).forEach(e=>a[e]=[])}function l(e,...t){a[e].forEach(e=>e(...t))}var c=!1;function f(e,t,n,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");var i,o;function a(e,...t){return e?n?o(e):i():t.length<=1?i(t[0]):void i(t)}g.started=!0;var s={data:e,callback:n?a:r||a};if(t?g._tasks.unshift(s):g._tasks.push(s),c||(c=!0,u(()=>{c=!1,g.process()})),n||!r)return new Promise((e,t)=>{i=e,o=t})}function p(e){return function(t,...n){i-=1;for(var r=0,a=e.length;r<a;r++){var s=e[r],u=o.indexOf(s);0===u?o.shift():u>0&&o.splice(u,1),s.callback(t,...n),null!=t&&l("error",t,s.data)}i<=g.concurrency-g.buffer&&l("unsaturated"),g.idle()&&l("drain"),g.process()}}function d(e){return!(0!==e.length||!g.idle())&&(u(()=>l("drain")),!0)}const m=e=>t=>{if(!t)return new Promise((t,n)=>{!function(e,t){const n=(...r)=>{s(e,n),t(...r)};a[e].push(n)}(e,(e,r)=>{if(e)return n(e);t(r)})});s(e),function(e,t){a[e].push(t)}(e,t)};var v=!1,g={_tasks:new H,*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(d(e))return;return e.map(e=>f(e,!1,!1,t))}return f(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(d(e))return;return e.map(e=>f(e,!1,!0,t))}return f(e,!1,!0,t)},kill(){s(),g._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(d(e))return;return e.map(e=>f(e,!0,!1,t))}return f(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(d(e))return;return e.map(e=>f(e,!0,!0,t))}return f(e,!0,!0,t)},remove(e){g._tasks.remove(e)},process(){if(!v){for(v=!0;!g.paused&&i<g.concurrency&&g._tasks.length;){var e=[],t=[],n=g._tasks.length;g.payload&&(n=Math.min(n,g.payload));for(var a=0;a<n;a++){var s=g._tasks.shift();e.push(s),o.push(s),t.push(s.data)}i+=1,0===g._tasks.length&&l("empty"),i===g.concurrency&&l("saturated");var u=x(p(e));r(t,u)}v=!1}},length:()=>g._tasks.length,running:()=>i,workersList:()=>o,idle:()=>g._tasks.length+i===0,pause(){g.paused=!0},resume(){!1!==g.paused&&(g.paused=!1,u(g.process))}};return Object.defineProperties(g,{saturated:{writable:!1,value:m("saturated")},unsaturated:{writable:!1,value:m("unsaturated")},empty:{writable:!1,value:m("empty")},drain:{writable:!1,value:m("drain")},error:{writable:!1,value:m("error")}}),g}function q(e,t){return U(e,1,t)}function G(e,t,n){return U(e,t,n)}var X=m((function(e,t,n,r){r=_(r);var i=h(n);return N(e,(e,n,r)=>{i(t,e,(e,n)=>{t=n,r(e)})},e=>r(e,t))}),4);function Y(...e){var t=e.map(h);return function(...e){var n=this,r=e[e.length-1];return"function"==typeof r?e.pop():r=L(),X(t,e,(e,t,r)=>{t.apply(n,e.concat((e,...t)=>{r(e,t)}))},(e,t)=>r(e,...t)),r[D]}}function K(...e){return Y(...e.reverse())}var J=m((function(e,t,n,r){return g(E(t),e,n,r)}),4);var Z=m((function(e,t,n,r){var i=h(n);return J(e,t,(e,t)=>{i(e,(e,...n)=>e?t(e):t(e,n))},(e,t)=>{for(var n=[],i=0;i<t.length;i++)t[i]&&(n=n.concat(...t[i]));return r(e,n)})}),4);var Q=m((function(e,t,n){return Z(e,1/0,t,n)}),3);var ee=m((function(e,t,n){return Z(e,1,t,n)}),3);function te(...e){return function(...t){return t.pop()(null,...e)}}function ne(e,t){return(n,r,i,o)=>{var a,s=!1;const l=h(i);n(r,(n,r,i)=>{l(n,(r,o)=>r||!1===r?i(r):e(o)&&!a?(s=!0,a=t(!0,n),i(null,b)):void i())},e=>{if(e)return o(e);o(null,s?a:t(!1))})}}var re=m((function(e,t,n){return ne(e=>e,(e,t)=>t)(A,e,t,n)}),3);var ie=m((function(e,t,n,r){return ne(e=>e,(e,t)=>t)(E(t),e,n,r)}),4);var oe=m((function(e,t,n){return ne(e=>e,(e,t)=>t)(E(1),e,t,n)}),3);function ae(e){return(t,...n)=>h(t)(...n,(t,...n)=>{"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&n.forEach(t=>console[e](t)))})}var se=ae("dir");var le=m((function(e,t,n){n=x(n);var r,i=h(e),o=h(t);function a(e,...t){if(e)return n(e);!1!==e&&(r=t,o(...t,s))}function s(e,t){return e?n(e):!1!==e?t?void i(a):n(null,...r):void 0}return s(null,!0)}),3);function ue(e,t,n){const r=h(t);return le(e,(...e)=>{const t=e.pop();r(...e,(e,n)=>t(e,!n))},n)}function ce(e){return(t,n,r)=>e(t,r)}var fe=m((function(e,t,n){return A(e,ce(h(t)),n)}),3);var pe=m((function(e,t,n,r){return E(t)(e,ce(h(n)),r)}),4);var de=m((function(e,t,n){return pe(e,1,t,n)}),3);function he(e){return d(e)?e:function(...t){var n=t.pop(),r=!0;t.push((...e)=>{r?u(()=>n(...e)):n(...e)}),e.apply(this,t),r=!1}}var me=m((function(e,t,n){return ne(e=>!e,e=>!e)(A,e,t,n)}),3);var ve=m((function(e,t,n,r){return ne(e=>!e,e=>!e)(E(t),e,n,r)}),4);var ge=m((function(e,t,n){return ne(e=>!e,e=>!e)(N,e,t,n)}),3);function ye(e,t,n,r){var i=new Array(t.length);e(t,(e,t,r)=>{n(e,(e,n)=>{i[t]=!!n,r(e)})},e=>{if(e)return r(e);for(var n=[],o=0;o<t.length;o++)i[o]&&n.push(t[o]);r(null,n)})}function be(e,t,n,r){var i=[];e(t,(e,t,r)=>{n(e,(n,o)=>{if(n)return r(n);o&&i.push({index:t,value:e}),r(n)})},e=>{if(e)return r(e);r(null,i.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function _e(e,t,n,r){return(y(t)?ye:be)(e,t,h(n),r)}var we=m((function(e,t,n){return _e(A,e,t,n)}),3);var xe=m((function(e,t,n,r){return _e(E(t),e,n,r)}),4);var ke=m((function(e,t,n){return _e(N,e,t,n)}),3);var Ee=m((function(e,t){var n=x(t),r=h(he(e));return function e(t){if(t)return n(t);!1!==t&&r(e)}()}),2);var Ce=m((function(e,t,n,r){var i=h(n);return J(e,t,(e,t)=>{i(e,(n,r)=>n?t(n):t(n,{key:r,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:i}=Object.prototype,o=0;o<t.length;o++)if(t[o]){var{key:a}=t[o],{val:s}=t[o];i.call(n,a)?n[a].push(s):n[a]=[s]}return r(e,n)})}),4);function Se(e,t,n){return Ce(e,1/0,t,n)}function Oe(e,t,n){return Ce(e,1,t,n)}var Ae=ae("log");var je=m((function(e,t,n,r){r=_(r);var i={},o=h(n);return E(t)(e,(e,t,n)=>{o(e,t,(e,r)=>{if(e)return n(e);i[t]=r,n(e)})},e=>r(e,i))}),4);function Pe(e,t,n){return je(e,1/0,t,n)}function Ne(e,t,n){return je(e,1,t,n)}function Te(e,t=(e=>e)){var n=Object.create(null),r=Object.create(null),o=h(e),a=i((e,i)=>{var a=t(...e);a in n?u(()=>i(null,...n[a])):a in r?r[a].push(i):(r[a]=[i],o(...e,(e,...t)=>{e||(n[a]=t);var i=r[a];delete r[a];for(var o=0,s=i.length;o<s;o++)i[o](e,...t)}))});return a.memo=n,a.unmemoized=e,a}var Me=l(a?process.nextTick:o?setImmediate:s),De=m((e,t,n)=>{var r=y(t)?[]:{};e(t,(e,t,n)=>{h(e)((e,...i)=>{i.length<2&&([i]=i),r[t]=i,n(e)})},e=>n(e,r))},3);function Le(e,t){return De(A,e,t)}function Fe(e,t,n){return De(E(t),e,n)}function Ie(e,t){var n=h(e);return U((e,t)=>{n(e[0],t)},t,1)}class Re{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&$e(this.heap[e],this.heap[t=Be(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&$e(this.heap[t+1],this.heap[t])&&(t+=1),!$e(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=Be(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function Be(e){return(e+1>>1)-1}function $e(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function We(e,t){var n=Ie(e,t);return n._tasks=new Re,n.push=function(e,t=0,r=(()=>{})){if("function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return u(()=>n.drain());for(var i=0,o=e.length;i<o;i++){var a={data:e[i],priority:t,callback:r};n._tasks.push(a)}u(n.process)},delete n.unshift,n}var ze=m((function(e,t){if(t=_(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)h(e[n])(t)}),2);function He(e,t,n,r){var i=[...e].reverse();return X(i,t,n,r)}function Ve(e){var t=h(e);return i((function(e,n){return e.push((e,...t)=>{let r={};if(e&&(r.error=e),t.length>0){var i=t;t.length<=1&&([i]=t),r.value=i}n(null,r)}),t.apply(this,e)}))}function Ue(e){var t;return Array.isArray(e)?t=e.map(Ve):(t={},Object.keys(e).forEach(n=>{t[n]=Ve.call(this,e[n])})),t}function qe(e,t,n,r){const i=h(n);return _e(e,t,(e,t)=>{i(e,(e,n)=>{t(e,!n)})},r)}var Ge=m((function(e,t,n){return qe(A,e,t,n)}),3);var Xe=m((function(e,t,n,r){return qe(E(t),e,n,r)}),4);var Ye=m((function(e,t,n){return qe(N,e,t,n)}),3);function Ke(e){return function(){return e}}function Je(e,t,n){var r={times:5,intervalFunc:Ke(0)};if(arguments.length<3&&"function"==typeof e?(n=t||L(),t=e):(Ze(r,e),n=n||L()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var i=h(t),o=1;function a(){i((e,...t)=>{!1!==e&&(e&&o++<r.times&&("function"!=typeof r.errorFilter||r.errorFilter(e))?setTimeout(a,r.intervalFunc(o-1)):n(e,...t))})}return a(),n[D]}function Ze(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Ke(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function Qe(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;d(t)&&(n+=1);var r=h(t);return i((t,i)=>{function o(e){r(...t,e)}return(t.length<n-1||null==i)&&(t.push(i),i=L()),e?Je(e,o,i):Je(o,i),i[D]})}function et(e,t){return De(N,e,t)}var tt=m((function(e,t,n){return ne(Boolean,e=>e)(A,e,t,n)}),3);var nt=m((function(e,t,n,r){return ne(Boolean,e=>e)(E(t),e,n,r)}),4);var rt=m((function(e,t,n){return ne(Boolean,e=>e)(N,e,t,n)}),3);var it=m((function(e,t,n){var r=h(t);return j(e,(e,t)=>{r(e,(n,r)=>{if(n)return t(n);t(n,{value:e,criteria:r})})},(e,t)=>{if(e)return n(e);n(null,t.sort(i).map(e=>e.value))});function i(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0}}),3);function ot(e,t,n){var r=h(e);return i((i,o)=>{var a,s=!1;i.push((...e)=>{s||(o(...e),clearTimeout(a))}),a=setTimeout((function(){var t=e.name||"anonymous",r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),s=!0,o(r)}),t),r(...i)})}function at(e,t,n,r){var i=h(n);return J(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,i,r)}function st(e,t,n){return at(e,1/0,t,n)}function lt(e,t,n){return at(e,1,t,n)}function ut(e,t,n,r){arguments.length<=3&&"function"==typeof t&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=_(r||L());var i=h(n);return A(e,(e,n,r)=>{i(t,e,n,r)},e=>r(e,t)),r[D]}var ct=m((function(e,t){var n,r=null;return de(e,(e,t)=>{h(e)((e,...i)=>{if(!1===e)return t(e);i.length<2?[n]=i:n=i,r=e,t(e?null:{})})},()=>t(r,n))}));function ft(e){return(...t)=>(e.unmemoized||e)(...t)}var pt=m((function(e,t,n){n=x(n);var r=h(t),i=h(e),o=[];function a(e,...t){if(e)return n(e);o=t,!1!==e&&i(s)}function s(e,t){return e?n(e):!1!==e?t?void r(a):n(null,...o):void 0}return i(s)}),3);function dt(e,t,n){const r=h(e);return pt(e=>r((t,n)=>e(t,!n)),t,n)}var ht=m((function(e,t){if(t=_(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(t){h(e[n++])(...t,x(i))}function i(i,...o){if(!1!==i)return i||n===e.length?t(i,...o):void r(o)}r([])})),mt={apply:r,applyEach:P,applyEachSeries:M,asyncify:c,auto:F,autoInject:z,cargo:q,cargoQueue:G,compose:K,concat:Q,concatLimit:Z,concatSeries:ee,constant:te,detect:re,detectLimit:ie,detectSeries:oe,dir:se,doUntil:ue,doWhilst:le,each:fe,eachLimit:pe,eachOf:A,eachOfLimit:C,eachOfSeries:N,eachSeries:de,ensureAsync:he,every:me,everyLimit:ve,everySeries:ge,filter:we,filterLimit:xe,filterSeries:ke,forever:Ee,groupBy:Se,groupByLimit:Ce,groupBySeries:Oe,log:Ae,map:j,mapLimit:J,mapSeries:T,mapValues:Pe,mapValuesLimit:je,mapValuesSeries:Ne,memoize:Te,nextTick:Me,parallel:Le,parallelLimit:Fe,priorityQueue:We,queue:Ie,race:ze,reduce:X,reduceRight:He,reflect:Ve,reflectAll:Ue,reject:Ge,rejectLimit:Xe,rejectSeries:Ye,retry:Je,retryable:Qe,seq:Y,series:et,setImmediate:u,some:tt,someLimit:nt,someSeries:rt,sortBy:it,timeout:ot,times:st,timesLimit:at,timesSeries:lt,transform:ut,tryEach:ct,unmemoize:ft,until:dt,waterfall:ht,whilst:pt,all:me,allLimit:ve,allSeries:ge,any:tt,anyLimit:nt,anySeries:rt,find:re,findLimit:ie,findSeries:oe,flatMap:Q,flatMapLimit:Z,flatMapSeries:ee,forEach:fe,forEachSeries:de,forEachLimit:pe,forEachOf:A,forEachOfSeries:N,forEachOfLimit:C,inject:X,foldl:X,foldr:He,select:we,selectLimit:xe,selectSeries:ke,wrapSync:c,during:pt,doDuring:le};t.default=mt},function(e,t,n){!function(e){"use strict";function t(){}function n(e,t,n,r,i){for(var o=0,a=t.length,s=0,l=0;o<a;o++){var u=t[o];if(u.removed){if(u.value=e.join(r.slice(l,l+u.count)),l+=u.count,o&&t[o-1].added){var c=t[o-1];t[o-1]=t[o],t[o]=c}}else{if(!u.added&&i){var f=n.slice(s,s+u.count);f=f.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),u.value=e.join(f)}else u.value=e.join(n.slice(s,s+u.count));s+=u.count,u.added||(l+=u.count)}}var p=t[a-1];return a>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[a-2].value+=p.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callback;"function"==typeof i&&(o=i,i={}),this.options=i;var a=this;function s(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,u=e.length,c=1,f=l+u,p=[{newPos:-1,components:[]}],d=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=l&&d+1>=u)return s([{value:this.join(t),count:t.length}]);function h(){for(var i=-1*c;i<=c;i+=2){var o=void 0,f=p[i-1],d=p[i+1],h=(d?d.newPos:0)-i;f&&(p[i-1]=void 0);var m=f&&f.newPos+1<l,v=d&&0<=h&&h<u;if(m||v){if(!m||v&&f.newPos<d.newPos?(o=r(d),a.pushComponent(o.components,void 0,!0)):((o=f).newPos++,a.pushComponent(o.components,!0,void 0)),h=a.extractCommon(o,t,e,i),o.newPos+1>=l&&h+1>=u)return s(n(a,o.components,t,e,a.useLongestToken));p[i]=o}else p[i]=void 0}c++}if(o)!function e(){setTimeout((function(){if(c>f)return o();h()||e()}),0)}();else for(;c<=f;){var m=h();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,a=e.newPos,s=a-r,l=0;a+1<i&&s+1<o&&this.equals(t[a+1],n[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var i=new t;function o(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var a=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,s=/\S/,l=new t;l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!s.test(e)&&!s.test(t)},l.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&a.test(t[n])&&a.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var u=new t;function c(e,t,n){return u.diff(e,t,n)}u.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var f=new t;f.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var p=new t;function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}p.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var m=Object.prototype.toString,v=new t;function g(e,t,n,r,i){var o,a;for(t=t||[],n=n||[],r&&(e=r(i,e)),o=0;o<t.length;o+=1)if(t[o]===e)return n[o];if("[object Array]"===m.call(e)){for(t.push(e),a=new Array(e.length),n.push(a),o=0;o<e.length;o+=1)a[o]=g(e[o],t,n,r,i);return t.pop(),n.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===d(e)&&null!==e){t.push(e),a={},n.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)a[s=l[o]]=g(e[s],t,n,r,s);t.pop(),n.pop()}else a=e;return a}v.useLongestToken=!0,v.tokenize=u.tokenize,v.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(g(e,null,null,i),i," ")},v.equals=function(e,n){return t.prototype.equals.call(v,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var y=new t;function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function a(){var e={};for(i.push(e);o<n.length;){var r=n[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var a=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);a&&(e.index=a[1]),o++}for(s(e),s(e),e.hunks=[];o<n.length;){var u=n[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(u))break;if(/^@@/.test(u))e.hunks.push(l());else{if(u&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(u));o++}}}function s(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[o]);if(t){var r="---"===t[1]?"old":"new",i=t[2].split("\t",2),a=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(a)&&(a=a.substr(1,a.length-2)),e[r+"FileName"]=a,e[r+"Header"]=(i[1]||"").trim(),o++}}function l(){for(var e=o,i=n[o++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),a={oldStart:+i[1],oldLines:+i[2]||1,newStart:+i[3],newLines:+i[4]||1,lines:[],linedelimiters:[]},s=0,l=0;o<n.length&&!(0===n[o].indexOf("--- ")&&o+2<n.length&&0===n[o+1].indexOf("+++ ")&&0===n[o+2].indexOf("@@"));o++){var u=0==n[o].length&&o!=n.length-1?" ":n[o][0];if("+"!==u&&"-"!==u&&" "!==u&&"\\"!==u)break;a.lines.push(n[o]),a.linedelimiters.push(r[o]||"\n"),"+"===u?s++:"-"===u?l++:" "===u&&(s++,l++)}if(s||1!==a.newLines||(a.newLines=0),l||1!==a.oldLines||(a.oldLines=0),t.strict){if(s!==a.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(l!==a.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return a}for(;o<n.length;)a();return i}function _(e,t,n){var r=!0,i=!1,o=!1,a=1;return function s(){if(r&&!o){if(i?a++:r=!1,e+a<=n)return a;o=!0}if(!i)return o||(r=!0),t<=e-a?-a++:(i=!0,s())}}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=b(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),a=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},u=0,c=n.fuzzFactor||0,f=0,p=0;function d(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?r[0]:" ",a=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!l(t+1,o[t],i,a)&&++u>c)return!1;t++}}return!0}for(var h=0;h<s.length;h++){for(var m=s[h],v=o.length-m.oldLines,g=0,y=p+m.oldStart-1,w=_(y,f,v);void 0!==g;g=w())if(d(m,y+g)){m.offset=p+=g;break}if(void 0===g)return!1;f=m.offset+m.oldStart+m.oldLines}for(var x=0,k=0;k<s.length;k++){var E=s[k],C=E.oldStart+E.offset+x-1;x+=E.newLines-E.oldLines,C<0&&(C=0);for(var S=0;S<E.lines.length;S++){var O=E.lines[S],A=O.length>0?O[0]:" ",j=O.length>0?O.substr(1):O,P=E.linedelimiters[S];if(" "===A)C++;else if("-"===A)o.splice(C,1),a.splice(C,1);else if("+"===A)o.splice(C,0,j),a.splice(C,0,P),C++;else if("\\"===A){var N=E.lines[S-1]?E.lines[S-1][0]:null;"+"===N?r=!0:"-"===N&&(i=!0)}}}if(r)for(;!o[o.length-1];)o.pop(),a.pop();else i&&(o.push(""),a.push("\n"));for(var T=0;T<o.length-1;T++)o[T]=o[T]+a[T];return o.join("")}function x(e,t,n,r,i,o,a){a||(a={}),void 0===a.context&&(a.context=4);var s=c(n,r,a);function l(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var u=[],f=0,p=0,d=[],m=1,v=1,g=function(e){var t=s[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var o;if(!f){var c=s[e-1];f=m,p=v,c&&(d=a.context>0?l(c.lines.slice(-a.context)):[],f-=d.length,p-=d.length)}(o=d).push.apply(o,h(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?v+=i.length:m+=i.length}else{if(f)if(i.length<=2*a.context&&e<s.length-2){var g;(g=d).push.apply(g,h(l(i)))}else{var y,b=Math.min(i.length,a.context);(y=d).push.apply(y,h(l(i.slice(0,b))));var _={oldStart:f,oldLines:m-f+b,newStart:p,newLines:v-p+b,lines:d};if(e>=s.length-2&&i.length<=a.context){var w=/\n$/.test(n),x=/\n$/.test(r),k=0==i.length&&d.length>_.oldLines;!w&&k&&d.splice(_.oldLines,0,"\\ No newline at end of file"),(w||k)&&x||d.push("\\ No newline at end of file")}u.push(_),f=0,p=0,d=[]}m+=i.length,v+=i.length}},y=0;y<s.length;y++)g(y);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:u}}function k(e,t,n,r,i,o,a){var s=x(e,t,n,r,i,o,a),l=[];e==t&&l.push("Index: "+e),l.push("==================================================================="),l.push("--- "+s.oldFileName+(void 0===s.oldHeader?"":"\t"+s.oldHeader)),l.push("+++ "+s.newFileName+(void 0===s.newHeader?"":"\t"+s.newHeader));for(var u=0;u<s.hunks.length;u++){var c=s.hunks[u];l.push("@@ -"+c.oldStart+","+c.oldLines+" +"+c.newStart+","+c.newLines+" @@"),l.push.apply(l,c.lines)}return l.join("\n")+"\n"}function E(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function C(e){var t=function e(t){var n=0,r=0;return t.forEach((function(t){if("string"!=typeof t){var i=e(t.mine),o=e(t.theirs);void 0!==n&&(i.oldLines===o.oldLines?n+=i.oldLines:n=void 0),void 0!==r&&(i.newLines===o.newLines?r+=i.newLines:r=void 0)}else void 0===r||"+"!==t[0]&&" "!==t[0]||r++,void 0===n||"-"!==t[0]&&" "!==t[0]||n++})),{oldLines:n,newLines:r}}(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function S(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return b(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return x(void 0,void 0,t,e)}return e}function O(e){return e.newFileName&&e.newFileName!==e.oldFileName}function A(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function j(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function P(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function N(e,t,n,r,i){var o={offset:t,lines:n,index:0},a={offset:r,lines:i,index:0};for(L(e,o,a),L(e,a,o);o.index<o.lines.length&&a.index<a.lines.length;){var s=o.lines[o.index],l=a.lines[a.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==l[0]&&"+"!==l[0])if("+"===s[0]&&" "===l[0]){var u;(u=e.lines).push.apply(u,h(I(o)))}else if("+"===l[0]&&" "===s[0]){var c;(c=e.lines).push.apply(c,h(I(a)))}else"-"===s[0]&&" "===l[0]?M(e,o,a):"-"===l[0]&&" "===s[0]?M(e,a,o,!0):s===l?(e.lines.push(s),o.index++,a.index++):D(e,I(o),I(a));else T(e,o,a)}F(e,o),F(e,a),C(e)}function T(e,t,n){var r,i,o=I(t),a=I(n);if(R(o)&&R(a)){var s,l;if(E(o,a)&&B(n,o,o.length-a.length))return void(s=e.lines).push.apply(s,h(o));if(E(a,o)&&B(t,a,a.length-o.length))return void(l=e.lines).push.apply(l,h(a))}else if(i=a,(r=o).length===i.length&&E(r,i)){var u;return void(u=e.lines).push.apply(u,h(o))}D(e,o,a)}function M(e,t,n,r){var i,o=I(t),a=function(e,t){for(var n=[],r=[],i=0,o=!1,a=!1;i<t.length&&e.index<e.lines.length;){var s=e.lines[e.index],l=t[i];if("+"===l[0])break;if(o=o||" "!==s[0],r.push(l),i++,"+"===s[0])for(a=!0;"+"===s[0];)n.push(s),s=e.lines[++e.index];l.substr(1)===s.substr(1)?(n.push(s),e.index++):a=!0}if("+"===(t[i]||"")[0]&&o&&(a=!0),a)return n;for(;i<t.length;)r.push(t[i++]);return{merged:r,changes:n}}(n,o);a.merged?(i=e.lines).push.apply(i,h(a.merged)):D(e,r?a:o,r?o:a)}function D(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function L(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function F(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function I(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function R(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function B(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}y.tokenize=function(e){return e.slice()},y.join=y.removeEmpty=function(e){return e},e.Diff=t,e.diffChars=function(e,t,n){return i.diff(e,t,n)},e.diffWords=function(e,t,n){return n=o(n,{ignoreWhitespace:!0}),l.diff(e,t,n)},e.diffWordsWithSpace=function(e,t,n){return l.diff(e,t,n)},e.diffLines=c,e.diffTrimmedLines=function(e,t,n){var r=o(n,{ignoreWhitespace:!0});return u.diff(e,t,r)},e.diffSentences=function(e,t,n){return f.diff(e,t,n)},e.diffCss=function(e,t,n){return p.diff(e,t,n)},e.diffJson=function(e,t,n){return v.diff(e,t,n)},e.diffArrays=function(e,t,n){return y.diff(e,t,n)},e.structuredPatch=x,e.createTwoFilesPatch=k,e.createPatch=function(e,t,n,r,i,o){return k(e,e,t,n,r,i,o)},e.applyPatch=w,e.applyPatches=function(e,t){"string"==typeof e&&(e=b(e));var n=0;!function r(){var i=e[n++];if(!i)return t.complete();t.loadFile(i,(function(e,n){if(e)return t.complete(e);var o=w(n,i,t);t.patched(i,o,(function(e){if(e)return t.complete(e);r()}))}))}()},e.parsePatch=b,e.merge=function(e,t,n){e=S(e,n),t=S(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(O(e)?O(t)?(r.oldFileName=A(r,e.oldFileName,t.oldFileName),r.newFileName=A(r,e.newFileName,t.newFileName),r.oldHeader=A(r,e.oldHeader,t.oldHeader),r.newHeader=A(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var i=0,o=0,a=0,s=0;i<e.hunks.length||o<t.hunks.length;){var l=e.hunks[i]||{oldStart:1/0},u=t.hunks[o]||{oldStart:1/0};if(j(l,u))r.hunks.push(P(l,a)),i++,s+=l.newLines-l.oldLines;else if(j(u,l))r.hunks.push(P(u,s)),o++,a+=u.newLines-u.oldLines;else{var c={oldStart:Math.min(l.oldStart,u.oldStart),oldLines:0,newStart:Math.min(l.newStart+a,u.oldStart+s),newLines:0,lines:[]};N(c,l.oldStart,l.lines,u.oldStart,u.lines),o++,i++,r.hunks.push(c)}}return r},e.convertChangesToDMP=function(e){for(var t,n,r=[],i=0;i<e.length;i++)n=(t=e[i]).added?1:t.removed?-1:0,r.push([n,t.value]);return r},e.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push((i=r.value,void 0,i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}var i;return t.join("")},e.canonicalize=g,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){var r={"./3024-day.css":341,"./3024-night.css":342,"./abcdef.css":343,"./ambiance-mobile.css":344,"./ambiance.css":345,"./ayu-dark.css":346,"./ayu-mirage.css":347,"./base16-dark.css":348,"./base16-light.css":349,"./bespin.css":350,"./blackboard.css":351,"./cobalt.css":352,"./colorforth.css":353,"./darcula.css":354,"./dracula.css":355,"./duotone-dark.css":356,"./duotone-light.css":357,"./eclipse.css":358,"./elegant.css":359,"./erlang-dark.css":360,"./gruvbox-dark.css":361,"./hopscotch.css":362,"./icecoder.css":363,"./idea.css":364,"./isotope.css":365,"./lesser-dark.css":366,"./liquibyte.css":367,"./lucario.css":368,"./material-darker.css":369,"./material-ocean.css":370,"./material-palenight.css":371,"./material.css":372,"./mbo.css":373,"./mdn-like.css":374,"./midnight.css":375,"./monokai.css":376,"./moxer.css":377,"./neat.css":378,"./neo.css":379,"./night.css":380,"./nord.css":381,"./oceanic-next.css":382,"./panda-syntax.css":383,"./paraiso-dark.css":384,"./paraiso-light.css":385,"./pastel-on-dark.css":386,"./railscasts.css":387,"./rubyblue.css":388,"./seti.css":389,"./shadowfox.css":390,"./solarized.css":391,"./ssms.css":392,"./the-matrix.css":393,"./tomorrow-night-bright.css":394,"./tomorrow-night-eighties.css":395,"./ttcn.css":396,"./twilight.css":397,"./vibrant-ink.css":398,"./xq-dark.css":399,"./xq-light.css":400,"./yeti.css":401,"./yonce.css":402,"./zenburn.css":403};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=340},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?d(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=n(0),y=(n(2),n(405)),b=n(123);function _(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r<2048?(t+=String.fromCharCode(192|r>>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}var w={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var i=null;e.forEach((function(o,a){if(!o&&null!==i)return n.push("M".concat(i+t," ").concat(r+t,"h").concat(a-i,"v1H").concat(i+t,"z")),void(i=null);if(a!==e.length-1)o&&null===i&&(i=a);else{if(!o)return;null===i?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(i+t,",").concat(r+t," h").concat(a+1-i,"v1H").concat(i+t,"z"))}}))})),n.join("")}function k(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}function E(e,t){var n=e.imageSettings,r=e.size,i=e.includeMargin;if(null==n)return null;var o=i?4:0,a=t.length+2*o,s=Math.floor(.1*r),l=a/r,u=(n.width||s)*l,c=(n.height||s)*l,f=null==n.x?t.length/2-u/2:n.x*l,p=null==n.y?t.length/2-c/2:n.y*l,d=null;if(n.excavate){var h=Math.floor(f),m=Math.floor(p);d={x:h,y:m,w:Math.ceil(u+f-h),h:Math.ceil(c+p-m)}}return{x:f,y:p,h:c,w:u,excavation:d}}var C=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),S=function(e){function t(){var e,n;l(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return v(d(n=f(this,(e=p(t)).call.apply(e,[this].concat(i)))),"_canvas",void 0),v(d(n),"_image",void 0),v(d(n),"state",{imgLoaded:!1}),v(d(n),"handleImageLoad",(function(){n.setState({imgLoaded:!0})})),n}return h(t,e),c(t,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(e){var t,n;(null===(t=this.props.imageSettings)||void 0===t?void 0:t.src)!==(null===(n=e.imageSettings)||void 0===n?void 0:n.src)&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=this.props,t=e.value,n=e.size,r=e.level,i=e.bgColor,o=e.fgColor,a=e.includeMargin,s=e.imageSettings,l=new y(-1,b[r]);if(l.addData(_(t)),l.make(),null!=this._canvas){var u=this._canvas,c=u.getContext("2d");if(!c)return;var f=l.modules;if(null===f)return;var p=a?4:0,d=f.length+2*p,h=E(this.props,f);null!=s&&null!=h&&null!=h.excavation&&(f=k(f,h.excavation));var m=window.devicePixelRatio||1;u.height=u.width=n*m;var v=n/d*m;c.scale(v,v),c.fillStyle=i,c.fillRect(0,0,d,d),c.fillStyle=o,C?c.fill(new Path2D(x(f,p))):f.forEach((function(e,t){e.forEach((function(e,n){e&&c.fillRect(n+p,t+p,1,1)}))})),this.state.imgLoaded&&this._image&&null!=h&&c.drawImage(this._image,h.x+p,h.y+p,h.w,h.h)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.value,t.size),r=(t.level,t.bgColor,t.fgColor,t.style),o=(t.includeMargin,t.imageSettings),l=s(t,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),u=a({height:n,width:n},r),c=null,f=o&&o.src;return null!=o&&null!=f&&(c=g.createElement("img",{src:f,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(t){return e._image=t}})),g.createElement(g.Fragment,null,g.createElement("canvas",i({style:u,height:n,width:n,ref:function(t){return e._canvas=t}},l)),c)}}]),t}(g.PureComponent);v(S,"defaultProps",w);var O=function(e){function t(){return l(this,t),f(this,p(t).apply(this,arguments))}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.value,n=e.size,r=e.level,o=e.bgColor,a=e.fgColor,l=e.includeMargin,u=e.imageSettings,c=s(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),f=new y(-1,b[r]);f.addData(_(t)),f.make();var p=f.modules;if(null===p)return null;var d=l?4:0,h=p.length+2*d,m=E(this.props,p),v=null;null!=u&&null!=m&&(null!=m.excavation&&(p=k(p,m.excavation)),v=g.createElement("image",{xlinkHref:u.src,height:m.h,width:m.w,x:m.x+d,y:m.y+d,preserveAspectRatio:"none"}));var w=x(p,d);return g.createElement("svg",i({shapeRendering:"crispEdges",height:n,width:n,viewBox:"0 0 ".concat(h," ").concat(h)},c),g.createElement("path",{fill:o,d:"M0,0 h".concat(h,"v").concat(h,"H0z")}),g.createElement("path",{fill:a,d:w}),v)}}]),t}(g.PureComponent);v(O,"defaultProps",w);var A=function(e){var t=e.renderAs,n=s(e,["renderAs"]),r="svg"===t?O:S;return g.createElement(r,n)};A.defaultProps=a({renderAs:"canvas"},w),e.exports=A},function(e,t,n){var r=n(406),i=n(407),o=n(408),a=n(409),s=n(124);function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var u=l.prototype;u.addData=function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},u.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},u.getModuleCount=function(){return this.moduleCount},u.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=i.getRSBlocks(e,this.errorCorrectLevel),n=new o,r=0,s=0;s<t.length;s++)r+=t[s].dataCount;for(s=0;s<this.dataList.length;s++){var l=this.dataList[s];n.put(l.mode,4),n.put(l.getLength(),a.getLengthInBits(l.mode,e)),l.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},u.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,a=0;a<this.modules[i].length;a++){var s=1*a;this.modules[i][a]&&(r.beginFill(0,100),r.moveTo(s,o),r.lineTo(s+1,o),r.lineTo(s+1,o+1),r.lineTo(s,o+1),r.endFill())}return r},u.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},u.setupPositionAdjustPattern=function(){for(var e=a.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],i=e[n];if(null==this.modules[r][i])for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)this.modules[r+o][i+s]=-2==o||2==o||-2==s||2==s||0==o&&0==s}},u.setupTypeNumber=function(e){for(var t=a.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&1==(r>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!e&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o<e.length&&(u=1==(e[o]>>>i&1)),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u<n.length;u++){var c=n[u];s.put(c.mode,4),s.put(c.getLength(),a.getLengthInBits(c.mode,e)),c.write(s)}var f=0;for(u=0;u<r.length;u++)f+=r[u].dataCount;if(s.getLengthInBits()>8*f)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*f+")");for(s.getLengthInBits()+4<=8*f&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*f||(s.put(l.PAD0,8),s.getLengthInBits()>=8*f));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=new Array(t.length),l=new Array(t.length),u=0;u<t.length;u++){var c=t[u].dataCount,f=t[u].totalCount-c;r=Math.max(r,c),i=Math.max(i,f),o[u]=new Array(c);for(var p=0;p<o[u].length;p++)o[u][p]=255&e.buffer[p+n];n+=c;var d=a.getErrorCorrectPolynomial(f),h=new s(o[u],d.getLength()-1).mod(d);l[u]=new Array(d.getLength()-1);for(p=0;p<l[u].length;p++){var m=p+h.getLength()-l[u].length;l[u][p]=m>=0?h.get(m):0}}var v=0;for(p=0;p<t.length;p++)v+=t[p].totalCount;var g=new Array(v),y=0;for(p=0;p<r;p++)for(u=0;u<t.length;u++)p<o[u].length&&(g[y++]=o[u][p]);for(p=0;p<i;p++)for(u=0;u<t.length;u++)p<l[u].length&&(g[y++]=l[u][p]);return g},e.exports=l},function(e,t,n){var r=n(122);function i(e){this.mode=r.MODE_8BIT_BYTE,this.data=e}i.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=i},function(e,t,n){var r=n(123);function i(e,t){this.totalCount=e,this.dataCount=t}i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(e,t){var n=i.getRsBlockTable(e,t);if(null==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,o=new Array,a=0;a<r;a++)for(var s=n[3*a+0],l=n[3*a+1],u=n[3*a+2],c=0;c<s;c++)o.push(new i(l,u));return o},i.getRsBlockTable=function(e,t){switch(t){case r.L:return i.RS_BLOCK_TABLE[4*(e-1)+0];case r.M:return i.RS_BLOCK_TABLE[4*(e-1)+1];case r.Q:return i.RS_BLOCK_TABLE[4*(e-1)+2];case r.H:return i.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=i},function(e,t){function n(){this.buffer=new Array,this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},function(e,t,n){var r=n(122),i=n(124),o=n(125),a=0,s=1,l=2,u=3,c=4,f=5,p=6,d=7,h={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;h.getBCHDigit(t)-h.getBCHDigit(h.G15)>=0;)t^=h.G15<<h.getBCHDigit(t)-h.getBCHDigit(h.G15);return(e<<10|t)^h.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;h.getBCHDigit(t)-h.getBCHDigit(h.G18)>=0;)t^=h.G18<<h.getBCHDigit(t)-h.getBCHDigit(h.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return h.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a:return(t+n)%2==0;case s:return t%2==0;case l:return n%3==0;case u:return(t+n)%3==0;case c:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case f:return t*n%2+t*n%3==0;case p:return(t*n%2+t*n%3)%2==0;case d:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n<e;n++)t=t.multiply(new i([1,o.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:case r.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var i=0;i<t;i++){for(var o=0,a=e.isDark(r,i),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l++)i+l<0||t<=i+l||0==s&&0==l||a==e.isDark(r+s,i+l)&&o++;o>5&&(n+=3+o-5)}for(r=0;r<t-1;r++)for(i=0;i<t-1;i++){var u=0;e.isDark(r,i)&&u++,e.isDark(r+1,i)&&u++,e.isDark(r,i+1)&&u++,e.isDark(r+1,i+1)&&u++,0!=u&&4!=u||(n+=3)}for(r=0;r<t;r++)for(i=0;i<t-6;i++)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(i=0;i<t;i++)for(r=0;r<t-6;r++)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);var c=0;for(i=0;i<t;i++)for(r=0;r<t;r++)e.isDark(r,i)&&c++;return n+=10*(Math.abs(100*c/t/t-50)/5)}};e.exports=h},function(e,t,n){},function(e,t,n){e.exports=function(){"use strict";function e(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgba(0, 0, 0, 0)";return Array.isArray(e)&&(e={r:e[0],g:e[1],b:e[2],a:e[3]}),"hex"==n?t(e):"rgb"==n?r(e,o):"hsl"==n?i(e):e}function t(e){Array.isArray(e)&&(e={r:e[0],g:e[1],b:e[2],a:e[3]});var t=e.r.toString(16);e.r<16&&(t="0"+t);var n=e.g.toString(16);e.g<16&&(n="0"+n);var r=e.b.toString(16);e.b<16&&(r="0"+r);var i="";if(e.a<1){var o=Math.floor(255*e.a);i=o.toString(16),o<16&&(i="0"+i)}return"#"+t+n+r+i}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba(0, 0, 0, 0)";if(Array.isArray(e)&&(e={r:e[0],g:e[1],b:e[2],a:e[3]}),void 0!==e)return 1==e.a||void 0===e.a?isNaN(e.r)?t:"rgb("+e.r+","+e.g+","+e.b+")":"rgba("+e.r+","+e.g+","+e.b+","+e.a+")"}function i(e){return Array.isArray(e)&&(e={r:e[0],g:e[1],b:e[2],a:e[3]}),1==e.a||void 0===e.a?"hsl("+e.h+","+e.s+"%,"+e.l+"%)":"hsla("+e.h+","+e.s+"%,"+e.l+"%,"+e.a+")"}var o={format:e,rgb:r,hsl:i,hex:t};function a(e,t){return t=void 0===t?1:t,Math.round(e*t)/t}function s(e){return e*Math.PI/180}function l(e){var t=180*e/Math.PI;return t<0&&(t=360+t),t}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n+t*Math.cos(s(e))}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n+t*Math.sin(s(e))}function f(e,t){return l(Math.atan2(t,e))}var p={round:a,radianToDegree:l,degreeToRadian:s,getXInCircle:u,getYInCircle:c,caculateAngle:f},d={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb(0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb(0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb(0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb(95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(237, 20, 61)",cyan:"rgb(0, 255, 255)",darkblue:"rgb(0, 0, 139)",darkcyan:"rgb(0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgrey:"rgb(169, 169, 169)",darkgreen:"rgb(0, 100, 0)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb(85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb(72, 61, 139)",darkslategray:"rgb(47, 79, 79)",darkslategrey:"rgb(47, 79, 79)",darkturquoise:"rgb(0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb(0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb(30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb(34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb(75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgreen:"rgb(144, 238, 144)",lightgray:"rgb(211, 211, 211)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb(32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb(0, 255, 0)",limegreen:"rgb(50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb(0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb(60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb(0, 250, 154)",mediumturquoise:"rgb(72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb(25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb(0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",rebeccapurple:"rgb(102, 51, 153)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb(65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb(46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb(0, 255, 127)",steelblue:"rgb(70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb(0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb(64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)",transparent:"rgba(0, 0, 0, 0)"},h={isColorName:function(e){return!!d[e]},getColorByName:function(e){return d[e]}};function m(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function v(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.h,t=r.s,n=r.l}var i,o,s;if(e/=360,n/=100,0==(t/=100))i=o=s=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;i=m(u,l,e+1/3),o=m(u,l,e),s=m(u,l,e-1/3)}return{r:a(255*i),g:a(255*o),b:a(255*s)}}var g={HUEtoRGB:m,HSLtoHSV:function(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.h,t=r.s,n=r.l}var i=v(e,t,n);return F(i.r,i.g,i.b)},HSLtoRGB:v},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},k=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},E=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},C=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},S=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},O=/(#(?:[\da-f]{8})|#(?:[\da-f]{3}){1,2}|rgb\((?:\s*\d{1,3},\s*){2}\d{1,3}\s*\)|rgba\((?:\s*\d{1,3},\s*){3}\d*\.?\d+\s*\)|hsl\(\s*\d{1,3}(?:,\s*\d{1,3}%){2}\s*\)|hsla\(\s*\d{1,3}(?:,\s*\d{1,3}%){2},\s*\d*\.?\d+\s*\)|([\w_\-]+))/gi;function A(e){var t=e.match(O),n=[];if(!t)return n;for(var r=0,i=t.length;r<i;r++)if(t[r].indexOf("#")>-1||t[r].indexOf("rgb")>-1||t[r].indexOf("hsl")>-1)n.push({color:t[r]});else{var o=h.getColorByName(t[r]);o&&n.push({color:t[r],nameColor:o})}var a={next:0};return n.forEach((function(t){var n=e.indexOf(t.color,a.next);t.startIndex=n,t.endIndex=n+t.color.length,a.next=t.endIndex})),n}function j(e){var t=A(e);return t.forEach((function(t,n){e=e.replace(t.color,"@"+n)})),{str:e,matches:t}}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=j(e);return n.str.split(t).map((function(e,t){return e=T(e),n.matches[t]&&(e=e.replace("@"+t,n.matches[t].color)),e}))}function N(e,t){return t.forEach((function(t,n){e=e.replace("@"+n,t.color)})),e}function T(e){return e.replace(/^\s+|\s+$/g,"")}function M(e){if("string"==typeof e){if(h.isColorName(e)&&(e=h.getColorByName(e)),e.indexOf("rgb(")>-1){for(var t=0,n=(i=e.replace("rgb(","").replace(")","").split(",")).length;t<n;t++)i[t]=parseInt(T(i[t]),10);var r={type:"rgb",r:i[0],g:i[1],b:i[2],a:1};return r=Object.assign(r,I(r))}if(e.indexOf("rgba(")>-1){for(t=0,n=(i=e.replace("rgba(","").replace(")","").split(",")).length;t<n;t++)i[t]=n-1==t?parseFloat(T(i[t])):parseInt(T(i[t]),10);return r={type:"rgb",r:i[0],g:i[1],b:i[2],a:i[3]},r=Object.assign(r,I(r))}if(e.indexOf("hsl(")>-1){for(t=0,n=(i=e.replace("hsl(","").replace(")","").split(",")).length;t<n;t++)i[t]=parseFloat(T(i[t]));return r={type:"hsl",h:i[0],s:i[1],l:i[2],a:1},r=Object.assign(r,v(r))}if(e.indexOf("hsla(")>-1){for(t=0,n=(i=e.replace("hsla(","").replace(")","").split(",")).length;t<n;t++)i[t]=n-1==t?parseFloat(T(i[t])):parseInt(T(i[t]),10);return r={type:"hsl",h:i[0],s:i[1],l:i[2],a:i[3]},r=Object.assign(r,v(r))}if(0==e.indexOf("#")){var i=[],o=1;if(3==(e=e.replace("#","")).length)for(t=0,n=e.length;t<n;t++){var a=e.substr(t,1);i.push(parseInt(a+a,16))}else if(8===e.length){for(t=0,n=e.length;t<n;t+=2)i.push(parseInt(e.substr(t,2),16));o=i.pop()/255}else for(t=0,n=e.length;t<n;t+=2)i.push(parseInt(e.substr(t,2),16));return r={type:"hex",r:i[0],g:i[1],b:i[2],a:o},r=Object.assign(r,I(r))}}else if("number"==typeof e){if(0<=e&&e<=16777215)return r={type:"hex",r:(16711680&e)>>16,g:(65280&e)>>8,b:(255&e)>>0,a:1},r=Object.assign(r,I(r));if(0<=e&&e<=4294967295)return r={type:"hex",r:(4278190080&e)>>24,g:(16711680&e)>>16,b:(65280&e)>>8,a:(255&e)/255},r=Object.assign(r,I(r))}return e}function D(e){"string"==typeof e&&(e=P(e));var t=(e=e.map((function(e){if("string"==typeof e){var t=j(e),n=T(t.str).split(" ");return n[1]?n[1].includes("%")?n[1]=parseFloat(n[1].replace(/%/,""))/100:n[1]=parseFloat(n[1]):n[1]="*",n[0]=N(n[0],t.matches),n}if(Array.isArray(e))return e[1]?"string"==typeof e[1]&&(e[1].includes("%")?e[1]=parseFloat(e[1].replace(/%/,""))/100:e[1]=+e[1]):e[1]="*",[].concat(S(e))}))).filter((function(e){return"*"===e[1]})).length;if(t>0){var n=(1-e.filter((function(e){return"*"!=e[1]&&1!=e[1]})).map((function(e){return e[1]})).reduce((function(e,t){return e+t}),0))/t;e.forEach((function(t,r){"*"==t[1]&&r>0&&(e.length-1==r||(t[1]=n))}))}return e}var L={matches:A,convertMatches:j,convertMatchesArray:P,reverseMatches:N,parse:M,parseGradient:D,trim:T,color_regexp:O,color_split:","};function F(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}var i=e/255,o=t/255,a=n/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=s-l,c=0;return 0==u?c=0:s==i?c=(o-a)/u%6*60:s==o?c=60*((a-i)/u+2):s==a&&(c=60*((i-o)/u+4)),c<0&&(c=360+c),{h:c,s:0==s?0:u/s,v:s}}function I(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}e/=255,t/=255,n/=255;var i,o,s=Math.max(e,t,n),l=Math.min(e,t,n),u=(s+l)/2;if(s==l)i=o=0;else{var c=s-l;switch(o=u>.5?c/(2-s-l):c/(s+l),s){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:a(360*i),s:a(100*o),l:a(100*u)}}function R(e){return{r:e,g:e,b:e}}function B(e,t,n){return Math.ceil(.2126*e+.7152*t+.0722*n)}function $(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}var i=B(e,t,n),o=.564*(n-i),a=.713*(e-i);return{y:i,cr:a,cb:o}}function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.04045;return 100*(e>t?Math.pow((e+.055)/1.055,2.4):e/12.92)}function z(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}var i=e/255,o=t/255,a=n/255,s=.4124*(i=W(i))+.3576*(o=W(o))+.1805*(a=W(a)),l=.2126*i+.7152*o+.0722*a,u=.0193*i+.1192*o+.9505*a;return{x:s,y:l,z:u}}var H={RGBtoCMYK:function(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}var i=e/255,o=t/255,a=n/255,s=1-Math.max(i,o,a),l=(1-i-s)/(1-s),u=(1-o-s)/(1-s),c=(1-a-s)/(1-s);return{c:l,m:u,y:c,k:s}},RGBtoGray:function(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}return R($(e,t,n).y)},RGBtoHSL:I,RGBtoHSV:F,RGBtoLAB:function(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}return XYZtoLAB(z(e,t,n))},RGBtoSimpleGray:function(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}return R(Math.ceil((e+t+n)/3))},RGBtoXYZ:z,RGBtoYCrCb:$,c:function(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}return R((e+t+n)/3>90?0:255)},brightness:B,gray:R},V={CMYKtoRGB:function(e,t,n,r){if(1==arguments.length){var i=arguments[0];e=i.c,t=i.m,n=i.y,r=i.k}var o=255*(1-e)*(1-r),a=255*(1-t)*(1-r),s=255*(1-n)*(1-r);return{r:o,g:a,b:s}}};function U(e){return Math.pow(e,3)>.008856?Math.pow(e,3):(e-16/116)/7.787}function q(e){return e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e}function G(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.x,t=r.y,n=r.z}var i=e/100,o=t/100,s=n/100,l=3.2406*i+-1.5372*o+-.4986*s,u=-.9689*i+1.8758*o+.0415*s,c=.0557*i+-.204*o+1.057*s;l=q(l),u=q(u),c=q(c);var f=a(255*l),p=a(255*u),d=a(255*c);return{r:f,g:p,b:d}}function X(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.l,t=r.a,n=r.b}var i=(e+16)/116,o=t/500+i,a=i-n/200;i=U(i);var s=95.047*(o=U(o)),l=100*i,u=108.883*(a=U(a));return{x:s,y:l,z:u}}var Y={XYZtoRGB:G,LABtoRGB:function(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.l,t=r.a,n=r.b}return G(X(e,t,n))},LABtoXYZ:X};function K(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.h,t=r.s,n=r.v}var i=e,o=t,s=n;i>=360&&(i=0);var l=o*s,u=l*(1-Math.abs(i/60%2-1)),c=s-l,f=[];return 0<=i&&i<60?f=[l,u,0]:60<=i&&i<120?f=[u,l,0]:120<=i&&i<180?f=[0,l,u]:180<=i&&i<240?f=[0,u,l]:240<=i&&i<300?f=[u,0,l]:300<=i&&i<360&&(f=[l,0,u]),{r:a(255*(f[0]+c)),g:a(255*(f[1]+c)),b:a(255*(f[2]+c))}}var J={HSVtoHSL:function(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.h,t=r.s,n=r.v}var i=K(e,t,n);return I(i.r,i.g,i.b)},HSVtoRGB:K},Z={YCrCbtoRGB:function(e,t,n,r){if(1==arguments.length){var i=arguments[0];e=i.y,t=i.cr,n=i.cb,r=(r=i.bit)||0}var o=e+1.402*(t-r),a=e-.344*(n-r)-.714*(t-r),s=e+1.772*(n-r);return{r:Math.ceil(o),g:Math.ceil(a),b:Math.ceil(s)}}};function Q(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hex",o={r:a(t.r+(n.r-t.r)*r),g:a(t.g+(n.g-t.g)*r),b:a(t.b+(n.b-t.b)*r),a:a(t.a+(n.a-t.a)*r,100)};return e(o,o.a<1?"rgb":i)}function ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return[];"string"==typeof e&&(e=P(e));for(var n=(e=e||[]).length,r=[],i=0;i<n-1;i++)for(var o=0;o<t;o++)r.push(te(e[i],e[i+1],o/t));return r}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hex",i=M(e),o=M(t);return Q(i,o,n,r)}function ne(e){return e=M(e),(Math.round(299*e.r)+Math.round(587*e.g)+Math.round(114*e.b))/1e3}function re(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"h",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"rgb",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:100,l=M(t),u=F(l),c=(a-o)*s/r,f=[],p=1;p<=r;p++)u[n]=Math.abs((s-c*p)/s),f.push(e(K(u),i));return f}ee.parula=function(e){return ee(["#352a87","#0f5cdd","#00b5a6","#ffc337","#fdff00"],e)},ee.jet=function(e){return ee(["#00008f","#0020ff","#00ffff","#51ff77","#fdff00","#ff0000","#800000"],e)},ee.hsv=function(e){return ee(["#ff0000","#ffff00","#00ff00","#00ffff","#0000ff","#ff00ff","#ff0000"],e)},ee.hot=function(e){return ee(["#0b0000","#ff0000","#ffff00","#ffffff"],e)},ee.pink=function(e){return ee(["#1e0000","#bd7b7b","#e7e5b2","#ffffff"],e)},ee.bone=function(e){return ee(["#000000","#4a4a68","#a6c6c6","#ffffff"],e)},ee.copper=function(e){return ee(["#000000","#3d2618","#9d623e","#ffa167","#ffc77f"],e)};var ie={interpolateRGB:Q,blend:te,mix:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hex";return te(e,t,n,r)},scale:ee,contrast:ne,contrastColor:function(e){return ne(e)>=128?"black":"white"},gradient:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=[],r=t-((e=D(e)).length-1),i=r,o=1,a=e.length;o<a;o++){var s=e[o-1][0],l=e[o][0],u=1==o?e[o][1]:e[o][1]-e[o-1][1],c=o==e.length-1?i:Math.floor(u*r);n=n.concat(ee([s,l],c),[l]),i-=c}return n},scaleHSV:re,scaleH:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgb",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:360;return re(e,"h",t,n,r,i,1)},scaleS:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgb",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return re(e,"s",t,n,r,i,100)},scaleV:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgb",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return re(e,"v",t,n,r,i,100)}};function oe(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;++n)if(e[n]!==t[n])return!1;return!0}var ae={euclidean:function(e,t){for(var n=0,r=0,i=e.length;r<i;r++)n+=Math.pow(t[r]-e[r],2);return Math.sqrt(n)},manhattan:function(e,t){for(var n=0,r=0,i=e.length;r<i;r++)n+=Math.abs(t[r]-e[r]);return n},max:function(e,t){for(var n=0,r=0,i=e.length;r<i;r++)n=Math.max(n,Math.abs(t[r]-e[r]));return n}},se={linear:function(e,t){var n=[],r=Math.round(Math.random()*e),i=Math.floor(e/t);do{n.push(r),r=(r+i)%e}while(n.length<t);return n},shuffle:function(e,t){for(var n=[];n.length<t;){var r=Math.round(Math.random()*e);-1==n.indexOf(r)&&n.push(r)}return n}};function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",r=se[n](e.length,t);return r.map((function(t){return e[t]}))}function ue(e,t,n){var r=1/0,i=0;return t.forEach((function(t,o){var a=n(e,t);a<r&&(r=a,i=o)})),i}function ce(e){if(!e.length)return[];for(var t=new Array(e[0].length),n=0,r=t.length;n<r;n++)t[n]=0;var i=0;for(r=e.length;i<r;i++)for(var o=e[i],a=i+1,s=0,l=o.length;s<l;s++)t[s]+=(o[s]-t[s])/a;return t=t.map((function(e){return Math.floor(e)}))}function fe(e,t,n,r){for(var i=new Array(e),o=0;o<e;o++)i[o]=[];for(var a=0,s=t.length;a<s;a++){var l=t[a];i[ue(l,n,r)].push(l)}return i}function pe(e,t,n,r,i,o){for(var a=0;a<e;a++){var s=n[a],l=r[a],u=new Array(l.length);u=s.length>0?ce(s):t[Math.floor(o()*t.length)],i=!oe(u,l),r[a]=u}return i}function de(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"linear";e=e,t=t||Math.max(2,Math.ceil(Math.sqrt(e.length/2)));var o=n||"euclidean";"string"==typeof o&&(o=ae[o]);for(var a=0,s=function(){return(a=(9301*a+49297)%233280)/233280},l=le(e,t,i),u=!0,c=0;u;){var f=fe(t,e,l,o);if(u=pe(t,e,f,l,!1,s),++c%r==0)break}return l}var he={create:function(e,t){var n=document.createElement("canvas");return n.width=e||0,n.height=t||0,n},drawPixels:function(e){var t=this.create(e.width,e.height),n=t.getContext("2d"),r=n.getImageData(0,0,t.width,t.height);return r.data.set(e.pixels),n.putImageData(r,0,0),t},createHistogram:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{black:!0,red:!1,green:!1,blue:!1},o=this.create(e,t),a=o.getContext("2d");a.clearRect(0,0,e,t),a.fillStyle="white",a.fillRect(0,0,e,t),a.globalAlpha=.7;var s={black:!1};i.black?s.black=!1:s.black=!0,i.red?s.red=!1:s.red=!0,i.green?s.green=!1:s.green=!0,i.blue?s.blue=!1:s.blue=!0,Object.keys(n).forEach((function(r){if(!s[r]){var i=n[r],o=Math.max.apply(Math,i),l=e/i.length;a.fillStyle=r,i.forEach((function(e,n){var r=t*(e/o),i=n*l;a.fillRect(i,t-r,l,r)}))}})),"function"==typeof r&&r(o)},getHistogram:function(e){for(var t=new Array(256),n=new Array(256),r=new Array(256),i=new Array(256),o=0;o<256;o++)t[o]=0,n[o]=0,r[o]=0,i[o]=0;return function(e,t){!function(e,t){for(var n=0;n<e;n+=4)t(n)}(e.pixels.length,(function(n){t(e.pixels,n)}))}(e,(function(e,o){var a=Math.round(Jt.brightness(e[o],e[o+1],e[o+2]));t[a]++,n[e[o]]++,r[e[o+1]]++,i[e[o+2]]++})),{black:t,red:n,green:r,blue:i}},getBitmap:function(e,t){var n=this.drawPixels(e);return{pixels:n.getContext("2d").getImageData(t.x||0,t.y||0,t.width||n.width,t.height||n.height).data,width:t.width,height:t.height}},putBitmap:function(e,t,n){var r=this.drawPixels(e),i=this.drawPixels(t),o=r.getContext("2d");return o.drawImage(i,n.x,n.y),e.pixels=o.getImageData(0,0,e.width,e.height).data,e}},me=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y(this,e),this.isLoaded=!1,this.imageUrl=t,this.opt=n,this.initialize()}return b(e,[{key:"initialize",value:function(){this.canvas=this.createCanvas(),this.context=this.canvas.getContext("2d")}},{key:"createCanvas",value:function(){return document.createElement("canvas")}},{key:"load",value:function(e){this.loadImage(e)}},{key:"loadImage",value:function(e){var t=this,n=this.context;this.newImage=new Image;var r=this.newImage;r.onload=function(){var i=r.height/r.width;t.opt.canvasWidth&&t.opt.canvasHeight?(t.canvas.width=t.opt.canvasWidth,t.canvas.height=t.opt.canvasHeight):(t.canvas.width=t.opt.maxWidth?t.opt.maxWidth:r.width,t.canvas.height=t.canvas.width*i),n.drawImage(r,0,0,r.width,r.height,0,0,t.canvas.width,t.canvas.height),t.isLoaded=!0,e&&e()},this.getImageUrl((function(e){r.src=e}))}},{key:"load",value:function(e){var t=this;this.newImage=new Image;var n=this.newImage;n.onload=function(){t.isLoaded=!0,e&&e()},this.getImageUrl((function(e){n.src=e}))}},{key:"getImageUrl",value:function(e){if("string"==typeof this.imageUrl)return e(this.imageUrl);if(this.imageUrl instanceof Blob){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.readAsDataURL(this.imageUrl)}}},{key:"getRGBA",value:function(e,t,n,r){return[e,t,n,r]}},{key:"toArray",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.context.getImageData(0,0,this.canvas.width,this.canvas.height),i=r.width,o=r.height,a=new Uint8ClampedArray(r.data),s={pixels:a,width:i,height:o};e||(e=function(e,t){t(e)}),e(s,(function(e){var r=he.drawPixels(e);"canvas"==n.returnTo?t(r):t(r.toDataURL(n.outputFormat||"image/png"))}),n)}},{key:"toHistogram",value:function(e){var t=this.context.getImageData(0,0,this.canvas.width,this.canvas.height),n=t.width,r=t.height,i={pixels:new Uint8ClampedArray(t.data),width:n,height:r};return he.getHistogram(i)}},{key:"toRGB",value:function(){for(var e=this.context.getImageData(0,0,this.canvas.width,this.canvas.height).data,t=[],n=0,r=e.length;n<r;n+=4)t[t.length]=[e[n+0],e[n+1],e[n+2],e[n+3]];return t}}]),e}(),ve={identity:function(){return[1,0,0,0,1,0,0,0,1]},stretching:function(e){return[e,0,0,0,1,0,0,0,1]},squeezing:function(e){return[e,0,0,0,1/e,0,0,0,1]},scale:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return[e=e||0===e?e:1,0,0,0,t=t||0===t?t:1,0,0,0,1]},scaleX:function(e){return this.scale(e)},scaleY:function(e){return this.scale(1,e)},translate:function(e,t){return[1,0,e,0,1,t,0,0,1]},rotate:function(e){var t=this.radian(e);return[Math.cos(t),-Math.sin(t),0,Math.sin(t),Math.cos(t),0,0,0,1]},rotate90:function(){return[0,-1,0,1,0,0,0,0,1]},rotate180:function(){return[-1,0,0,0,-1,0,0,0,1]},rotate270:function(){return[0,1,0,-1,0,0,0,0,1]},radian:function(e){return e*Math.PI/180},skew:function(e,t){var n=this.radian(e),r=this.radian(t);return[1,Math.tan(n),0,Math.tan(r),1,0,0,0,1]},skewX:function(e){var t=this.radian(e);return[1,Math.tan(t),0,0,1,0,0,0,1]},skewY:function(e){var t=this.radian(e);return[1,0,0,Math.tan(t),1,0,0,0,1]},shear1:function(e){return[1,-Math.tan(this.radian(e)/2),0,0,1,0,0,0,1]},shear2:function(e){return[1,0,0,Math.sin(this.radian(e)),1,0,0,0,1]}},ge={CONSTANT:ve,radian:function(e){return ve.radian(e)},multiply:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]},identity:function(e){return this.multiply(ve.identity(),e)},translate:function(e,t,n){return this.multiply(ve.translate(e,t),n)},rotate:function(e,t){return this.multiply(ve.rotate(e),t)},shear1:function(e,t){return this.multiply(ve.shear1(e),t)},shear2:function(e,t){return this.multiply(ve.shear2(e),t)},rotateShear:function(e,t){var n=t;return n=this.shear1(e,n),n=this.shear2(e,n),n=this.shear1(e,n)}};function ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center";return function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Ge(r.pixels.length,r.width,r.height),s=r.width,l=r.height;"center"==t&&(t=Math.floor(s/2)),"center"==n&&(n=Math.floor(l/2));var u=ge.CONSTANT.translate(-t,-n),c=ge.CONSTANT.translate(t,n),f=ge.CONSTANT.shear1(e),p=ge.CONSTANT.shear2(e);st((function(e,t,n,i){var o=ge.multiply(u,[n,i,1]);o=ge.multiply(f,o).map(Math.round),o=ge.multiply(p,o).map(Math.round),o=ge.multiply(f,o).map(Math.round),o=ge.multiply(c,o);var a=C(o,2),d=a[0],h=a[1];d<0||h<0||d>s-1||h>l-1||ct(e,h*s+d<<2,r.pixels,t)}))(a,(function(){i(a)}),o)}}function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Qe(e),i=(t=Qe(t))/100,o=n;return it("\n // refer to Color.brightness \n const v = ($C * Math.ceil($r * 0.2126 + $g * 0.7152 + $b * 0.0722) ) >= $scale ? 255 : 0;\n\n if ($hasColor) {\n\n if (v == 0) {\n $r = 0 \n $g = 0 \n $b = 0\n }\n \n } else {\n const value = Math.round(v)\n $r = value \n $g = value \n $b = value \n }\n \n ",{$C:i,$scale:r,$hasColor:o})}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=(e=Qe(e))/100;return dt(We([1,2,1,2,4,2,1,2,1],1/16*t))}function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=(e=Qe(e))/100;return dt(We([1,4,6,4,1,4,16,24,16,4,6,24,36,24,6,4,16,24,16,4,1,4,6,4,1],1/256*t))}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return e=Qe(e),dt([5,5,5,-3,0,-3,-3,-3,-3])}function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return e=Qe(e),dt([5,-3,-3,5,0,-3,5,-3,-3])}function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return dt(We([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,24,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],(e=Qe(e))/100))}function Ce(){return dt(We([1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1],1/9))}function Se(){return dt(We([1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1],1/9))}function Oe(){return dt(We([1,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,0,0,1,0,1,0,1,0,0,0,0,0,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0,0,0,1,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1],1/9))}function Ae(){return dt([-1,-2,-1,0,0,0,1,2,1])}function je(){return dt([-1,0,1,-2,0,2,-1,0,1])}var Pe=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Ne=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Te(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}function Me(e,t,n){return n?function(e,t,n,r){if(isNaN(r)||r<1)return e;r|=0;var i,o,a,s,l,u,c,f,p,d,h,m,v,g,y,b,_,w,x,k,E=e.pixels,C=e.width,S=e.height,O=r+r+1,A=C-1,j=S-1,P=r+1,N=P*(P+1)/2,T=new Te,M=T;for(a=1;a<O;a++)if(M=M.next=new Te,a==P)var D=M;M.next=T;var L=null,F=null;c=u=0;var I=Pe[r],R=Ne[r];for(o=0;o<S;o++){for(g=y=b=f=p=d=0,h=P*(_=E[u]),m=P*(w=E[u+1]),v=P*(x=E[u+2]),f+=N*_,p+=N*w,d+=N*x,M=T,a=0;a<P;a++)M.r=_,M.g=w,M.b=x,M=M.next;for(a=1;a<P;a++)s=u+((A<a?A:a)<<2),f+=(M.r=_=E[s])*(k=P-a),p+=(M.g=w=E[s+1])*k,d+=(M.b=x=E[s+2])*k,g+=_,y+=w,b+=x,M=M.next;for(L=T,F=D,i=0;i<C;i++)E[u]=f*I>>R,E[u+1]=p*I>>R,E[u+2]=d*I>>R,f-=h,p-=m,d-=v,h-=L.r,m-=L.g,v-=L.b,s=c+((s=i+r+1)<A?s:A)<<2,g+=L.r=E[s],y+=L.g=E[s+1],b+=L.b=E[s+2],f+=g,p+=y,d+=b,L=L.next,h+=_=F.r,m+=w=F.g,v+=x=F.b,g-=_,y-=w,b-=x,F=F.next,u+=4;c+=C}for(i=0;i<C;i++){for(y=b=g=p=d=f=0,h=P*(_=E[u=i<<2]),m=P*(w=E[u+1]),v=P*(x=E[u+2]),f+=N*_,p+=N*w,d+=N*x,M=T,a=0;a<P;a++)M.r=_,M.g=w,M.b=x,M=M.next;for(l=C,a=1;a<=r;a++)u=l+i<<2,f+=(M.r=_=E[u])*(k=P-a),p+=(M.g=w=E[u+1])*k,d+=(M.b=x=E[u+2])*k,g+=_,y+=w,b+=x,M=M.next,a<j&&(l+=C);for(u=i,L=T,F=D,o=0;o<S;o++)E[s=u<<2]=f*I>>R,E[s+1]=p*I>>R,E[s+2]=d*I>>R,f-=h,p-=m,d-=v,h-=L.r,m-=L.g,v-=L.b,s=i+((s=o+P)<j?s:j)*C<<2,f+=g+=L.r=E[s],p+=y+=L.g=E[s+1],d+=b+=L.b=E[s+2],L=L.next,h+=_=F.r,m+=w=F.g,v+=x=F.b,g-=_,y-=w,b-=x,F=F.next,u+=C}return e}(e,0,0,t):stackBlurCanvasRGB(e,0,0,t)}function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=Qe(e),function(n,r){r(Me(n,e,t))}}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:256;return dt(We([1,4,6,4,1,4,16,24,16,4,6,24,-476,24,6,4,16,24,16,4,1,4,6,4,1],-1/(e=Qe(e))))}var Fe,Ie=w({},{crop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2],r=arguments[3],i=Ge(n*r*4,n,r);return function(o,a){for(var s=t,l=0;s<r;s++,l++)for(var u=e,c=0;u<n;u++,c++)i.pixels[l*n*c]=o.pixels[s*n*u];a(i)}},resize:function(e,t){return function(n,r){var i=he.drawPixels(n),o=i.getContext("2d");i.width=e,i.height=t,r({pixels:new Uint8ClampedArray(o.getImageData(0,0,e,t).data),width:e,height:t})}},flipH:function(){return function(e,t){for(var n=e.width,r=e.height,i=n%2==1?Math.floor(n/2):n/2,o=0;o<r;o++)for(var a=0;a<i;a++){var s=o*n+a<<2,l=o*n+(n-1-a)<<2;at(e.pixels,s,l)}t(e)}},flipV:function(){return function(e,t){for(var n=e.width,r=e.height,i=r%2==1?Math.floor(r/2):r/2,o=0;o<i;o++)for(var a=0;a<n;a++){var s=o*n+a<<2,l=(r-1-o)*n+a<<2;at(e.pixels,s,l)}t(e)}},rotate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e=Qe(e),e%=360,function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0==e)return t;if(90==e||270==e)var i=Ge(t.pixels.length,t.height,t.width);else{if(180!=e)return ye(e)(t,n,r);i=Ge(t.pixels.length,t.width,t.height)}st((function(n,r,o,a){if(90==e)var s=o*i.width+(i.width-1-a)<<2;else 270==e?s=(i.height-1-o)*i.width+a<<2:180==e&&(s=(i.height-1-a)*i.width+(i.width-1-o)<<2);ct(i.pixels,s,t.pixels,r)}))(t,(function(){n(i)}),r)}},rotateDegree:ye,histogram:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"gray",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0;r<t.length-1;r++)for(var i=t[r],o=t[r+1],a=o[0]-i[0],s=o[1]-i[1],l=s/a,u=0,c=i[0];u<a;u++,c++)n[c]=i[1]+u*l;return n[255]=255,it("red"===e?function(){$r=n[$r]}:"green"===e?function(){$g=n[$g]}:"blue"===e?function(){$b=n[$b]}:function(){var e=Color.RGBtoYCrCb($r,$g,$b),t=Color.YCrCbtoRGB(clamp(n[clamp(e.y)]),e.cr,e.cb,0);$r=t.r,$g=t.g,$b=t.b},{},{$realPoints:n})},"rotate-degree":ye},{bitonal:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=Jt.parse(e),i=Jt.parse(t),o=n;return it("\n const thresholdColor = ( $r + $g + $b ) <= $threshold ? $darkColor : $lightColor\n\n $r = thresholdColor.r\n $g = thresholdColor.g \n $b = thresholdColor.b \n ",{$threshold:o},{$darkColor:r,$lightColor:i})},brightness:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e=Qe(e);var t=Math.floor(e/100*255);return it("\n $r += $C \n $g += $C \n $b += $C \n ",{$C:t})},brownie:function(){return it("\n $r = $matrix[0] * $r + $matrix[1] * $g + $matrix[2] * $b + $matrix[3] * $a\n $g = $matrix[4] * $r + $matrix[5] * $g + $matrix[6] * $b + $matrix[7] * $a\n $b = $matrix[8] * $r + $matrix[9] * $g + $matrix[10] * $b + $matrix[11] * $a\n $a = $matrix[12] * $r + $matrix[13] * $g + $matrix[14] * $b + $matrix[15] * $a \n ",{$matrix:[.5997023498159715,.34553243048391263,-.2708298674538042,0,-.037703249837783157,.8609577587992641,.15059552388459913,0,.24113635128153335,-.07441037908422492,.44972182064877153,0,0,0,0,1]})},clip:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e=Qe(e);var t=2.55*Math.abs(e);return it("\n\n $r = ($r > 255 - $C) ? 255 : 0\n $g = ($g > 255 - $C) ? 255 : 0\n $b = ($b > 255 - $C) ? 255 : 0\n\n ",{$C:t})},contrast:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e=Qe(e);var t=Math.max((128+e)/128,0);return it("\n $r *= $C\n $g *= $C\n $b *= $C\n ",{$C:t})},gamma:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Qe(e);return it("\n $r = Math.pow($r / 255, $C) * 255\n $g = Math.pow($g / 255, $C) * 255\n $b = Math.pow($b / 255, $C) * 255\n ",{$C:t})},gradient:function(){var e=[].concat(Array.prototype.slice.call(arguments));1===e.length&&"string"==typeof e[0]&&(e=Jt.convertMatchesArray(e[0]));var t=(e=e.map((function(e){return Jt.matches(e).length?{type:"param",value:e}:{type:"scale",value:e}}))).filter((function(e){return"scale"==e.type}))[0];t=t?+t.value:256,e=e.filter((function(e){return"param"==e.type})).map((function(e){return e.value})).join(",");var n=Jt.gradient(e,t).map((function(e){var t=Jt.parse(e);return{r:t.r,g:t.g,b:t.b,a:t.a}}));return it("\n const colorIndex = clamp(Math.ceil($r * 0.2126 + $g * 0.7152 + $b * 0.0722))\n const newColorIndex = clamp(Math.floor(colorIndex * ($scale / 256)))\n const color = $colors[newColorIndex]\n\n $r = color.r \n $g = color.g \n $b = color.b \n $a = clamp(Math.floor(color.a * 256))\n ",{},{$colors:n,$scale:t})},grayscale:function(e){var t=(e=Qe(e))/100;return t>1&&(t=1),it("\n $r = $matrix[0] * $r + $matrix[1] * $g + $matrix[2] * $b + $matrix[3] * $a\n $g = $matrix[4] * $r + $matrix[5] * $g + $matrix[6] * $b + $matrix[7] * $a\n $b = $matrix[8] * $r + $matrix[9] * $g + $matrix[10] * $b + $matrix[11] * $a\n $a = $matrix[12] * $r + $matrix[13] * $g + $matrix[14] * $b + $matrix[15] * $a\n ",{$matrix:[.2126+.7874*(1-t),.7152-.7152*(1-t),.0722-.0722*(1-t),0,.2126-.2126*(1-t),.7152+.2848*(1-t),.0722-.0722*(1-t),0,.2126-.2126*(1-t),.7152-.7152*(1-t),.0722+.9278*(1-t),0,0,0,0,1]})},hue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:360,t=Qe(e);return it("\n var hsv = Color.RGBtoHSV($r, $g, $b);\n\n // 0 ~ 360 \n var h = hsv.h;\n h += Math.abs($C)\n h = h % 360\n hsv.h = h\n\n var rgb = Color.HSVtoRGB(hsv);\n\n $r = rgb.r\n $g = rgb.g\n $b = rgb.b\n ",{$C:t})},invert:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=(e=Qe(e))/100;return it("\n $r = (255 - $r) * $C\n $g = (255 - $g) * $C\n $b = (255 - $b) * $C\n ",{$C:t})},kodachrome:function(){return it("\n $r = $matrix[0] * $r + $matrix[1] * $g + $matrix[2] * $b + $matrix[3] * $a\n $g = $matrix[4] * $r + $matrix[5] * $g + $matrix[6] * $b + $matrix[7] * $a\n $b = $matrix[8] * $r + $matrix[9] * $g + $matrix[10] * $b + $matrix[11] * $a\n $a = $matrix[12] * $r + $matrix[13] * $g + $matrix[14] * $b + $matrix[15] * $a \n ",{$matrix:[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,0,0,0,1]})},matrix:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,f=arguments.length>11&&void 0!==arguments[11]?arguments[11]:0,p=arguments.length>12&&void 0!==arguments[12]?arguments[12]:0,d=arguments.length>13&&void 0!==arguments[13]?arguments[13]:0,h=arguments.length>14&&void 0!==arguments[14]?arguments[14]:0,m=arguments.length>15&&void 0!==arguments[15]?arguments[15]:0,v=[e,t,n,r,i,o,a,s,l,u,c,f,p,d,h,m];return it("\n $r = $matrix[0] * $r + $matrix[1] * $g + $matrix[2] * $b + $matrix[3] * $a\n $g = $matrix[4] * $r + $matrix[5] * $g + $matrix[6] * $b + $matrix[7] * $a\n $b = $matrix[8] * $r + $matrix[9] * $g + $matrix[10] * $b + $matrix[11] * $a\n $a = $matrix[12] * $r + $matrix[13] * $g + $matrix[14] * $b + $matrix[15] * $a \n ",{$matrix:v})},noise:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Qe(e);return it("\n const C = Math.abs($C) * 5\n const min = -C\n const max = C \n const noiseValue = Math.round(min + (Math.random() * (max - min)))\n\n $r += noiseValue\n $g += noiseValue\n $b += noiseValue\n ",{$C:t})},opacity:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=(e=Qe(e))/100;return it("\n $a *= $C \n ",{$C:t})},polaroid:function(){return it("\n $r = $matrix[0] * $r + $matrix[1] * $g + $matrix[2] * $b + $matrix[3] * $a\n $g = $matrix[4] * $r + $matrix[5] * $g + $matrix[6] * $b + $matrix[7] * $a\n $b = $matrix[8] * $r + $matrix[9] * $g + $matrix[10] * $b + $matrix[11] * $a\n $a = $matrix[12] * $r + $matrix[13] * $g + $matrix[14] * $b + $matrix[15] * $a \n ",{$matrix:[1.438,-.062,-.062,0,-.122,1.378,-.122,0,-.016,-.016,1.483,0,0,0,0,1]})},saturation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=(e=Qe(e))/100,n=1-Math.abs(t),r=[n,0,0,0,0,n,0,0,0,0,n,0,0,0,0,n];return it("\n $r = $matrix[0] * $r + $matrix[1] * $g + $matrix[2] * $b + $matrix[3] * $a\n $g = $matrix[4] * $r + $matrix[5] * $g + $matrix[6] * $b + $matrix[7] * $a\n $b = $matrix[8] * $r + $matrix[9] * $g + $matrix[10] * $b + $matrix[11] * $a\n $a = $matrix[12] * $r + $matrix[13] * $g + $matrix[14] * $b + $matrix[15] * $a \n ",{$matrix:r})},sepia:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Qe(e);t>1&&(t=1);var n=[.393+.607*(1-t),.769-.769*(1-t),.189-.189*(1-t),0,.349-.349*(1-t),.686+.314*(1-t),.168-.168*(1-t),0,.272-.272*(1-t),.534-.534*(1-t),.131+.869*(1-t),0,0,0,0,1];return it("\n $r = $matrix[0] * $r + $matrix[1] * $g + $matrix[2] * $b + $matrix[3] * $a\n $g = $matrix[4] * $r + $matrix[5] * $g + $matrix[6] * $b + $matrix[7] * $a\n $b = $matrix[8] * $r + $matrix[9] * $g + $matrix[10] * $b + $matrix[11] * $a\n $a = $matrix[12] * $r + $matrix[13] * $g + $matrix[14] * $b + $matrix[15] * $a \n ",{$matrix:n})},shade:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=Qe(e),i=Qe(t),o=Qe(n);return it("\n $r *= $redValue\n $g *= $greenValue\n $b *= $blueValue\n ",{$redValue:r,$greenValue:i,$blueValue:o})},shift:function(){return it("\n $r = $matrix[0] * $r + $matrix[1] * $g + $matrix[2] * $b + $matrix[3] * $a\n $g = $matrix[4] * $r + $matrix[5] * $g + $matrix[6] * $b + $matrix[7] * $a\n $b = $matrix[8] * $r + $matrix[9] * $g + $matrix[10] * $b + $matrix[11] * $a\n $a = $matrix[12] * $r + $matrix[13] * $g + $matrix[14] * $b + $matrix[15] * $a \n ",{$matrix:[1.438,-.062,-.062,0,-.122,1.378,-.122,0,-.016,-.016,1.483,0,0,0,0,1]})},solarize:function(e,t,n){return it("\n $r = ($r < $redValue) ? 255 - $r: $r\n $g = ($g < $greenValue) ? 255 - $g: $g\n $b = ($b < $blueValue) ? 255 - $b: $b\n ",{$redValue:Qe(e),$greenValue:Qe(t),$blueValue:Qe(n)})},technicolor:function(){return it("\n $r = $matrix[0] * $r + $matrix[1] * $g + $matrix[2] * $b + $matrix[3] * $a\n $g = $matrix[4] * $r + $matrix[5] * $g + $matrix[6] * $b + $matrix[7] * $a\n $b = $matrix[8] * $r + $matrix[9] * $g + $matrix[10] * $b + $matrix[11] * $a\n $a = $matrix[12] * $r + $matrix[13] * $g + $matrix[14] * $b + $matrix[15] * $a \n ",{$matrix:[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-.231103377548616,-.7501899197440212,1.847597816108189,0,0,0,0,1]})},threshold:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return be(e,t,!1)},"threshold-color":be,tint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=Qe(e),i=Qe(t),o=Qe(n);return it("\n\n $r += (255 - $r) * $redTint\n $g += (255 - $g) * $greenTint\n $b += (255 - $b) * $blueTint\n\n ",{$redTint:r,$greenTint:i,$blueTint:o})}},{blur:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return dt(lt(e=Qe(e)))},emboss:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4;return dt([-2*(e=Qe(e)),-e,0,-e,1,e,0,e,2*e])},gaussianBlur:_e,"gaussian-blur":_e,gaussianBlur5x:we,"gaussian-blur-5x":we,grayscale2:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return dt(We([.3,.3,.3,0,0,.59,.59,.59,0,0,.11,.11,.11,0,0,0,0,0,0,0,0,0,0,0,0],(e=Qe(e))/100))},normal:function(){return dt([0,0,0,0,1,0,0,0,0])},kirschHorizontal:xe,"kirsch-horizontal":xe,kirschVertical:ke,"kirsch-vertical":ke,laplacian:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return dt(We([-1,-1,-1,-1,8,-1,-1,-1,-1],(e=Qe(e))/100))},laplacian5x:Ee,"laplacian-5x":Ee,motionBlur:Ce,"motion-blur":Ce,motionBlur2:Se,"motion-blur-2":Se,motionBlur3:Oe,"motion-blur-3":Oe,negative:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return dt(We([-1,0,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0,0,0,1,0,1,1,1,1,1],(e=Qe(e))/100))},sepia2:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return dt(We([.393,.349,.272,0,0,.769,.686,.534,0,0,.189,.168,.131,0,0,0,0,0,0,0,0,0,0,0,0],(e=Qe(e))/100))},sharpen:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return dt(We([0,-1,0,-1,5,-1,0,-1,0],(e=Qe(e))/100))},sobelHorizontal:Ae,"sobel-horizontal":Ae,sobelVertical:je,"sobel-vertical":je,stackBlur:De,"stack-blur":De,transparency:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return dt(We([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,.3,0,0,0,0,0,1],(e=Qe(e))/100))},unsharpMasking:Le,"unsharp-masking":Le},{kirsch:function(){return gt("kirsch-horizontal kirsch-vertical")},sobel:function(){return gt("sobel-horizontal sobel-vertical")},vintage:function(){return gt("brightness(15) saturation(-20) gamma(1.8)")}}),Re=0,Be=(_(Fe={partial:wt,multi:bt,merge:_t,weight:We,repeat:ze,colorMatrix:function(e,t,n){var r=e[t],i=e[t+1],o=e[t+2],a=e[t+3];ut(e,t,n[0]*r+n[1]*i+n[2]*o+n[3]*a,n[4]*r+n[5]*i+n[6]*o+n[7]*a,n[8]*r+n[9]*i+n[10]*o+n[11]*a,n[12]*r+n[13]*i+n[14]*o+n[15]*a)},each:Ue,eachXY:qe,createRandomCount:function(){return[9,16,25,36,49,64,81,100].sort((function(e,t){return.5-Math.random()}))[0]},createRandRange:function(e,t,n){for(var r=[],i=1;i<=n;i++){var o=Math.random()*(t-e)+e,a=Math.floor(10*Math.random())%2==0?-1:1;r.push(a*o)}r.sort();var s=Math.floor(n>>1),l=r[s];return r[s]=r[0],r[0]=l,r},createBitmap:Ge,createBlurMatrix:lt,pack:function(e){return function(t,n){Ue(t.pixels.length,(function(n,r){e(t.pixels,n,r,t.pixels[n],t.pixels[n+1],t.pixels[n+2],t.pixels[n+3])}),(function(){n(t)}))}},packXY:st,pixel:it,getBitmap:Je,putBitmap:Ze,radian:function(e){return ge.CONSTANT.radian(e)},convolution:dt,parseParamNumber:Qe,filter:gt,clamp:vt,fillColor:ut,fillPixelColor:ct},"multi",bt),_(Fe,"merge",_t),_(Fe,"matches",ht),_(Fe,"parseFilter",mt),_(Fe,"partial",wt),Fe),$e=Be;function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.map((function(e){return e*t}))}function ze(e,t){for(var n=new Array(t),r=0;r<t;r++)n[r]=e;return n}function He(e){if("function"==typeof e)return e;"string"==typeof e&&(e=[e]);var t=(e=e.slice(0)).shift();if("function"==typeof t)return t;var n=e,r=Ie[t]||$e[t];if(!r)throw new Error(t+" is not filter. please check filter name.");return r.apply(r,n)}function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments[3],i=arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1e4,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"full",s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:50,l=t,u=function(e){setTimeout(e,0)};function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50,t=[].concat(S(Array(e))),n=t.map((function(e){return"cri = ri + i * s; if (cri >= mx) return {currentRunIndex: cri, i: null}; c(cri); i++;"})).join("\n"),r=new Function("ri","i","s","mx","c","\n let cri = ri;\n \n "+n+"\n \n return {currentRunIndex: cri, i: i} \n ");return r}function f(){for(var t=c(s),i=l,a={},u=0;u<o;){if(null==(a=t(l,u,n,e,r)).i){i=a.currentRunIndex;break}u=a.i,i=a.currentRunIndex}p(i)}function p(t){t?l=t:l+=n,l>=e?i():u?u(f):f()}"requestAnimationFrame"==a&&(u=requestAnimationFrame,o=1e3),"full"==a&&(u=null,o=e),f()}function Ue(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve(e,0,4,(function(e){t(e,e>>2)}),(function(){n()}),r.functionDumpCount,r.frameTimer,r.loopCount)}function qe(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Ve(e,0,4,(function(e){var r=e>>2;n(e,r%t,Math.floor(r/t))}),(function(){r()}),i.functionDumpCount,i.frameTimer,i.loopCount)}function Ge(e,t,n){return{pixels:new Uint8ClampedArray(e),width:t,height:n}}function Xe(e,t,n,r){for(var i=t.pixels.length/4,o=0,a=0,s=0,l=0,u=0,c=0,f=0;f<i;f++)s=f%t.width,a=r+(l=Math.floor(f/t.width)),(o=n+s)>e.width||a>e.height||(u=l*t.width+s<<2,c=a*e.width+o<<2,e.pixels[c]=t.pixels[u],e.pixels[c+1]=t.pixels[u+1],e.pixels[c+2]=t.pixels[u+2],e.pixels[c+3]=t.pixels[u+3])}function Ye(e,t,n,r){for(var i=t.pixels.length>>2,o=0,a=0,s=0,l=0,u=0,c=0,f=0;f<i;f++)s=f%t.width,a=r+(l=Math.floor(f/t.width)),(o=n+s)>e.width||a>e.height||(u=a*e.width+o<<2,c=l*t.width+s<<2,t.pixels[c]=e.pixels[u],t.pixels[c+1]=e.pixels[u+1],t.pixels[c+2]=e.pixels[u+2],t.pixels[c+3]=e.pixels[u+3])}function Ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.width+t,r=e.height+t,i={pixels:new Uint8ClampedArray(n*r*4),width:n,height:r};return i}function Je(e,t){return he.getBitmap(e,t)}function Ze(e,t,n){return he.putBitmap(e,t,n)}function Qe(e){return"string"==typeof e&&(e=(e=e.replace(/deg/,"")).replace(/px/,"")),+e}var et=/(([\w_\-]+)(\(([^\)]*)\))?)+/gi;function tt(e){var t=e.map((function(e){return" \n "+e.userFunction.$preContext+"\n\n "+e.userFunction.$preCallbackString+"\n\n $r = clamp($r); $g = clamp($g); $b = clamp($b); $a = clamp($a);\n "})).join("\n\n"),n={clamp:vt,Color:Jt};e.forEach((function(e){Object.assign(n,e.userFunction.rootContextObject)}));var r="const "+Object.keys(n).map((function(e){return" "+e+" = $rc."+e+" "})).join(","),i=new Function("$p","$pi","$rc"," \n let $r = $p[$pi], $g = $p[$pi+1], $b = $p[$pi+2], $a = $p[$pi+3];\n \n "+r+"\n\n "+t+"\n \n $p[$pi] = $r; $p[$pi+1] = $g; $p[$pi+2] = $b; $p[$pi+3] = $a;\n ");return function(e,t){i(e,t,n)}}function nt(e){var t={},n=e.map((function(e){var n=[];Object.keys(e.context).forEach((function(e,t){n[e]="n$"+Re+++e+"$"})),Object.keys(e.rootContext).forEach((function(r,i){n[r]="r$"+Re+++r+"$",t[n[r]]=e.rootContext[r]}));var r=Object.keys(e.context).filter((function(t){return"number"!=typeof e.context[t]&&"string"!=typeof e.context[t]&&(!Array.isArray(e.context[t])||"number"!=typeof e.context[t][0]&&"string"!=typeof e.context[t][0])})).map((function(t,r){return[n[t],JSON.stringify(e.context[t])].join(" = ")})),i=e.callback;return"function"==typeof e.callback&&((i=e.callback.toString().split("{")).shift(),(i=(i=i.join("{")).split("}")).pop(),i=i.join("}")),Object.keys(n).forEach((function(t){var r=n[t];"number"==typeof e.context[t]||"string"==typeof e.context[t]?i=i.replace(new RegExp("\\"+t,"g"),e.context[t]):!Array.isArray(e.context[t])||"number"!=typeof e.context[t][0]&&"string"!=typeof e.context[t][0]?i=i.replace(new RegExp("\\"+t,"g"),r):e.context[t].forEach((function(e,n){i=i.replace(new RegExp("\\"+t+"\\["+n+"\\]","g"),e)}))})),{preCallbackString:i,preContext:r}})),r=n.map((function(e,t){return e.preContext.length?"const "+e.preContext+";":""})).join("\n\n"),i=n.map((function(e){return e.preCallbackString})).join("\n\n"),o=new Function("$pixels","$pixelIndex","$clamp","$Color"," \n let $r = $pixels[$pixelIndex], $g = $pixels[$pixelIndex+1], $b = $pixels[$pixelIndex+2], $a = $pixels[$pixelIndex+3];\n\n "+r+"\n\n "+i+"\n \n $pixels[$pixelIndex] = $r\n $pixels[$pixelIndex+1] = $g \n $pixels[$pixelIndex+2] = $b \n $pixels[$pixelIndex+3] = $a \n ");return o.$preCallbackString=i,o.$preContext=r,o.rootContextObject=t,o}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return nt([{callback:e,context:t,rootContext:n}])}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=rt(e,t,n),i=function(e,t){};return i.userFunction=r,i}var ot=[0,1,2,3];function at(e,t,n){ot.forEach((function(r){var i=e[t+r];e[t+r]=e[n+r],e[n+r]=i}))}function st(e){return function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};qe(t.pixels.length,t.width,(function(n,r,i){e(t.pixels,n,r,i)}),(function(){n(t)}),r)}}function lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=Math.pow(e,2),n=1/t;return ze(n,t)}function ut(e,t,n,r,i,o){if(3==arguments.length){var a=arguments[2];n=a.r,r=a.g,i=a.b,o=a.a}"number"==typeof n&&(e[t]=n),"number"==typeof r&&(e[t+1]=r),"number"==typeof i&&(e[t+2]=i),"number"==typeof o&&(e[t+3]=o)}function ct(e,t,n,r){ut(e,t,n[r],n[r+1],n[r+2],n[r+3])}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255,r=[];return r=e.map((function(e,t){return[]})),e.forEach((function(e,i){if(0!=e){var o=r[i];for(i=t;i<=n;i++)o[i]=e*i}})),r}function pt(e,t,n,r,i){var o=Math.round(Math.sqrt(e.length)),a=Math.floor(o/2),s=i?1:0,l="let r = 0, g = 0, b = 0, a = 0, scy = 0, scx =0, si = 0; ",u=[],c=[],f=[],p=[];e.forEach((function(e,t){var r=Math.floor(t/o)-a,i=t%o-a;0!=e&&(u.push("$t["+t+"][$sp[(($sy + ("+r+")) * "+n+" + ($sx + ("+i+"))) * 4]]"),c.push("$t["+t+"][$sp[(($sy + ("+r+")) * "+n+" + ($sx + ("+i+"))) * 4 + 1]]"),f.push("$t["+t+"][$sp[(($sy + ("+r+")) * "+n+" + ($sx + ("+i+"))) * 4 + 2]]"),p.push("$t["+t+"][$sp[(($sy + ("+r+")) * "+n+" + ($sx + ("+i+"))) * 4 + 3]]"))})),l+="r = "+u.join(" + ")+"; g = "+c.join(" + ")+"; b = "+f.join(" + ")+"; a = "+p.join(" + ")+";",l+="$dp[$di] = r; $dp[$di+1] = g;$dp[$di+2] = b;$dp[$di+3] = a + ("+s+")*(255-a); ";var d=new Function("$dp","$sp","$di","$sx","$sy","$t",l);return function(e,n,r,i,o){d(e,n,r,i,o,t)}}function dt(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=ft(e);return function(r,i){var o=Math.round(Math.sqrt(e.length)),a=Ke(r,2*o);Xe(a,r,o,o);for(var s=Ge(a.pixels.length,a.width,a.height),l=Ge(r.pixels.length,r.width,r.height),u=pt(e,n,a.width,a.height,t),c=r.pixels.length/4,f=0;f<c;f++){var p=f,d=p%r.width+o,h=Math.floor(p/r.width)+o;u(s.pixels,a.pixels,4*(h*a.width+d),d,h)}Ye(s,l,o,o),i(l)}}function ht(e){var t=Jt.convertMatches(e),n=t.str.match(et),r=[];if(!n)return r;r=n.map((function(e){return{filter:e,origin:Jt.reverseMatches(e,t.matches)}}));var i={next:0};return r=r.map((function(t){var n=e.indexOf(t.origin,i.next);return t.startIndex=n,t.endIndex=n+t.origin.length,t.arr=mt(t.origin),i.next=t.endIndex,t})).filter((function(e){return!!e.arr.length}))}function mt(e){var t=Jt.convertMatches(e),n=t.str.match(et);if(!n[0])return[];var r=n[0].split("("),i=r.shift(),o=[];return r.length&&(o=r.shift().split(")")[0].split(",").map((function(e){return Jt.reverseMatches(e,t.matches)}))),[i].concat(S(o)).map(Jt.trim)}function vt(e){return Math.min(255,e)}function gt(e){return _t(ht(e).map((function(e){return e.arr})))}function yt(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[],r=0,i=e.length;r<i;r++){var o=e[r];o.userFunction?n.push(o):(n.length&&t.push([].concat(S(n))),t.push(o),n=[])}return n.length&&t.push([].concat(S(n))),t.forEach((function(e,n){var r;Array.isArray(e)&&(t[n]=(r=tt(e),function(e,t){for(var n=0,i=e.pixels.length;n<i;n+=4)r(e.pixels,n);t(e)}))})),t}function bt(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(t=yt(t=t.map((function(e){return He(e)})).filter((function(e){return e})))).length;return function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e,a=0;function s(){t[a].call(null,o,(function(e){o=e,l()}),i)}function l(){++a>=r?n(o):s()}s()}}function _t(e){return bt.apply(void 0,S(e))}function wt(e){for(var t=null,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t=1==r.length&&"string"==typeof r[0]?gt(r[0]):_t(r),function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t(Je(n,e),(function(t){r(Ze(n,t,e))}),i)}}function xt(e){return"string"==typeof e&&(e=(e=e.replace(/deg/,"")).replace(/px/,"")),+e}function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.map((function(e){return e*t}))}var Et=0;function Ct(e){return[].concat(Array.prototype.slice.call(arguments))}function St(e){return{type:"convolution",length:e.length,content:e}}function Ot(e,t){return"\n if (u_filterIndex == "+t+".0) {\n "+e+"\n }\n "}function At(e,t){return{type:"shader",index:Et,options:t,content:Ot(e,Et++)}}function jt(e){return"\n \n if (u_kernelSelect == "+e+".0) {\n vec4 colorSum = "+function(e){var t=Math.sqrt(e),n=Math.floor(t/2);return[].concat(S(Array(e))).map((function(r,i){var o=Math.floor(i/t)-n;return"texture(u_image, v_texCoord + onePixel * vec2("+(i%t-n)+", "+o+")) * u_kernel"+e+"["+i+"]"})).join(" + \n")}(e)+"; \n\n outColor = vec4((colorSum / u_kernel"+e+"Weight).rgb, 1);\n \n }\n "}function Pt(e){return"vec4("+(e=[e.r/255,e.g/255,e.b/255,e.a||0].map(Nt))+")"}function Nt(e){return e==Math.floor(e)?e+".0":e}function Tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=xt(e)*(1/16);return St(kt([1,2,1,2,4,2,1,2,1],t))}function Mt(){return St([1,4,6,4,1,4,16,24,16,4,6,24,36,24,6,4,16,24,16,4,1,4,6,4,1])}function Dt(){return St([5,5,5,-3,0,-3,-3,-3,-3])}function Lt(){return St([5,-3,-3,5,0,-3,5,-3,-3])}function Ft(){return St([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,24,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1])}function It(){return St([1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1])}function Rt(){return St([1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1])}function Bt(){return St([1,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,0,0,1,0,1,0,1,0,0,0,0,0,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0,0,0,1,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1])}function $t(){return St([-1,-2,-1,0,0,0,1,2,1])}function Wt(){return St([-1,0,1,-2,0,2,-1,0,1])}function zt(){return St(kt([1,4,6,4,1,4,16,24,16,4,6,24,-476,24,6,4,16,24,16,4,1,4,6,4,1],-1/256))}function Ht(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,f=arguments.length>11&&void 0!==arguments[11]?arguments[11]:0,p=arguments.length>12&&void 0!==arguments[12]?arguments[12]:0,d=arguments.length>13&&void 0!==arguments[13]?arguments[13]:0,h=arguments.length>14&&void 0!==arguments[14]?arguments[14]:0,m=arguments.length>15&&void 0!==arguments[15]?arguments[15]:0,v=[e,t,n,r,i,o,a,s,l,u,c,f,p,d,h,m].map(Nt);return At("\n\n outColor = vec4(\n "+v[0]+" * pixelColor.r + "+v[1]+" * pixelColor.g + "+v[2]+" * pixelColor.b + "+v[3]+" * pixelColor.a,\n "+v[4]+" * pixelColor.r + "+v[5]+" * pixelColor.g + "+v[6]+" * pixelColor.b + "+v[7]+" * pixelColor.a,\n "+v[8]+" * pixelColor.r + "+v[9]+" * pixelColor.g + "+v[10]+" * pixelColor.b + "+v[11]+" * pixelColor.a,\n "+v[12]+" * pixelColor.r + "+v[13]+" * pixelColor.g + "+v[14]+" * pixelColor.b + "+v[15]+" * pixelColor.a\n ); \n ")}function Vt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return At("\n float c = ( (pixelColor.r * 0.2126 + pixelColor.g * 0.7152 + pixelColor.b * 0.0722) ) >= "+(e=Nt(xt(e)))+" ? 1.0 : 0.0;\n\n outColor = vec4(c, c, c, pixelColor.a);\n ")}var Ut=w({},{blur:function(){return St([1,1,1,1,1,1,1,1,1])},normal:function(){return St([0,0,0,0,1,0,0,0,0])},emboss:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4;return St([-2*(e=xt(e)),-e,0,-e,1,e,0,e,2*e])},gaussianBlur:Tt,"gaussian-blur":Tt,gaussianBlur5x:Mt,"gaussian-blur-5x":Mt,grayscale2:function(){return St([.3,.3,.3,0,0,.59,.59,.59,0,0,.11,.11,.11,0,0,0,0,0,0,0,0,0,0,0,0])},kirschHorizontal:Dt,"kirsch-horizontal":Dt,kirschVertical:Lt,"kirsch-vertical":Lt,laplacian:function(){return St([-1,-1,-1,-1,8,-1,-1,-1,-1])},laplacian5x:Ft,"laplacian-5x":Ft,motionBlur:It,"motion-blur":It,motionBlur2:Rt,"motion-blur-2":Rt,motionBlur3:Bt,"motion-blur-3":Bt,negative:function(){return St([-1,0,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0,0,0,1,0,1,1,1,1,1])},sepia2:function(){return St([.393,.349,.272,0,0,.769,.686,.534,0,0,.189,.168,.131,0,0,0,0,0,0,0,0,0,0,0,0])},sharpen:function(){return St([0,-1,0,-1,5,-1,0,-1,0])},sobelHorizontal:$t,"sobel-horizontal":$t,sobelVertical:Wt,"sobel-vertical":Wt,transparency:function(){return St([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,.3,0,0,0,0,0,1])},unsharpMasking:zt,"unsharp-masking":zt},{bitonal:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=Nt(n),i=Pt(Jt.parse(e)),o=Pt(Jt.parse(t));return At("\n if ((pixelColor.r + pixelColor.g + pixelColor.b) > "+r+") {\n outColor = vec4("+o+".rgb, pixelColor.a);\n } else {\n outColor = vec4("+i+".rgb, pixelColor.a);\n }\n ")},brightness:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Nt(xt(e));return At("\n outColor = pixelColor + ("+t+");\n ")},brownie:function(){return Ht(.5997023498159715,.34553243048391263,-.2708298674538042,0,-.037703249837783157,.8609577587992641,.15059552388459913,0,.24113635128153335,-.07441037908422492,.44972182064877153,0,0,0,0,1)},clip:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Nt(xt(e));return At("\n outColor = vec4(\n (pixelColor.r > 1.0 - "+t+") ? 1.0 : 0.0,\n (pixelColor.g > 1.0 - "+t+") ? 1.0 : 0.0,\n (pixelColor.b > 1.0 - "+t+") ? 1.0 : 0.0,\n pixelColor.a \n );\n ")},chaos:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Nt(xt(e));return At("\n vec2 st = pixelColor.st;\n st *= "+t+";\n \n vec2 ipos = floor(st); // get the integer coords\n\n vec3 color = vec3(random( ipos ));\n\n outColor = vec4(color, pixelColor.a);\n ")},contrast:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Nt(xt(e));return At("\n outColor = pixelColor * "+t+";\n ")},gamma:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Nt(xt(e));return At("\n outColor = vec4(pow(pixelColor.r, "+t+"), pow(pixelColor.g, "+t+"), pow(pixelColor.b, "+t+"), pixelColor.a );\n ")},gradient:function(){var e=[].concat(Array.prototype.slice.call(arguments));1===e.length&&"string"==typeof e[0]&&(e=Jt.convertMatchesArray(e[0])),e=e.map((function(e){return e})).join(", ");var t=Jt.parseGradient(e);t[0][1]=0,t[t.length-1][1]=1;for(var n=[],r=0,i=(t=t.map((function(e){var t=Jt.parse(e[0]);return[{r:t.r,g:t.g,b:t.b,a:t.a},e[1]]}))).length;r<i-1;r++){var o=t[r],a=t[r+1],s=Pt(o[0]),l=Pt(a[0]),u=Nt(o[1]),c=Nt(a[1]);n.push("\n if ("+u+" <= rate && rate < "+c+") {\n outColor = mix("+s+", "+l+", (rate - "+u+")/("+c+" - "+u+"));\n }\n ")}return At("\n float rate = (pixelColor.r * 0.2126 + pixelColor.g * 0.7152 + pixelColor.b * 0.0722); \n\n "+n.join("\n")+" \n ")},grayscale:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=xt(e);return t>1&&(t=1),Ht(.2126+.7874*(1-t),.7152-.7152*(1-t),.0722-.0722*(1-t),0,.2126-.2126*(1-t),.7152+.2848*(1-t),.0722-.0722*(1-t),0,.2126-.2126*(1-t),.7152-.7152*(1-t),.0722+.9278*(1-t),0,0,0,0,1)},hue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Nt(xt(e));return At("\n vec3 hsv = rgb2hsv(pixelColor.rgb);\n hsv.x += "+t+";\n outColor = vec4(hsv2rgb(hsv).rgb, pixelColor.a);\n ")},invert:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Nt(xt(e));return At("\n outColor = vec4(\n (1.0 - pixelColor.r) * "+t+",\n (1.0 - pixelColor.g) * "+t+",\n (1.0 - pixelColor.b) * "+t+",\n pixelColor.a\n );\n ")},kodachrome:function(){return Ht(1.1285582396593525,-.3967382283601348,-.03992559172921793,0,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,0,0,0,1)},matrix:Ht,noise:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Math.abs(xt(e)),n=Nt(-t),r=Nt(t);return At("\n float rnd = "+n+" + random( pixelColor.st ) * ("+r+" - "+n+");\n\n outColor = vec4(pixelColor.rgb + rnd, 1.0);\n ")},opacity:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=Nt(xt(e));return At("\n outColor = vec4(pixelColor.rgb, pixelColor.a * "+t+");\n ")},polaroid:function(){return Ht(1.438,-.062,-.062,0,-.122,1.378,-.122,0,-.016,-.016,1.483,0,0,0,0,1)},saturation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=1-Math.abs(xt(e));return Ht(t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,t)},sepia:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=xt(e);return t>1&&(t=1),Ht(.393+.607*(1-t),.769-.769*(1-t),.189-.189*(1-t),0,.349-.349*(1-t),.686+.314*(1-t),.168-.168*(1-t),0,.272-.272*(1-t),.534-.534*(1-t),.131+.869*(1-t),0,0,0,0,1)},shade:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=Nt(xt(e)/255),i=Nt(xt(t)/255),o=Nt(xt(n)/255);return At("\n outColor = vec4(\n pixelColor.r * "+r+",\n pixelColor.g * "+i+",\n pixelColor.b * "+o+",\n pixelColor.a\n );\n ")},shift:function(){return Ht(1.438,-.062,-.062,0,-.122,1.378,-.122,0,-.016,-.016,1.483,0,0,0,0,1)},solarize:function(e,t,n){return At("\n outColor = vec4(\n (pixelColor.r < "+Nt(xt(e))+") ? 1.0 - pixelColor.r: pixelColor.r,\n (pixelColor.g < "+Nt(xt(t))+") ? 1.0 - pixelColor.g: pixelColor.g,\n (pixelColor.b < "+Nt(xt(n))+") ? 1.0 - pixelColor.b: pixelColor.b,\n pixelColor.a\n );\n ")},technicolor:function(){return Ht(1.9125277891456083,-.8545344976951645,-.09155508482755585,0,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-.231103377548616,-.7501899197440212,1.847597816108189,0,0,0,0,1)},threshold:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return Vt(e,t,!1)},"threshold-color":Vt,tint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=xt(e),i=xt(t),o=xt(n);return At("\n outColor = vec4(\n pixelColor.r += (1 - pixelColor.r) * "+r+",\n pixelColor.g += (1 - pixelColor.g) * "+i+",\n pixelColor.b += (1 - pixelColor.b) * "+o+",\n pixelColor.a\n );\n ")}},{kirsch:function(){return Ct("kirsch-horizontal kirsch-vertical")},sobel:function(){return Ct("sobel-horizontal sobel-vertical")},vintage:function(){return Ct("brightness(0.15) saturation(-0.2) gamma(1.8)")}}),qt=0,Gt={GLCanvas:function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:"400px",height:"300px"};y(this,e),this.img=t.img,this.width=parseFloat(this.img.width||t.width||"400px"),this.height=parseFloat(this.img.height||t.height||"300px"),this.init()}return b(e,[{key:"resize",value:function(){this.canvas.width=this.width,this.canvas.height=this.height,this.canvas.style.width=this.width+"px",this.canvas.style.height=this.height+"px",this.viewport()}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=this.gl;i.clearColor(e,t,n,r),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT)}},{key:"viewport",value:function(e,t,n,r){var i=this.gl;i.viewport(e||0,t||0,n||i.canvas.width,r||i.canvas.height)}},{key:"initCanvas",value:function(e,t){if(this.canvas=document.createElement("canvas"),this.gl=this.canvas.getContext("webgl2"),!this.gl)throw new Error("you need webgl2 support");this.program=this.createProgram(e,t),this.resize(),this.initBuffer()}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"TRIANGLES",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6,r=this.gl;r.drawArrays(r[e],t,n)}},{key:"triangles",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;this.draw("TRIANGLES",e,t)}},{key:"uniform2f",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.shift();(e=this.gl).uniform2f.apply(e,[this.locations[i]].concat(n))}},{key:"uniform1f",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.shift();(e=this.gl).uniform1f.apply(e,[this.locations[i]].concat(n))}},{key:"uniform1fv",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.shift();(e=this.gl).uniform1fv.apply(e,[this.locations[i]].concat(n))}},{key:"uniform1i",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.shift();(e=this.gl).uniform1i.apply(e,[this.locations[i]].concat(n))}},{key:"useProgram",value:function(){this.gl.useProgram(this.program)}},{key:"bindBuffer",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"STATIC_DRAW",r=this.gl;this.buffers[e]||(this.buffers[e]=r.createBuffer()),r.bindBuffer(r.ARRAY_BUFFER,this.buffers[e]),t&&r.bufferData(r.ARRAY_BUFFER,new Float32Array(t),r[n])}},{key:"enable",value:function(e){this.gl.enableVertexAttribArray(this.locations[e])}},{key:"location",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"attribute";"attribute"===t?this.locations[e]=this.gl.getAttribLocation(this.program,e):"uniform"===t&&(this.locations[e]=this.gl.getUniformLocation(this.program,e))}},{key:"a",value:function(e){return this.location(e)}},{key:"u",value:function(e){return this.location(e,"uniform")}},{key:"pointer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FLOAT",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=this.gl;a.vertexAttribPointer(this.locations[e],n,a[t],r,i,o)}},{key:"bufferData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.gl;t.bufferData(t.ARRAY_BUFFER,new Float32Array(e),t.STATIC_DRAW)}},{key:"isPowerOf2",value:function(e){return 0==(e&e-1)}},{key:"bindTexture",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"RGBA",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"RGBA",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"UNSIGNED_BYTE",a=this.gl;1!=arguments.length?(this.textures[e]||(this.textures[e]=a.createTexture()),this.textureIndex[e]=qt++,a.bindTexture(a.TEXTURE_2D,this.textures[e]),this.setTextureParameter(),a.texImage2D(a.TEXTURE_2D,n,a[r],a[i],a[o],t.newImage||t)):a.bindTexture(a.TEXTURE_2D,this.textures[e])}},{key:"bindColorTexture",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:256,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"RGBA",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"RGBA",s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"UNSIGNED_BYTE",l=this.gl;this.textures[e]||(this.textures[e]=l.createTexture()),this.textureIndex[e]=qt++,l.bindTexture(l.TEXTURE_2D,this.textures[e]),this.setTextureParameter(),l.texImage2D(l.TEXTURE_2D,i,l[o],n,r,0,l[a],l[s],new Uint8Array(t))}},{key:"bindEmptyTexture",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"RGBA",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"RGBA",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"UNSIGNED_BYTE",s=this.gl;this.textures[e]||(this.textures[e]=s.createTexture()),this.textureIndex[e]=qt++,s.bindTexture(s.TEXTURE_2D,this.textures[e]),this.setTextureParameter();var l=0,u=null;s.texImage2D(s.TEXTURE_2D,r,s[i],t,n,l,s[o],s[a],u)}},{key:"setTextureParameter",value:function(){var e=this.gl;e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST)}},{key:"bindFrameBufferWithTexture",value:function(e,t,n,r){this.bindEmptyTexture(t,n,r),this.bindFrameBuffer(e,t)}},{key:"enumToString",value:function(e){var t=this.gl;if(0===e)return"NONE";for(var n in t)if(t[n]===e)return n;return"0x"+e.toString(16)}},{key:"bindFrameBuffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.gl;if(1!==arguments.length){this.framebuffers[e]||(this.framebuffers[e]=n.createFramebuffer()),n.bindFramebuffer(n.FRAMEBUFFER,this.framebuffers[e]);var r=0,i=n.COLOR_ATTACHMENT0;n.framebufferTexture2D(n.FRAMEBUFFER,i,n.TEXTURE_2D,this.textures[t],r),n.checkFramebufferStatus(n.FRAMEBUFFER),n.FRAMEBUFFER_COMPLETE}else n.bindFramebuffer(n.FRAMEBUFFER,null==e?null:this.framebuffers[e])}},{key:"bindVA",value:function(){var e=this.gl;this.vao||(this.vao=e.createVertexArray()),e.bindVertexArray(this.vao)}},{key:"bindAttr",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"STATIC_DRAW",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;this.bindBuffer(e,t,n),this.enable(e),this.pointer(e,"FLOAT",r)}},{key:"initBuffer",value:function(){var e=this.canvas,t=e.width,n=e.height;this.a("a_position"),this.a("a_texCoord"),this.u("u_resolution"),this.u("u_image"),this.u("u_flipY"),this.u("u_kernelSelect"),this.u("u_filterIndex"),this.u("u_kernel9[0]"),this.u("u_kernel9Weight"),this.u("u_kernel25[0]"),this.u("u_kernel25Weight"),this.u("u_kernel49[0]"),this.u("u_kernel49Weight"),this.u("u_kernel81[0]"),this.u("u_kernel81Weight"),this.bindVA(),this.bindAttr("a_position",[0,0,t,0,0,n,0,n,t,0,t,n],"STATIC_DRAW",2),this.bindAttr("a_texCoord",[0,0,1,0,0,1,0,1,1,0,1,1],"STATIC_DRAW",2),this.bindTexture("u_image",this.img),this.bindFrameBufferWithTexture("frame_buffer_0","img_texture_0",t,n),this.bindFrameBufferWithTexture("frame_buffer_1","img_texture_1",t,n)}},{key:"activeTexture",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.gl;t.activeTexture(t.TEXTURE0+e)}},{key:"drawFilter",value:function(){var e=this,t=this.gl;this.resize(),this.clear(),this.useProgram(),this.bindVA(),this.activeTexture(0),this.bindTexture("u_image"),this.uniform1i("u_image",0),this.uniform1f("u_flipY",1);var n=t.canvas,r=n.width,i=n.height;this.eachFilter((function(t,n){e.bindFrameBuffer("frame_buffer_"+n%2),e.uniform2f("u_resolution",r,i),e.viewport(0,0,r,i),e.effectFilter(t),e.bindTexture("img_texture_"+n%2)})),this.uniform1f("u_flipY",-1),this.bindFrameBuffer(null),this.uniform2f("u_resolution",r,i),this.viewport(0,0,r,i),this.clear(),this.effectFilter("normal")}},{key:"effectFilter",value:function(e){"string"==typeof e&&(e=(Ut[e]||Ut.normal).call(Ut)),"convolution"==e.type?(this.uniform1f("u_kernelSelect",e.length),this.uniform1f("u_filterIndex",-1),this.uniform1fv("u_kernel"+e.length+"[0]",e.content),this.uniform1f("u_kernel"+e.length+"Weight",this.computeKernelWeight(e.content))):(this.uniform1f("u_kernelSelect",-1),this.uniform1f("u_filterIndex",e.index)),this.triangles(0,6)}},{key:"computeKernelWeight",value:function(e){var t=e.reduce((function(e,t){return e+t}));return t<=0?1:t}},{key:"createProgram",value:function(e,t){var n=this.gl,r=n.createProgram();if(this.vertexShader=this.createVertexShader(e),this.fragmentShader=this.createFragmentShader(t),n.attachShader(r,this.vertexShader),n.attachShader(r,this.fragmentShader),n.linkProgram(r),n.getProgramParameter(r,n.LINK_STATUS))return r;console.error(n.getProgramInfoLog(r)),n.deleteProgram(r)}},{key:"createShader",value:function(e,t){var n=this.gl,r=n.createShader(e);if(n.shaderSource(r,t),n.compileShader(r),n.getShaderParameter(r,n.COMPILE_STATUS))return r;console.error(n.getShaderInfoLog(r)),n.deleteShader(r)}},{key:"createVertexShader",value:function(e){var t=this.gl;return this.createShader(t.VERTEX_SHADER,e)}},{key:"createFragmentShader",value:function(e){var t=this.gl;return this.createShader(t.FRAGMENT_SHADER,e)}},{key:"eachFilter",value:function(e){this.filterList.forEach(e)}},{key:"init",value:function(){this.locations={},this.buffers={},this.framebuffers={},this.textures={},this.textureIndex={},this.hasTexParameter={}}},{key:"destroy",value:function(){var e=this.gl;this.init(),e.deleteProgram(this.program)}},{key:"filter",value:function(e,t){var n,r,i;this.filterList=e,this.initCanvas("#version 300 es \n\n in vec2 a_position;\n in vec2 a_texCoord; \n\n uniform vec2 u_resolution;\n uniform float u_flipY;\n\n out vec2 v_texCoord; \n\n void main() {\n vec2 zeroToOne = a_position / u_resolution;\n\n vec2 zeroToTwo = zeroToOne * 2.0;\n\n vec2 clipSpace = zeroToTwo - 1.0;\n\n gl_Position = vec4(clipSpace * vec2(1, u_flipY), 0, 1);\n\n v_texCoord = a_texCoord;\n\n }\n ",(n=this.filterList,r=n.filter((function(e){return"shader"==e.type})).map((function(e){return e.content})).join("\n\n"),i={9:!0},n.filter((function(e){return"convolution"==e.type})).forEach((function(e){i[e.length]=!0})),"#version 300 es\n\n precision highp int;\n precision mediump float;\n \n uniform sampler2D u_image;\n\n // 3 is 3x3 matrix kernel \n uniform float u_kernelSelect;\n uniform float u_filterIndex;\n\n uniform float u_kernel9[9];\n uniform float u_kernel9Weight;\n uniform float u_kernel25[25];\n uniform float u_kernel25Weight;\n uniform float u_kernel49[49];\n uniform float u_kernel49Weight;\n uniform float u_kernel81[81];\n uniform float u_kernel81Weight; \n\n in vec2 v_texCoord;\n \n out vec4 outColor;\n\n float random (vec2 st) {\n return fract(sin(dot(st.xy, vec2(12.9898,78.233)))* 43758.5453123);\n } \n\n // \n vec3 rgb2hsv(vec3 c)\n {\n vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\n vec4 p = c.g < c.b ? vec4(c.bg, K.wz) : vec4(c.gb, K.xy);\n vec4 q = c.r < p.x ? vec4(p.xyw, c.r) : vec4(c.r, p.yzx);\n\n float d = q.x - min(q.w, q.y);\n float e = 1.0e-10;\n return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);\n }\n\n vec3 hsv2rgb(vec3 c)\n {\n vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\n return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\n }\n \n void main() {\n vec4 pixelColor = texture(u_image, v_texCoord);\n vec2 onePixel = vec2(1) / vec2(textureSize(u_image, 0)); \n\n "+r+"\n\n "+Object.keys(i).map((function(e){return jt(+e)})).join("\n")+"\n\n }")),this.drawFilter(),"function"==typeof t&&t(this)}}]),e}()};function Xt(e){var t=[];"string"==typeof e?t=ht(e):Array.isArray(e)&&(t=e);var n=[];return t.forEach((function(e){var t=e.arr[0];if(Ut[t]){var r=function(e){var t=e.arr[0],n=Ut[t],r=e.arr;return r.shift(),n.apply(this,r)}(e);"convolution"==r.type||"shader"==r.type?n.push(r):r.forEach((function(e){n=n.concat(Xt(e))}))}})),n}var Yt=w({},Gt,{filter:function(e,t,n,r){var i=new Gt.GLCanvas({width:r.width||e.width,height:r.height||e.height,img:e});i.filter(Xt(t),(function(){"function"==typeof n&&n(i)}))}});function Kt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{frameTimer:"full"},i=new me(e);i.loadImage((function(){i.toArray(t,(function(e){"function"==typeof n&&n(e)}),r)}))}var Jt=w({},o,p,ie,L,Z,H,V,J,g,Y,{palette:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hex";return t.length>n&&(t=de(t,n)),t.map((function(t){return e(t,r)}))},ImageToCanvas:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{frameTimer:"full"};Kt(e,t,n,Object.assign({returnTo:"canvas"},r))},ImageToHistogram:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{width:200,height:100},r=new me(e);r.loadImage((function(){he.createHistogram(n.width||200,n.height||100,r.toHistogram(n),(function(e){"function"==typeof t&&t(e.toDataURL("image/png"))}),n)}))},ImageToRGB:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];if(n){if(n){var r;(r=new me(e,t)).loadImage((function(){"function"==typeof n&&n(r.toRGB())}))}}else(r=new me(e)).loadImage((function(){"function"==typeof t&&t(r.toRGB())}))},ImageToURL:Kt,GLToCanvas:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=new me(e);i.load((function(){Yt.filter(i.newImage,t,(function(e){"function"==typeof n&&n(e)}),r)}))},histogram:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new me(e);r.loadImage((function(){"function"==typeof t&&t(r.toHistogram(n))}))},histogramToPoints:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,n=[],r=0;r<e.length;r++){var i=e[r];if(0!=r)if(r!=e.length-1){var o=e[r-1],a=e[r+1],s=(a[1],o[1],a[0],o[0],[o[0]+(a[0]-o[0])*t,o[1]+(a[1]-o[1])*t]),l=[[].concat(S(o)),[].concat(s)],u=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)),c=Math.sqrt(Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2)),f=u/c,p=l[0][0]+(l[1][0]-l[0][0])*f,d=l[0][1]+(l[1][1]-l[0][1])*f;l[0][0]+=i[0]-p,l[0][1]+=i[1]-d,l[1][0]+=i[0]-p,l[1][1]+=i[1]-d,n[r]=l}else n[r]=[];else n[r]=[]}return n}}),Zt=[{rgb:"#ff0000",start:0},{rgb:"#ffff00",start:.17},{rgb:"#00ff00",start:.33},{rgb:"#00ffff",start:.5},{rgb:"#0000ff",start:.67},{rgb:"#ff00ff",start:.83},{rgb:"#ff0000",start:1}];!function(){for(var e=0,t=Zt.length;e<t;e++){var n=Zt[e],r=Jt.parse(n.rgb);n.r=r.r,n.g=r.g,n.b=r.b}}();var Qt={colors:Zt,checkHueColor:function(e){for(var t,n,r=0;r<Zt.length;r++)if(Zt[r].start>=e){t=Zt[r-1],n=Zt[r];break}return t&&n?Jt.interpolateRGB(t,n,(e-t.start)/(n.start-t.start)):Zt[0].rgb}},en=w({},Ie,Be),tn={Color:Jt,HueColor:Qt,ColorNames:h,ImageFilter:en,GL:Yt,Canvas:he,ImageLoader:me},nn=(Jt.color,0),rn=[],on=function(){function e(t,n,r){if(y(this,e),"string"!=typeof t)this.el=t;else{var i=document.createElement(t);for(var o in this.uniqId=nn++,n&&(i.className=n),r=r||{})i.setAttribute(o,r[o]);this.el=i}}return b(e,[{key:"attr",value:function(e,t){return 1==arguments.length?this.el.getAttribute(e):(this.el.setAttribute(e,t),this)}},{key:"closest",value:function(t){for(var n=this,r=!1;!(r=n.hasClass(t));){if(!n.el.parentNode)return null;n=new e(n.el.parentNode)}return r?n:null}},{key:"checked",value:function(){return this.el.checked}},{key:"removeClass",value:function(e){return this.el.className=(" "+this.el.className+" ").replace(" "+e+" "," ").trim(),this}},{key:"hasClass",value:function(e){return!!this.el.className&&(" "+this.el.className+" ").indexOf(" "+e+" ")>-1}},{key:"addClass",value:function(e){return this.hasClass(e)||(this.el.className=this.el.className+" "+e),this}},{key:"toggleClass",value:function(e){this.hasClass(e)?this.removeClass(e):this.addClass(e)}},{key:"html",value:function(e){try{"string"==typeof e?this.el.innerHTML=e:this.empty().append(e)}catch(t){console.log(e)}return this}},{key:"find",value:function(e){return this.el.querySelector(e)}},{key:"$",value:function(t){return new e(this.find(t))}},{key:"findAll",value:function(e){return this.el.querySelectorAll(e)}},{key:"$$",value:function(t){return[].concat(S(this.findAll(t))).map((function(t){return new e(t)}))}},{key:"empty",value:function(){return this.html("")}},{key:"append",value:function(e){return"string"==typeof e?this.el.appendChild(document.createTextNode(e)):this.el.appendChild(e.el||e),this}},{key:"appendTo",value:function(e){return(e.el?e.el:e).appendChild(this.el),this}},{key:"remove",value:function(){return this.el.parentNode&&this.el.parentNode.removeChild(this.el),this}},{key:"text",value:function(){return this.el.textContent}},{key:"css",value:function(e,t){var n=this;if(2==arguments.length)this.el.style[e]=t;else if(1==arguments.length){if("string"==typeof e)return getComputedStyle(this.el)[e];var r=e||{};Object.keys(r).forEach((function(e){n.el.style[e]=r[e]}))}return this}},{key:"cssFloat",value:function(e){return parseFloat(this.css(e))}},{key:"cssInt",value:function(e){return parseInt(this.css(e))}},{key:"offset",value:function(){var t=this.el.getBoundingClientRect();return{top:t.top+e.getScrollTop(),left:t.left+e.getScrollLeft()}}},{key:"rect",value:function(){return this.el.getBoundingClientRect()}},{key:"position",value:function(){return this.el.style.top?{top:parseFloat(this.css("top")),left:parseFloat(this.css("left"))}:this.el.getBoundingClientRect()}},{key:"size",value:function(){return[this.width(),this.height()]}},{key:"width",value:function(){return this.el.offsetWidth||this.el.getBoundingClientRect().width}},{key:"contentWidth",value:function(){return this.width()-this.cssFloat("padding-left")-this.cssFloat("padding-right")}},{key:"height",value:function(){return this.el.offsetHeight||this.el.getBoundingClientRect().height}},{key:"contentHeight",value:function(){return this.height()-this.cssFloat("padding-top")-this.cssFloat("padding-bottom")}},{key:"dataKey",value:function(e){return this.uniqId+"."+e}},{key:"data",value:function(e,t){if(2!=arguments.length){if(1==arguments.length)return rn[this.dataKey(e)];var n=Object.keys(rn),r=this.uniqId+".";return n.filter((function(e){return 0==e.indexOf(r)})).map((function(e){return rn[e]}))}return rn[this.dataKey(e)]=t,this}},{key:"val",value:function(e){return 0==arguments.length?this.el.value:(1==arguments.length&&(this.el.value=e),this)}},{key:"int",value:function(){return parseInt(this.val(),10)}},{key:"float",value:function(){return parseFloat(this.val())}},{key:"show",value:function(){return this.css("display","block")}},{key:"hide",value:function(){return this.css("display","none")}},{key:"toggle",value:function(){return"none"==this.css("display")?this.show():this.hide()}},{key:"scrollTop",value:function(){return this.el===document.body?e.getScrollTop():this.el.scrollTop}},{key:"scrollLeft",value:function(){return this.el===document.body?e.getScrollLeft():this.el.scrollLeft}},{key:"on",value:function(e,t,n,r){return this.el.addEventListener(e,t,n,r),this}},{key:"off",value:function(e,t){return this.el.removeEventListener(e,t),this}},{key:"getElement",value:function(){return this.el}},{key:"createChild",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,n,r);return o.css(i),this.append(o),o}},{key:"firstChild",value:function(){return new e(this.el.firstElementChild)}},{key:"replace",value:function(e,t){return this.el.replaceChild(t,e),this}}],[{key:"getScrollTop",value:function(){return Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}},{key:"getScrollLeft",value:function(){return Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft)}}]),e}(),an=function(){function e(t){y(this,e),this.$store=t,this.initialize()}return b(e,[{key:"initialize",value:function(){var e=this;this.filterProps().forEach((function(t){e.$store.action(t,e)}))}},{key:"filterProps",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";return Object.getOwnPropertyNames(this.__proto__).filter((function(t){return t.startsWith(e)}))}}]),e}(),sn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"initialize",value:function(){x(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initialize",this).call(this),this.$store.colorSetsList=[{name:"Material",colors:["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548","#9E9E9E","#607D8B"]},{name:"Custom",edit:!0,colors:[]},{name:"Color Scale",scale:["red","yellow","black"],count:5}],this.$store.currentColorSets={}}},{key:"/list",value:function(e){return Array.isArray(e.userList)&&e.userList.length?e.userList:e.colorSetsList}},{key:"/setUserPalette",value:function(e,t){e.userList=t,e.dispatch("/resetUserPalette"),e.dispatch("/setCurrentColorSets")}},{key:"/resetUserPalette",value:function(e){e.userList&&e.userList.length&&(e.userList=e.userList.map((function(t,n){if("function"==typeof t.colors){var r=t.colors;t.colors=r(e),t._colors=r}return Object.assign({name:"color-"+n,colors:[]},t)})),e.emit("changeUserList"))}},{key:"/setCurrentColorSets",value:function(e,t){var n=e.dispatch("/list");e.currentColorSets=void 0===t?n[0]:"number"==typeof t?n[t]:n.filter((function(e){return e.name==t}))[0],e.emit("changeCurrentColorSets")}},{key:"/getCurrentColorSets",value:function(e){return e.currentColorSets}},{key:"/addCurrentColor",value:function(e,t){Array.isArray(e.currentColorSets.colors)&&(e.currentColorSets.colors.push(t),e.emit("changeCurrentColorSets"))}},{key:"/setCurrentColorAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.currentColorSets.colors=t,e.emit("changeCurrentColorSets")}},{key:"/removeCurrentColor",value:function(e,t){e.currentColorSets.colors[t]&&(e.currentColorSets.colors.splice(t,1),e.emit("changeCurrentColorSets"))}},{key:"/removeCurrentColorToTheRight",value:function(e,t){e.currentColorSets.colors[t]&&(e.currentColorSets.colors.splice(t,Number.MAX_VALUE),e.emit("changeCurrentColorSets"))}},{key:"/clearPalette",value:function(e){e.currentColorSets.colors&&(e.currentColorSets.colors=[],e.emit("changeCurrentColorSets"))}},{key:"/getCurrentColors",value:function(e){return e.dispatch("/getColors",e.currentColorSets)}},{key:"/getColors",value:function(e,t){return t.scale?Jt.scale(t.scale,t.count):t.colors||[]}},{key:"/getColorSetsList",value:function(e){return e.dispatch("/list").map((function(t){return{name:t.name,edit:t.edit,colors:e.dispatch("/getColors",t)}}))}}]),t}(an),ln={addEvent:function(e,t,n,r){e&&e.addEventListener(t,n,r)},removeEvent:function(e,t,n){e&&e.removeEventListener(t,n)},pos:function(e){return e.touches&&e.touches[0]?e.touches[0]:e},posXY:function(e){var t=this.pos(e);return{x:t.pageX,y:t.pageY}}},un=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y(this,e),this.masterObj=t,this.settingObj=n}return b(e,[{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.settingObj[e]=t||n}},{key:"init",value:function(e){if(!this.has(e)){var t=e.split("."),n=this.masterObj.refs[t[0]]||this.masterObj[t[0]]||this.masterObj,r=t.pop();if(n[r]){for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=n[r].apply(n,o);this.set(e,s)}}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.init(e,t),this.settingObj[e]||t}},{key:"has",value:function(e){return!!this.settingObj[e]}}]),e}(),cn=/^(click|mouse(down|up|move|enter|leave)|touch(start|move|end)|key(down|up|press)|contextmenu|change|input)/gi,fn=/^load (.*)/gi,pn=["Control","Shift","Alt","Meta"],dn=function(){function e(){y(this,e),this.state=new un(this),this.refs={},this.childComponents=this.components()}return b(e,[{key:"newChildComponents",value:function(){var e=this;Object.keys(this.childComponents).forEach((function(t){var n=e.childComponents[t];e[t]=new n(e)}))}},{key:"render",value:function(){this.$el=this.parseTemplate(this.template()),this.refs.$el=this.$el,this.parseTarget(),this.load(),this.afterRender()}},{key:"afterRender",value:function(){}},{key:"components",value:function(){return{}}},{key:"parseTemplate",value:function(e){var t=this,n=new on("div").html(e).firstChild(),r=n.findAll("[ref]");return[].concat(S(r)).forEach((function(e){var n=e.getAttribute("ref");t.refs[n]=new on(e)})),n}},{key:"parseTarget",value:function(){var e=this,t=this.$el.findAll("[target]");[].concat(S(t)).forEach((function(t){var n=t.getAttribute("target"),r=t.getAttribute("ref")||n,i=new(0,e.childComponents[n])(e);e[r]=i,e.refs[r]=i.$el,i&&(i.render(),new on(t.parentNode).replace(t,i.$el.el))}))}},{key:"load",value:function(){var e=this;this.filterProps(fn).forEach((function(t){var n=t.split("load ")[1];e.refs[n]&&e.refs[n].html(e.parseTemplate(e[t].call(e)))}))}},{key:"template",value:function(){return"<div></div>"}},{key:"initialize",value:function(){}},{key:"initializeEvent",value:function(){var e=this;this.initializeEventMachin(),Object.keys(this.childComponents).forEach((function(t){e[t]&&e[t].initializeEvent()}))}},{key:"destroy",value:function(){var e=this;this.destroyEventMachin(),Object.keys(this.childComponents).forEach((function(t){e[t]&&e[t].destroy()}))}},{key:"destroyEventMachin",value:function(){this.removeEventAll()}},{key:"initializeEventMachin",value:function(){this.filterProps(cn).forEach(this.parseEvent.bind(this))}},{key:"collectProps",value:function(){if(!this.collapsedProps){var e=this.__proto__,t=[];do{t.push.apply(t,S(Object.getOwnPropertyNames(e))),e=e.__proto__}while(e);this.collapsedProps=t}return this.collapsedProps}},{key:"filterProps",value:function(e){return this.collectProps().filter((function(t){return t.match(e)}))}},{key:"parseEvent",value:function(e){var t=e.split(" ");this.bindingEvent(t,this[e].bind(this))}},{key:"getDefaultDomElement",value:function(e){var t=void 0;return(t=e?this.refs[e]||this[e]||window[e]:this.el||this.$el||this.$root)instanceof on?t.getElement():t}},{key:"getDefaultEventObject",value:function(e){var t=this,n=e.split("."),r=n.shift(),i=n.includes("Control"),o=n.includes("Shift"),a=n.includes("Alt"),s=n.includes("Meta"),l=(n=n.filter((function(e){return!1===pn.includes(e)}))).filter((function(e){return!!t[e]}));return{eventName:r,isControl:i,isShift:o,isAlt:a,isMeta:s,codes:n=n.filter((function(e){return!1===l.includes(e)})).map((function(e){return e.toLowerCase()})),checkMethodList:l}}},{key:"bindingEvent",value:function(e,t){var n,r=(n=e,Array.isArray(n)?n:Array.from(n)),i=r[0],o=r[1],a=r.slice(2);o=this.getDefaultDomElement(o);var s=this.getDefaultEventObject(i);s.dom=o,s.delegate=a.join(" "),this.addEvent(s,t)}},{key:"matchPath",value:function(e,t){return e?e.matches(t)?e:this.matchPath(e.parentElement,t):null}},{key:"getBindings",value:function(){return this._bindings||this.initBindings(),this._bindings}},{key:"addBinding",value:function(e){this.getBindings().push(e)}},{key:"initBindings",value:function(){this._bindings=[]}},{key:"checkEventType",value:function(e,t){var n=this,r=!t.isControl||e.ctrlKey,i=!t.isShift||e.shiftKey,o=!t.isAlt||e.altKey,a=!t.isMeta||e.metaKey,s=!0;t.codes.length&&(s=t.codes.includes(e.code.toLowerCase())||t.codes.includes(e.key.toLowerCase()));var l=!0;return t.checkMethodList.length&&(l=t.checkMethodList.every((function(t){return n[t].call(n,e)}))),r&&o&&i&&a&&s&&l}},{key:"makeCallback",value:function(e,t){var n=this;return e.delegate?function(r){if(r.xy=ln.posXY(r),n.checkEventType(r,e)){var i=n.matchPath(r.target||r.srcElement,e.delegate);if(i)return r.delegateTarget=i,r.$delegateTarget=new on(i),t(r)}}:function(r){if(r.xy=ln.posXY(r),n.checkEventType(r,e))return t(r)}}},{key:"addEvent",value:function(e,t){e.callback=this.makeCallback(e,t),this.addBinding(e);var n=!0;"touchstart"===e.eventName&&(n={passive:!0}),ln.addEvent(e.dom,e.eventName,e.callback,n)}},{key:"removeEventAll",value:function(){var e=this;this.getBindings().forEach((function(t){e.removeEvent(t)})),this.initBindings()}},{key:"removeEvent",value:function(e){var t=e.eventName,n=e.dom,r=e.callback;ln.removeEvent(n,t,r)}}]),e}(),hn=/^@/,mn=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.opt=e||{},e&&e.$store&&(n.$store=e.$store),n.initialize(),n.initializeStoreEvent(),n}return k(t,e),b(t,[{key:"initializeStoreEvent",value:function(){var e=this;this.storeEvents={},this.filterProps(hn).forEach((function(t){var n=t.split("@");n.shift();var r=n.join("@");e.storeEvents[r]=e[t].bind(e),e.$store.on(r,e.storeEvents[r])}))}},{key:"destoryStoreEvent",value:function(){var e=this;Object.keys(this.storeEvents).forEach((function(t){e.$store.off(t,e.storeEvents[t])}))}}]),t}(dn),vn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"initialize",value:function(){x(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initialize",this).call(this),this.$store.rgb={},this.$store.hsl={},this.$store.hsv={},this.$store.alpha=1,this.$store.format="hex"}},{key:"/changeFormat",value:function(e,t){e.format=t,e.emit("changeFormat")}},{key:"/initColor",value:function(e,t,n){e.dispatch("/changeColor",t,n,!0),e.emit("initColor")}},{key:"/changeColor",value:function(e,t,n,r){var i;"string"==typeof(t=t||"#FF0000")&&(t=Jt.parse(t)),t.source=t.source||n,e.alpha=void 0===(i=t.a)||null==i?e.alpha:t.a,e.format="hsv"!=t.type&&t.type||e.format,"hsl"==t.type?(e.hsl=Object.assign(e.hsl,t),e.rgb=Jt.HSLtoRGB(e.hsl),e.hsv=Jt.HSLtoHSV(t)):"hex"==t.type||"rgb"==t.type?(e.rgb=Object.assign(e.rgb,t),e.hsl=Jt.RGBtoHSL(e.rgb),e.hsv=Jt.RGBtoHSV(t)):"hsv"==t.type&&(e.hsv=Object.assign(e.hsv,t),e.rgb=Jt.HSVtoRGB(e.hsv),e.hsl=Jt.HSVtoHSL(e.hsv)),r||e.emit("changeColor",t.source)}},{key:"/getHueColor",value:function(e){return Qt.checkHueColor(e.hsv.h/360)}},{key:"/toString",value:function(e,t){var n=e[t=t||e.format]||e.rgb;return Jt.format(w({},n,{a:e.alpha}),t)}},{key:"/toColor",value:function(e,t){return"rgb"==(t=t||e.format)?e.dispatch("/toRGB"):"hsl"==t?e.dispatch("/toHSL"):"hex"==t?e.dispatch("/toHEX"):e.dispatch("/toString",t)}},{key:"/toRGB",value:function(e){return e.dispatch("/toString","rgb")}},{key:"/toHSL",value:function(e){return e.dispatch("/toString","hsl")}},{key:"/toHEX",value:function(e){return e.dispatch("/toString","hex").toUpperCase()}}]),t}(an),gn=function(){function e(t){y(this,e),this.callbacks=[],this.actions=[],this.modules=t.modules||[],this.initialize()}return b(e,[{key:"initialize",value:function(){this.initializeModule()}},{key:"initializeModule",value:function(){var e=this;this.modules.forEach((function(t){new t(e)}))}},{key:"action",value:function(e,t){this.actions[e]={context:t,callback:t[e]}}},{key:"dispatch",value:function(e){var t=[].concat(Array.prototype.slice.call(arguments)),n=(e=t.shift(),this.actions[e]);if(n)return n.callback.apply(n.context,[this].concat(S(t)))}},{key:"module",value:function(e){}},{key:"on",value:function(e,t){this.callbacks.push({event:e,callback:t})}},{key:"off",value:function(e,t){0==arguments.length?this.callbacks=[]:1==arguments.length?this.callbacks=this.callbacks.filter((function(t){return t.event!=e})):2==arguments.length&&(this.callbacks=this.callbacks.filter((function(n){return n.event!=e&&n.callback!=t})))}},{key:"emit",value:function(){var e=[].concat(Array.prototype.slice.call(arguments)),t=e.shift();this.callbacks.filter((function(e){return e.event==t})).forEach((function(t){t&&"function"==typeof t.callback&&t.callback.apply(t,S(e))}))}}]),e}(),yn=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.isColorPickerShow=!1,n.isShortCut=!1,n.hideDelay=+(void 0===n.opt.hideDeplay?2e3:n.opt.hideDelay),n.timerCloseColorPicker,n.autoHide=n.opt.autoHide||!0,n.outputFormat=n.opt.outputFormat,n.$checkColorPickerClass=n.checkColorPickerClass.bind(n),n}return k(t,e),b(t,[{key:"initialize",value:function(){var e=this;this.$body=null,this.$root=null,this.$store=new gn({modules:[vn,sn]}),this.callbackChange=function(){e.callbackColorValue()},this.callbackLastUpdate=function(){e.callbackLastUpdateColorValue()},this.colorpickerShowCallback=function(){},this.colorpickerHideCallback=function(){},this.colorpickerLastUpdateCallback=function(){},this.$body=new on(this.getContainer()),this.$root=new on("div","codemirror-colorpicker"),"inline"==this.opt.position&&this.$body.append(this.$root),this.opt.type&&this.$root.addClass(this.opt.type),this.opt.hideInformation&&this.$root.addClass("hide-information"),this.opt.hideColorsets&&this.$root.addClass("hide-colorsets"),this.$arrow=new on("div","arrow"),this.$root.append(this.$arrow),this.$store.dispatch("/setUserPalette",this.opt.colorSets),this.render(),this.$root.append(this.$el),this.initColorWithoutChangeEvent(this.opt.color),this.initializeEvent()}},{key:"initColorWithoutChangeEvent",value:function(e){this.$store.dispatch("/initColor",e)}},{key:"show",value:function(e,t,n,r,i){this.colorpickerShowCallback=n,this.colorpickerHideCallback=r,this.colorpickerLastUpdateCallback=i,this.$root.css(this.getInitalizePosition()).show(),this.isColorPickerShow=!0,this.isShortCut=e.isShortCut||!1,this.outputFormat=e.outputFormat,this.hideDelay=+(void 0===e.hideDelay?2e3:e.hideDelay),this.hideDelay>0&&this.setHideDelay(this.hideDelay),this.$root.appendTo(this.$body),this.definePosition(e),this.initColorWithoutChangeEvent(t)}},{key:"initColor",value:function(e,t){this.$store.dispatch("/changeColor",e,t)}},{key:"hide",value:function(){this.isColorPickerShow&&(this.$root.hide(),this.$root.remove(),this.isColorPickerShow=!1,this.callbackHideColorValue())}},{key:"setColorsInPalette",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.$store.dispatch("/setCurrentColorAll",e)}},{key:"setUserPalette",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.$store.dispatch("/setUserPalette",e)}},{key:"getOption",value:function(e){return this.opt[e]}},{key:"setOption",value:function(e,t){this.opt[e]=t}},{key:"isType",value:function(e){return this.getOption("type")==e}},{key:"isPaletteType",value:function(){return this.isType("palette")}},{key:"isSketchType",value:function(){return this.isType("sketch")}},{key:"getContainer",value:function(){return this.opt.container||document.body}},{key:"getColor",value:function(e){return this.$store.dispatch("/toColor",e)}},{key:"definePositionForArrow",value:function(e,t,n){}},{key:"definePosition",value:function(e){var t=this.$root.width(),n=this.$root.height(),r=e.left-this.$body.scrollLeft();t+r>window.innerWidth&&(r-=t+r-window.innerWidth),r<0&&(r=0);var i=e.top-this.$body.scrollTop();n+i>window.innerHeight&&(i-=n+i-window.innerHeight),i<0&&(i=0),this.$root.css({left:r+"px",top:i+"px"})}},{key:"getInitalizePosition",value:function(){return"inline"==this.opt.position?{position:"relative",left:"auto",top:"auto",display:"inline-block"}:{position:"fixed",left:"-10000px",top:"-10000px"}}},{key:"isAbsolute",value:function(){return"inline"!==this.opt.position}},{key:"mouseup.isAbsolute document",value:function(e){this.__isMouseDown=!1,this.checkInHtml(e.target)||(0==this.checkColorPickerClass(e.target)?this.hide():this.__isMouseIn||(clearTimeout(this.timerCloseColorPicker),this.timerCloseColorPicker=setTimeout(this.hide.bind(this),this.delayTime||this.hideDelay)))}},{key:"keyup.isAbsolute.escape $root",value:function(e){this.hide()}},{key:"mouseover.isAbsolute $root",value:function(e){clearTimeout(this.timerCloseColorPicker)}},{key:"mousemove.isAbsolute $root",value:function(e){clearTimeout(this.timerCloseColorPicker)}},{key:"mouseenter.isAbsolute $root",value:function(e){clearTimeout(this.timerCloseColorPicker),this.__isMouseIn=!0}},{key:"mouseleave.isAbsolute $root",value:function(e){this.__isMouseIn=!1,this.__isMouseDown||(clearTimeout(this.timerCloseColorPicker),this.timerCloseColorPicker=setTimeout(this.hide.bind(this),this.delayTime||this.hideDelay))}},{key:"mousedown.isAbsolute $root",value:function(e){this.__isMouseDown=!0}},{key:"setHideDelay",value:function(e){this.delayTime=e||0}},{key:"runHideDelay",value:function(){this.isColorPickerShow&&this.setHideDelay()}},{key:"callbackColorValue",value:function(e){e=e||this.getCurrentColor(),"function"==typeof this.opt.onChange&&this.opt.onChange.call(this,e),"function"==typeof this.colorpickerShowCallback&&this.colorpickerShowCallback(e)}},{key:"callbackLastUpdateColorValue",value:function(e){e=e||this.getCurrentColor(),"function"==typeof this.opt.onLastUpdate&&this.opt.onLastUpdate.call(this,e),"function"==typeof this.colorpickerLastUpdateCallback&&this.colorpickerLastUpdateCallback(e)}},{key:"callbackHideColorValue",value:function(e){e=e||this.getCurrentColor(),"function"==typeof this.opt.onHide&&this.opt.onHide.call(this,e),"function"==typeof this.colorpickerHideCallback&&this.colorpickerHideCallback(e)}},{key:"getCurrentColor",value:function(){return this.$store.dispatch("/toColor",this.outputFormat)}},{key:"checkColorPickerClass",value:function(e){var t=new on(e).closest("codemirror-colorview"),n=new on(e).closest("codemirror-colorpicker"),r=new on(e).closest("CodeMirror");return e.nodeName,!!(n||t||r)}},{key:"checkInHtml",value:function(e){return"HTML"==e.nodeName}},{key:"initializeStoreEvent",value:function(){x(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initializeStoreEvent",this).call(this),this.$store.on("changeColor",this.callbackChange),this.$store.on("lastUpdateColor",this.callbackLastUpdate),this.$store.on("changeFormat",this.callbackChange)}},{key:"destroy",value:function(){x(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.$store.off("changeColor",this.callbackChange),this.$store.off("lastUpdateColor",this.callbackLastUpdate),this.$store.off("changeFormat",this.callbackChange),this.callbackChange=void 0,this.callbackLastUpdate=void 0,this.colorpickerShowCallback=void 0,this.colorpickerHideCallback=void 0}}]),t}(mn),bn=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.minValue=0,n.maxValue=1,n.source="base-slider",n}return k(t,e),b(t,[{key:"getMinMaxPosition",value:function(){var e=this.getMinPosition(),t=this.getMaxDist();return{min:e,max:e+t,width:t}}},{key:"getCurrent",value:function(e){return min+this.getMaxDist()*e}},{key:"getMinPosition",value:function(){return this.refs.$container.offset().left}},{key:"getMaxDist",value:function(){return this.state.get("$container.width")}},{key:"getDist",value:function(e){var t=this.getMinMaxPosition(),n=t.min,r=t.max;return e<n?0:e>r?100:(e-n)/(r-n)*100}},{key:"getCaculatedDist",value:function(e){var t=e?this.getMousePosition(e):this.getCurrent(this.getDefaultValue()/this.maxValue);return this.getDist(t)}},{key:"getDefaultValue",value:function(){return 0}},{key:"setMousePosition",value:function(e){this.refs.$bar.css({left:e+"px"})}},{key:"getMousePosition",value:function(e){return ln.pos(e).pageX}},{key:"refresh",value:function(){this.setColorUI()}},{key:"setColorUI",value:function(e){(e=e||this.getDefaultValue())<=this.minValue?this.refs.$bar.addClass("first").removeClass("last"):e>=this.maxValue?this.refs.$bar.addClass("last").removeClass("first"):this.refs.$bar.removeClass("last").removeClass("first"),this.setMousePosition(this.getMaxDist()*((e||0)/this.maxValue))}}]),t}(function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.source="base-box",n}return k(t,e),b(t,[{key:"refresh",value:function(){}},{key:"refreshColorUI",value:function(e){}},{key:"changeColor",value:function(e){this.$store.dispatch("/changeColor",Object.assign({source:this.source},e||{}))}},{key:"mouseup document",value:function(e){this.onDragEnd(e)}},{key:"mousemove document",value:function(e){this.onDragMove(e)}},{key:"mousedown $bar",value:function(e){e.preventDefault(),this.isDown=!0}},{key:"mousedown $container",value:function(e){this.isDown=!0,this.onDragStart(e)}},{key:"touchend document",value:function(e){this.onDragEnd(e)}},{key:"touchmove document",value:function(e){this.onDragMove(e)}},{key:"touchstart $bar",value:function(e){e.preventDefault(),this.isDown=!0}},{key:"touchstart $container",value:function(e){this.onDragStart(e)}},{key:"onDragStart",value:function(e){this.isDown=!0,this.refreshColorUI(e)}},{key:"onDragMove",value:function(e){this.isDown&&this.refreshColorUI(e)}},{key:"onDragEnd",value:function(e){this.isDown&&(this.$store.emit("lastUpdateColor"),this.isDown=!1)}},{key:"@changeColor",value:function(e){this.source!=e&&this.refresh()}},{key:"@initColor",value:function(){this.refresh()}}]),t}(mn)),_n=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.minValue=0,n.maxValue=1,n.source="value-control",n}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="value">\n <div ref="$container" class="value-container">\n <div ref="$bar" class="drag-bar"></div>\n </div>\n </div>\n '}},{key:"setBackgroundColor",value:function(){this.refs.$container.css("background-color",this.$store.dispatch("/toRGB"))}},{key:"refresh",value:function(){x(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"refresh",this).call(this),this.setBackgroundColor()}},{key:"getDefaultValue",value:function(){return this.$store.hsv.v}},{key:"refreshColorUI",value:function(e){var t=this.getCaculatedDist(e);this.setColorUI(t/100*this.maxValue),this.changeColor({type:"hsv",v:t/100*this.maxValue})}}]),t}(bn),wn=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.minValue=0,n.maxValue=1,n.source="opacity-control",n}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="opacity">\n <div ref="$container" class="opacity-container">\n <div ref="$colorbar" class="color-bar"></div>\n <div ref="$bar" class="drag-bar"></div>\n </div>\n </div>\n '}},{key:"refresh",value:function(){x(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"refresh",this).call(this),this.setOpacityColorBar()}},{key:"setOpacityColorBar",value:function(){var e=Object.assign({},this.$store.rgb);e.a=0;var t=Jt.format(e,"rgb");e.a=1;var n=Jt.format(e,"rgb");this.setOpacityColorBarBackground(t,n)}},{key:"setOpacityColorBarBackground",value:function(e,t){this.refs.$colorbar.css("background","linear-gradient(to right, "+e+", "+t+")")}},{key:"getDefaultValue",value:function(){return this.$store.alpha}},{key:"refreshColorUI",value:function(e){var t=this.getCaculatedDist(e);this.setColorUI(t/100*this.maxValue),this.changeColor({a:Math.floor(t)/100*this.maxValue})}}]),t}(bn),xn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"components",value:function(){return{Value:_n,Opacity:wn}}},{key:"template",value:function(){return'\n <div class="control">\n <div target="Value" ></div>\n <div target="Opacity" ></div>\n <div ref="$controlPattern" class="empty"></div>\n <div ref="$controlColor" class="color"></div>\n </div>\n '}},{key:"setBackgroundColor",value:function(){this.refs.$controlColor.css("background-color",this.$store.dispatch("/toRGB"))}},{key:"refresh",value:function(){this.setColorUI(),this.setBackgroundColor()}},{key:"setColorUI",value:function(){this.Value.setColorUI(),this.Opacity.setColorUI()}},{key:"@changeColor",value:function(e){"macos-control"!=e&&this.refresh()}},{key:"@initColor",value:function(){this.refresh()}}]),t}(mn),kn=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.width=214,n.height=214,n.thinkness=0,n.half_thinkness=0,n.source="colorwheel",n}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="wheel">\n <canvas class="wheel-canvas" ref="$colorwheel" ></canvas>\n <div class="wheel-canvas" ref="$valuewheel" ></div>\n <div class="drag-pointer" ref="$drag_pointer"></div>\n </div>\n '}},{key:"refresh",value:function(e){this.setColorUI(e)}},{key:"setColorUI",value:function(e){this.renderCanvas(),this.renderValue(),this.setHueColor(null,e)}},{key:"renderValue",value:function(){var e=1-this.$store.hsv.v;this.refs.$valuewheel.css({"background-color":"rgba(0, 0, 0, "+e+")"})}},{key:"renderWheel",value:function(e,t){this.width&&!e&&(e=this.width),this.height&&!t&&(t=this.height);var n=new on("canvas"),r=n.el.getContext("2d");n.el.width=e,n.el.height=t,n.css({width:e+"px",height:t+"px"});for(var i=r.getImageData(0,0,e,t),o=i.data,a=Math.floor(e/2),s=Math.floor(t/2),l=e>t?s:a,u=a,c=s,p=0;p<t;p++)for(var d=0;d<e;d++){var h=d-u+1,m=p-c+1,v=h*h+m*m,g=f(h,m),y=Jt.HSVtoRGB(g,Math.min(Math.sqrt(v)/l,1),1),b=4*(p*e+d);o[b]=y.r,o[b+1]=y.g,o[b+2]=y.b,o[b+3]=255}return r.putImageData(i,0,0),this.thinkness>0&&(r.globalCompositeOperation="destination-out",r.fillStyle="black",r.beginPath(),r.arc(u,c,l-this.thinkness,0,2*Math.PI),r.closePath(),r.fill()),n}},{key:"renderCanvas",value:function(){if(!this.$store.createdWheelCanvas){var e=this.refs.$colorwheel,t=e.el.getContext("2d"),n=e.size(),r=C(n,2),i=r[0],o=r[1];this.width&&!i&&(i=this.width),this.height&&!o&&(o=this.height),e.el.width=i,e.el.height=o,e.css({width:i+"px",height:o+"px"});var a=this.renderWheel(i,o);t.drawImage(a.el,0,0),this.$store.createdWheelCanvas=!0}}},{key:"getDefaultValue",value:function(){return this.$store.hsv.h}},{key:"getDefaultSaturation",value:function(){return this.$store.hsv.s}},{key:"getCurrentXY",value:function(e,t,n,r,i){return e?ln.posXY(e):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{x:u(e,t,n),y:c(e,t,r)}}(t,n,r,i)}},{key:"getRectangle",value:function(){var e=this.state.get("$el.width"),t=this.state.get("$el.height"),n=this.state.get("$colorwheel.width")/2,r=this.refs.$el.offset().left,i=r+e/2,o=this.refs.$el.offset().top;return{minX:r,minY:o,width:e,height:t,radius:n,centerX:i,centerY:o+t/2}}},{key:"setHueColor",value:function(e,t){if(this.state.get("$el.width")){var n=this.getRectangle(),r=n.minX,i=n.minY,o=n.radius,a=n.centerX,s=n.centerY,l=this.getCurrentXY(e,this.getDefaultValue(),this.getDefaultSaturation()*o,a,s),u=(m=l.x)-a,c=(v=l.y)-s,p=u*u+c*c,d=f(u,c);if(p>o*o)var h=this.getCurrentXY(null,d,o,a,s),m=h.x,v=h.y;var g=Math.min(Math.sqrt(p)/o,1);this.refs.$drag_pointer.css({left:m-r+"px",top:v-i+"px"}),t||this.changeColor({type:"hsv",h:d,s:g})}}},{key:"changeColor",value:function(e){this.$store.dispatch("/changeColor",Object.assign({source:this.source},e||{}))}},{key:"@changeColor",value:function(e){this.source!=e&&this.refresh(!0)}},{key:"@initColor",value:function(){this.refresh(!0)}},{key:"mouseup document",value:function(e){this.isDown&&(this.isDown=!1,this.$store.emit("lastUpdateColor"))}},{key:"mousemove document",value:function(e){this.isDown&&this.setHueColor(e)}},{key:"mousedown $drag_pointer",value:function(e){e.preventDefault(),this.isDown=!0}},{key:"mousedown $el",value:function(e){this.isDown=!0,this.setHueColor(e)}},{key:"touchend document",value:function(e){this.isDown&&(this.isDown=!1,this.$store.emit("lastUpdateColor"))}},{key:"touchmove document",value:function(e){this.isDown&&this.setHueColor(e)}},{key:"touchstart $drag_pointer",value:function(e){e.preventDefault(),this.isDown=!0}},{key:"touchstart $el",value:function(e){e.preventDefault(),this.isDown=!0,this.setHueColor(e)}}]),t}(mn),En="chromedevtool-information",Cn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="information hex">\n <div ref="$informationChange" class="information-change">\n <button ref="$formatChangeButton" type="button" class="format-change-button arrow-button"></button>\n </div>\n <div class="information-item hex">\n <div class="input-field hex">\n <input ref="$hexCode" class="input" type="text" />\n <div class="title">HEX</div>\n </div>\n </div>\n <div class="information-item rgb">\n <div class="input-field rgb-r">\n <input ref="$rgb_r" class="input" type="number" step="1" min="0" max="255" />\n <div class="title">R</div>\n </div>\n <div class="input-field rgb-g">\n <input ref="$rgb_g" class="input" type="number" step="1" min="0" max="255" />\n <div class="title">G</div>\n </div>\n <div class="input-field rgb-b">\n <input ref="$rgb_b" class="input" type="number" step="1" min="0" max="255" />\n <div class="title">B</div>\n </div> \n <div class="input-field rgb-a">\n <input ref="$rgb_a" class="input" type="number" step="0.01" min="0" max="1" />\n <div class="title">A</div>\n </div> \n </div>\n <div class="information-item hsl">\n <div class="input-field hsl-h">\n <input ref="$hsl_h" class="input" type="number" step="1" min="0" max="360" />\n <div class="title">H</div>\n </div>\n <div class="input-field hsl-s">\n <input ref="$hsl_s" class="input" type="number" step="1" min="0" max="100" />\n <div class="postfix">%</div>\n <div class="title">S</div>\n </div>\n <div class="input-field hsl-l">\n <input ref="$hsl_l" class="input" type="number" step="1" min="0" max="100" />\n <div class="postfix">%</div> \n <div class="title">L</div>\n </div>\n <div class="input-field hsl-a">\n <input ref="$hsl_a" class="input" type="number" step="0.01" min="0" max="1" />\n <div class="title">A</div>\n </div>\n </div>\n </div>\n '}},{key:"setCurrentFormat",value:function(e){this.format=e,this.initFormat()}},{key:"initFormat",value:function(){var e=this,t=this.format||"hex";["hex","rgb","hsl"].filter((function(e){return e!==t})).forEach((function(t){e.$el.removeClass(t)})),this.$el.addClass(t)}},{key:"nextFormat",value:function(){var e=this.$store.format||"hex",t="hex";"hex"==e?t="rgb":"rgb"==e?t="hsl":"hsl"==e&&(t="hex"),this.format=t,this.$store.dispatch("/changeFormat",t),this.$store.emit("lastUpdateColor"),this.initFormat()}},{key:"goToFormat",value:function(e){this.format=e,this.$store.dispatch("/changeFormat",this.format),this.$store.emit("lastUpdateColor"),this.initFormat()}},{key:"getFormat",value:function(){return this.format||"hex"}},{key:"checkNumberKey",value:function(e){var t=e.which,n=!1;return 37!=t&&39!=t&&8!=t&&46!=t&&9!=t||(n=!0),!(!n&&(t<48||t>57))}},{key:"checkNotNumberKey",value:function(e){return!this.checkNumberKey(e)}},{key:"changeRgbColor",value:function(){this.$store.dispatch("/changeColor",{type:"rgb",r:this.refs.$rgb_r.int(),g:this.refs.$rgb_g.int(),b:this.refs.$rgb_b.int(),a:this.refs.$rgb_a.float(),source:En}),this.$store.emit("lastUpdateColor")}},{key:"changeHslColor",value:function(){this.$store.dispatch("/changeColor",{type:"hsl",h:this.refs.$hsl_h.int(),s:this.refs.$hsl_s.int(),l:this.refs.$hsl_l.int(),a:this.refs.$hsl_a.float(),source:En}),this.$store.emit("lastUpdateColor")}},{key:"@changeColor",value:function(e){En!=e&&this.refresh()}},{key:"@initColor",value:function(){this.refresh()}},{key:"input $rgb_r",value:function(e){this.changeRgbColor()}},{key:"input $rgb_g",value:function(e){this.changeRgbColor()}},{key:"input $rgb_b",value:function(e){this.changeRgbColor()}},{key:"input $rgb_a",value:function(e){this.changeRgbColor()}},{key:"input $hsl_h",value:function(e){this.changeHslColor()}},{key:"input $hsl_s",value:function(e){this.changeHslColor()}},{key:"input $hsl_l",value:function(e){this.changeHslColor()}},{key:"input $hsl_a",value:function(e){this.changeHslColor()}},{key:"keyup $hexCode",value:function(e){var t=this.refs.$hexCode.val();"#"!=t.charAt(0)||7!=t.length&&9!==t.length||(this.$store.dispatch("/changeColor",t,En),this.$store.emit("lastUpdateColor"))}},{key:"click $formatChangeButton",value:function(e){this.nextFormat()}},{key:"click $el .information-item.hex .input-field .title",value:function(e){this.goToFormat("rgb")}},{key:"click $el .information-item.rgb .input-field .title",value:function(e){this.goToFormat("hsl")}},{key:"click $el .information-item.hsl .input-field .title",value:function(e){this.goToFormat("hex")}},{key:"setRGBInput",value:function(){this.refs.$rgb_r.val(this.$store.rgb.r),this.refs.$rgb_g.val(this.$store.rgb.g),this.refs.$rgb_b.val(this.$store.rgb.b),this.refs.$rgb_a.val(this.$store.alpha)}},{key:"setHSLInput",value:function(){this.refs.$hsl_h.val(this.$store.hsl.h),this.refs.$hsl_s.val(this.$store.hsl.s),this.refs.$hsl_l.val(this.$store.hsl.l),this.refs.$hsl_a.val(this.$store.alpha)}},{key:"setHexInput",value:function(){this.refs.$hexCode.val(this.$store.dispatch("/toHEX"))}},{key:"refresh",value:function(){this.setCurrentFormat(this.$store.format),this.setRGBInput(),this.setHSLInput(),this.setHexInput()}}]),t}(mn),Sn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="color-chooser">\n <div class="color-chooser-container">\n <div class="colorsets-item colorsets-item-header">\n <h1 class="title">Color Palettes</h1>\n <span ref="$toggleButton" class="items">×</span>\n </div>\n <div ref="$colorsetsList" class="colorsets-list"></div>\n </div>\n </div>\n '}},{key:"refresh",value:function(){this.load()}},{key:"@changeCurrentColorSets",value:function(){this.refresh()}},{key:"@toggleColorChooser",value:function(){this.toggle()}},{key:"load $colorsetsList",value:function(){return"\n <div>\n "+this.$store.dispatch("/getColorSetsList").map((function(e,t){return'\n <div class="colorsets-item" data-colorsets-index="'+t+'" >\n <h1 class="title">'+e.name+'</h1>\n <div class="items">\n <div>\n '+e.colors.filter((function(e,t){return t<5})).map((function(e){return'<div class="color-item" title="'+(e=e||"rgba(255, 255, 255, 1)")+'">\n <div class="color-view" style="background-color: '+e+'"></div>\n </div>'})).join("")+"\n </div>\n </div>\n </div>"})).join("")+"\n </div>\n "}},{key:"show",value:function(){this.$el.addClass("open")}},{key:"hide",value:function(){this.$el.removeClass("open")}},{key:"toggle",value:function(){this.$el.toggleClass("open")}},{key:"click $toggleButton",value:function(e){this.toggle()}},{key:"click $colorsetsList .colorsets-item",value:function(e){var t=e.$delegateTarget;if(t){var n=parseInt(t.attr("data-colorsets-index"));this.$store.dispatch("/setCurrentColorSets",n),this.hide()}}},{key:"destroy",value:function(){x(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.hide()}}]),t}(mn),On=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="colorsets">\n <div class="menu" title="Open Color Palettes">\n <button ref="$colorSetsChooseButton" type="button" class="color-sets-choose-btn arrow-button"></button>\n </div>\n <div ref="$colorSetsColorList" class="color-list"></div>\n </div>\n '}},{key:"load $colorSetsColorList",value:function(){var e=this.$store.dispatch("/getCurrentColorSets");return'\n <div class="current-color-sets">\n '+this.$store.dispatch("/getCurrentColors").map((function(e,t){return'<div class="color-item" title="'+e+'" data-index="'+t+'" data-color="'+e+'">\n <div class="empty"></div>\n <div class="color-view" style="background-color: '+e+'"></div>\n </div>'})).join("")+" \n "+(e.edit?'<div class="add-color-item">+</div>':"")+" \n </div>\n "}},{key:"refresh",value:function(){this.load()}},{key:"addColor",value:function(e){this.$store.dispatch("/addCurrentColor",e)}},{key:"@changeCurrentColorSets",value:function(){this.refresh()}},{key:"click $colorSetsChooseButton",value:function(e){this.$store.emit("toggleColorChooser")}},{key:"contextmenu $colorSetsColorList",value:function(e){if(e.preventDefault(),this.$store.dispatch("/getCurrentColorSets").edit){var t=new on(e.target).closest("color-item");if(t){var n=parseInt(t.attr("data-index"));this.$store.emit("showContextMenu",e,n)}else this.$store.emit("showContextMenu",e)}}},{key:"click $colorSetsColorList .add-color-item",value:function(e){this.addColor(this.$store.dispatch("/toColor"))}},{key:"click $colorSetsColorList .color-item",value:function(e){this.$store.dispatch("/changeColor",e.$delegateTarget.attr("data-color")),this.$store.emit("lastUpdateColor")}}]),t}(mn),An=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <ul class="colorsets-contextmenu">\n <li class="menu-item small-hide" data-type="remove-color">Remove color</li>\n <li class="menu-item small-hide" data-type="remove-all-to-the-right">Remove all to the right</li>\n <li class="menu-item" data-type="clear-palette">Clear palette</li>\n </ul>\n '}},{key:"show",value:function(e,t){var n=ln.pos(e);this.$el.css({top:n.clientY-10+"px",left:n.clientX+"px"}),this.$el.addClass("show"),this.selectedColorIndex=t,void 0===this.selectedColorIndex?this.$el.addClass("small"):this.$el.removeClass("small")}},{key:"hide",value:function(){this.$el.removeClass("show")}},{key:"runCommand",value:function(e){switch(e){case"remove-color":this.$store.dispatch("/removeCurrentColor",this.selectedColorIndex);break;case"remove-all-to-the-right":this.$store.dispatch("/removeCurrentColorToTheRight",this.selectedColorIndex);break;case"clear-palette":this.$store.dispatch("/clearPalette")}}},{key:"@showContextMenu",value:function(e,t){this.show(e,t)}},{key:"click $el .menu-item",value:function(e){e.preventDefault(),this.runCommand(e.$delegateTarget.attr("data-type")),this.hide()}}]),t}(mn),jn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class=\'colorpicker-body\'>\n <div target="colorwheel"></div>\n <div target="control"></div>\n <div target="information"></div>\n <div target="currentColorSets"></div>\n <div target="colorSetsChooser"></div>\n <div target="contextMenu"></div> \n </div>\n '}},{key:"components",value:function(){return{colorwheel:kn,control:xn,information:Cn,currentColorSets:On,colorSetsChooser:Sn,contextMenu:An}}}]),t}(yn),Pn=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.minValue=0,n.maxValue=360,n.source="hue-control",n}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="hue">\n <div ref="$container" class="hue-container">\n <div ref="$bar" class="drag-bar"></div>\n </div>\n </div>\n '}},{key:"getDefaultValue",value:function(){return this.$store.hsv.h}},{key:"refreshColorUI",value:function(e){var t=this.getCaculatedDist(e);this.setColorUI(t/100*this.maxValue),this.changeColor({h:t/100*this.maxValue,type:"hsv"})}}]),t}(bn),Nn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"components",value:function(){return{Hue:Pn,Opacity:wn}}},{key:"template",value:function(){return'\n <div class="control">\n <div target="Hue" ></div>\n <div target="Opacity" ></div>\n <div ref="$controlPattern" class="empty"></div>\n <div ref="$controlColor" class="color"></div>\n </div>\n '}},{key:"setBackgroundColor",value:function(){this.refs.$controlColor.css("background-color",this.$store.dispatch("/toRGB"))}},{key:"refresh",value:function(){this.setColorUI(),this.setBackgroundColor()}},{key:"setColorUI",value:function(){this.Hue.setColorUI(),this.Opacity.setColorUI()}},{key:"@changeColor",value:function(e){"chromedevtool-control"!=e&&this.refresh()}},{key:"@initColor",value:function(){this.refresh()}}]),t}(mn),Tn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="color">\n <div ref="$saturation" class="saturation">\n <div ref="$value" class="value">\n <div ref="$drag_pointer" class="drag-pointer"></div>\n </div>\n </div> \n </div> \n '}},{key:"setBackgroundColor",value:function(e){this.$el.css("background-color",e)}},{key:"refresh",value:function(){this.setColorUI()}},{key:"caculateSV",value:function(){var e=this.drag_pointer_pos||{x:0,y:0},t=this.state.get("$el.width"),n=this.state.get("$el.height"),r=e.x/t,i=(n-e.y)/n;this.$store.dispatch("/changeColor",{type:"hsv",s:r,v:i,source:"chromedevtool-palette"})}},{key:"setColorUI",value:function(){var e=this.state.get("$el.width")*this.$store.hsv.s,t=this.state.get("$el.height")*(1-this.$store.hsv.v);this.refs.$drag_pointer.css({left:e+"px",top:t+"px"}),this.drag_pointer_pos={x:e,y:t},this.setBackgroundColor(this.$store.dispatch("/getHueColor"))}},{key:"setMainColor",value:function(e){var t=this.$el.offset(),n=this.state.get("$el.contentWidth"),r=this.state.get("$el.contentHeight"),i=ln.pos(e).pageX-t.left,o=ln.pos(e).pageY-t.top;i<0?i=0:i>n&&(i=n),o<0?o=0:o>r&&(o=r),this.refs.$drag_pointer.css({left:i+"px",top:o+"px"}),this.drag_pointer_pos={x:i,y:o},this.caculateSV()}},{key:"@changeColor",value:function(e){"chromedevtool-palette"!=e&&this.refresh()}},{key:"@initColor",value:function(){this.refresh()}},{key:"mouseup document",value:function(e){this.isDown&&(this.isDown=!1,this.$store.emit("lastUpdateColor"))}},{key:"mousemove document",value:function(e){this.isDown&&this.setMainColor(e)}},{key:"mousedown",value:function(e){this.isDown=!0,this.setMainColor(e)}},{key:"touchend document",value:function(e){this.isDown&&(this.isDown=!1,this.$store.emit("lastUpdateColor"))}},{key:"touchmove document",value:function(e){this.isDown&&this.setMainColor(e)}},{key:"touchstart",value:function(e){e.preventDefault(),this.isDown=!0,this.setMainColor(e)}}]),t}(mn),Mn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class=\'colorpicker-body\'>\n <div target="palette"></div> \n <div target="control"></div>\n <div target="information"></div>\n <div target="currentColorSets"></div>\n <div target="colorSetsChooser"></div>\n <div target="contextMenu"></div>\n </div>\n '}},{key:"components",value:function(){return{palette:Tn,control:Nn,information:Cn,currentColorSets:On,colorSetsChooser:Sn,contextMenu:An}}}]),t}(yn),Dn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"components",value:function(){return{Hue:Pn,Opacity:wn}}},{key:"template",value:function(){return'\n <div class="control">\n <div target="Hue" ></div>\n <div target="Opacity" ></div>\n </div>\n '}},{key:"refresh",value:function(){this.setColorUI()}},{key:"setColorUI",value:function(){this.Hue.setColorUI(),this.Opacity.setColorUI()}},{key:"@changeColor",value:function(e){"mini-control"!=e&&this.refresh()}},{key:"@initColor",value:function(){this.refresh()}}]),t}(mn),Ln=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class=\'colorpicker-body\'>\n <div target="palette"></div>\n <div target="control"></div>\n </div>\n '}},{key:"components",value:function(){return{palette:Tn,control:Dn}}}]),t}(yn),Fn=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.source="vertical-slider",n}return k(t,e),b(t,[{key:"getMaxDist",value:function(){return this.state.get("$container.height")}},{key:"setMousePosition",value:function(e){this.refs.$bar.css({top:e+"px"})}},{key:"getMousePosition",value:function(e){return ln.pos(e).pageY}},{key:"getMinPosition",value:function(){return this.refs.$container.offset().top}},{key:"getCaculatedDist",value:function(e){var t=e?this.getMousePosition(e):this.getCurrent(this.getDefaultValue()/this.maxValue);return 100-this.getDist(t)}},{key:"setColorUI",value:function(e){(e=e||this.getDefaultValue())<=this.minValue?this.refs.$bar.addClass("first").removeClass("last"):e>=this.maxValue?this.refs.$bar.addClass("last").removeClass("first"):this.refs.$bar.removeClass("last").removeClass("first");var t=1-(e||0)/this.maxValue;this.setMousePosition(this.getMaxDist()*t)}}]),t}(bn),In=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.minValue=0,n.maxValue=360,n.source="vertical-hue-control",n}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="hue">\n <div ref="$container" class="hue-container">\n <div ref="$bar" class="drag-bar"></div>\n </div>\n </div>\n '}},{key:"getDefaultValue",value:function(){return this.$store.hsv.h}},{key:"refreshColorUI",value:function(e){var t=this.getCaculatedDist(e);this.setColorUI(t/100*this.maxValue),this.changeColor({h:t/100*this.maxValue,type:"hsv"})}}]),t}(Fn),Rn=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.source="vertical-opacity-control",n}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="opacity">\n <div ref="$container" class="opacity-container">\n <div ref="$colorbar" class="color-bar"></div>\n <div ref="$bar" class="drag-bar2"></div>\n </div>\n </div>\n '}},{key:"refresh",value:function(){x(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"refresh",this).call(this),this.setOpacityColorBar()}},{key:"setOpacityColorBar",value:function(){var e=Object.assign({},this.$store.rgb);e.a=0;var t=Jt.format(e,"rgb");e.a=1;var n=Jt.format(e,"rgb");this.refs.$colorbar.css("background","linear-gradient(to top, "+t+", "+n+")")}},{key:"getDefaultValue",value:function(){return this.$store.alpha}},{key:"refreshColorUI",value:function(e){var t=this.getCaculatedDist(e);this.setColorUI(t/100*this.maxValue),this.changeColor({a:Math.floor(t)/100*this.maxValue})}}]),t}(Fn),Bn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"components",value:function(){return{Hue:In,Opacity:Rn}}},{key:"template",value:function(){return'<div class="control"><div target="Hue" ></div><div target="Opacity" ></div></div>'}},{key:"refresh",value:function(){this.setColorUI()}},{key:"setColorUI",value:function(){this.Hue.setColorUI(),this.Opacity.setColorUI()}},{key:"@changeColor",value:function(e){"mini-control"!=e&&this.refresh()}},{key:"@initColor",value:function(){this.refresh()}}]),t}(mn),$n=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class=\'colorpicker-body\'>\n <div target="palette"></div><div target="control"></div>\n </div>\n '}},{key:"components",value:function(){return{palette:Tn,control:Bn}}}]),t}(yn),Wn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"components",value:function(){return{Value:_n,Opacity:wn}}},{key:"template",value:function(){return'\n <div class="control">\n <div target="Value" ></div>\n <div target="Opacity" ></div>\n <div ref="$controlPattern" class="empty"></div>\n <div ref="$controlColor" class="color"></div>\n </div>\n '}},{key:"setBackgroundColor",value:function(){this.refs.$controlColor.css("background-color",this.$store.dispatch("/toRGB"))}},{key:"refresh",value:function(){this.setColorUI(),this.setBackgroundColor()}},{key:"setColorUI",value:function(){this.Value.setColorUI(),this.Opacity.setColorUI()}},{key:"@changeColor",value:function(e){"macos-control"!=e&&this.refresh()}},{key:"@initColor",value:function(){this.refresh()}}]),t}(mn),zn=function(e){function t(e){y(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.width=214,n.height=214,n.thinkness=16,n.half_thinkness=n.thinkness/2,n.source="colorring",n}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class="wheel" data-type="ring">\n <canvas class="wheel-canvas" ref="$colorwheel" ></canvas>\n <div class="drag-pointer" ref="$drag_pointer"></div>\n </div>\n '}},{key:"setColorUI",value:function(e){this.renderCanvas(),this.setHueColor(null,e)}},{key:"getDefaultValue",value:function(){return this.$store.hsv.h}},{key:"setHueColor",value:function(e,t){if(this.state.get("$el.width")){var n=this.getRectangle(),r=n.minX,i=n.minY,o=n.radius,a=n.centerX,s=n.centerY,l=this.getCurrentXY(e,this.getDefaultValue(),o,a,s),u=f((p=l.x)-a,(d=l.y)-s),c=this.getCurrentXY(null,u,o-this.half_thinkness,a,s),p=c.x,d=c.y;this.refs.$drag_pointer.css({left:p-r+"px",top:d-i+"px"}),t||this.changeColor({type:"hsv",h:u})}}}]),t}(kn),Hn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class=\'colorpicker-body\'>\n <div target="colorring"></div>\n <div target="palette"></div> \n <div target="control"></div>\n <div target="information"></div>\n <div target="currentColorSets"></div>\n <div target="colorSetsChooser"></div>\n <div target="contextMenu"></div>\n </div>\n '}},{key:"components",value:function(){return{colorring:zn,palette:Tn,control:Wn,information:Cn,currentColorSets:On,colorSetsChooser:Sn,contextMenu:An}}}]),t}(yn),Vn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"components",value:function(){return{Hue:In,Opacity:Rn}}},{key:"template",value:function(){return'\n <div class="control">\n <div target="Hue" ></div>\n <div target="Opacity" ></div>\n </div>\n '}},{key:"refresh",value:function(){this.setColorUI()}},{key:"setColorUI",value:function(){this.Hue.setColorUI(),this.Opacity.setColorUI()}},{key:"@changeColor",value:function(){this.refresh()}},{key:"@initColor",value:function(){this.refresh()}}]),t}(mn),Un=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return'\n <div class=\'colorpicker-body\'>\n <div target="palette"></div> \n <div target="control"></div>\n <div target="information"></div>\n <div target="currentColorSets"></div>\n <div target="colorSetsChooser"></div>\n <div target="contextMenu"></div>\n </div>\n '}},{key:"components",value:function(){return{palette:Tn,control:Vn,information:Cn,currentColorSets:On,colorSetsChooser:Sn,contextMenu:An}}}]),t}(yn),qn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"components",value:function(){return{Hue:In,Opacity:Rn}}},{key:"template",value:function(){return'\n <div class="control">\n <div target="Opacity" ></div> \n <div target="Hue" ></div>\n </div>\n '}},{key:"refresh",value:function(){this.setColorUI()}},{key:"setColorUI",value:function(){this.Hue.setColorUI(),this.Opacity.setColorUI()}},{key:"@changeColor",value:function(e){"mini-control"!=e&&this.refresh()}},{key:"@initColor",value:function(){this.refresh()}}]),t}(mn),Gn=function(e){function t(){return y(this,t),E(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return k(t,e),b(t,[{key:"template",value:function(){return"\n <div class='colorpicker-body'>\n <div class='color-view'>\n <div class='color-view-container' ref=\"$colorview\"></div>\n </div>\n <div class='color-tool'>\n <div target=\"palette\"></div>\n <div target=\"control\"></div>\n </div>\n </div>\n "}},{key:"components",value:function(){return{palette:Tn,control:qn}}},{key:"initColorWithoutChangeEvent",value:function(e){this.$store.dispatch("/initColor",e),this.refresh()}},{key:"setBackgroundColor",value:function(){var e=this.$store.dispatch("/toColor"),t=this.$store.rgb,n=Jt.brightness(t.r,t.g,t.b);this.refs.$colorview.css({"background-color":e,color:n>127?"black":"white"}),this.refs.$colorview.html(e)}},{key:"click $colorview",value:function(e){this.nextFormat()}},{key:"nextFormat",value:function(){var e=this.$store.format||"hex",t="hex";"hex"==e?t="rgb":"rgb"==e?t="hsl":"hsl"==e&&(t="hex"),this.$store.dispatch("/changeFormat",t),this.$store.emit("lastUpdateColor"),this.refresh()}},{key:"refresh",value:function(){this.setBackgroundColor()}},{key:"@changeColor",value:function(){this.refresh()}},{key:"@initColor",value:function(){this.refresh()}}]),t}(yn),Xn={create:function(e){switch(e.type){case"macos":return new jn(e);case"xd":return new Un(e);case"ring":return new Hn(e);case"mini":return new Ln(e);case"vscode":return new Gn(e);case"mini-vertical":return new $n(e);case"sketch":case"palette":default:return new Mn(e)}},ColorPicker:Mn,ChromeDevToolColorPicker:Mn,MacOSColorPicker:jn,RingColorPicker:Hn,MiniColorPicker:Ln,VSCodePicker:Gn,MiniVerticalColorPicker:$n},Yn=["comment","builtin","qualifier"];function Kn(e,t){"setValue"==t.origin?(e.state.colorpicker.init_color_update(),e.state.colorpicker.style_color_update()):e.state.colorpicker.style_color_update(e.getCursor().line)}function Jn(e,t){e.state.colorpicker.isUpdate||(e.state.colorpicker.isUpdate=!0,e.state.colorpicker.close_color_picker(),e.state.colorpicker.init_color_update(),e.state.colorpicker.style_color_update())}function Zn(e,t){Kn(e,{origin:"setValue"})}function Qn(e,t){e.state.colorpicker.keyup(t)}function er(e,t){e.state.colorpicker.is_edit_mode()&&e.state.colorpicker.check_mousedown(t)}function tr(e,t){Kn(e,{origin:"setValue"})}function nr(e){e.state.colorpicker.close_color_picker()}function rr(e){e.state.colorpicker.hide_delay_color_picker(e.state.colorpicker.opt.hideDelay||1e3)}var ir=function(){function e(t,n){y(this,e),n="boolean"==typeof n?{mode:"edit"}:Object.assign({mode:"edit"},n||{}),this.opt=n,this.cm=t,this.markers={},this.excluded_token=this.opt.excluded_token||Yn,this.opt.colorpicker?this.colorpicker=this.opt.colorpicker(this.opt):this.colorpicker=Xn.create(this.opt),this.init_event()}return b(e,[{key:"init_event",value:function(){var e,t;this.cm.on("mousedown",er),this.cm.on("keyup",Qn),this.cm.on("change",Kn),this.cm.on("update",Jn),this.cm.on("refresh",Zn),this.cm.on("blur",rr),this.onPasteCallback=(e=this.cm,t=tr,function(n){t.call(this,e,n)}),this.onScrollEvent=function(e,t){var n=void 0;return function(r,i){n&&clearTimeout(n),n=setTimeout((function(){e(r,i)}),t||300)}}(nr,50),this.cm.getWrapperElement().addEventListener("paste",this.onPasteCallback),this.is_edit_mode()&&this.cm.on("scroll",this.onScrollEvent)}},{key:"is_edit_mode",value:function(){return"edit"==this.opt.mode}},{key:"is_view_mode",value:function(){return"view"==this.opt.mode}},{key:"destroy",value:function(){this.cm.off("mousedown",er),this.cm.off("keyup",Qn),this.cm.off("change",Kn),this.cm.off("blur",rr),this.cm.getWrapperElement().removeEventListener("paste",this.onPasteCallback),this.is_edit_mode()&&this.cm.off("scroll",this.onScrollEvent)}},{key:"hasClass",value:function(e,t){return!!e.className&&(" "+e.className+" ").indexOf(" "+t+" ")>-1}},{key:"check_mousedown",value:function(e){this.hasClass(e.target,"codemirror-colorview-background")?this.open_color_picker(e.target.parentNode):this.close_color_picker()}},{key:"popup_color_picker",value:function(e){var t=this.cm.getCursor(),n=this,r={lineNo:t.line,ch:t.ch,color:e||"#FFFFFF",isShortCut:!0};Object.keys(this.markers).forEach((function(e){if(("#"+e).indexOf("#"+r.lineNo+":")>-1){var t=n.markers[e];t.ch<=r.ch&&r.ch<=t.ch+t.color.length&&(r.ch=t.ch,r.color=t.color,r.nameColor=t.nameColor)}})),this.open_color_picker(r)}},{key:"open_color_picker",value:function(e){var t=this,n=e.lineNo,r=e.ch,i=e.nameColor,o=e.color;if(this.colorpicker){var a=o,s=this.cm.charCoords({line:n,ch:r});this.colorpicker.show({left:s.left,top:s.bottom,isShortCut:e.isShortCut||!1,hideDelay:this.opt.hideDelay||2e3},i||o,(function(e){t.cm.replaceRange(e,{line:n,ch:r},{line:n,ch:r+a.length},"*colorpicker"),t.cm.focus(),a=e}))}}},{key:"close_color_picker",value:function(){this.colorpicker&&this.colorpicker.hide()}},{key:"hide_delay_color_picker",value:function(){this.colorpicker&&this.colorpicker.runHideDelay()}},{key:"key",value:function(e,t){return[e,t].join(":")}},{key:"keyup",value:function(e){this.colorpicker&&("Escape"==e.key||0==this.colorpicker.isShortCut)&&this.colorpicker.hide()}},{key:"init_color_update",value:function(){this.markers={}}},{key:"style_color_update",value:function(e){if(e)this.match(e);else for(var t=this.cm.lineCount(),n=0;n<t;n++)this.match(n)}},{key:"empty_marker",value:function(e,t){for(var n,r,i=t.markedSpans||[],o=0,a=i.length;o<a;o++){var s=this.key(e,i[o].from);s&&(n=i[o].marker.replacedWith,r="codemirror-colorview",n&&n.className&&(" "+n.className+" ").indexOf(" "+r+" ")>-1)&&(delete this.markers[s],i[o].marker.clear())}}},{key:"match_result",value:function(e){return Jt.matches(e.text)}},{key:"submatch",value:function(e,t){var n=this;this.empty_marker(e,t);var r=this.match_result(t),i={next:0};r.forEach((function(r){n.render(i,e,t,r.color,r.nameColor)}))}},{key:"match",value:function(e){var t=this.cm.getLineHandle(e),n=this;this.cm.operation((function(){n.submatch(e,t)}))}},{key:"make_element",value:function(){var e=document.createElement("div");return e.className="codemirror-colorview",this.is_edit_mode()?e.title="open color picker":e.title="",e.back_element=this.make_background_element(),e.appendChild(e.back_element),e}},{key:"make_background_element",value:function(){var e=document.createElement("div");return e.className="codemirror-colorview-background",e}},{key:"set_state",value:function(e,t,n,r){var i=this.create_marker(e,t);return i.lineNo=e,i.ch=t,i.color=n,i.nameColor=r,i}},{key:"create_marker",value:function(e,t){return this.has_marker(e,t)||this.init_marker(e,t),this.get_marker(e,t)}},{key:"init_marker",value:function(e,t){this.markers[this.key(e,t)]=this.make_element()}},{key:"has_marker",value:function(e,t){return!!this.get_marker(e,t)}},{key:"get_marker",value:function(e,t){var n=this.key(e,t);return this.markers[n]}},{key:"update_element",value:function(e,t){e.back_element.style.backgroundColor=t}},{key:"set_mark",value:function(e,t,n){this.cm.setBookmark({line:e,ch:t},{widget:n,handleMouseEvents:!0})}},{key:"is_excluded_token",value:function(e,t){var n=this.cm.getTokenAt({line:e,ch:t},!0),r=n.type,i=n.state.state;if(null==r&&"block"==i)return!0;if(null==r&&"top"==i)return!0;for(var o=0,a=0,s=this.excluded_token.length;a<s;a++)if(r===this.excluded_token[a]){o++;break}return o>0}},{key:"render",value:function(e,t,n,r,i){var o=n.text.indexOf(r,e.next);if(!0!==this.is_excluded_token(t,o)){if(e.next=o+r.length,this.has_marker(t,o))return this.update_element(this.create_marker(t,o),i||r),void this.set_state(t,o,r,i);var a=this.create_marker(t,o);this.update_element(a,i||r),this.set_state(t,o,r,i||r),this.set_mark(t,o,a)}}}]),e}();try{var or=n(9)}catch(e){}function ar(){var e=or||window.CodeMirror;e&&e.defineOption("colorpicker",!1,(function(t,n,r){r&&r!=e.Init&&t.state.colorpicker&&(t.state.colorpicker.destroy(),t.state.colorpicker=null),n&&(t.state.colorpicker=new ir(t,n))}))}return ar(),w({},tn,Xn,{load:ar})}()},function(e,t,n){},function(e,t,n){"use strict";t.reservedVars={NaN:!1,undefined:!1},t.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{ArrayBuffer:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int8Array:!1,Int16Array:!1,Int32Array:!1,Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,Uint8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8ClampedArray:!1,WeakMap:!1,WeakSet:!1},8:{Atomics:!1,SharedArrayBuffer:!1}},t.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,CSSImportRule:!1,CSSGroupingRule:!1,CSSMarginRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CompositionEvent:!1,createImageBitmap:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,dispatchEvent:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,Headers:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,IntersectionObserver:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MediaList:!1,MediaRecorder:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,parent:!1,performance:!1,print:!1,queueMicrotask:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,Request:!1,resizeBy:!1,resizeTo:!1,Response:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,Storage:!1,StyleSheet:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},t.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},t.worker={addEventListener:!0,atob:!0,btoa:!0,clearInterval:!0,clearTimeout:!0,createImageBitmap:!0,dispatchEvent:!0,importScripts:!0,onmessage:!0,origin:!0,postMessage:!0,queueMicrotask:!0,removeEventListener:!0,self:!0,setInterval:!0,setTimeout:!0,FileReaderSync:!0},t.nonstandard={escape:!1,unescape:!1},t.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},t.node={__filename:!1,__dirname:!1,arguments:!1,GLOBAL:!1,global:!1,module:!1,require:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},t.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,require:!1,Buffer:!0,exports:!0,process:!0},t.phantom={phantom:!0,require:!0,WebPage:!0,console:!0,exports:!0},t.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},t.rhino={arguments:!1,defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},t.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},t.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},t.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},t.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},t.jquery={$:!1,jQuery:!1},t.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},t.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},t.yui={YUI:!1,Y:!1,YUI_config:!1},t.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},t.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1,spyOnProperty:!1}},function(e,t,n){"use strict";var r=n(50);t.errors={},t.warnings={},t.info={},r.each({E001:"Bad {a}option: '{b}'.",E002:"Bad option value.",E003:"Expected a JSON value.",E004:"Input is neither a string nor an array of strings.",E005:"Input is empty.",E006:"Unexpected early end of program.",E007:'Missing "use strict" statement.',E008:"Strict violation.",E009:"Option 'validthis' can't be used in a global scope.",E010:"'with' is not allowed in strict mode.",E011:"'{a}' has already been declared.",E012:"const '{a}' is initialized to 'undefined'.",E013:"Attempting to override '{a}' which is a constant.",E014:"A regular expression literal can be confused with '/='.",E015:"Unclosed regular expression.",E016:"Invalid regular expression.",E017:"Unclosed comment.",E018:"Unbegun comment.",E019:"Unmatched '{a}'.",E020:"Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.",E021:"Expected '{a}' and instead saw '{b}'.",E022:"Line breaking error '{a}'.",E023:"Missing '{a}'.",E024:"Unexpected '{a}'.",E025:"Missing ':' on a case clause.",E026:"Missing '}' to match '{' from line {a}.",E027:"Missing ']' to match '[' from line {a}.",E028:"Illegal comma.",E029:"Unclosed string.",E030:"Expected an identifier and instead saw '{a}'.",E031:"Bad assignment.",E032:"Expected a small integer or 'false' and instead saw '{a}'.",E033:"Expected an operator and instead saw '{a}'.",E034:"get/set are ES5 features.",E035:"Missing property name.",E036:"Expected to see a statement and instead saw a block.",E037:null,E038:null,E039:"Function declarations are not invocable. Wrap the whole function invocation in parens.",E040:"Each value should have its own case label.",E041:"Unrecoverable syntax error.",E042:"Stopping.",E043:"Too many errors.",E044:null,E045:"Invalid for each loop.",E046:"Yield expressions may only occur within generator functions.",E047:null,E048:"{a} declaration not directly within block.",E049:"A {a} cannot be named '{b}'.",E050:"Mozilla requires the yield expression to be parenthesized here.",E051:null,E052:"Unclosed template literal.",E053:"{a} declarations are only allowed at the top level of module scope.",E054:"Class properties must be methods. Expected '(' but instead saw '{a}'.",E055:"The '{a}' option cannot be set after any executable code.",E056:"'{a}' was used before it was declared, which is illegal for '{b}' variables.",E057:"Invalid meta property: '{a}.{b}'.",E058:"Missing semicolon.",E059:"Incompatible values for the '{a}' and '{b}' linting options.",E060:"Non-callable values cannot be used as the second operand to instanceof.",E061:"Invalid position for 'yield' expression (consider wrapping in parenthesis).",E062:"Rest parameter does not a support default value.",E063:"Super property may only be used within method bodies.",E064:"Super call may only be used within class method bodies.",E065:"Functions defined outside of strict mode with non-simple parameter lists may not enable strict mode.",E066:"Asynchronous iteration is only available with for-of loops.",E067:"Malformed numeric literal: '{a}'.",E068:"Decimals with leading zeros are not allowed in strict mode."},(function(e,n){t.errors[n]={code:n,desc:e}})),r.each({W001:"'hasOwnProperty' is a really bad name.",W002:"Value of '{a}' may be overwritten in IE 8 and earlier.",W003:"'{a}' was used before it was defined.",W004:"'{a}' is already defined.",W005:"A dot following a number can be confused with a decimal point.",W006:"Confusing minuses.",W007:"Confusing plusses.",W008:"A leading decimal point can be confused with a dot: '{a}'.",W009:"The array literal notation [] is preferable.",W010:"The object literal notation {} is preferable.",W011:null,W012:null,W013:null,W014:"Misleading line break before '{a}'; readers may interpret this as an expression boundary.",W015:null,W016:"Unexpected use of '{a}'.",W017:"Bad operand.",W018:"Confusing use of '{a}'.",W019:"Use the isNaN function to compare with NaN.",W020:"Read only.",W021:"Reassignment of '{a}', which is a {b}. Use 'var' or 'let' to declare bindings that may change.",W022:"Do not assign to the exception parameter.",W023:null,W024:"Expected an identifier and instead saw '{a}' (a reserved word).",W025:"Missing name in function declaration.",W026:"Inner functions should be listed at the top of the outer function.",W027:"Unreachable '{a}' after '{b}'.",W028:"Label '{a}' on {b} statement.",W030:"Expected an assignment or function call and instead saw an expression.",W031:"Do not use 'new' for side effects.",W032:"Unnecessary semicolon.",W033:"Missing semicolon.",W034:'Unnecessary directive "{a}".',W035:"Empty block.",W036:"Unexpected /*member '{a}'.",W037:"'{a}' is a statement label.",W038:"'{a}' used out of scope.",W039:null,W040:"If a strict mode function is executed using function invocation, its 'this' value will be undefined.",W041:null,W042:"Avoid EOL escaping.",W043:"Bad escaping of EOL. Use option multistr if needed.",W044:"Bad or unnecessary escaping.",W045:"Value described by numeric literal cannot be accurately represented with a number value: '{a}'.",W046:"Don't use extra leading zeros '{a}'.",W047:"A trailing decimal point can be confused with a dot: '{a}'.",W048:"Unexpected control character in regular expression.",W049:"Unexpected escaped character '{a}' in regular expression.",W050:"JavaScript URL.",W051:"Variables should not be deleted.",W052:"Unexpected '{a}'.",W053:"Do not use {a} as a constructor.",W054:"The Function constructor is a form of eval.",W055:"A constructor name should start with an uppercase letter.",W056:"Bad constructor.",W057:"Weird construction. Is 'new' necessary?",W058:"Missing '()' invoking a constructor.",W059:"Avoid arguments.{a}.",W060:"document.write can be a form of eval.",W061:"eval can be harmful.",W062:"Wrap an immediate function invocation in parens to assist the reader in understanding that the expression is the result of a function, and not the function itself.",W063:"Math is not a function.",W064:"Missing 'new' prefix when invoking a constructor.",W065:"Missing radix parameter.",W066:"Implied eval. Consider passing a function instead of a string.",W067:"Unorthodox function invocation.",W068:"Wrapping non-IIFE function literals in parens is unnecessary.",W069:"['{a}'] is better written in dot notation.",W070:"Extra comma. (it breaks older versions of IE)",W071:"This function has too many statements. ({a})",W072:"This function has too many parameters. ({a})",W073:"Blocks are nested too deeply. ({a})",W074:"This function's cyclomatic complexity is too high. ({a})",W075:"Duplicate {a} '{b}'.",W076:"Unexpected parameter '{a}' in get {b} function.",W077:"Expected a single parameter in set {a} function.",W078:"Setter is defined without getter.",W079:"Redefinition of '{a}'.",W080:"It's not necessary to initialize '{a}' to 'undefined'.",W081:null,W082:"Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.",W083:"Functions declared within loops referencing an outer scoped variable may lead to confusing semantics. ({a})",W084:"Expected a conditional expression and instead saw an assignment.",W085:"Don't use 'with'.",W086:"Expected a 'break' statement before '{a}'.",W087:"Forgotten 'debugger' statement?",W088:"Creating global 'for' variable. Should be 'for (var {a} ...'.",W089:"The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.",W090:"'{a}' is not a statement label.",W091:null,W093:"Did you mean to return a conditional instead of an assignment?",W094:"Unexpected comma.",W095:"Expected a string and instead saw {a}.",W096:"The '{a}' key may produce unexpected results.",W097:'Use the function form of "use strict".',W098:"'{a}' is defined but never used.",W099:null,W100:null,W101:"Line is too long.",W102:null,W103:"The '{a}' property is deprecated.",W104:"'{a}' is available in ES{b} (use 'esversion: {b}') or Mozilla JS extensions (use moz).",W105:null,W106:"Identifier '{a}' is not in camel case.",W107:"Script URL.",W108:"Strings must use doublequote.",W109:"Strings must use singlequote.",W110:"Mixed double and single quotes.",W112:"Unclosed string.",W113:"Control character in string: {a}.",W114:"Avoid {a}.",W115:"Octal literals are not allowed in strict mode.",W116:"Expected '{a}' and instead saw '{b}'.",W117:"'{a}' is not defined.",W118:"'{a}' is only available in Mozilla JavaScript extensions (use moz option).",W119:"'{a}' is only available in ES{b} (use 'esversion: {b}').",W120:"You might be leaking a variable ({a}) here.",W121:"Extending prototype of native object: '{a}'.",W122:"Invalid typeof value '{a}'",W123:"'{a}' is already defined in outer scope.",W124:"A generator function should contain at least one yield expression.",W125:"This line contains non-breaking spaces: http://jshint.com/docs/options/#nonbsp",W126:"Unnecessary grouping operator.",W127:"Unexpected use of a comma operator.",W128:"Empty array elements require elision=true.",W129:"'{a}' is defined in a future version of JavaScript. Use a different variable name to avoid migration issues.",W130:"Invalid element after rest element.",W131:"Invalid parameter after rest parameter.",W132:"`var` declarations are forbidden. Use `let` or `const` instead.",W133:"Invalid for-{a} loop left-hand-side: {b}.",W134:"The '{a}' option is only available when linting ECMAScript {b} code.",W135:"{a} may not be supported by non-browser environments.",W136:"'{a}' must be in function scope.",W137:"Empty destructuring: this is unnecessary and can be removed.",W138:"Regular parameters should not come after default parameters.",W139:"Function expressions should not be used as the second operand to instanceof.",W140:"Missing comma.",W141:"Empty {a}: this is unnecessary and can be removed.",W142:"Empty {a}: consider replacing with `import '{b}';`.",W143:"Assignment to properties of a mapped arguments object may cause unexpected changes to formal parameters.",W144:"'{a}' is a non-standard language feature. Enable it using the '{b}' unstable option.",W145:"Superfluous 'case' clause.",W146:"Unnecessary `await` expression.",W147:"Regular expressions should include the 'u' flag.",W148:"Unnecessary RegExp 's' flag."},(function(e,n){t.warnings[n]={code:n,desc:e}})),r.each({I001:"Comma warnings can be turned off with 'laxcomma'.",I002:null,I003:"ES5 option is now set per default"},(function(e,n){t.info[n]={code:n,desc:e}}))},function(e,t,n){"use strict";var r=n(50),i=n(77),o=n(126),a=n(127).state,s=n(417),l=s.asciiIdentifierStartTable,u=s.asciiIdentifierPartTable,c=n(418),f=n(419),p=1,d=2,h=3,m=4,v=5,g=6,y=9,b=10,_=11,w=12,x=13,k={Block:1,Template:2};function E(e){return/^[0-9a-fA-F]+$/.test(e)}function C(e){return 1===e.length&&E(e)}function S(e){var t=e;"string"==typeof t&&(t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split("\n")),t[0]&&"#!"===t[0].substr(0,2)&&(-1!==t[0].indexOf("node")&&(a.option.node=!0),t[0]=""),this.emitter=new i.EventEmitter,this.source=e,this.setLines(t),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input="",this.inComment=!1,this.context=[],this.templateStarts=[];for(var n=0;n<a.option.indent;n+=1)a.tab+=" "}S.prototype={_lines:[],inContext:function(e){return this.context.length>0&&this.context[this.context.length-1].type===e},pushContext:function(e){this.context.push({type:e})},popContext:function(){return this.context.pop()},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=a.lines,this._lines},setLines:function(e){this._lines=e,a.lines=this._lines},peek:function(e){return this.input.charAt(e||0)},skip:function(e){e=e||1,this.char+=e,this.input=this.input.slice(e)},on:function(e,t){e.split(" ").forEach(function(e){this.emitter.on(e,t)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(e,t,n,r){n.push(function(){r()&&this.trigger(e,t)}.bind(this))},scanPunctuator:function(){var e,t,n,r=this.peek();switch(r){case".":if(/^[0-9]$/.test(this.peek(1)))return null;if("."===this.peek(1)&&"."===this.peek(2))return{type:d,value:"..."};case"(":case")":case";":case",":case"[":case"]":case":":case"~":case"?":return{type:d,value:r};case"{":return this.pushContext(k.Block),{type:d,value:r};case"}":return this.inContext(k.Block)&&this.popContext(),{type:d,value:r};case"#":return{type:d,value:r};case"":return null}return e=this.peek(1),t=this.peek(2),n=this.peek(3),">"===r&&">"===e&&">"===t&&"="===n?{type:d,value:">>>="}:"="===r&&"="===e&&"="===t?{type:d,value:"==="}:"!"===r&&"="===e&&"="===t?{type:d,value:"!=="}:">"===r&&">"===e&&">"===t?{type:d,value:">>>"}:"<"===r&&"<"===e&&"="===t?{type:d,value:"<<="}:">"===r&&">"===e&&"="===t?{type:d,value:">>="}:"="===r&&">"===e?{type:d,value:r+e}:r===e&&"+-<>&|*".indexOf(r)>=0?"*"===r&&"="===t?{type:d,value:r+e+t}:{type:d,value:r+e}:"<>=!+-*%&|^/".indexOf(r)>=0?"="===e?{type:d,value:r+e}:{type:d,value:r}:null},scanComments:function(e){var t=this.peek(),n=this.peek(1),r=this.input.substr(2),i=this.line,a=this.char,s=this;function l(e,t,n){var r=!1,i=e+t,a="plain";return(n=n||{}).isMultiline&&(i+="*/"),t=t.replace(/\n/g," "),"/*"===e&&o.fallsThrough.test(t)&&(r=!0,a="falls through"),["jshint","jshint.unstable","jslint","members","member","globals","global","exported"].forEach((function(n){if(!r&&("//"!==e||"jshint"===n||"jshint.unstable"===n)){" "===t.charAt(n.length)&&t.substr(0,n.length)===n&&(r=!0,e+=n,t=t.substr(n.length)),r||" "!==t.charAt(0)||" "!==t.charAt(n.length+1)||t.substr(1,n.length)!==n||(r=!0,e=e+" "+n,t=t.substr(n.length+1));var i=t.indexOf(n);if(!r&&i>=0&&" "===t.charAt(i+n.length))0===t.substr(0,i).trim().length&&(r=!0,t=t.substr(n.length+i));if(r)switch(n){case"member":a="members";break;case"global":a="globals";break;default:var o=t.split(":").map((function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}));if(2===o.length)switch(o[0]){case"ignore":switch(o[1]){case"start":s.ignoringLinterErrors=!0,r=!1;break;case"end":s.ignoringLinterErrors=!1,r=!1}}a=n}}})),{type:v,commentType:a,value:i,body:t,isSpecial:r,isMalformed:n.isMalformed||!1}}if("*"===t&&"/"===n)return this.trigger("error",{code:"E018",line:i,character:a}),this.skip(2),null;if("/"!==t||"*"!==n&&"/"!==n)return null;if("/"===n)return this.skip(this.input.length),l("//",r);var u="";if("*"===n){for(this.inComment=!0,this.skip(2);"*"!==this.peek()||"/"!==this.peek(1);)if(""===this.peek()){if(u+="\n",!this.nextLine(e))return this.trigger("error",{code:"E017",line:i,character:a}),this.inComment=!1,l("/*",u,{isMultiline:!0,isMalformed:!0})}else u+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,l("/*",u,{isMultiline:!0})}},scanKeyword:function(){var e=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input);return e&&["if","in","do","var","for","new","try","let","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof","true","false","null","async","await"].indexOf(e[0])>=0?{type:g,value:e[0]}:null},scanIdentifier:function(e){var t,r,i="",o=0;function s(e){return c.indexOf(e)>-1}function d(e){return s(e)||f.indexOf(e)>-1}var h=function(){if(o+=1,"u"!==this.peek(o))return null;var e,t=this.peek(o+1)+this.peek(o+2)+this.peek(o+3)+this.peek(o+4);return E(t)?(e=parseInt(t,16),u[e]||d(e)?(o+=5,"\\u"+t):null):null}.bind(this),m=function(){var e=this.peek(o),t=e.charCodeAt(0);return 92===t?h():t<128?l[t]?(o+=1,e):null:s(t)?(o+=1,e):null}.bind(this),v=function(){var e=this.peek(o),t=e.charCodeAt(0);return 92===t?h():t<128?u[t]?(o+=1,e):null:d(t)?(o+=1,e):null}.bind(this);if(null===(t=m()))return null;for(i=t;null!==(t=v());)i+=t;return r=function(e){return e.replace(/\\u([0-9a-fA-F]{4})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))}))}(i),a.inES6(!0)||n(420).test(r)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["unicode 8","6"]},e,(function(){return!0})),{type:p,value:r,text:i,tokenLength:i.length}},scanNumericLiteral:function(e){var t,n=0,r="",i=this.input.length,o=this.peek(n),s=f,l=10,u=!1,c=!1;function f(e){return/^[0-9]$/.test(e)}function p(e){return/^[0-7]$/.test(e)}function d(e){return"$"===e||"_"===e||"\\"===e||e>="a"&&e<="z"||e>="A"&&e<="Z"}if("."!==o&&!f(o))return null;if("."!==o){for(r=this.peek(n),n+=1,o=this.peek(n),"0"===r&&("x"!==o&&"X"!==o||(s=C,l=16,n+=1,r+=o),"o"!==o&&"O"!==o||(s=p,l=8,a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["Octal integer literal","6"]},e,(function(){return!0})),n+=1,r+=o),"b"!==o&&"B"!==o||(s=function(e){return/^[01]$/.test(e)},l=2,a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["Binary integer literal","6"]},e,(function(){return!0})),n+=1,r+=o),p(o)?(s=p,l=8,u=!0):f(o)&&(c=!0));n<i&&(o=this.peek(n),u&&("8"===(t=o)||"9"===t)&&(l=10,u=!1,c=!0,s=f),s(o));)r+=o,n+=1;var m="n"===this.peek(n);if(s!==f||m){if(m)a.option.unstable.bigint||this.triggerAsync("warning",{code:"W144",line:this.line,character:this.char,data:["BigInt","bigint"]},e,(function(){return!0})),(u||c)&&this.triggerAsync("error",{code:"E067",line:this.line,character:this.char,data:[r+o]},e,(function(){return!0})),r+=o,n+=1;else if(!u&&r.length<=2)return{type:h,value:r,isMalformed:!0};return n<i&&d(o=this.peek(n))?null:{type:h,value:r,base:l,isLegacy:u,isMalformed:!1}}}if("."===o)for(r+=o,n+=1;n<i&&f(o=this.peek(n));)r+=o,n+=1;if("e"===o||"E"===o){if(r+=o,n+=1,"+"!==(o=this.peek(n))&&"-"!==o||(r+=this.peek(n),n+=1),!f(o=this.peek(n)))return null;for(r+=o,n+=1;n<i&&f(o=this.peek(n));)r+=o,n+=1}return n<i&&d(o=this.peek(n))?null:(this.triggerAsync("warning",{code:"W045",line:this.line,character:this.char+r.length,data:[r]},e,(function(){return!isFinite(r)})),{type:h,value:r,base:l,isNonOctal:c,isMalformed:!1})},scanEscapeSequence:function(e){var t=!1,n=1;this.skip();var r=this.peek();switch(r){case"'":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\'"]},e,(function(){return a.jsonMode}));break;case"b":r="\\b";break;case"f":r="\\f";break;case"n":r="\\n";break;case"r":r="\\r";break;case"t":r="\\t";break;case"0":r="\\0";var i=parseInt(this.peek(1),10);this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},e,(function(){return i>=0&&i<=7&&a.isStrict()}));break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":r="\\"+r,this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},e,(function(){return a.isStrict()}));break;case"u":var o=this.input.substr(1,4),s=parseInt(o,16);E(o)||this.trigger("warning",{code:"W052",line:this.line,character:this.char,data:["u"+o]}),r=String.fromCharCode(s),n=5;break;case"v":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\v"]},e,(function(){return a.jsonMode})),r="\v";break;case"x":var l=parseInt(this.input.substr(1,2),16);this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\x-"]},e,(function(){return a.jsonMode})),r=String.fromCharCode(l),n=3;break;case"\\":r="\\\\";break;case'"':r='\\"';break;case"/":break;case"":t=!0,r=""}return{char:r,jump:n,allowNewLine:t}},scanTemplateLiteral:function(e){var t,n,r="",i=this.line,o=this.char,s=this.templateStarts.length;if("`"===this.peek())a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["template literal syntax","6"]},e,(function(){return!0})),t=b,this.templateStarts.push({line:this.line,char:this.char}),s=this.templateStarts.length,this.skip(1),this.pushContext(k.Template);else{if(!this.inContext(k.Template)||"}"!==this.peek())return null;t=_}for(;"`"!==this.peek();){for(;""===(n=this.peek());)if(r+="\n",!this.nextLine(e)){var l=this.templateStarts.pop();return this.trigger("error",{code:"E052",line:l.line,character:l.char}),{type:t,value:r,startLine:i,startChar:o,isUnclosed:!0,depth:s,context:this.popContext()}}if("$"===n&&"{"===this.peek(1))return r+="${",this.skip(2),{type:t,value:r,startLine:i,startChar:o,isUnclosed:!1,depth:s,context:this.currentContext()};if("\\"===n){var u=this.scanEscapeSequence(e);r+=u.char,this.skip(u.jump)}else"`"!==n&&(r+=n,this.skip(1))}return t=t===b?x:w,this.skip(1),this.templateStarts.pop(),{type:t,value:r,startLine:i,startChar:o,isUnclosed:!1,depth:s,context:this.popContext()}},scanStringLiteral:function(e){var t=this.peek();if('"'!==t&&"'"!==t)return null;this.triggerAsync("warning",{code:"W108",line:this.line,character:this.char},e,(function(){return a.jsonMode&&'"'!==t}));var n="",r=this.line,i=this.char,o=!1;for(this.skip();this.peek()!==t;)if(""===this.peek()){if(o?(o=!1,this.triggerAsync("warning",{code:"W043",line:this.line,character:this.char},e,(function(){return!a.option.multistr})),this.triggerAsync("warning",{code:"W042",line:this.line,character:this.char},e,(function(){return a.jsonMode&&a.option.multistr}))):this.trigger("warning",{code:"W112",line:this.line,character:this.char}),!this.nextLine(e))return{type:m,value:n,startLine:r,startChar:i,isUnclosed:!0,quote:t}}else{o=!1;var s=this.peek(),l=1;if(s<" "&&this.triggerAsync("warning",{code:"W113",line:this.line,character:this.char,data:["<non-printable>"]},e,(function(){return!0})),"\\"===s){var u=this.scanEscapeSequence(e);s=u.char,l=u.jump,o=u.allowNewLine}""!==s&&(n+=s,this.skip(l))}return this.skip(),{type:m,value:n,startLine:r,startChar:i,isUnclosed:!1,quote:t}},scanRegExp:function(e){var t,n,r,i=0,s=this.input.length,l=this.peek(),u=l,c="",f=[],p="",d="",h=!1,m=!1,v=!1,g=!1,b=!1,_="",w=function(){return p.indexOf("u")>-1},x=0,k=function(){var t,n;if(i+=1,l=this.peek(i),o.nonzeroDigit.test(l)){for(n=l,t=this.peek(i+1);o.nonzeroDigit.test(t)||"0"===t;)i+=1,n+=l=t,c+=l,u+=l,t=this.peek(i+1);return f.push(Number(n)),n}if(_+=l,"u"===l&&"{"===this.peek(i+1)){var r=i+2;for(n="u{",t=this.peek(r);E(t);)n+=t,r+=1,t=this.peek(r);if("}"!==t)this.triggerAsync("error",{code:"E016",line:this.line,character:this.char,data:["Invalid Unicode escape sequence"]},e,w);else if(n.length>2)return c+=n+="}",u+=n,i=r+1,n}return l<" "&&(h=!0,this.triggerAsync("warning",{code:"W048",line:this.line,character:this.char},e,(function(){return!0}))),"<"===l?(h=!0,this.triggerAsync("warning",{code:"W049",line:this.line,character:this.char,data:[l]},e,(function(){return!0}))):"0"===l&&o.decimalDigit.test(this.peek(i+1))&&this.triggerAsync("error",{code:"E016",line:this.line,character:this.char,data:["Invalid decimal escape sequence"]},e,w),i+=1,c+=l,u+=l,l}.bind(this),C=function(){var e,t=i,n="",r="";for(e=this.peek(t+1);o.decimalDigit.test(e);)t+=1,n+=e,e=this.peek(t+1);if(!n)return!1;if("}"===e)return!0;if(","!==e)return!1;for(t+=1,e=this.peek(t+1);o.decimalDigit.test(e);)t+=1,r+=e,e=this.peek(t+1);return"}"===e&&(!r||Number(n)<=Number(r))}.bind(this),S=function(e){return e.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(e,t,n){var r,i=parseInt(t||n,16);return i>1114111?(h=!0,void this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[l]})):(r=String.fromCharCode(i),o.regexpSyntaxChars.test(r)?e:i<=65535?String.fromCharCode(i):"")}.bind(this)).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"")}.bind(this);if(!this.prereg||"/"!==l)return null;for(i+=1,n=!1;i<s;)if(v&="-"===l,l=this.peek(i),u+=l,c+=l,m&&("]"===l?"\\"===this.peek(i-1)&&"\\"!==this.peek(i-2)||(m=!1):"-"===l&&(v=!0)),"\\"!==l)if(m)i+=1;else if("{"!==l||b||(b=!C()),"["!==l){if("("===l)!0,"?"!==this.peek(i+1)||"="!==this.peek(i+2)&&"!"!==this.peek(i+2)||(g=!0);else if(")"===l)g?(g=!1,o.regexpQuantifiers.test(this.peek(i+1))&&this.triggerAsync("error",{code:"E016",line:this.line,character:this.char,data:["Quantified quantifiable"]},e,w)):x+=1,!1;else if("/"===l){c=c.substr(0,c.length-1),n=!0,i+=1;break}i+=1}else m=!0,i+=1;else t=k(),m&&("-"===this.peek(i)||v)&&o.regexpCharClasses.test(t)&&this.triggerAsync("error",{code:"E016",line:this.line,character:this.char,data:["Character class used in range"]},e,w);if(!n)return this.trigger("error",{code:"E015",line:this.line,character:this.from}),void this.trigger("fatal",{line:this.line,from:this.from});for(;i<s&&(l=this.peek(i),/[gimyus]/.test(l));){if("y"===l)a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["Sticky RegExp flag","6"]},e,(function(){return!0}));else if("u"===l){a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["Unicode RegExp flag","6"]},e,(function(){return!0})),function(e,t,n,r){return!!e.some((function(e){if(e>t)return!0}))||!n.split("").every((function(e){return"u"===e||"/"===e||"0"===e||r.regexpControlEscapes.test(e)||r.regexpCharClasses.test(e)||r.regexpSyntaxChars.test(e)}))}(f,x,_,o)?r="Invalid escape":b&&(r="Invalid quantifier"),c=S(c)}else"s"===l?(a.inES9()||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["DotAll RegExp flag","9"]},e,(function(){return!0})),u.indexOf("s")>-1&&(r="Duplicate RegExp flag")):d+=l;p.indexOf(l)>-1&&(r="Duplicate RegExp flag"),p+=l,u+=l,p+=l,i+=1}-1===p.indexOf("u")&&this.triggerAsync("warning",{code:"W147",line:this.line,character:this.char},e,(function(){return a.option.regexpu}));try{new RegExp(c,d)}catch(e){r=e.message}return r?(h=!0,this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[r]})):p.indexOf("s")>-1&&!o.regexpDot.test(c)&&this.trigger("warning",{code:"W148",line:this.line,character:this.char}),{type:y,value:u,isMalformed:h}},scanNonBreakingSpaces:function(){return a.option.nonbsp?this.input.search(/(\u00A0)/):-1},next:function(e){for(this.from=this.char;o.whitespace.test(this.peek());)this.from+=1,this.skip();var t=this.scanComments(e)||this.scanStringLiteral(e)||this.scanTemplateLiteral(e);return t||((t=this.scanRegExp(e)||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier(e)||this.scanNumericLiteral(e))?(this.skip(t.tokenLength||t.value.length),t):null)},nextLine:function(e){var t;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var n=this.input.trim(),i=function(){return r.some(arguments,(function(e){return 0===n.indexOf(e)}))};(!0===this.ignoringLinterErrors&&(i("/*","//")||this.inComment&&function(){return r.some(arguments,(function(e){return-1!==n.indexOf(e,n.length-e.length)}))}("*/")||(this.input="")),(t=this.scanNonBreakingSpaces())>=0&&this.triggerAsync("warning",{code:"W125",line:this.line,character:t+1},e,(function(){return!0})),this.input=this.input.replace(/\t/g,a.tab),!this.ignoringLinterErrors&&a.option.maxlen&&a.option.maxlen<this.input.length)&&((!(this.inComment||i.call(n,"//")||i.call(n,"/*"))||!o.maxlenException.test(n))&&this.triggerAsync("warning",{code:"W101",line:this.line,character:this.input.length},e,(function(){return!0})));return!0},token:function(){for(var e,t,n=(e=[],{push:function(t){e.push(t)},check:function(){for(var t=0;t<e.length;++t)e[t]();e.splice(0,e.length)}}),i=function(e,t,i,o){var s;if("(endline)"!==e&&"(end)"!==e&&(this.prereg=!1),"(punctuator)"===e){switch(t){case".":case")":case"~":case"#":case"]":case"}":case"++":case"--":this.prereg=!1;break;default:this.prereg=!0}s=Object.create(a.syntax[t]||a.syntax["(error)"])}return"(identifier)"===e&&("return"!==t&&"case"!==t&&"yield"!==t&&"typeof"!==t&&"instanceof"!==t&&"void"!==t&&"await"!==t&&"new"!==t&&"delete"!==t&&"default"!==t&&"extends"!==t||(this.prereg=!0),r.has(a.syntax,t)&&(s=Object.create(a.syntax[t]||a.syntax["(error)"]))),"(template)"!==e&&"(template middle)"!==e||(this.prereg=!0),s||(s=Object.create(a.syntax[e])),s.identifier="(identifier)"===e,s.type=s.type||e,s.value=t,s.line=this.line,s.character=this.char,s.from=this.from,s.identifier&&o&&(s.raw_text=o.text||o.value),o&&o.startLine&&o.startLine!==this.line&&(s.startLine=o.startLine),o&&o.context&&(s.context=o.context),o&&o.depth&&(s.depth=o.depth),o&&o.isUnclosed&&(s.isUnclosed=o.isUnclosed),i&&s.identifier&&(s.isProperty=i),s.check=n.check,s}.bind(this);;){if(!this.input.length)return this.nextLine(n)?i("(endline)",""):this.exhausted?null:(this.exhausted=!0,i("(end)",""));if(t=this.next(n))switch(t.type){case m:return this.triggerAsync("String",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value,quote:t.quote},n,(function(){return!0})),i("(string)",t.value,null,t);case b:return this.trigger("TemplateHead",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),i("(template)",t.value,null,t);case _:return this.trigger("TemplateMiddle",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),i("(template middle)",t.value,null,t);case w:return this.trigger("TemplateTail",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),i("(template tail)",t.value,null,t);case x:return this.trigger("NoSubstTemplate",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),i("(no subst template)",t.value,null,t);case p:this.triggerAsync("Identifier",{line:this.line,char:this.char,from:this.from,name:t.value,raw_name:t.text,isProperty:"."===a.tokens.curr.id},n,(function(){return!0}));case g:return i("(identifier)",t.value,"."===a.tokens.curr.id,t);case h:return t.isMalformed&&this.trigger("error",{code:"E067",line:this.line,character:this.char,data:[t.value]}),this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["0x-"]},n,(function(){return 16===t.base&&a.jsonMode})),this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},n,(function(){return a.isStrict()&&8===t.base&&t.isLegacy})),this.triggerAsync("error",{code:"E068",line:this.line,character:this.char},n,(function(){return a.isStrict()&&t.isNonOctal})),this.trigger("Number",{line:this.line,char:this.char,from:this.from,value:t.value,base:t.base,isMalformed:t.isMalformed}),i("(number)",t.value);case y:return i("(regexp)",t.value);case v:if(t.isSpecial)return{id:"(comment)",value:t.value,body:t.body,type:t.commentType,isSpecial:t.isSpecial,line:this.line,character:this.char,from:this.from};break;default:return i("(punctuator)",t.value)}else this.input.length&&(this.trigger("error",{code:"E024",line:this.line,character:this.char,data:[this.peek()]}),this.input="")}}},t.Lexer=S,t.Context=k},function(e,t,n){"use strict";function r(){this._stack=[]}Object.defineProperty(r.prototype,"length",{get:function(){return this._stack.length}}),r.prototype.push=function(){this._stack.push(null)},r.prototype.pop=function(){this._stack.pop()},r.prototype.set=function(e){this._stack[this.length-1]=e},r.prototype.infer=function(){var e,t=this._stack[this.length-1],n="";return t&&"class"!==t.type||(t=this._stack[this.length-2]),t?"(string)"!==(e=t.type)&&"(number)"!==e&&"(identifier)"!==e&&"default"!==e?"(expression)":(t.accessorType&&(n=t.accessorType+" "),n+t.value):"(empty)"},e.exports=r},function(e,t){for(var n=[],r=0;r<128;r++)n[r]=36===r||r>=65&&r<=90||95===r||r>=97&&r<=122;var i=[];for(r=0;r<128;r++)i[r]=n[r]||r>=48&&r<=57;e.exports={asciiIdentifierStartTable:n,asciiIdentifierPartTable:i}},function(e,t){var n="170,181,186,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,710,711,712,713,714,715,716,717,718,719,720,721,736,737,738,739,740,748,750,880,881,882,883,884,886,887,890,891,892,893,895,902,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1369,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1519,1520,1521,1522,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1749,1765,1766,1774,1775,1786,1787,1788,1791,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2230,2231,2232,2233,2234,2235,2236,2237,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2365,2384,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2437,2438,2439,2440,2441,2442,2443,2444,2447,2448,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2474,2475,2476,2477,2478,2479,2480,2482,2486,2487,2488,2489,2493,2510,2524,2525,2527,2528,2529,2544,2545,2556,2565,2566,2567,2568,2569,2570,2575,2576,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600,2602,2603,2604,2605,2606,2607,2608,2610,2611,2613,2614,2616,2617,2649,2650,2651,2652,2654,2674,2675,2676,2693,2694,2695,2696,2697,2698,2699,2700,2701,2703,2704,2705,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,2721,2722,2723,2724,2725,2726,2727,2728,2730,2731,2732,2733,2734,2735,2736,2738,2739,2741,2742,2743,2744,2745,2749,2768,2784,2785,2809,2821,2822,2823,2824,2825,2826,2827,2828,2831,2832,2835,2836,2837,2838,2839,2840,2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,2858,2859,2860,2861,2862,2863,2864,2866,2867,2869,2870,2871,2872,2873,2877,2908,2909,2911,2912,2913,2929,2947,2949,2950,2951,2952,2953,2954,2958,2959,2960,2962,2963,2964,2965,2969,2970,2972,2974,2975,2979,2980,2984,2985,2986,2990,2991,2992,2993,2994,2995,2996,2997,2998,2999,3000,3001,3024,3077,3078,3079,3080,3081,3082,3083,3084,3086,3087,3088,3090,3091,3092,3093,3094,3095,3096,3097,3098,3099,3100,3101,3102,3103,3104,3105,3106,3107,3108,3109,3110,3111,3112,3114,3115,3116,3117,3118,3119,3120,3121,3122,3123,3124,3125,3126,3127,3128,3129,3133,3160,3161,3162,3168,3169,3200,3205,3206,3207,3208,3209,3210,3211,3212,3214,3215,3216,3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,3234,3235,3236,3237,3238,3239,3240,3242,3243,3244,3245,3246,3247,3248,3249,3250,3251,3253,3254,3255,3256,3257,3261,3294,3296,3297,3313,3314,3333,3334,3335,3336,3337,3338,3339,3340,3342,3343,3344,3346,3347,3348,3349,3350,3351,3352,3353,3354,3355,3356,3357,3358,3359,3360,3361,3362,3363,3364,3365,3366,3367,3368,3369,3370,3371,3372,3373,3374,3375,3376,3377,3378,3379,3380,3381,3382,3383,3384,3385,3386,3389,3406,3412,3413,3414,3423,3424,3425,3450,3451,3452,3453,3454,3455,3461,3462,3463,3464,3465,3466,3467,3468,3469,3470,3471,3472,3473,3474,3475,3476,3477,3478,3482,3483,3484,3485,3486,3487,3488,3489,3490,3491,3492,3493,3494,3495,3496,3497,3498,3499,3500,3501,3502,3503,3504,3505,3507,3508,3509,3510,3511,3512,3513,3514,3515,3517,3520,3521,3522,3523,3524,3525,3526,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3634,3635,3648,3649,3650,3651,3652,3653,3654,3713,3714,3716,3719,3720,3722,3725,3732,3733,3734,3735,3737,3738,3739,3740,3741,3742,3743,3745,3746,3747,3749,3751,3754,3755,3757,3758,3759,3760,3762,3763,3773,3776,3777,3778,3779,3780,3782,3804,3805,3806,3807,3840,3904,3905,3906,3907,3908,3909,3910,3911,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3936,3937,3938,3939,3940,3941,3942,3943,3944,3945,3946,3947,3948,3976,3977,3978,3979,3980,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4159,4176,4177,4178,4179,4180,4181,4186,4187,4188,4189,4193,4197,4198,4206,4207,4208,4213,4214,4215,4216,4217,4218,4219,4220,4221,4222,4223,4224,4225,4238,4256,4257,4258,4259,4260,4261,4262,4263,4264,4265,4266,4267,4268,4269,4270,4271,4272,4273,4274,4275,4276,4277,4278,4279,4280,4281,4282,4283,4284,4285,4286,4287,4288,4289,4290,4291,4292,4293,4295,4301,4304,4305,4306,4307,4308,4309,4310,4311,4312,4313,4314,4315,4316,4317,4318,4319,4320,4321,4322,4323,4324,4325,4326,4327,4328,4329,4330,4331,4332,4333,4334,4335,4336,4337,4338,4339,4340,4341,4342,4343,4344,4345,4346,4348,4349,4350,4351,4352,4353,4354,4355,4356,4357,4358,4359,4360,4361,4362,4363,4364,4365,4366,4367,4368,4369,4370,4371,4372,4373,4374,4375,4376,4377,4378,4379,4380,4381,4382,4383,4384,4385,4386,4387,4388,4389,4390,4391,4392,4393,4394,4395,4396,4397,4398,4399,4400,4401,4402,4403,4404,4405,4406,4407,4408,4409,4410,4411,4412,4413,4414,4415,4416,4417,4418,4419,4420,4421,4422,4423,4424,4425,4426,4427,4428,4429,4430,4431,4432,4433,4434,4435,4436,4437,4438,4439,4440,4441,4442,4443,4444,4445,4446,4447,4448,4449,4450,4451,4452,4453,4454,4455,4456,4457,4458,4459,4460,4461,4462,4463,4464,4465,4466,4467,4468,4469,4470,4471,4472,4473,4474,4475,4476,4477,4478,4479,4480,4481,4482,4483,4484,4485,4486,4487,4488,4489,4490,4491,4492,4493,4494,4495,4496,4497,4498,4499,4500,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,4527,4528,4529,4530,4531,4532,4533,4534,4535,4536,4537,4538,4539,4540,4541,4542,4543,4544,4545,4546,4547,4548,4549,4550,4551,4552,4553,4554,4555,4556,4557,4558,4559,4560,4561,4562,4563,4564,4565,4566,4567,4568,4569,4570,4571,4572,4573,4574,4575,4576,4577,4578,4579,4580,4581,4582,4583,4584,4585,4586,4587,4588,4589,4590,4591,4592,4593,4594,4595,4596,4597,4598,4599,4600,4601,4602,4603,4604,4605,4606,4607,4608,4609,4610,4611,4612,4613,4614,4615,4616,4617,4618,4619,4620,4621,4622,4623,4624,4625,4626,4627,4628,4629,4630,4631,4632,4633,4634,4635,4636,4637,4638,4639,4640,4641,4642,4643,4644,4645,4646,4647,4648,4649,4650,4651,4652,4653,4654,4655,4656,4657,4658,4659,4660,4661,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,4673,4674,4675,4676,4677,4678,4679,4680,4682,4683,4684,4685,4688,4689,4690,4691,4692,4693,4694,4696,4698,4699,4700,4701,4704,4705,4706,4707,4708,4709,4710,4711,4712,4713,4714,4715,4716,4717,4718,4719,4720,4721,4722,4723,4724,4725,4726,4727,4728,4729,4730,4731,4732,4733,4734,4735,4736,4737,4738,4739,4740,4741,4742,4743,4744,4746,4747,4748,4749,4752,4753,4754,4755,4756,4757,4758,4759,4760,4761,4762,4763,4764,4765,4766,4767,4768,4769,4770,4771,4772,4773,4774,4775,4776,4777,4778,4779,4780,4781,4782,4783,4784,4786,4787,4788,4789,4792,4793,4794,4795,4796,4797,4798,4800,4802,4803,4804,4805,4808,4809,4810,4811,4812,4813,4814,4815,4816,4817,4818,4819,4820,4821,4822,4824,4825,4826,4827,4828,4829,4830,4831,4832,4833,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,4861,4862,4863,4864,4865,4866,4867,4868,4869,4870,4871,4872,4873,4874,4875,4876,4877,4878,4879,4880,4882,4883,4884,4885,4888,4889,4890,4891,4892,4893,4894,4895,4896,4897,4898,4899,4900,4901,4902,4903,4904,4905,4906,4907,4908,4909,4910,4911,4912,4913,4914,4915,4916,4917,4918,4919,4920,4921,4922,4923,4924,4925,4926,4927,4928,4929,4930,4931,4932,4933,4934,4935,4936,4937,4938,4939,4940,4941,4942,4943,4944,4945,4946,4947,4948,4949,4950,4951,4952,4953,4954,4992,4993,4994,4995,4996,4997,4998,4999,5000,5001,5002,5003,5004,5005,5006,5007,5024,5025,5026,5027,5028,5029,5030,5031,5032,5033,5034,5035,5036,5037,5038,5039,5040,5041,5042,5043,5044,5045,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,5056,5057,5058,5059,5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,5070,5071,5072,5073,5074,5075,5076,5077,5078,5079,5080,5081,5082,5083,5084,5085,5086,5087,5088,5089,5090,5091,5092,5093,5094,5095,5096,5097,5098,5099,5100,5101,5102,5103,5104,5105,5106,5107,5108,5109,5112,5113,5114,5115,5116,5117,5121,5122,5123,5124,5125,5126,5127,5128,5129,5130,5131,5132,5133,5134,5135,5136,5137,5138,5139,5140,5141,5142,5143,5144,5145,5146,5147,5148,5149,5150,5151,5152,5153,5154,5155,5156,5157,5158,5159,5160,5161,5162,5163,5164,5165,5166,5167,5168,5169,5170,5171,5172,5173,5174,5175,5176,5177,5178,5179,5180,5181,5182,5183,5184,5185,5186,5187,5188,5189,5190,5191,5192,5193,5194,5195,5196,5197,5198,5199,5200,5201,5202,5203,5204,5205,5206,5207,5208,5209,5210,5211,5212,5213,5214,5215,5216,5217,5218,5219,5220,5221,5222,5223,5224,5225,5226,5227,5228,5229,5230,5231,5232,5233,5234,5235,5236,5237,5238,5239,5240,5241,5242,5243,5244,5245,5246,5247,5248,5249,5250,5251,5252,5253,5254,5255,5256,5257,5258,5259,5260,5261,5262,5263,5264,5265,5266,5267,5268,5269,5270,5271,5272,5273,5274,5275,5276,5277,5278,5279,5280,5281,5282,5283,5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,5294,5295,5296,5297,5298,5299,5300,5301,5302,5303,5304,5305,5306,5307,5308,5309,5310,5311,5312,5313,5314,5315,5316,5317,5318,5319,5320,5321,5322,5323,5324,5325,5326,5327,5328,5329,5330,5331,5332,5333,5334,5335,5336,5337,5338,5339,5340,5341,5342,5343,5344,5345,5346,5347,5348,5349,5350,5351,5352,5353,5354,5355,5356,5357,5358,5359,5360,5361,5362,5363,5364,5365,5366,5367,5368,5369,5370,5371,5372,5373,5374,5375,5376,5377,5378,5379,5380,5381,5382,5383,5384,5385,5386,5387,5388,5389,5390,5391,5392,5393,5394,5395,5396,5397,5398,5399,5400,5401,5402,5403,5404,5405,5406,5407,5408,5409,5410,5411,5412,5413,5414,5415,5416,5417,5418,5419,5420,5421,5422,5423,5424,5425,5426,5427,5428,5429,5430,5431,5432,5433,5434,5435,5436,5437,5438,5439,5440,5441,5442,5443,5444,5445,5446,5447,5448,5449,5450,5451,5452,5453,5454,5455,5456,5457,5458,5459,5460,5461,5462,5463,5464,5465,5466,5467,5468,5469,5470,5471,5472,5473,5474,5475,5476,5477,5478,5479,5480,5481,5482,5483,5484,5485,5486,5487,5488,5489,5490,5491,5492,5493,5494,5495,5496,5497,5498,5499,5500,5501,5502,5503,5504,5505,5506,5507,5508,5509,5510,5511,5512,5513,5514,5515,5516,5517,5518,5519,5520,5521,5522,5523,5524,5525,5526,5527,5528,5529,5530,5531,5532,5533,5534,5535,5536,5537,5538,5539,5540,5541,5542,5543,5544,5545,5546,5547,5548,5549,5550,5551,5552,5553,5554,5555,5556,5557,5558,5559,5560,5561,5562,5563,5564,5565,5566,5567,5568,5569,5570,5571,5572,5573,5574,5575,5576,5577,5578,5579,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5614,5615,5616,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5646,5647,5648,5649,5650,5651,5652,5653,5654,5655,5656,5657,5658,5659,5660,5661,5662,5663,5664,5665,5666,5667,5668,5669,5670,5671,5672,5673,5674,5675,5676,5677,5678,5679,5680,5681,5682,5683,5684,5685,5686,5687,5688,5689,5690,5691,5692,5693,5694,5695,5696,5697,5698,5699,5700,5701,5702,5703,5704,5705,5706,5707,5708,5709,5710,5711,5712,5713,5714,5715,5716,5717,5718,5719,5720,5721,5722,5723,5724,5725,5726,5727,5728,5729,5730,5731,5732,5733,5734,5735,5736,5737,5738,5739,5740,5743,5744,5745,5746,5747,5748,5749,5750,5751,5752,5753,5754,5755,5756,5757,5758,5759,5761,5762,5763,5764,5765,5766,5767,5768,5769,5770,5771,5772,5773,5774,5775,5776,5777,5778,5779,5780,5781,5782,5783,5784,5785,5786,5792,5793,5794,5795,5796,5797,5798,5799,5800,5801,5802,5803,5804,5805,5806,5807,5808,5809,5810,5811,5812,5813,5814,5815,5816,5817,5818,5819,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5830,5831,5832,5833,5834,5835,5836,5837,5838,5839,5840,5841,5842,5843,5844,5845,5846,5847,5848,5849,5850,5851,5852,5853,5854,5855,5856,5857,5858,5859,5860,5861,5862,5863,5864,5865,5866,5870,5871,5872,5873,5874,5875,5876,5877,5878,5879,5880,5888,5889,5890,5891,5892,5893,5894,5895,5896,5897,5898,5899,5900,5902,5903,5904,5905,5920,5921,5922,5923,5924,5925,5926,5927,5928,5929,5930,5931,5932,5933,5934,5935,5936,5937,5952,5953,5954,5955,5956,5957,5958,5959,5960,5961,5962,5963,5964,5965,5966,5967,5968,5969,5984,5985,5986,5987,5988,5989,5990,5991,5992,5993,5994,5995,5996,5998,5999,6000,6016,6017,6018,6019,6020,6021,6022,6023,6024,6025,6026,6027,6028,6029,6030,6031,6032,6033,6034,6035,6036,6037,6038,6039,6040,6041,6042,6043,6044,6045,6046,6047,6048,6049,6050,6051,6052,6053,6054,6055,6056,6057,6058,6059,6060,6061,6062,6063,6064,6065,6066,6067,6103,6108,6176,6177,6178,6179,6180,6181,6182,6183,6184,6185,6186,6187,6188,6189,6190,6191,6192,6193,6194,6195,6196,6197,6198,6199,6200,6201,6202,6203,6204,6205,6206,6207,6208,6209,6210,6211,6212,6213,6214,6215,6216,6217,6218,6219,6220,6221,6222,6223,6224,6225,6226,6227,6228,6229,6230,6231,6232,6233,6234,6235,6236,6237,6238,6239,6240,6241,6242,6243,6244,6245,6246,6247,6248,6249,6250,6251,6252,6253,6254,6255,6256,6257,6258,6259,6260,6261,6262,6263,6264,6272,6273,6274,6275,6276,6277,6278,6279,6280,6281,6282,6283,6284,6285,6286,6287,6288,6289,6290,6291,6292,6293,6294,6295,6296,6297,6298,6299,6300,6301,6302,6303,6304,6305,6306,6307,6308,6309,6310,6311,6312,6314,6320,6321,6322,6323,6324,6325,6326,6327,6328,6329,6330,6331,6332,6333,6334,6335,6336,6337,6338,6339,6340,6341,6342,6343,6344,6345,6346,6347,6348,6349,6350,6351,6352,6353,6354,6355,6356,6357,6358,6359,6360,6361,6362,6363,6364,6365,6366,6367,6368,6369,6370,6371,6372,6373,6374,6375,6376,6377,6378,6379,6380,6381,6382,6383,6384,6385,6386,6387,6388,6389,6400,6401,6402,6403,6404,6405,6406,6407,6408,6409,6410,6411,6412,6413,6414,6415,6416,6417,6418,6419,6420,6421,6422,6423,6424,6425,6426,6427,6428,6429,6430,6480,6481,6482,6483,6484,6485,6486,6487,6488,6489,6490,6491,6492,6493,6494,6495,6496,6497,6498,6499,6500,6501,6502,6503,6504,6505,6506,6507,6508,6509,6512,6513,6514,6515,6516,6528,6529,6530,6531,6532,6533,6534,6535,6536,6537,6538,6539,6540,6541,6542,6543,6544,6545,6546,6547,6548,6549,6550,6551,6552,6553,6554,6555,6556,6557,6558,6559,6560,6561,6562,6563,6564,6565,6566,6567,6568,6569,6570,6571,6576,6577,6578,6579,6580,6581,6582,6583,6584,6585,6586,6587,6588,6589,6590,6591,6592,6593,6594,6595,6596,6597,6598,6599,6600,6601,6656,6657,6658,6659,6660,6661,6662,6663,6664,6665,6666,6667,6668,6669,6670,6671,6672,6673,6674,6675,6676,6677,6678,6688,6689,6690,6691,6692,6693,6694,6695,6696,6697,6698,6699,6700,6701,6702,6703,6704,6705,6706,6707,6708,6709,6710,6711,6712,6713,6714,6715,6716,6717,6718,6719,6720,6721,6722,6723,6724,6725,6726,6727,6728,6729,6730,6731,6732,6733,6734,6735,6736,6737,6738,6739,6740,6823,6917,6918,6919,6920,6921,6922,6923,6924,6925,6926,6927,6928,6929,6930,6931,6932,6933,6934,6935,6936,6937,6938,6939,6940,6941,6942,6943,6944,6945,6946,6947,6948,6949,6950,6951,6952,6953,6954,6955,6956,6957,6958,6959,6960,6961,6962,6963,6981,6982,6983,6984,6985,6986,6987,7043,7044,7045,7046,7047,7048,7049,7050,7051,7052,7053,7054,7055,7056,7057,7058,7059,7060,7061,7062,7063,7064,7065,7066,7067,7068,7069,7070,7071,7072,7086,7087,7098,7099,7100,7101,7102,7103,7104,7105,7106,7107,7108,7109,7110,7111,7112,7113,7114,7115,7116,7117,7118,7119,7120,7121,7122,7123,7124,7125,7126,7127,7128,7129,7130,7131,7132,7133,7134,7135,7136,7137,7138,7139,7140,7141,7168,7169,7170,7171,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181,7182,7183,7184,7185,7186,7187,7188,7189,7190,7191,7192,7193,7194,7195,7196,7197,7198,7199,7200,7201,7202,7203,7245,7246,7247,7258,7259,7260,7261,7262,7263,7264,7265,7266,7267,7268,7269,7270,7271,7272,7273,7274,7275,7276,7277,7278,7279,7280,7281,7282,7283,7284,7285,7286,7287,7288,7289,7290,7291,7292,7293,7296,7297,7298,7299,7300,7301,7302,7303,7304,7312,7313,7314,7315,7316,7317,7318,7319,7320,7321,7322,7323,7324,7325,7326,7327,7328,7329,7330,7331,7332,7333,7334,7335,7336,7337,7338,7339,7340,7341,7342,7343,7344,7345,7346,7347,7348,7349,7350,7351,7352,7353,7354,7357,7358,7359,7401,7402,7403,7404,7406,7407,7408,7409,7413,7414,7424,7425,7426,7427,7428,7429,7430,7431,7432,7433,7434,7435,7436,7437,7438,7439,7440,7441,7442,7443,7444,7445,7446,7447,7448,7449,7450,7451,7452,7453,7454,7455,7456,7457,7458,7459,7460,7461,7462,7463,7464,7465,7466,7467,7468,7469,7470,7471,7472,7473,7474,7475,7476,7477,7478,7479,7480,7481,7482,7483,7484,7485,7486,7487,7488,7489,7490,7491,7492,7493,7494,7495,7496,7497,7498,7499,7500,7501,7502,7503,7504,7505,7506,7507,7508,7509,7510,7511,7512,7513,7514,7515,7516,7517,7518,7519,7520,7521,7522,7523,7524,7525,7526,7527,7528,7529,7530,7531,7532,7533,7534,7535,7536,7537,7538,7539,7540,7541,7542,7543,7544,7545,7546,7547,7548,7549,7550,7551,7552,7553,7554,7555,7556,7557,7558,7559,7560,7561,7562,7563,7564,7565,7566,7567,7568,7569,7570,7571,7572,7573,7574,7575,7576,7577,7578,7579,7580,7581,7582,7583,7584,7585,7586,7587,7588,7589,7590,7591,7592,7593,7594,7595,7596,7597,7598,7599,7600,7601,7602,7603,7604,7605,7606,7607,7608,7609,7610,7611,7612,7613,7614,7615,7680,7681,7682,7683,7684,7685,7686,7687,7688,7689,7690,7691,7692,7693,7694,7695,7696,7697,7698,7699,7700,7701,7702,7703,7704,7705,7706,7707,7708,7709,7710,7711,7712,7713,7714,7715,7716,7717,7718,7719,7720,7721,7722,7723,7724,7725,7726,7727,7728,7729,7730,7731,7732,7733,7734,7735,7736,7737,7738,7739,7740,7741,7742,7743,7744,7745,7746,7747,7748,7749,7750,7751,7752,7753,7754,7755,7756,7757,7758,7759,7760,7761,7762,7763,7764,7765,7766,7767,7768,7769,7770,7771,7772,7773,7774,7775,7776,7777,7778,7779,7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7792,7793,7794,7795,7796,7797,7798,7799,7800,7801,7802,7803,7804,7805,7806,7807,7808,7809,7810,7811,7812,7813,7814,7815,7816,7817,7818,7819,7820,7821,7822,7823,7824,7825,7826,7827,7828,7829,7830,7831,7832,7833,7834,7835,7836,7837,7838,7839,7840,7841,7842,7843,7844,7845,7846,7847,7848,7849,7850,7851,7852,7853,7854,7855,7856,7857,7858,7859,7860,7861,7862,7863,7864,7865,7866,7867,7868,7869,7870,7871,7872,7873,7874,7875,7876,7877,7878,7879,7880,7881,7882,7883,7884,7885,7886,7887,7888,7889,7890,7891,7892,7893,7894,7895,7896,7897,7898,7899,7900,7901,7902,7903,7904,7905,7906,7907,7908,7909,7910,7911,7912,7913,7914,7915,7916,7917,7918,7919,7920,7921,7922,7923,7924,7925,7926,7927,7928,7929,7930,7931,7932,7933,7934,7935,7936,7937,7938,7939,7940,7941,7942,7943,7944,7945,7946,7947,7948,7949,7950,7951,7952,7953,7954,7955,7956,7957,7960,7961,7962,7963,7964,7965,7968,7969,7970,7971,7972,7973,7974,7975,7976,7977,7978,7979,7980,7981,7982,7983,7984,7985,7986,7987,7988,7989,7990,7991,7992,7993,7994,7995,7996,7997,7998,7999,8000,8001,8002,8003,8004,8005,8008,8009,8010,8011,8012,8013,8016,8017,8018,8019,8020,8021,8022,8023,8025,8027,8029,8031,8032,8033,8034,8035,8036,8037,8038,8039,8040,8041,8042,8043,8044,8045,8046,8047,8048,8049,8050,8051,8052,8053,8054,8055,8056,8057,8058,8059,8060,8061,8064,8065,8066,8067,8068,8069,8070,8071,8072,8073,8074,8075,8076,8077,8078,8079,8080,8081,8082,8083,8084,8085,8086,8087,8088,8089,8090,8091,8092,8093,8094,8095,8096,8097,8098,8099,8100,8101,8102,8103,8104,8105,8106,8107,8108,8109,8110,8111,8112,8113,8114,8115,8116,8118,8119,8120,8121,8122,8123,8124,8126,8130,8131,8132,8134,8135,8136,8137,8138,8139,8140,8144,8145,8146,8147,8150,8151,8152,8153,8154,8155,8160,8161,8162,8163,8164,8165,8166,8167,8168,8169,8170,8171,8172,8178,8179,8180,8182,8183,8184,8185,8186,8187,8188,8305,8319,8336,8337,8338,8339,8340,8341,8342,8343,8344,8345,8346,8347,8348,8450,8455,8458,8459,8460,8461,8462,8463,8464,8465,8466,8467,8469,8472,8473,8474,8475,8476,8477,8484,8486,8488,8490,8491,8492,8493,8494,8495,8496,8497,8498,8499,8500,8501,8502,8503,8504,8505,8508,8509,8510,8511,8517,8518,8519,8520,8521,8526,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,8554,8555,8556,8557,8558,8559,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8570,8571,8572,8573,8574,8575,8576,8577,8578,8579,8580,8581,8582,8583,8584,11264,11265,11266,11267,11268,11269,11270,11271,11272,11273,11274,11275,11276,11277,11278,11279,11280,11281,11282,11283,11284,11285,11286,11287,11288,11289,11290,11291,11292,11293,11294,11295,11296,11297,11298,11299,11300,11301,11302,11303,11304,11305,11306,11307,11308,11309,11310,11312,11313,11314,11315,11316,11317,11318,11319,11320,11321,11322,11323,11324,11325,11326,11327,11328,11329,11330,11331,11332,11333,11334,11335,11336,11337,11338,11339,11340,11341,11342,11343,11344,11345,11346,11347,11348,11349,11350,11351,11352,11353,11354,11355,11356,11357,11358,11360,11361,11362,11363,11364,11365,11366,11367,11368,11369,11370,11371,11372,11373,11374,11375,11376,11377,11378,11379,11380,11381,11382,11383,11384,11385,11386,11387,11388,11389,11390,11391,11392,11393,11394,11395,11396,11397,11398,11399,11400,11401,11402,11403,11404,11405,11406,11407,11408,11409,11410,11411,11412,11413,11414,11415,11416,11417,11418,11419,11420,11421,11422,11423,11424,11425,11426,11427,11428,11429,11430,11431,11432,11433,11434,11435,11436,11437,11438,11439,11440,11441,11442,11443,11444,11445,11446,11447,11448,11449,11450,11451,11452,11453,11454,11455,11456,11457,11458,11459,11460,11461,11462,11463,11464,11465,11466,11467,11468,11469,11470,11471,11472,11473,11474,11475,11476,11477,11478,11479,11480,11481,11482,11483,11484,11485,11486,11487,11488,11489,11490,11491,11492,11499,11500,11501,11502,11506,11507,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11557,11559,11565,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11631,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11661,11662,11663,11664,11665,11666,11667,11668,11669,11670,11680,11681,11682,11683,11684,11685,11686,11688,11689,11690,11691,11692,11693,11694,11696,11697,11698,11699,11700,11701,11702,11704,11705,11706,11707,11708,11709,11710,11712,11713,11714,11715,11716,11717,11718,11720,11721,11722,11723,11724,11725,11726,11728,11729,11730,11731,11732,11733,11734,11736,11737,11738,11739,11740,11741,11742,12293,12294,12295,12321,12322,12323,12324,12325,12326,12327,12328,12329,12337,12338,12339,12340,12341,12344,12345,12346,12347,12348,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,12436,12437,12438,12443,12444,12445,12446,12447,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,12535,12536,12537,12538,12540,12541,12542,12543,12549,12550,12551,12552,12553,12554,12555,12556,12557,12558,12559,12560,12561,12562,12563,12564,12565,12566,12567,12568,12569,12570,12571,12572,12573,12574,12575,12576,12577,12578,12579,12580,12581,12582,12583,12584,12585,12586,12587,12588,12589,12590,12591,12593,12594,12595,12596,12597,12598,12599,12600,12601,12602,12603,12604,12605,12606,12607,12608,12609,12610,12611,12612,12613,12614,12615,12616,12617,12618,12619,12620,12621,12622,12623,12624,12625,12626,12627,12628,12629,12630,12631,12632,12633,12634,12635,12636,12637,12638,12639,12640,12641,12642,12643,12644,12645,12646,12647,12648,12649,12650,12651,12652,12653,12654,12655,12656,12657,12658,12659,12660,12661,12662,12663,12664,12665,12666,12667,12668,12669,12670,12671,12672,12673,12674,12675,12676,12677,12678,12679,12680,12681,12682,12683,12684,12685,12686,12704,12705,12706,12707,12708,12709,12710,12711,12712,12713,12714,12715,12716,12717,12718,12719,12720,12721,12722,12723,12724,12725,12726,12727,12728,12729,12730,12784,12785,12786,12787,12788,12789,12790,12791,12792,12793,12794,12795,12796,12797,12798,12799,13312,13313,13314,13315,13316,13317,13318,13319,13320,13321,13322,13323,13324,13325,13326,13327,13328,13329,13330,13331,13332,13333,13334,13335,13336,13337,13338,13339,13340,13341,13342,13343,13344,13345,13346,13347,13348,13349,13350,13351,13352,13353,13354,13355,13356,13357,13358,13359,13360,13361,13362,13363,13364,13365,13366,13367,13368,13369,13370,13371,13372,13373,13374,13375,13376,13377,13378,13379,13380,13381,13382,13383,13384,13385,13386,13387,13388,13389,13390,13391,13392,13393,13394,13395,13396,13397,13398,13399,13400,13401,13402,13403,13404,13405,13406,13407,13408,13409,13410,13411,13412,13413,13414,13415,13416,13417,13418,13419,13420,13421,13422,13423,13424,13425,13426,13427,13428,13429,13430,13431,13432,13433,13434,13435,13436,13437,13438,13439,13440,13441,13442,13443,13444,13445,13446,13447,13448,13449,13450,13451,13452,13453,13454,13455,13456,13457,13458,13459,13460,13461,13462,13463,13464,13465,13466,13467,13468,13469,13470,13471,13472,13473,13474,13475,13476,13477,13478,13479,13480,13481,13482,13483,13484,13485,13486,13487,13488,13489,13490,13491,13492,13493,13494,13495,13496,13497,13498,13499,13500,13501,13502,13503,13504,13505,13506,13507,13508,13509,13510,13511,13512,13513,13514,13515,13516,13517,13518,13519,13520,13521,13522,13523,13524,13525,13526,13527,13528,13529,13530,13531,13532,13533,13534,13535,13536,13537,13538,13539,13540,13541,13542,13543,13544,13545,13546,13547,13548,13549,13550,13551,13552,13553,13554,13555,13556,13557,13558,13559,13560,13561,13562,13563,13564,13565,13566,13567,13568,13569,13570,13571,13572,13573,13574,13575,13576,13577,13578,13579,13580,13581,13582,13583,13584,13585,13586,13587,13588,13589,13590,13591,13592,13593,13594,13595,13596,13597,13598,13599,13600,13601,13602,13603,13604,13605,13606,13607,13608,13609,13610,13611,13612,13613,13614,13615,13616,13617,13618,13619,13620,13621,13622,13623,13624,13625,13626,13627,13628,13629,13630,13631,13632,13633,13634,13635,13636,13637,13638,13639,13640,13641,13642,13643,13644,13645,13646,13647,13648,13649,13650,13651,13652,13653,13654,13655,13656,13657,13658,13659,13660,13661,13662,13663,13664,13665,13666,13667,13668,13669,13670,13671,13672,13673,13674,13675,13676,13677,13678,13679,13680,13681,13682,13683,13684,13685,13686,13687,13688,13689,13690,13691,13692,13693,13694,13695,13696,13697,13698,13699,13700,13701,13702,13703,13704,13705,13706,13707,13708,13709,13710,13711,13712,13713,13714,13715,13716,13717,13718,13719,13720,13721,13722,13723,13724,13725,13726,13727,13728,13729,13730,13731,13732,13733,13734,13735,13736,13737,13738,13739,13740,13741,13742,13743,13744,13745,13746,13747,13748,13749,13750,13751,13752,13753,13754,13755,13756,13757,13758,13759,13760,13761,13762,13763,13764,13765,13766,13767,13768,13769,13770,13771,13772,13773,13774,13775,13776,13777,13778,13779,13780,13781,13782,13783,13784,13785,13786,13787,13788,13789,13790,13791,13792,13793,13794,13795,13796,13797,13798,13799,13800,13801,13802,13803,13804,13805,13806,13807,13808,13809,13810,13811,13812,13813,13814,13815,13816,13817,13818,13819,13820,13821,13822,13823,13824,13825,13826,13827,13828,13829,13830,13831,13832,13833,13834,13835,13836,13837,13838,13839,13840,13841,13842,13843,13844,13845,13846,13847,13848,13849,13850,13851,13852,13853,13854,13855,13856,13857,13858,13859,13860,13861,13862,13863,13864,13865,13866,13867,13868,13869,13870,13871,13872,13873,13874,13875,13876,13877,13878,13879,13880,13881,13882,13883,13884,13885,13886,13887,13888,13889,13890,13891,13892,13893,13894,13895,13896,13897,13898,13899,13900,13901,13902,13903,13904,13905,13906,13907,13908,13909,13910,13911,13912,13913,13914,13915,13916,13917,13918,13919,13920,13921,13922,13923,13924,13925,13926,13927,13928,13929,13930,13931,13932,13933,13934,13935,13936,13937,13938,13939,13940,13941,13942,13943,13944,13945,13946,13947,13948,13949,13950,13951,13952,13953,13954,13955,13956,13957,13958,13959,13960,13961,13962,13963,13964,13965,13966,13967,13968,13969,13970,13971,13972,13973,13974,13975,13976,13977,13978,13979,13980,13981,13982,13983,13984,13985,13986,13987,13988,13989,13990,13991,13992,13993,13994,13995,13996,13997,13998,13999,14000,14001,14002,14003,14004,14005,14006,14007,14008,14009,14010,14011,14012,14013,14014,14015,14016,14017,14018,14019,14020,14021,14022,14023,14024,14025,14026,14027,14028,14029,14030,14031,14032,14033,14034,14035,14036,14037,14038,14039,14040,14041,14042,14043,14044,14045,14046,14047,14048,14049,14050,14051,14052,14053,14054,14055,14056,14057,14058,14059,14060,14061,14062,14063,14064,14065,14066,14067,14068,14069,14070,14071,14072,14073,14074,14075,14076,14077,14078,14079,14080,14081,14082,14083,14084,14085,14086,14087,14088,14089,14090,14091,14092,14093,14094,14095,14096,14097,14098,14099,14100,14101,14102,14103,14104,14105,14106,14107,14108,14109,14110,14111,14112,14113,14114,14115,14116,14117,14118,14119,14120,14121,14122,14123,14124,14125,14126,14127,14128,14129,14130,14131,14132,14133,14134,14135,14136,14137,14138,14139,14140,14141,14142,14143,14144,14145,14146,14147,14148,14149,14150,14151,14152,14153,14154,14155,14156,14157,14158,14159,14160,14161,14162,14163,14164,14165,14166,14167,14168,14169,14170,14171,14172,14173,14174,14175,14176,14177,14178,14179,14180,14181,14182,14183,14184,14185,14186,14187,14188,14189,14190,14191,14192,14193,14194,14195,14196,14197,14198,14199,14200,14201,14202,14203,14204,14205,14206,14207,14208,14209,14210,14211,14212,14213,14214,14215,14216,14217,14218,14219,14220,14221,14222,14223,14224,14225,14226,14227,14228,14229,14230,14231,14232,14233,14234,14235,14236,14237,14238,14239,14240,14241,14242,14243,14244,14245,14246,14247,14248,14249,14250,14251,14252,14253,14254,14255,14256,14257,14258,14259,14260,14261,14262,14263,14264,14265,14266,14267,14268,14269,14270,14271,14272,14273,14274,14275,14276,14277,14278,14279,14280,14281,14282,14283,14284,14285,14286,14287,14288,14289,14290,14291,14292,14293,14294,14295,14296,14297,14298,14299,14300,14301,14302,14303,14304,14305,14306,14307,14308,14309,14310,14311,14312,14313,14314,14315,14316,14317,14318,14319,14320,14321,14322,14323,14324,14325,14326,14327,14328,14329,14330,14331,14332,14333,14334,14335,14336,14337,14338,14339,14340,14341,14342,14343,14344,14345,14346,14347,14348,14349,14350,14351,14352,14353,14354,14355,14356,14357,14358,14359,14360,14361,14362,14363,14364,14365,14366,14367,14368,14369,14370,14371,14372,14373,14374,14375,14376,14377,14378,14379,14380,14381,14382,14383,14384,14385,14386,14387,14388,14389,14390,14391,14392,14393,14394,14395,14396,14397,14398,14399,14400,14401,14402,14403,14404,14405,14406,14407,14408,14409,14410,14411,14412,14413,14414,14415,14416,14417,14418,14419,14420,14421,14422,14423,14424,14425,14426,14427,14428,14429,14430,14431,14432,14433,14434,14435,14436,14437,14438,14439,14440,14441,14442,14443,14444,14445,14446,14447,14448,14449,14450,14451,14452,14453,14454,14455,14456,14457,14458,14459,14460,14461,14462,14463,14464,14465,14466,14467,14468,14469,14470,14471,14472,14473,14474,14475,14476,14477,14478,14479,14480,14481,14482,14483,14484,14485,14486,14487,14488,14489,14490,14491,14492,14493,14494,14495,14496,14497,14498,14499,14500,14501,14502,14503,14504,14505,14506,14507,14508,14509,14510,14511,14512,14513,14514,14515,14516,14517,14518,14519,14520,14521,14522,14523,14524,14525,14526,14527,14528,14529,14530,14531,14532,14533,14534,14535,14536,14537,14538,14539,14540,14541,14542,14543,14544,14545,14546,14547,14548,14549,14550,14551,14552,14553,14554,14555,14556,14557,14558,14559,14560,14561,14562,14563,14564,14565,14566,14567,14568,14569,14570,14571,14572,14573,14574,14575,14576,14577,14578,14579,14580,14581,14582,14583,14584,14585,14586,14587,14588,14589,14590,14591,14592,14593,14594,14595,14596,14597,14598,14599,14600,14601,14602,14603,14604,14605,14606,14607,14608,14609,14610,14611,14612,14613,14614,14615,14616,14617,14618,14619,14620,14621,14622,14623,14624,14625,14626,14627,14628,14629,14630,14631,14632,14633,14634,14635,14636,14637,14638,14639,14640,14641,14642,14643,14644,14645,14646,14647,14648,14649,14650,14651,14652,14653,14654,14655,14656,14657,14658,14659,14660,14661,14662,14663,14664,14665,14666,14667,14668,14669,14670,14671,14672,14673,14674,14675,14676,14677,14678,14679,14680,14681,14682,14683,14684,14685,14686,14687,14688,14689,14690,14691,14692,14693,14694,14695,14696,14697,14698,14699,14700,14701,14702,14703,14704,14705,14706,14707,14708,14709,14710,14711,14712,14713,14714,14715,14716,14717,14718,14719,14720,14721,14722,14723,14724,14725,14726,14727,14728,14729,14730,14731,14732,14733,14734,14735,14736,14737,14738,14739,14740,14741,14742,14743,14744,14745,14746,14747,14748,14749,14750,14751,14752,14753,14754,14755,14756,14757,14758,14759,14760,14761,14762,14763,14764,14765,14766,14767,14768,14769,14770,14771,14772,14773,14774,14775,14776,14777,14778,14779,14780,14781,14782,14783,14784,14785,14786,14787,14788,14789,14790,14791,14792,14793,14794,14795,14796,14797,14798,14799,14800,14801,14802,14803,14804,14805,14806,14807,14808,14809,14810,14811,14812,14813,14814,14815,14816,14817,14818,14819,14820,14821,14822,14823,14824,14825,14826,14827,14828,14829,14830,14831,14832,14833,14834,14835,14836,14837,14838,14839,14840,14841,14842,14843,14844,14845,14846,14847,14848,14849,14850,14851,14852,14853,14854,14855,14856,14857,14858,14859,14860,14861,14862,14863,14864,14865,14866,14867,14868,14869,14870,14871,14872,14873,14874,14875,14876,14877,14878,14879,14880,14881,14882,14883,14884,14885,14886,14887,14888,14889,14890,14891,14892,14893,14894,14895,14896,14897,14898,14899,14900,14901,14902,14903,14904,14905,14906,14907,14908,14909,14910,14911,14912,14913,14914,14915,14916,14917,14918,14919,14920,14921,14922,14923,14924,14925,14926,14927,14928,14929,14930,14931,14932,14933,14934,14935,14936,14937,14938,14939,14940,14941,14942,14943,14944,14945,14946,14947,14948,14949,14950,14951,14952,14953,14954,14955,14956,14957,14958,14959,14960,14961,14962,14963,14964,14965,14966,14967,14968,14969,14970,14971,14972,14973,14974,14975,14976,14977,14978,14979,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15013,15014,15015,15016,15017,15018,15019,15020,15021,15022,15023,15024,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15078,15079,15080,15081,15082,15083,15084,15085,15086,15087,15088,15089,15090,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15109,15110,15111,15112,15113,15114,15115,15116,15117,15118,15119,15120,15121,15122,15123,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15185,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15204,15205,15206,15207,15208,15209,15210,15211,15212,15213,15214,15215,15216,15217,15218,15219,15220,15221,15222,15223,15224,15225,15226,15227,15228,15229,15230,15231,15232,15233,15234,15235,15236,15237,15238,15239,15240,15241,15242,15243,15244,15245,15246,15247,15248,15249,15250,15251,15252,15253,15254,15255,15256,15257,15258,15259,15260,15261,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15284,15285,15286,15287,15288,15289,15290,15291,15292,15293,15294,15295,15296,15297,15298,15299,15300,15301,15302,15303,15304,15305,15306,15307,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15339,15340,15341,15342,15343,15344,15345,15346,15347,15348,15349,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15375,15376,15377,15378,15379,15380,15381,15382,15383,15384,15385,15386,15387,15388,15389,15390,15391,15392,15393,15394,15395,15396,15397,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15430,15431,15432,15433,15434,15435,15436,15437,15438,15439,15440,15441,15442,15443,15444,15445,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15460,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15521,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,15532,15533,15534,15535,15536,15537,15538,15539,15540,15541,15542,15543,15544,15545,15546,15547,15548,15549,15550,15551,15552,15553,15554,15555,15556,15557,15558,15559,15560,15561,15562,15563,15564,15565,15566,15567,15568,15569,15570,15571,15572,15573,15574,15575,15576,15577,15578,15579,15580,15581,15582,15583,15584,15585,15586,15587,15588,15589,15590,15591,15592,15593,15594,15595,15596,15597,15598,15599,15600,15601,15602,15603,15604,15605,15606,15607,15608,15609,15610,15611,15612,15613,15614,15615,15616,15617,15618,15619,15620,15621,15622,15623,15624,15625,15626,15627,15628,15629,15630,15631,15632,15633,15634,15635,15636,15637,15638,15639,15640,15641,15642,15643,15644,15645,15646,15647,15648,15649,15650,15651,15652,15653,15654,15655,15656,15657,15658,15659,15660,15661,15662,15663,15664,15665,15666,15667,15668,15669,15670,15671,15672,15673,15674,15675,15676,15677,15678,15679,15680,15681,15682,15683,15684,15685,15686,15687,15688,15689,15690,15691,15692,15693,15694,15695,15696,15697,15698,15699,15700,15701,15702,15703,15704,15705,15706,15707,15708,15709,15710,15711,15712,15713,15714,15715,15716,15717,15718,15719,15720,15721,15722,15723,15724,15725,15726,15727,15728,15729,15730,15731,15732,15733,15734,15735,15736,15737,15738,15739,15740,15741,15742,15743,15744,15745,15746,15747,15748,15749,15750,15751,15752,15753,15754,15755,15756,15757,15758,15759,15760,15761,15762,15763,15764,15765,15766,15767,15768,15769,15770,15771,15772,15773,15774,15775,15776,15777,15778,15779,15780,15781,15782,15783,15784,15785,15786,15787,15788,15789,15790,15791,15792,15793,15794,15795,15796,15797,15798,15799,15800,15801,15802,15803,15804,15805,15806,15807,15808,15809,15810,15811,15812,15813,15814,15815,15816,15817,15818,15819,15820,15821,15822,15823,15824,15825,15826,15827,15828,15829,15830,15831,15832,15833,15834,15835,15836,15837,15838,15839,15840,15841,15842,15843,15844,15845,15846,15847,15848,15849,15850,15851,15852,15853,15854,15855,15856,15857,15858,15859,15860,15861,15862,15863,15864,15865,15866,15867,15868,15869,15870,15871,15872,15873,15874,15875,15876,15877,15878,15879,15880,15881,15882,15883,15884,15885,15886,15887,15888,15889,15890,15891,15892,15893,15894,15895,15896,15897,15898,15899,15900,15901,15902,15903,15904,15905,15906,15907,15908,15909,15910,15911,15912,15913,15914,15915,15916,15917,15918,15919,15920,15921,15922,15923,15924,15925,15926,15927,15928,15929,15930,15931,15932,15933,15934,15935,15936,15937,15938,15939,15940,15941,15942,15943,15944,15945,15946,15947,15948,15949,15950,15951,15952,15953,15954,15955,15956,15957,15958,15959,15960,15961,15962,15963,15964,15965,15966,15967,15968,15969,15970,15971,15972,15973,15974,15975,15976,15977,15978,15979,15980,15981,15982,15983,15984,15985,15986,15987,15988,15989,15990,15991,15992,15993,15994,15995,15996,15997,15998,15999,16000,16001,16002,16003,16004,16005,16006,16007,16008,16009,16010,16011,16012,16013,16014,16015,16016,16017,16018,16019,16020,16021,16022,16023,16024,16025,16026,16027,16028,16029,16030,16031,16032,16033,16034,16035,16036,16037,16038,16039,16040,16041,16042,16043,16044,16045,16046,16047,16048,16049,16050,16051,16052,16053,16054,16055,16056,16057,16058,16059,16060,16061,16062,16063,16064,16065,16066,16067,16068,16069,16070,16071,16072,16073,16074,16075,16076,16077,16078,16079,16080,16081,16082,16083,16084,16085,16086,16087,16088,16089,16090,16091,16092,16093,16094,16095,16096,16097,16098,16099,16100,16101,16102,16103,16104,16105,16106,16107,16108,16109,16110,16111,16112,16113,16114,16115,16116,16117,16118,16119,16120,16121,16122,16123,16124,16125,16126,16127,16128,16129,16130,16131,16132,16133,16134,16135,16136,16137,16138,16139,16140,16141,16142,16143,16144,16145,16146,16147,16148,16149,16150,16151,16152,16153,16154,16155,16156,16157,16158,16159,16160,16161,16162,16163,16164,16165,16166,16167,16168,16169,16170,16171,16172,16173,16174,16175,16176,16177,16178,16179,16180,16181,16182,16183,16184,16185,16186,16187,16188,16189,16190,16191,16192,16193,16194,16195,16196,16197,16198,16199,16200,16201,16202,16203,16204,16205,16206,16207,16208,16209,16210,16211,16212,16213,16214,16215,16216,16217,16218,16219,16220,16221,16222,16223,16224,16225,16226,16227,16228,16229,16230,16231,16232,16233,16234,16235,16236,16237,16238,16239,16240,16241,16242,16243,16244,16245,16246,16247,16248,16249,16250,16251,16252,16253,16254,16255,16256,16257,16258,16259,16260,16261,16262,16263,16264,16265,16266,16267,16268,16269,16270,16271,16272,16273,16274,16275,16276,16277,16278,16279,16280,16281,16282,16283,16284,16285,16286,16287,16288,16289,16290,16291,16292,16293,16294,16295,16296,16297,16298,16299,16300,16301,16302,16303,16304,16305,16306,16307,16308,16309,16310,16311,16312,16313,16314,16315,16316,16317,16318,16319,16320,16321,16322,16323,16324,16325,16326,16327,16328,16329,16330,16331,16332,16333,16334,16335,16336,16337,16338,16339,16340,16341,16342,16343,16344,16345,16346,16347,16348,16349,16350,16351,16352,16353,16354,16355,16356,16357,16358,16359,16360,16361,16362,16363,16364,16365,16366,16367,16368,16369,16370,16371,16372,16373,16374,16375,16376,16377,16378,16379,16380,16381,16382,16383,16384,16385,16386,16387,16388,16389,16390,16391,16392,16393,16394,16395,16396,16397,16398,16399,16400,16401,16402,16403,16404,16405,16406,16407,16408,16409,16410,16411,16412,16413,16414,16415,16416,16417,16418,16419,16420,16421,16422,16423,16424,16425,16426,16427,16428,16429,16430,16431,16432,16433,16434,16435,16436,16437,16438,16439,16440,16441,16442,16443,16444,16445,16446,16447,16448,16449,16450,16451,16452,16453,16454,16455,16456,16457,16458,16459,16460,16461,16462,16463,16464,16465,16466,16467,16468,16469,16470,16471,16472,16473,16474,16475,16476,16477,16478,16479,16480,16481,16482,16483,16484,16485,16486,16487,16488,16489,16490,16491,16492,16493,16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579,16580,16581,16582,16583,16584,16585,16586,16587,16588,16589,16590,16591,16592,16593,16594,16595,16596,16597,16598,16599,16600,16601,16602,16603,16604,16605,16606,16607,16608,16609,16610,16611,16612,16613,16614,16615,16616,16617,16618,16619,16620,16621,16622,16623,16624,16625,16626,16627,16628,16629,16630,16631,16632,16633,16634,16635,16636,16637,16638,16639,16640,16641,16642,16643,16644,16645,16646,16647,16648,16649,16650,16651,16652,16653,16654,16655,16656,16657,16658,16659,16660,16661,16662,16663,16664,16665,16666,16667,16668,16669,16670,16671,16672,16673,16674,16675,16676,16677,16678,16679,16680,16681,16682,16683,16684,16685,16686,16687,16688,16689,16690,16691,16692,16693,16694,16695,16696,16697,16698,16699,16700,16701,16702,16703,16704,16705,16706,16707,16708,16709,16710,16711,16712,16713,16714,16715,16716,16717,16718,16719,16720,16721,16722,16723,16724,16725,16726,16727,16728,16729,16730,16731,16732,16733,16734,16735,16736,16737,16738,16739,16740,16741,16742,16743,16744,16745,16746,16747,16748,16749,16750,16751,16752,16753,16754,16755,16756,16757,16758,16759,16760,16761,16762,16763,16764,16765,16766,16767,16768,16769,16770,16771,16772,16773,16774,16775,16776,16777,16778,16779,16780,16781,16782,16783,16784,16785,16786,16787,16788,16789,16790,16791,16792,16793,16794,16795,16796,16797,16798,16799,16800,16801,16802,16803,16804,16805,16806,16807,16808,16809,16810,16811,16812,16813,16814,16815,16816,16817,16818,16819,16820,16821,16822,16823,16824,16825,16826,16827,16828,16829,16830,16831,16832,16833,16834,16835,16836,16837,16838,16839,16840,16841,16842,16843,16844,16845,16846,16847,16848,16849,16850,16851,16852,16853,16854,16855,16856,16857,16858,16859,16860,16861,16862,16863,16864,16865,16866,16867,16868,16869,16870,16871,16872,16873,16874,16875,16876,16877,16878,16879,16880,16881,16882,16883,16884,16885,16886,16887,16888,16889,16890,16891,16892,16893,16894,16895,16896,16897,16898,16899,16900,16901,16902,16903,16904,16905,16906,16907,16908,16909,16910,16911,16912,16913,16914,16915,16916,16917,16918,16919,16920,16921,16922,16923,16924,16925,16926,16927,16928,16929,16930,16931,16932,16933,16934,16935,16936,16937,16938,16939,16940,16941,16942,16943,16944,16945,16946,16947,16948,16949,16950,16951,16952,16953,16954,16955,16956,16957,16958,16959,16960,16961,16962,16963,16964,16965,16966,16967,16968,16969,16970,16971,16972,16973,16974,16975,16976,16977,16978,16979,16980,16981,16982,16983,16984,16985,16986,16987,16988,16989,16990,16991,16992,16993,16994,16995,16996,16997,16998,16999,17000,17001,17002,17003,17004,17005,17006,17007,17008,17009,17010,17011,17012,17013,17014,17015,17016,17017,17018,17019,17020,17021,17022,17023,17024,17025,17026,17027,17028,17029,17030,17031,17032,17033,17034,17035,17036,17037,17038,17039,17040,17041,17042,17043,17044,17045,17046,17047,17048,17049,17050,17051,17052,17053,17054,17055,17056,17057,17058,17059,17060,17061,17062,17063,17064,17065,17066,17067,17068,17069,17070,17071,17072,17073,17074,17075,17076,17077,17078,17079,17080,17081,17082,17083,17084,17085,17086,17087,17088,17089,17090,17091,17092,17093,17094,17095,17096,17097,17098,17099,17100,17101,17102,17103,17104,17105,17106,17107,17108,17109,17110,17111,17112,17113,17114,17115,17116,17117,17118,17119,17120,17121,17122,17123,17124,17125,17126,17127,17128,17129,17130,17131,17132,17133,17134,17135,17136,17137,17138,17139,17140,17141,17142,17143,17144,17145,17146,17147,17148,17149,17150,17151,17152,17153,17154,17155,17156,17157,17158,17159,17160,17161,17162,17163,17164,17165,17166,17167,17168,17169,17170,17171,17172,17173,17174,17175,17176,17177,17178,17179,17180,17181,17182,17183,17184,17185,17186,17187,17188,17189,17190,17191,17192,17193,17194,17195,17196,17197,17198,17199,17200,17201,17202,17203,17204,17205,17206,17207,17208,17209,17210,17211,17212,17213,17214,17215,17216,17217,17218,17219,17220,17221,17222,17223,17224,17225,17226,17227,17228,17229,17230,17231,17232,17233,17234,17235,17236,17237,17238,17239,17240,17241,17242,17243,17244,17245,17246,17247,17248,17249,17250,17251,17252,17253,17254,17255,17256,17257,17258,17259,17260,17261,17262,17263,17264,17265,17266,17267,17268,17269,17270,17271,17272,17273,17274,17275,17276,17277,17278,17279,17280,17281,17282,17283,17284,17285,17286,17287,17288,17289,17290,17291,17292,17293,17294,17295,17296,17297,17298,17299,17300,17301,17302,17303,17304,17305,17306,17307,17308,17309,17310,17311,17312,17313,17314,17315,17316,17317,17318,17319,17320,17321,17322,17323,17324,17325,17326,17327,17328,17329,17330,17331,17332,17333,17334,17335,17336,17337,17338,17339,17340,17341,17342,17343,17344,17345,17346,17347,17348,17349,17350,17351,17352,17353,17354,17355,17356,17357,17358,17359,17360,17361,17362,17363,17364,17365,17366,17367,17368,17369,17370,17371,17372,17373,17374,17375,17376,17377,17378,17379,17380,17381,17382,17383,17384,17385,17386,17387,17388,17389,17390,17391,17392,17393,17394,17395,17396,17397,17398,17399,17400,17401,17402,17403,17404,17405,17406,17407,17408,17409,17410,17411,17412,17413,17414,17415,17416,17417,17418,17419,17420,17421,17422,17423,17424,17425,17426,17427,17428,17429,17430,17431,17432,17433,17434,17435,17436,17437,17438,17439,17440,17441,17442,17443,17444,17445,17446,17447,17448,17449,17450,17451,17452,17453,17454,17455,17456,17457,17458,17459,17460,17461,17462,17463,17464,17465,17466,17467,17468,17469,17470,17471,17472,17473,17474,17475,17476,17477,17478,17479,17480,17481,17482,17483,17484,17485,17486,17487,17488,17489,17490,17491,17492,17493,17494,17495,17496,17497,17498,17499,17500,17501,17502,17503,17504,17505,17506,17507,17508,17509,17510,17511,17512,17513,17514,17515,17516,17517,17518,17519,17520,17521,17522,17523,17524,17525,17526,17527,17528,17529,17530,17531,17532,17533,17534,17535,17536,17537,17538,17539,17540,17541,17542,17543,17544,17545,17546,17547,17548,17549,17550,17551,17552,17553,17554,17555,17556,17557,17558,17559,17560,17561,17562,17563,17564,17565,17566,17567,17568,17569,17570,17571,17572,17573,17574,17575,17576,17577,17578,17579,17580,17581,17582,17583,17584,17585,17586,17587,17588,17589,17590,17591,17592,17593,17594,17595,17596,17597,17598,17599,17600,17601,17602,17603,17604,17605,17606,17607,17608,17609,17610,17611,17612,17613,17614,17615,17616,17617,17618,17619,17620,17621,17622,17623,17624,17625,17626,17627,17628,17629,17630,17631,17632,17633,17634,17635,17636,17637,17638,17639,17640,17641,17642,17643,17644,17645,17646,17647,17648,17649,17650,17651,17652,17653,17654,17655,17656,17657,17658,17659,17660,17661,17662,17663,17664,17665,17666,17667,17668,17669,17670,17671,17672,17673,17674,17675,17676,17677,17678,17679,17680,17681,17682,17683,17684,17685,17686,17687,17688,17689,17690,17691,17692,17693,17694,17695,17696,17697,17698,17699,17700,17701,17702,17703,17704,17705,17706,17707,17708,17709,17710,17711,17712,17713,17714,17715,17716,17717,17718,17719,17720,17721,17722,17723,17724,17725,17726,17727,17728,17729,17730,17731,17732,17733,17734,17735,17736,17737,17738,17739,17740,17741,17742,17743,17744,17745,17746,17747,17748,17749,17750,17751,17752,17753,17754,17755,17756,17757,17758,17759,17760,17761,17762,17763,17764,17765,17766,17767,17768,17769,17770,17771,17772,17773,17774,17775,17776,17777,17778,17779,17780,17781,17782,17783,17784,17785,17786,17787,17788,17789,17790,17791,17792,17793,17794,17795,17796,17797,17798,17799,17800,17801,17802,17803,17804,17805,17806,17807,17808,17809,17810,17811,17812,17813,17814,17815,17816,17817,17818,17819,17820,17821,17822,17823,17824,17825,17826,17827,17828,17829,17830,17831,17832,17833,17834,17835,17836,17837,17838,17839,17840,17841,17842,17843,17844,17845,17846,17847,17848,17849,17850,17851,17852,17853,17854,17855,17856,17857,17858,17859,17860,17861,17862,17863,17864,17865,17866,17867,17868,17869,17870,17871,17872,17873,17874,17875,17876,17877,17878,17879,17880,17881,17882,17883,17884,17885,17886,17887,17888,17889,17890,17891,17892,17893,17894,17895,17896,17897,17898,17899,17900,17901,17902,17903,17904,17905,17906,17907,17908,17909,17910,17911,17912,17913,17914,17915,17916,17917,17918,17919,17920,17921,17922,17923,17924,17925,17926,17927,17928,17929,17930,17931,17932,17933,17934,17935,17936,17937,17938,17939,17940,17941,17942,17943,17944,17945,17946,17947,17948,17949,17950,17951,17952,17953,17954,17955,17956,17957,17958,17959,17960,17961,17962,17963,17964,17965,17966,17967,17968,17969,17970,17971,17972,17973,17974,17975,17976,17977,17978,17979,17980,17981,17982,17983,17984,17985,17986,17987,17988,17989,17990,17991,17992,17993,17994,17995,17996,17997,17998,17999,18000,18001,18002,18003,18004,18005,18006,18007,18008,18009,18010,18011,18012,18013,18014,18015,18016,18017,18018,18019,18020,18021,18022,18023,18024,18025,18026,18027,18028,18029,18030,18031,18032,18033,18034,18035,18036,18037,18038,18039,18040,18041,18042,18043,18044,18045,18046,18047,18048,18049,18050,18051,18052,18053,18054,18055,18056,18057,18058,18059,18060,18061,18062,18063,18064,18065,18066,18067,18068,18069,18070,18071,18072,18073,18074,18075,18076,18077,18078,18079,18080,18081,18082,18083,18084,18085,18086,18087,18088,18089,18090,18091,18092,18093,18094,18095,18096,18097,18098,18099,18100,18101,18102,18103,18104,18105,18106,18107,18108,18109,18110,18111,18112,18113,18114,18115,18116,18117,18118,18119,18120,18121,18122,18123,18124,18125,18126,18127,18128,18129,18130,18131,18132,18133,18134,18135,18136,18137,18138,18139,18140,18141,18142,18143,18144,18145,18146,18147,18148,18149,18150,18151,18152,18153,18154,18155,18156,18157,18158,18159,18160,18161,18162,18163,18164,18165,18166,18167,18168,18169,18170,18171,18172,18173,18174,18175,18176,18177,18178,18179,18180,18181,18182,18183,18184,18185,18186,18187,18188,18189,18190,18191,18192,18193,18194,18195,18196,18197,18198,18199,18200,18201,18202,18203,18204,18205,18206,18207,18208,18209,18210,18211,18212,18213,18214,18215,18216,18217,18218,18219,18220,18221,18222,18223,18224,18225,18226,18227,18228,18229,18230,18231,18232,18233,18234,18235,18236,18237,18238,18239,18240,18241,18242,18243,18244,18245,18246,18247,18248,18249,18250,18251,18252,18253,18254,18255,18256,18257,18258,18259,18260,18261,18262,18263,18264,18265,18266,18267,18268,18269,18270,18271,18272,18273,18274,18275,18276,18277,18278,18279,18280,18281,18282,18283,18284,18285,18286,18287,18288,18289,18290,18291,18292,18293,18294,18295,18296,18297,18298,18299,18300,18301,18302,18303,18304,18305,18306,18307,18308,18309,18310,18311,18312,18313,18314,18315,18316,18317,18318,18319,18320,18321,18322,18323,18324,18325,18326,18327,18328,18329,18330,18331,18332,18333,18334,18335,18336,18337,18338,18339,18340,18341,18342,18343,18344,18345,18346,18347,18348,18349,18350,18351,18352,18353,18354,18355,18356,18357,18358,18359,18360,18361,18362,18363,18364,18365,18366,18367,18368,18369,18370,18371,18372,18373,18374,18375,18376,18377,18378,18379,18380,18381,18382,18383,18384,18385,18386,18387,18388,18389,18390,18391,18392,18393,18394,18395,18396,18397,18398,18399,18400,18401,18402,18403,18404,18405,18406,18407,18408,18409,18410,18411,18412,18413,18414,18415,18416,18417,18418,18419,18420,18421,18422,18423,18424,18425,18426,18427,18428,18429,18430,18431,18432,18433,18434,18435,18436,18437,18438,18439,18440,18441,18442,18443,18444,18445,18446,18447,18448,18449,18450,18451,18452,18453,18454,18455,18456,18457,18458,18459,18460,18461,18462,18463,18464,18465,18466,18467,18468,18469,18470,18471,18472,18473,18474,18475,18476,18477,18478,18479,18480,18481,18482,18483,18484,18485,18486,18487,18488,18489,18490,18491,18492,18493,18494,18495,18496,18497,18498,18499,18500,18501,18502,18503,18504,18505,18506,18507,18508,18509,18510,18511,18512,18513,18514,18515,18516,18517,18518,18519,18520,18521,18522,18523,18524,18525,18526,18527,18528,18529,18530,18531,18532,18533,18534,18535,18536,18537,18538,18539,18540,18541,18542,18543,18544,18545,18546,18547,18548,18549,18550,18551,18552,18553,18554,18555,18556,18557,18558,18559,18560,18561,18562,18563,18564,18565,18566,18567,18568,18569,18570,18571,18572,18573,18574,18575,18576,18577,18578,18579,18580,18581,18582,18583,18584,18585,18586,18587,18588,18589,18590,18591,18592,18593,18594,18595,18596,18597,18598,18599,18600,18601,18602,18603,18604,18605,18606,18607,18608,18609,18610,18611,18612,18613,18614,18615,18616,18617,18618,18619,18620,18621,18622,18623,18624,18625,18626,18627,18628,18629,18630,18631,18632,18633,18634,18635,18636,18637,18638,18639,18640,18641,18642,18643,18644,18645,18646,18647,18648,18649,18650,18651,18652,18653,18654,18655,18656,18657,18658,18659,18660,18661,18662,18663,18664,18665,18666,18667,18668,18669,18670,18671,18672,18673,18674,18675,18676,18677,18678,18679,18680,18681,18682,18683,18684,18685,18686,18687,18688,18689,18690,18691,18692,18693,18694,18695,18696,18697,18698,18699,18700,18701,18702,18703,18704,18705,18706,18707,18708,18709,18710,18711,18712,18713,18714,18715,18716,18717,18718,18719,18720,18721,18722,18723,18724,18725,18726,18727,18728,18729,18730,18731,18732,18733,18734,18735,18736,18737,18738,18739,18740,18741,18742,18743,18744,18745,18746,18747,18748,18749,18750,18751,18752,18753,18754,18755,18756,18757,18758,18759,18760,18761,18762,18763,18764,18765,18766,18767,18768,18769,18770,18771,18772,18773,18774,18775,18776,18777,18778,18779,18780,18781,18782,18783,18784,18785,18786,18787,18788,18789,18790,18791,18792,18793,18794,18795,18796,18797,18798,18799,18800,18801,18802,18803,18804,18805,18806,18807,18808,18809,18810,18811,18812,18813,18814,18815,18816,18817,18818,18819,18820,18821,18822,18823,18824,18825,18826,18827,18828,18829,18830,18831,18832,18833,18834,18835,18836,18837,18838,18839,18840,18841,18842,18843,18844,18845,18846,18847,18848,18849,18850,18851,18852,18853,18854,18855,18856,18857,18858,18859,18860,18861,18862,18863,18864,18865,18866,18867,18868,18869,18870,18871,18872,18873,18874,18875,18876,18877,18878,18879,18880,18881,18882,18883,18884,18885,18886,18887,18888,18889,18890,18891,18892,18893,18894,18895,18896,18897,18898,18899,18900,18901,18902,18903,18904,18905,18906,18907,18908,18909,18910,18911,18912,18913,18914,18915,18916,18917,18918,18919,18920,18921,18922,18923,18924,18925,18926,18927,18928,18929,18930,18931,18932,18933,18934,18935,18936,18937,18938,18939,18940,18941,18942,18943,18944,18945,18946,18947,18948,18949,18950,18951,18952,18953,18954,18955,18956,18957,18958,18959,18960,18961,18962,18963,18964,18965,18966,18967,18968,18969,18970,18971,18972,18973,18974,18975,18976,18977,18978,18979,18980,18981,18982,18983,18984,18985,18986,18987,18988,18989,18990,18991,18992,18993,18994,18995,18996,18997,18998,18999,19000,19001,19002,19003,19004,19005,19006,19007,19008,19009,19010,19011,19012,19013,19014,19015,19016,19017,19018,19019,19020,19021,19022,19023,19024,19025,19026,19027,19028,19029,19030,19031,19032,19033,19034,19035,19036,19037,19038,19039,19040,19041,19042,19043,19044,19045,19046,19047,19048,19049,19050,19051,19052,19053,19054,19055,19056,19057,19058,19059,19060,19061,19062,19063,19064,19065,19066,19067,19068,19069,19070,19071,19072,19073,19074,19075,19076,19077,19078,19079,19080,19081,19082,19083,19084,19085,19086,19087,19088,19089,19090,19091,19092,19093,19094,19095,19096,19097,19098,19099,19100,19101,19102,19103,19104,19105,19106,19107,19108,19109,19110,19111,19112,19113,19114,19115,19116,19117,19118,19119,19120,19121,19122,19123,19124,19125,19126,19127,19128,19129,19130,19131,19132,19133,19134,19135,19136,19137,19138,19139,19140,19141,19142,19143,19144,19145,19146,19147,19148,19149,19150,19151,19152,19153,19154,19155,19156,19157,19158,19159,19160,19161,19162,19163,19164,19165,19166,19167,19168,19169,19170,19171,19172,19173,19174,19175,19176,19177,19178,19179,19180,19181,19182,19183,19184,19185,19186,19187,19188,19189,19190,19191,19192,19193,19194,19195,19196,19197,19198,19199,19200,19201,19202,19203,19204,19205,19206,19207,19208,19209,19210,19211,19212,19213,19214,19215,19216,19217,19218,19219,19220,19221,19222,19223,19224,19225,19226,19227,19228,19229,19230,19231,19232,19233,19234,19235,19236,19237,19238,19239,19240,19241,19242,19243,19244,19245,19246,19247,19248,19249,19250,19251,19252,19253,19254,19255,19256,19257,19258,19259,19260,19261,19262,19263,19264,19265,19266,19267,19268,19269,19270,19271,19272,19273,19274,19275,19276,19277,19278,19279,19280,19281,19282,19283,19284,19285,19286,19287,19288,19289,19290,19291,19292,19293,19294,19295,19296,19297,19298,19299,19300,19301,19302,19303,19304,19305,19306,19307,19308,19309,19310,19311,19312,19313,19314,19315,19316,19317,19318,19319,19320,19321,19322,19323,19324,19325,19326,19327,19328,19329,19330,19331,19332,19333,19334,19335,19336,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19354,19355,19356,19357,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19381,19382,19383,19384,19385,19386,19387,19388,19389,19390,19391,19392,19393,19394,19395,19396,19397,19398,19399,19400,19401,19402,19403,19404,19405,19406,19407,19408,19409,19410,19411,19412,19413,19414,19415,19416,19417,19418,19419,19420,19421,19422,19423,19424,19425,19426,19427,19428,19429,19430,19431,19432,19433,19434,19435,19436,19437,19438,19439,19440,19441,19442,19443,19444,19445,19446,19447,19448,19449,19450,19451,19452,19453,19454,19455,19456,19457,19458,19459,19460,19461,19462,19463,19464,19465,19466,19467,19468,19469,19470,19471,19472,19473,19474,19475,19476,19477,19478,19479,19480,19481,19482,19483,19484,19485,19486,19487,19488,19489,19490,19491,19492,19493,19494,19495,19496,19497,19498,19499,19500,19501,19502,19503,19504,19505,19506,19507,19508,19509,19510,19511,19512,19513,19514,19515,19516,19517,19518,19519,19520,19521,19522,19523,19524,19525,19526,19527,19528,19529,19530,19531,19532,19533,19534,19535,19536,19537,19538,19539,19540,19541,19542,19543,19544,19545,19546,19547,19548,19549,19550,19551,19552,19553,19554,19555,19556,19557,19558,19559,19560,19561,19562,19563,19564,19565,19566,19567,19568,19569,19570,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19581,19582,19583,19584,19585,19586,19587,19588,19589,19590,19591,19592,19593,19594,19595,19596,19597,19598,19599,19600,19601,19602,19603,19604,19605,19606,19607,19608,19609,19610,19611,19612,19613,19614,19615,19616,19617,19618,19619,19620,19621,19622,19623,19624,19625,19626,19627,19628,19629,19630,19631,19632,19633,19634,19635,19636,19637,19638,19639,19640,19641,19642,19643,19644,19645,19646,19647,19648,19649,19650,19651,19652,19653,19654,19655,19656,19657,19658,19659,19660,19661,19662,19663,19664,19665,19666,19667,19668,19669,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19707,19708,19709,19710,19711,19712,19713,19714,19715,19716,19717,19718,19719,19720,19721,19722,19723,19724,19725,19726,19727,19728,19729,19730,19731,19732,19733,19734,19735,19736,19737,19738,19739,19740,19741,19742,19743,19744,19745,19746,19747,19748,19749,19750,19751,19752,19753,19754,19755,19756,19757,19758,19759,19760,19761,19762,19763,19764,19765,19766,19767,19768,19769,19770,19771,19772,19773,19774,19775,19776,19777,19778,19779,19780,19781,19782,19783,19784,19785,19786,19787,19788,19789,19790,19791,19792,19793,19794,19795,19796,19797,19798,19799,19800,19801,19802,19803,19804,19805,19806,19807,19808,19809,19810,19811,19812,19813,19814,19815,19816,19817,19818,19819,19820,19821,19822,19823,19824,19825,19826,19827,19828,19829,19830,19831,19832,19833,19834,19835,19836,19837,19838,19839,19840,19841,19842,19843,19844,19845,19846,19847,19848,19849,19850,19851,19852,19853,19854,19855,19856,19857,19858,19859,19860,19861,19862,19863,19864,19865,19866,19867,19868,19869,19870,19871,19872,19873,19874,19875,19876,19877,19878,19879,19880,19881,19882,19883,19884,19885,19886,19887,19888,19889,19890,19891,19892,19893,19968,19969,19970,19971,19972,19973,19974,19975,19976,19977,19978,19979,19980,19981,19982,19983,19984,19985,19986,19987,19988,19989,19990,19991,19992,19993,19994,19995,19996,19997,19998,19999,20000,20001,20002,20003,20004,20005,20006,20007,20008,20009,20010,20011,20012,20013,20014,20015,20016,20017,20018,20019,20020,20021,20022,20023,20024,20025,20026,20027,20028,20029,20030,20031,20032,20033,20034,20035,20036,20037,20038,20039,20040,20041,20042,20043,20044,20045,20046,20047,20048,20049,20050,20051,20052,20053,20054,20055,20056,20057,20058,20059,20060,20061,20062,20063,20064,20065,20066,20067,20068,20069,20070,20071,20072,20073,20074,20075,20076,20077,20078,20079,20080,20081,20082,20083,20084,20085,20086,20087,20088,20089,20090,20091,20092,20093,20094,20095,20096,20097,20098,20099,20100,20101,20102,20103,20104,20105,20106,20107,20108,20109,20110,20111,20112,20113,20114,20115,20116,20117,20118,20119,20120,20121,20122,20123,20124,20125,20126,20127,20128,20129,20130,20131,20132,20133,20134,20135,20136,20137,20138,20139,20140,20141,20142,20143,20144,20145,20146,20147,20148,20149,20150,20151,20152,20153,20154,20155,20156,20157,20158,20159,20160,20161,20162,20163,20164,20165,20166,20167,20168,20169,20170,20171,20172,20173,20174,20175,20176,20177,20178,20179,20180,20181,20182,20183,20184,20185,20186,20187,20188,20189,20190,20191,20192,20193,20194,20195,20196,20197,20198,20199,20200,20201,20202,20203,20204,20205,20206,20207,20208,20209,20210,20211,20212,20213,20214,20215,20216,20217,20218,20219,20220,20221,20222,20223,20224,20225,20226,20227,20228,20229,20230,20231,20232,20233,20234,20235,20236,20237,20238,20239,20240,20241,20242,20243,20244,20245,20246,20247,20248,20249,20250,20251,20252,20253,20254,20255,20256,20257,20258,20259,20260,20261,20262,20263,20264,20265,20266,20267,20268,20269,20270,20271,20272,20273,20274,20275,20276,20277,20278,20279,20280,20281,20282,20283,20284,20285,20286,20287,20288,20289,20290,20291,20292,20293,20294,20295,20296,20297,20298,20299,20300,20301,20302,20303,20304,20305,20306,20307,20308,20309,20310,20311,20312,20313,20314,20315,20316,20317,20318,20319,20320,20321,20322,20323,20324,20325,20326,20327,20328,20329,20330,20331,20332,20333,20334,20335,20336,20337,20338,20339,20340,20341,20342,20343,20344,20345,20346,20347,20348,20349,20350,20351,20352,20353,20354,20355,20356,20357,20358,20359,20360,20361,20362,20363,20364,20365,20366,20367,20368,20369,20370,20371,20372,20373,20374,20375,20376,20377,20378,20379,20380,20381,20382,20383,20384,20385,20386,20387,20388,20389,20390,20391,20392,20393,20394,20395,20396,20397,20398,20399,20400,20401,20402,20403,20404,20405,20406,20407,20408,20409,20410,20411,20412,20413,20414,20415,20416,20417,20418,20419,20420,20421,20422,20423,20424,20425,20426,20427,20428,20429,20430,20431,20432,20433,20434,20435,20436,20437,20438,20439,20440,20441,20442,20443,20444,20445,20446,20447,20448,20449,20450,20451,20452,20453,20454,20455,20456,20457,20458,20459,20460,20461,20462,20463,20464,20465,20466,20467,20468,20469,20470,20471,20472,20473,20474,20475,20476,20477,20478,20479,20480,20481,20482,20483,20484,20485,20486,20487,20488,20489,20490,20491,20492,20493,20494,20495,20496,20497,20498,20499,20500,20501,20502,20503,20504,20505,20506,20507,20508,20509,20510,20511,20512,20513,20514,20515,20516,20517,20518,20519,20520,20521,20522,20523,20524,20525,20526,20527,20528,20529,20530,20531,20532,20533,20534,20535,20536,20537,20538,20539,20540,20541,20542,20543,20544,20545,20546,20547,20548,20549,20550,20551,20552,20553,20554,20555,20556,20557,20558,20559,20560,20561,20562,20563,20564,20565,20566,20567,20568,20569,20570,20571,20572,20573,20574,20575,20576,20577,20578,20579,20580,20581,20582,20583,20584,20585,20586,20587,20588,20589,20590,20591,20592,20593,20594,20595,20596,20597,20598,20599,20600,20601,20602,20603,20604,20605,20606,20607,20608,20609,20610,20611,20612,20613,20614,20615,20616,20617,20618,20619,20620,20621,20622,20623,20624,20625,20626,20627,20628,20629,20630,20631,20632,20633,20634,20635,20636,20637,20638,20639,20640,20641,20642,20643,20644,20645,20646,20647,20648,20649,20650,20651,20652,20653,20654,20655,20656,20657,20658,20659,20660,20661,20662,20663,20664,20665,20666,20667,20668,20669,20670,20671,20672,20673,20674,20675,20676,20677,20678,20679,20680,20681,20682,20683,20684,20685,20686,20687,20688,20689,20690,20691,20692,20693,20694,20695,20696,20697,20698,20699,20700,20701,20702,20703,20704,20705,20706,20707,20708,20709,20710,20711,20712,20713,20714,20715,20716,20717,20718,20719,20720,20721,20722,20723,20724,20725,20726,20727,20728,20729,20730,20731,20732,20733,20734,20735,20736,20737,20738,20739,20740,20741,20742,20743,20744,20745,20746,20747,20748,20749,20750,20751,20752,20753,20754,20755,20756,20757,20758,20759,20760,20761,20762,20763,20764,20765,20766,20767,20768,20769,20770,20771,20772,20773,20774,20775,20776,20777,20778,20779,20780,20781,20782,20783,20784,20785,20786,20787,20788,20789,20790,20791,20792,20793,20794,20795,20796,20797,20798,20799,20800,20801,20802,20803,20804,20805,20806,20807,20808,20809,20810,20811,20812,20813,20814,20815,20816,20817,20818,20819,20820,20821,20822,20823,20824,20825,20826,20827,20828,20829,20830,20831,20832,20833,20834,20835,20836,20837,20838,20839,20840,20841,20842,20843,20844,20845,20846,20847,20848,20849,20850,20851,20852,20853,20854,20855,20856,20857,20858,20859,20860,20861,20862,20863,20864,20865,20866,20867,20868,20869,20870,20871,20872,20873,20874,20875,20876,20877,20878,20879,20880,20881,20882,20883,20884,20885,20886,20887,20888,20889,20890,20891,20892,20893,20894,20895,20896,20897,20898,20899,20900,20901,20902,20903,20904,20905,20906,20907,20908,20909,20910,20911,20912,20913,20914,20915,20916,20917,20918,20919,20920,20921,20922,20923,20924,20925,20926,20927,20928,20929,20930,20931,20932,20933,20934,20935,20936,20937,20938,20939,20940,20941,20942,20943,20944,20945,20946,20947,20948,20949,20950,20951,20952,20953,20954,20955,20956,20957,20958,20959,20960,20961,20962,20963,20964,20965,20966,20967,20968,20969,20970,20971,20972,20973,20974,20975,20976,20977,20978,20979,20980,20981,20982,20983,20984,20985,20986,20987,20988,20989,20990,20991,20992,20993,20994,20995,20996,20997,20998,20999,21000,21001,21002,21003,21004,21005,21006,21007,21008,21009,21010,21011,21012,21013,21014,21015,21016,21017,21018,21019,21020,21021,21022,21023,21024,21025,21026,21027,21028,21029,21030,21031,21032,21033,21034,21035,21036,21037,21038,21039,21040,21041,21042,21043,21044,21045,21046,21047,21048,21049,21050,21051,21052,21053,21054,21055,21056,21057,21058,21059,21060,21061,21062,21063,21064,21065,21066,21067,21068,21069,21070,21071,21072,21073,21074,21075,21076,21077,21078,21079,21080,21081,21082,21083,21084,21085,21086,21087,21088,21089,21090,21091,21092,21093,21094,21095,21096,21097,21098,21099,21100,21101,21102,21103,21104,21105,21106,21107,21108,21109,21110,21111,21112,21113,21114,21115,21116,21117,21118,21119,21120,21121,21122,21123,21124,21125,21126,21127,21128,21129,21130,21131,21132,21133,21134,21135,21136,21137,21138,21139,21140,21141,21142,21143,21144,21145,21146,21147,21148,21149,21150,21151,21152,21153,21154,21155,21156,21157,21158,21159,21160,21161,21162,21163,21164,21165,21166,21167,21168,21169,21170,21171,21172,21173,21174,21175,21176,21177,21178,21179,21180,21181,21182,21183,21184,21185,21186,21187,21188,21189,21190,21191,21192,21193,21194,21195,21196,21197,21198,21199,21200,21201,21202,21203,21204,21205,21206,21207,21208,21209,21210,21211,21212,21213,21214,21215,21216,21217,21218,21219,21220,21221,21222,21223,21224,21225,21226,21227,21228,21229,21230,21231,21232,21233,21234,21235,21236,21237,21238,21239,21240,21241,21242,21243,21244,21245,21246,21247,21248,21249,21250,21251,21252,21253,21254,21255,21256,21257,21258,21259,21260,21261,21262,21263,21264,21265,21266,21267,21268,21269,21270,21271,21272,21273,21274,21275,21276,21277,21278,21279,21280,21281,21282,21283,21284,21285,21286,21287,21288,21289,21290,21291,21292,21293,21294,21295,21296,21297,21298,21299,21300,21301,21302,21303,21304,21305,21306,21307,21308,21309,21310,21311,21312,21313,21314,21315,21316,21317,21318,21319,21320,21321,21322,21323,21324,21325,21326,21327,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21341,21342,21343,21344,21345,21346,21347,21348,21349,21350,21351,21352,21353,21354,21355,21356,21357,21358,21359,21360,21361,21362,21363,21364,21365,21366,21367,21368,21369,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21384,21385,21386,21387,21388,21389,21390,21391,21392,21393,21394,21395,21396,21397,21398,21399,21400,21401,21402,21403,21404,21405,21406,21407,21408,21409,21410,21411,21412,21413,21414,21415,21416,21417,21418,21419,21420,21421,21422,21423,21424,21425,21426,21427,21428,21429,21430,21431,21432,21433,21434,21435,21436,21437,21438,21439,21440,21441,21442,21443,21444,21445,21446,21447,21448,21449,21450,21451,21452,21453,21454,21455,21456,21457,21458,21459,21460,21461,21462,21463,21464,21465,21466,21467,21468,21469,21470,21471,21472,21473,21474,21475,21476,21477,21478,21479,21480,21481,21482,21483,21484,21485,21486,21487,21488,21489,21490,21491,21492,21493,21494,21495,21496,21497,21498,21499,21500,21501,21502,21503,21504,21505,21506,21507,21508,21509,21510,21511,21512,21513,21514,21515,21516,21517,21518,21519,21520,21521,21522,21523,21524,21525,21526,21527,21528,21529,21530,21531,21532,21533,21534,21535,21536,21537,21538,21539,21540,21541,21542,21543,21544,21545,21546,21547,21548,21549,21550,21551,21552,21553,21554,21555,21556,21557,21558,21559,21560,21561,21562,21563,21564,21565,21566,21567,21568,21569,21570,21571,21572,21573,21574,21575,21576,21577,21578,21579,21580,21581,21582,21583,21584,21585,21586,21587,21588,21589,21590,21591,21592,21593,21594,21595,21596,21597,21598,21599,21600,21601,21602,21603,21604,21605,21606,21607,21608,21609,21610,21611,21612,21613,21614,21615,21616,21617,21618,21619,21620,21621,21622,21623,21624,21625,21626,21627,21628,21629,21630,21631,21632,21633,21634,21635,21636,21637,21638,21639,21640,21641,21642,21643,21644,21645,21646,21647,21648,21649,21650,21651,21652,21653,21654,21655,21656,21657,21658,21659,21660,21661,21662,21663,21664,21665,21666,21667,21668,21669,21670,21671,21672,21673,21674,21675,21676,21677,21678,21679,21680,21681,21682,21683,21684,21685,21686,21687,21688,21689,21690,21691,21692,21693,21694,21695,21696,21697,21698,21699,21700,21701,21702,21703,21704,21705,21706,21707,21708,21709,21710,21711,21712,21713,21714,21715,21716,21717,21718,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21795,21796,21797,21798,21799,21800,21801,21802,21803,21804,21805,21806,21807,21808,21809,21810,21811,21812,21813,21814,21815,21816,21817,21818,21819,21820,21821,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21862,21863,21864,21865,21866,21867,21868,21869,21870,21871,21872,21873,21874,21875,21876,21877,21878,21879,21880,21881,21882,21883,21884,21885,21886,21887,21888,21889,21890,21891,21892,21893,21894,21895,21896,21897,21898,21899,21900,21901,21902,21903,21904,21905,21906,21907,21908,21909,21910,21911,21912,21913,21914,21915,21916,21917,21918,21919,21920,21921,21922,21923,21924,21925,21926,21927,21928,21929,21930,21931,21932,21933,21934,21935,21936,21937,21938,21939,21940,21941,21942,21943,21944,21945,21946,21947,21948,21949,21950,21951,21952,21953,21954,21955,21956,21957,21958,21959,21960,21961,21962,21963,21964,21965,21966,21967,21968,21969,21970,21971,21972,21973,21974,21975,21976,21977,21978,21979,21980,21981,21982,21983,21984,21985,21986,21987,21988,21989,21990,21991,21992,21993,21994,21995,21996,21997,21998,21999,22000,22001,22002,22003,22004,22005,22006,22007,22008,22009,22010,22011,22012,22013,22014,22015,22016,22017,22018,22019,22020,22021,22022,22023,22024,22025,22026,22027,22028,22029,22030,22031,22032,22033,22034,22035,22036,22037,22038,22039,22040,22041,22042,22043,22044,22045,22046,22047,22048,22049,22050,22051,22052,22053,22054,22055,22056,22057,22058,22059,22060,22061,22062,22063,22064,22065,22066,22067,22068,22069,22070,22071,22072,22073,22074,22075,22076,22077,22078,22079,22080,22081,22082,22083,22084,22085,22086,22087,22088,22089,22090,22091,22092,22093,22094,22095,22096,22097,22098,22099,22100,22101,22102,22103,22104,22105,22106,22107,22108,22109,22110,22111,22112,22113,22114,22115,22116,22117,22118,22119,22120,22121,22122,22123,22124,22125,22126,22127,22128,22129,22130,22131,22132,22133,22134,22135,22136,22137,22138,22139,22140,22141,22142,22143,22144,22145,22146,22147,22148,22149,22150,22151,22152,22153,22154,22155,22156,22157,22158,22159,22160,22161,22162,22163,22164,22165,22166,22167,22168,22169,22170,22171,22172,22173,22174,22175,22176,22177,22178,22179,22180,22181,22182,22183,22184,22185,22186,22187,22188,22189,22190,22191,22192,22193,22194,22195,22196,22197,22198,22199,22200,22201,22202,22203,22204,22205,22206,22207,22208,22209,22210,22211,22212,22213,22214,22215,22216,22217,22218,22219,22220,22221,22222,22223,22224,22225,22226,22227,22228,22229,22230,22231,22232,22233,22234,22235,22236,22237,22238,22239,22240,22241,22242,22243,22244,22245,22246,22247,22248,22249,22250,22251,22252,22253,22254,22255,22256,22257,22258,22259,22260,22261,22262,22263,22264,22265,22266,22267,22268,22269,22270,22271,22272,22273,22274,22275,22276,22277,22278,22279,22280,22281,22282,22283,22284,22285,22286,22287,22288,22289,22290,22291,22292,22293,22294,22295,22296,22297,22298,22299,22300,22301,22302,22303,22304,22305,22306,22307,22308,22309,22310,22311,22312,22313,22314,22315,22316,22317,22318,22319,22320,22321,22322,22323,22324,22325,22326,22327,22328,22329,22330,22331,22332,22333,22334,22335,22336,22337,22338,22339,22340,22341,22342,22343,22344,22345,22346,22347,22348,22349,22350,22351,22352,22353,22354,22355,22356,22357,22358,22359,22360,22361,22362,22363,22364,22365,22366,22367,22368,22369,22370,22371,22372,22373,22374,22375,22376,22377,22378,22379,22380,22381,22382,22383,22384,22385,22386,22387,22388,22389,22390,22391,22392,22393,22394,22395,22396,22397,22398,22399,22400,22401,22402,22403,22404,22405,22406,22407,22408,22409,22410,22411,22412,22413,22414,22415,22416,22417,22418,22419,22420,22421,22422,22423,22424,22425,22426,22427,22428,22429,22430,22431,22432,22433,22434,22435,22436,22437,22438,22439,22440,22441,22442,22443,22444,22445,22446,22447,22448,22449,22450,22451,22452,22453,22454,22455,22456,22457,22458,22459,22460,22461,22462,22463,22464,22465,22466,22467,22468,22469,22470,22471,22472,22473,22474,22475,22476,22477,22478,22479,22480,22481,22482,22483,22484,22485,22486,22487,22488,22489,22490,22491,22492,22493,22494,22495,22496,22497,22498,22499,22500,22501,22502,22503,22504,22505,22506,22507,22508,22509,22510,22511,22512,22513,22514,22515,22516,22517,22518,22519,22520,22521,22522,22523,22524,22525,22526,22527,22528,22529,22530,22531,22532,22533,22534,22535,22536,22537,22538,22539,22540,22541,22542,22543,22544,22545,22546,22547,22548,22549,22550,22551,22552,22553,22554,22555,22556,22557,22558,22559,22560,22561,22562,22563,22564,22565,22566,22567,22568,22569,22570,22571,22572,22573,22574,22575,22576,22577,22578,22579,22580,22581,22582,22583,22584,22585,22586,22587,22588,22589,22590,22591,22592,22593,22594,22595,22596,22597,22598,22599,22600,22601,22602,22603,22604,22605,22606,22607,22608,22609,22610,22611,22612,22613,22614,22615,22616,22617,22618,22619,22620,22621,22622,22623,22624,22625,22626,22627,22628,22629,22630,22631,22632,22633,22634,22635,22636,22637,22638,22639,22640,22641,22642,22643,22644,22645,22646,22647,22648,22649,22650,22651,22652,22653,22654,22655,22656,22657,22658,22659,22660,22661,22662,22663,22664,22665,22666,22667,22668,22669,22670,22671,22672,22673,22674,22675,22676,22677,22678,22679,22680,22681,22682,22683,22684,22685,22686,22687,22688,22689,22690,22691,22692,22693,22694,22695,22696,22697,22698,22699,22700,22701,22702,22703,22704,22705,22706,22707,22708,22709,22710,22711,22712,22713,22714,22715,22716,22717,22718,22719,22720,22721,22722,22723,22724,22725,22726,22727,22728,22729,22730,22731,22732,22733,22734,22735,22736,22737,22738,22739,22740,22741,22742,22743,22744,22745,22746,22747,22748,22749,22750,22751,22752,22753,22754,22755,22756,22757,22758,22759,22760,22761,22762,22763,22764,22765,22766,22767,22768,22769,22770,22771,22772,22773,22774,22775,22776,22777,22778,22779,22780,22781,22782,22783,22784,22785,22786,22787,22788,22789,22790,22791,22792,22793,22794,22795,22796,22797,22798,22799,22800,22801,22802,22803,22804,22805,22806,22807,22808,22809,22810,22811,22812,22813,22814,22815,22816,22817,22818,22819,22820,22821,22822,22823,22824,22825,22826,22827,22828,22829,22830,22831,22832,22833,22834,22835,22836,22837,22838,22839,22840,22841,22842,22843,22844,22845,22846,22847,22848,22849,22850,22851,22852,22853,22854,22855,22856,22857,22858,22859,22860,22861,22862,22863,22864,22865,22866,22867,22868,22869,22870,22871,22872,22873,22874,22875,22876,22877,22878,22879,22880,22881,22882,22883,22884,22885,22886,22887,22888,22889,22890,22891,22892,22893,22894,22895,22896,22897,22898,22899,22900,22901,22902,22903,22904,22905,22906,22907,22908,22909,22910,22911,22912,22913,22914,22915,22916,22917,22918,22919,22920,22921,22922,22923,22924,22925,22926,22927,22928,22929,22930,22931,22932,22933,22934,22935,22936,22937,22938,22939,22940,22941,22942,22943,22944,22945,22946,22947,22948,22949,22950,22951,22952,22953,22954,22955,22956,22957,22958,22959,22960,22961,22962,22963,22964,22965,22966,22967,22968,22969,22970,22971,22972,22973,22974,22975,22976,22977,22978,22979,22980,22981,22982,22983,22984,22985,22986,22987,22988,22989,22990,22991,22992,22993,22994,22995,22996,22997,22998,22999,23000,23001,23002,23003,23004,23005,23006,23007,23008,23009,23010,23011,23012,23013,23014,23015,23016,23017,23018,23019,23020,23021,23022,23023,23024,23025,23026,23027,23028,23029,23030,23031,23032,23033,23034,23035,23036,23037,23038,23039,23040,23041,23042,23043,23044,23045,23046,23047,23048,23049,23050,23051,23052,23053,23054,23055,23056,23057,23058,23059,23060,23061,23062,23063,23064,23065,23066,23067,23068,23069,23070,23071,23072,23073,23074,23075,23076,23077,23078,23079,23080,23081,23082,23083,23084,23085,23086,23087,23088,23089,23090,23091,23092,23093,23094,23095,23096,23097,23098,23099,23100,23101,23102,23103,23104,23105,23106,23107,23108,23109,23110,23111,23112,23113,23114,23115,23116,23117,23118,23119,23120,23121,23122,23123,23124,23125,23126,23127,23128,23129,23130,23131,23132,23133,23134,23135,23136,23137,23138,23139,23140,23141,23142,23143,23144,23145,23146,23147,23148,23149,23150,23151,23152,23153,23154,23155,23156,23157,23158,23159,23160,23161,23162,23163,23164,23165,23166,23167,23168,23169,23170,23171,23172,23173,23174,23175,23176,23177,23178,23179,23180,23181,23182,23183,23184,23185,23186,23187,23188,23189,23190,23191,23192,23193,23194,23195,23196,23197,23198,23199,23200,23201,23202,23203,23204,23205,23206,23207,23208,23209,23210,23211,23212,23213,23214,23215,23216,23217,23218,23219,23220,23221,23222,23223,23224,23225,23226,23227,23228,23229,23230,23231,23232,23233,23234,23235,23236,23237,23238,23239,23240,23241,23242,23243,23244,23245,23246,23247,23248,23249,23250,23251,23252,23253,23254,23255,23256,23257,23258,23259,23260,23261,23262,23263,23264,23265,23266,23267,23268,23269,23270,23271,23272,23273,23274,23275,23276,23277,23278,23279,23280,23281,23282,23283,23284,23285,23286,23287,23288,23289,23290,23291,23292,23293,23294,23295,23296,23297,23298,23299,23300,23301,23302,23303,23304,23305,23306,23307,23308,23309,23310,23311,23312,23313,23314,23315,23316,23317,23318,23319,23320,23321,23322,23323,23324,23325,23326,23327,23328,23329,23330,23331,23332,23333,23334,23335,23336,23337,23338,23339,23340,23341,23342,23343,23344,23345,23346,23347,23348,23349,23350,23351,23352,23353,23354,23355,23356,23357,23358,23359,23360,23361,23362,23363,23364,23365,23366,23367,23368,23369,23370,23371,23372,23373,23374,23375,23376,23377,23378,23379,23380,23381,23382,23383,23384,23385,23386,23387,23388,23389,23390,23391,23392,23393,23394,23395,23396,23397,23398,23399,23400,23401,23402,23403,23404,23405,23406,23407,23408,23409,23410,23411,23412,23413,23414,23415,23416,23417,23418,23419,23420,23421,23422,23423,23424,23425,23426,23427,23428,23429,23430,23431,23432,23433,23434,23435,23436,23437,23438,23439,23440,23441,23442,23443,23444,23445,23446,23447,23448,23449,23450,23451,23452,23453,23454,23455,23456,23457,23458,23459,23460,23461,23462,23463,23464,23465,23466,23467,23468,23469,23470,23471,23472,23473,23474,23475,23476,23477,23478,23479,23480,23481,23482,23483,23484,23485,23486,23487,23488,23489,23490,23491,23492,23493,23494,23495,23496,23497,23498,23499,23500,23501,23502,23503,23504,23505,23506,23507,23508,23509,23510,23511,23512,23513,23514,23515,23516,23517,23518,23519,23520,23521,23522,23523,23524,23525,23526,23527,23528,23529,23530,23531,23532,23533,23534,23535,23536,23537,23538,23539,23540,23541,23542,23543,23544,23545,23546,23547,23548,23549,23550,23551,23552,23553,23554,23555,23556,23557,23558,23559,23560,23561,23562,23563,23564,23565,23566,23567,23568,23569,23570,23571,23572,23573,23574,23575,23576,23577,23578,23579,23580,23581,23582,23583,23584,23585,23586,23587,23588,23589,23590,23591,23592,23593,23594,23595,23596,23597,23598,23599,23600,23601,23602,23603,23604,23605,23606,23607,23608,23609,23610,23611,23612,23613,23614,23615,23616,23617,23618,23619,23620,23621,23622,23623,23624,23625,23626,23627,23628,23629,23630,23631,23632,23633,23634,23635,23636,23637,23638,23639,23640,23641,23642,23643,23644,23645,23646,23647,23648,23649,23650,23651,23652,23653,23654,23655,23656,23657,23658,23659,23660,23661,23662,23663,23664,23665,23666,23667,23668,23669,23670,23671,23672,23673,23674,23675,23676,23677,23678,23679,23680,23681,23682,23683,23684,23685,23686,23687,23688,23689,23690,23691,23692,23693,23694,23695,23696,23697,23698,23699,23700,23701,23702,23703,23704,23705,23706,23707,23708,23709,23710,23711,23712,23713,23714,23715,23716,23717,23718,23719,23720,23721,23722,23723,23724,23725,23726,23727,23728,23729,23730,23731,23732,23733,23734,23735,23736,23737,23738,23739,23740,23741,23742,23743,23744,23745,23746,23747,23748,23749,23750,23751,23752,23753,23754,23755,23756,23757,23758,23759,23760,23761,23762,23763,23764,23765,23766,23767,23768,23769,23770,23771,23772,23773,23774,23775,23776,23777,23778,23779,23780,23781,23782,23783,23784,23785,23786,23787,23788,23789,23790,23791,23792,23793,23794,23795,23796,23797,23798,23799,23800,23801,23802,23803,23804,23805,23806,23807,23808,23809,23810,23811,23812,23813,23814,23815,23816,23817,23818,23819,23820,23821,23822,23823,23824,23825,23826,23827,23828,23829,23830,23831,23832,23833,23834,23835,23836,23837,23838,23839,23840,23841,23842,23843,23844,23845,23846,23847,23848,23849,23850,23851,23852,23853,23854,23855,23856,23857,23858,23859,23860,23861,23862,23863,23864,23865,23866,23867,23868,23869,23870,23871,23872,23873,23874,23875,23876,23877,23878,23879,23880,23881,23882,23883,23884,23885,23886,23887,23888,23889,23890,23891,23892,23893,23894,23895,23896,23897,23898,23899,23900,23901,23902,23903,23904,23905,23906,23907,23908,23909,23910,23911,23912,23913,23914,23915,23916,23917,23918,23919,23920,23921,23922,23923,23924,23925,23926,23927,23928,23929,23930,23931,23932,23933,23934,23935,23936,23937,23938,23939,23940,23941,23942,23943,23944,23945,23946,23947,23948,23949,23950,23951,23952,23953,23954,23955,23956,23957,23958,23959,23960,23961,23962,23963,23964,23965,23966,23967,23968,23969,23970,23971,23972,23973,23974,23975,23976,23977,23978,23979,23980,23981,23982,23983,23984,23985,23986,23987,23988,23989,23990,23991,23992,23993,23994,23995,23996,23997,23998,23999,24000,24001,24002,24003,24004,24005,24006,24007,24008,24009,24010,24011,24012,24013,24014,24015,24016,24017,24018,24019,24020,24021,24022,24023,24024,24025,24026,24027,24028,24029,24030,24031,24032,24033,24034,24035,24036,24037,24038,24039,24040,24041,24042,24043,24044,24045,24046,24047,24048,24049,24050,24051,24052,24053,24054,24055,24056,24057,24058,24059,24060,24061,24062,24063,24064,24065,24066,24067,24068,24069,24070,24071,24072,24073,24074,24075,24076,24077,24078,24079,24080,24081,24082,24083,24084,24085,24086,24087,24088,24089,24090,24091,24092,24093,24094,24095,24096,24097,24098,24099,24100,24101,24102,24103,24104,24105,24106,24107,24108,24109,24110,24111,24112,24113,24114,24115,24116,24117,24118,24119,24120,24121,24122,24123,24124,24125,24126,24127,24128,24129,24130,24131,24132,24133,24134,24135,24136,24137,24138,24139,24140,24141,24142,24143,24144,24145,24146,24147,24148,24149,24150,24151,24152,24153,24154,24155,24156,24157,24158,24159,24160,24161,24162,24163,24164,24165,24166,24167,24168,24169,24170,24171,24172,24173,24174,24175,24176,24177,24178,24179,24180,24181,24182,24183,24184,24185,24186,24187,24188,24189,24190,24191,24192,24193,24194,24195,24196,24197,24198,24199,24200,24201,24202,24203,24204,24205,24206,24207,24208,24209,24210,24211,24212,24213,24214,24215,24216,24217,24218,24219,24220,24221,24222,24223,24224,24225,24226,24227,24228,24229,24230,24231,24232,24233,24234,24235,24236,24237,24238,24239,24240,24241,24242,24243,24244,24245,24246,24247,24248,24249,24250,24251,24252,24253,24254,24255,24256,24257,24258,24259,24260,24261,24262,24263,24264,24265,24266,24267,24268,24269,24270,24271,24272,24273,24274,24275,24276,24277,24278,24279,24280,24281,24282,24283,24284,24285,24286,24287,24288,24289,24290,24291,24292,24293,24294,24295,24296,24297,24298,24299,24300,24301,24302,24303,24304,24305,24306,24307,24308,24309,24310,24311,24312,24313,24314,24315,24316,24317,24318,24319,24320,24321,24322,24323,24324,24325,24326,24327,24328,24329,24330,24331,24332,24333,24334,24335,24336,24337,24338,24339,24340,24341,24342,24343,24344,24345,24346,24347,24348,24349,24350,24351,24352,24353,24354,24355,24356,24357,24358,24359,24360,24361,24362,24363,24364,24365,24366,24367,24368,24369,24370,24371,24372,24373,24374,24375,24376,24377,24378,24379,24380,24381,24382,24383,24384,24385,24386,24387,24388,24389,24390,24391,24392,24393,24394,24395,24396,24397,24398,24399,24400,24401,24402,24403,24404,24405,24406,24407,24408,24409,24410,24411,24412,24413,24414,24415,24416,24417,24418,24419,24420,24421,24422,24423,24424,24425,24426,24427,24428,24429,24430,24431,24432,24433,24434,24435,24436,24437,24438,24439,24440,24441,24442,24443,24444,24445,24446,24447,24448,24449,24450,24451,24452,24453,24454,24455,24456,24457,24458,24459,24460,24461,24462,24463,24464,24465,24466,24467,24468,24469,24470,24471,24472,24473,24474,24475,24476,24477,24478,24479,24480,24481,24482,24483,24484,24485,24486,24487,24488,24489,24490,24491,24492,24493,24494,24495,24496,24497,24498,24499,24500,24501,24502,24503,24504,24505,24506,24507,24508,24509,24510,24511,24512,24513,24514,24515,24516,24517,24518,24519,24520,24521,24522,24523,24524,24525,24526,24527,24528,24529,24530,24531,24532,24533,24534,24535,24536,24537,24538,24539,24540,24541,24542,24543,24544,24545,24546,24547,24548,24549,24550,24551,24552,24553,24554,24555,24556,24557,24558,24559,24560,24561,24562,24563,24564,24565,24566,24567,24568,24569,24570,24571,24572,24573,24574,24575,24576,24577,24578,24579,24580,24581,24582,24583,24584,24585,24586,24587,24588,24589,24590,24591,24592,24593,24594,24595,24596,24597,24598,24599,24600,24601,24602,24603,24604,24605,24606,24607,24608,24609,24610,24611,24612,24613,24614,24615,24616,24617,24618,24619,24620,24621,24622,24623,24624,24625,24626,24627,24628,24629,24630,24631,24632,24633,24634,24635,24636,24637,24638,24639,24640,24641,24642,24643,24644,24645,24646,24647,24648,24649,24650,24651,24652,24653,24654,24655,24656,24657,24658,24659,24660,24661,24662,24663,24664,24665,24666,24667,24668,24669,24670,24671,24672,24673,24674,24675,24676,24677,24678,24679,24680,24681,24682,24683,24684,24685,24686,24687,24688,24689,24690,24691,24692,24693,24694,24695,24696,24697,24698,24699,24700,24701,24702,24703,24704,24705,24706,24707,24708,24709,24710,24711,24712,24713,24714,24715,24716,24717,24718,24719,24720,24721,24722,24723,24724,24725,24726,24727,24728,24729,24730,24731,24732,24733,24734,24735,24736,24737,24738,24739,24740,24741,24742,24743,24744,24745,24746,24747,24748,24749,24750,24751,24752,24753,24754,24755,24756,24757,24758,24759,24760,24761,24762,24763,24764,24765,24766,24767,24768,24769,24770,24771,24772,24773,24774,24775,24776,24777,24778,24779,24780,24781,24782,24783,24784,24785,24786,24787,24788,24789,24790,24791,24792,24793,24794,24795,24796,24797,24798,24799,24800,24801,24802,24803,24804,24805,24806,24807,24808,24809,24810,24811,24812,24813,24814,24815,24816,24817,24818,24819,24820,24821,24822,24823,24824,24825,24826,24827,24828,24829,24830,24831,24832,24833,24834,24835,24836,24837,24838,24839,24840,24841,24842,24843,24844,24845,24846,24847,24848,24849,24850,24851,24852,24853,24854,24855,24856,24857,24858,24859,24860,24861,24862,24863,24864,24865,24866,24867,24868,24869,24870,24871,24872,24873,24874,24875,24876,24877,24878,24879,24880,24881,24882,24883,24884,24885,24886,24887,24888,24889,24890,24891,24892,24893,24894,24895,24896,24897,24898,24899,24900,24901,24902,24903,24904,24905,24906,24907,24908,24909,24910,24911,24912,24913,24914,24915,24916,24917,24918,24919,24920,24921,24922,24923,24924,24925,24926,24927,24928,24929,24930,24931,24932,24933,24934,24935,24936,24937,24938,24939,24940,24941,24942,24943,24944,24945,24946,24947,24948,24949,24950,24951,24952,24953,24954,24955,24956,24957,24958,24959,24960,24961,24962,24963,24964,24965,24966,24967,24968,24969,24970,24971,24972,24973,24974,24975,24976,24977,24978,24979,24980,24981,24982,24983,24984,24985,24986,24987,24988,24989,24990,24991,24992,24993,24994,24995,24996,24997,24998,24999,25000,25001,25002,25003,25004,25005,25006,25007,25008,25009,25010,25011,25012,25013,25014,25015,25016,25017,25018,25019,25020,25021,25022,25023,25024,25025,25026,25027,25028,25029,25030,25031,25032,25033,25034,25035,25036,25037,25038,25039,25040,25041,25042,25043,25044,25045,25046,25047,25048,25049,25050,25051,25052,25053,25054,25055,25056,25057,25058,25059,25060,25061,25062,25063,25064,25065,25066,25067,25068,25069,25070,25071,25072,25073,25074,25075,25076,25077,25078,25079,25080,25081,25082,25083,25084,25085,25086,25087,25088,25089,25090,25091,25092,25093,25094,25095,25096,25097,25098,25099,25100,25101,25102,25103,25104,25105,25106,25107,25108,25109,25110,25111,25112,25113,25114,25115,25116,25117,25118,25119,25120,25121,25122,25123,25124,25125,25126,25127,25128,25129,25130,25131,25132,25133,25134,25135,25136,25137,25138,25139,25140,25141,25142,25143,25144,25145,25146,25147,25148,25149,25150,25151,25152,25153,25154,25155,25156,25157,25158,25159,25160,25161,25162,25163,25164,25165,25166,25167,25168,25169,25170,25171,25172,25173,25174,25175,25176,25177,25178,25179,25180,25181,25182,25183,25184,25185,25186,25187,25188,25189,25190,25191,25192,25193,25194,25195,25196,25197,25198,25199,25200,25201,25202,25203,25204,25205,25206,25207,25208,25209,25210,25211,25212,25213,25214,25215,25216,25217,25218,25219,25220,25221,25222,25223,25224,25225,25226,25227,25228,25229,25230,25231,25232,25233,25234,25235,25236,25237,25238,25239,25240,25241,25242,25243,25244,25245,25246,25247,25248,25249,25250,25251,25252,25253,25254,25255,25256,25257,25258,25259,25260,25261,25262,25263,25264,25265,25266,25267,25268,25269,25270,25271,25272,25273,25274,25275,25276,25277,25278,25279,25280,25281,25282,25283,25284,25285,25286,25287,25288,25289,25290,25291,25292,25293,25294,25295,25296,25297,25298,25299,25300,25301,25302,25303,25304,25305,25306,25307,25308,25309,25310,25311,25312,25313,25314,25315,25316,25317,25318,25319,25320,25321,25322,25323,25324,25325,25326,25327,25328,25329,25330,25331,25332,25333,25334,25335,25336,25337,25338,25339,25340,25341,25342,25343,25344,25345,25346,25347,25348,25349,25350,25351,25352,25353,25354,25355,25356,25357,25358,25359,25360,25361,25362,25363,25364,25365,25366,25367,25368,25369,25370,25371,25372,25373,25374,25375,25376,25377,25378,25379,25380,25381,25382,25383,25384,25385,25386,25387,25388,25389,25390,25391,25392,25393,25394,25395,25396,25397,25398,25399,25400,25401,25402,25403,25404,25405,25406,25407,25408,25409,25410,25411,25412,25413,25414,25415,25416,25417,25418,25419,25420,25421,25422,25423,25424,25425,25426,25427,25428,25429,25430,25431,25432,25433,25434,25435,25436,25437,25438,25439,25440,25441,25442,25443,25444,25445,25446,25447,25448,25449,25450,25451,25452,25453,25454,25455,25456,25457,25458,25459,25460,25461,25462,25463,25464,25465,25466,25467,25468,25469,25470,25471,25472,25473,25474,25475,25476,25477,25478,25479,25480,25481,25482,25483,25484,25485,25486,25487,25488,25489,25490,25491,25492,25493,25494,25495,25496,25497,25498,25499,25500,25501,25502,25503,25504,25505,25506,25507,25508,25509,25510,25511,25512,25513,25514,25515,25516,25517,25518,25519,25520,25521,25522,25523,25524,25525,25526,25527,25528,25529,25530,25531,25532,25533,25534,25535,25536,25537,25538,25539,25540,25541,25542,25543,25544,25545,25546,25547,25548,25549,25550,25551,25552,25553,25554,25555,25556,25557,25558,25559,25560,25561,25562,25563,25564,25565,25566,25567,25568,25569,25570,25571,25572,25573,25574,25575,25576,25577,25578,25579,25580,25581,25582,25583,25584,25585,25586,25587,25588,25589,25590,25591,25592,25593,25594,25595,25596,25597,25598,25599,25600,25601,25602,25603,25604,25605,25606,25607,25608,25609,25610,25611,25612,25613,25614,25615,25616,25617,25618,25619,25620,25621,25622,25623,25624,25625,25626,25627,25628,25629,25630,25631,25632,25633,25634,25635,25636,25637,25638,25639,25640,25641,25642,25643,25644,25645,25646,25647,25648,25649,25650,25651,25652,25653,25654,25655,25656,25657,25658,25659,25660,25661,25662,25663,25664,25665,25666,25667,25668,25669,25670,25671,25672,25673,25674,25675,25676,25677,25678,25679,25680,25681,25682,25683,25684,25685,25686,25687,25688,25689,25690,25691,25692,25693,25694,25695,25696,25697,25698,25699,25700,25701,25702,25703,25704,25705,25706,25707,25708,25709,25710,25711,25712,25713,25714,25715,25716,25717,25718,25719,25720,25721,25722,25723,25724,25725,25726,25727,25728,25729,25730,25731,25732,25733,25734,25735,25736,25737,25738,25739,25740,25741,25742,25743,25744,25745,25746,25747,25748,25749,25750,25751,25752,25753,25754,25755,25756,25757,25758,25759,25760,25761,25762,25763,25764,25765,25766,25767,25768,25769,25770,25771,25772,25773,25774,25775,25776,25777,25778,25779,25780,25781,25782,25783,25784,25785,25786,25787,25788,25789,25790,25791,25792,25793,25794,25795,25796,25797,25798,25799,25800,25801,25802,25803,25804,25805,25806,25807,25808,25809,25810,25811,25812,25813,25814,25815,25816,25817,25818,25819,25820,25821,25822,25823,25824,25825,25826,25827,25828,25829,25830,25831,25832,25833,25834,25835,25836,25837,25838,25839,25840,25841,25842,25843,25844,25845,25846,25847,25848,25849,25850,25851,25852,25853,25854,25855,25856,25857,25858,25859,25860,25861,25862,25863,25864,25865,25866,25867,25868,25869,25870,25871,25872,25873,25874,25875,25876,25877,25878,25879,25880,25881,25882,25883,25884,25885,25886,25887,25888,25889,25890,25891,25892,25893,25894,25895,25896,25897,25898,25899,25900,25901,25902,25903,25904,25905,25906,25907,25908,25909,25910,25911,25912,25913,25914,25915,25916,25917,25918,25919,25920,25921,25922,25923,25924,25925,25926,25927,25928,25929,25930,25931,25932,25933,25934,25935,25936,25937,25938,25939,25940,25941,25942,25943,25944,25945,25946,25947,25948,25949,25950,25951,25952,25953,25954,25955,25956,25957,25958,25959,25960,25961,25962,25963,25964,25965,25966,25967,25968,25969,25970,25971,25972,25973,25974,25975,25976,25977,25978,25979,25980,25981,25982,25983,25984,25985,25986,25987,25988,25989,25990,25991,25992,25993,25994,25995,25996,25997,25998,25999,26000,26001,26002,26003,26004,26005,26006,26007,26008,26009,26010,26011,26012,26013,26014,26015,26016,26017,26018,26019,26020,26021,26022,26023,26024,26025,26026,26027,26028,26029,26030,26031,26032,26033,26034,26035,26036,26037,26038,26039,26040,26041,26042,26043,26044,26045,26046,26047,26048,26049,26050,26051,26052,26053,26054,26055,26056,26057,26058,26059,26060,26061,26062,26063,26064,26065,26066,26067,26068,26069,26070,26071,26072,26073,26074,26075,26076,26077,26078,26079,26080,26081,26082,26083,26084,26085,26086,26087,26088,26089,26090,26091,26092,26093,26094,26095,26096,26097,26098,26099,26100,26101,26102,26103,26104,26105,26106,26107,26108,26109,26110,26111,26112,26113,26114,26115,26116,26117,26118,26119,26120,26121,26122,26123,26124,26125,26126,26127,26128,26129,26130,26131,26132,26133,26134,26135,26136,26137,26138,26139,26140,26141,26142,26143,26144,26145,26146,26147,26148,26149,26150,26151,26152,26153,26154,26155,26156,26157,26158,26159,26160,26161,26162,26163,26164,26165,26166,26167,26168,26169,26170,26171,26172,26173,26174,26175,26176,26177,26178,26179,26180,26181,26182,26183,26184,26185,26186,26187,26188,26189,26190,26191,26192,26193,26194,26195,26196,26197,26198,26199,26200,26201,26202,26203,26204,26205,26206,26207,26208,26209,26210,26211,26212,26213,26214,26215,26216,26217,26218,26219,26220,26221,26222,26223,26224,26225,26226,26227,26228,26229,26230,26231,26232,26233,26234,26235,26236,26237,26238,26239,26240,26241,26242,26243,26244,26245,26246,26247,26248,26249,26250,26251,26252,26253,26254,26255,26256,26257,26258,26259,26260,26261,26262,26263,26264,26265,26266,26267,26268,26269,26270,26271,26272,26273,26274,26275,26276,26277,26278,26279,26280,26281,26282,26283,26284,26285,26286,26287,26288,26289,26290,26291,26292,26293,26294,26295,26296,26297,26298,26299,26300,26301,26302,26303,26304,26305,26306,26307,26308,26309,26310,26311,26312,26313,26314,26315,26316,26317,26318,26319,26320,26321,26322,26323,26324,26325,26326,26327,26328,26329,26330,26331,26332,26333,26334,26335,26336,26337,26338,26339,26340,26341,26342,26343,26344,26345,26346,26347,26348,26349,26350,26351,26352,26353,26354,26355,26356,26357,26358,26359,26360,26361,26362,26363,26364,26365,26366,26367,26368,26369,26370,26371,26372,26373,26374,26375,26376,26377,26378,26379,26380,26381,26382,26383,26384,26385,26386,26387,26388,26389,26390,26391,26392,26393,26394,26395,26396,26397,26398,26399,26400,26401,26402,26403,26404,26405,26406,26407,26408,26409,26410,26411,26412,26413,26414,26415,26416,26417,26418,26419,26420,26421,26422,26423,26424,26425,26426,26427,26428,26429,26430,26431,26432,26433,26434,26435,26436,26437,26438,26439,26440,26441,26442,26443,26444,26445,26446,26447,26448,26449,26450,26451,26452,26453,26454,26455,26456,26457,26458,26459,26460,26461,26462,26463,26464,26465,26466,26467,26468,26469,26470,26471,26472,26473,26474,26475,26476,26477,26478,26479,26480,26481,26482,26483,26484,26485,26486,26487,26488,26489,26490,26491,26492,26493,26494,26495,26496,26497,26498,26499,26500,26501,26502,26503,26504,26505,26506,26507,26508,26509,26510,26511,26512,26513,26514,26515,26516,26517,26518,26519,26520,26521,26522,26523,26524,26525,26526,26527,26528,26529,26530,26531,26532,26533,26534,26535,26536,26537,26538,26539,26540,26541,26542,26543,26544,26545,26546,26547,26548,26549,26550,26551,26552,26553,26554,26555,26556,26557,26558,26559,26560,26561,26562,26563,26564,26565,26566,26567,26568,26569,26570,26571,26572,26573,26574,26575,26576,26577,26578,26579,26580,26581,26582,26583,26584,26585,26586,26587,26588,26589,26590,26591,26592,26593,26594,26595,26596,26597,26598,26599,26600,26601,26602,26603,26604,26605,26606,26607,26608,26609,26610,26611,26612,26613,26614,26615,26616,26617,26618,26619,26620,26621,26622,26623,26624,26625,26626,26627,26628,26629,26630,26631,26632,26633,26634,26635,26636,26637,26638,26639,26640,26641,26642,26643,26644,26645,26646,26647,26648,26649,26650,26651,26652,26653,26654,26655,26656,26657,26658,26659,26660,26661,26662,26663,26664,26665,26666,26667,26668,26669,26670,26671,26672,26673,26674,26675,26676,26677,26678,26679,26680,26681,26682,26683,26684,26685,26686,26687,26688,26689,26690,26691,26692,26693,26694,26695,26696,26697,26698,26699,26700,26701,26702,26703,26704,26705,26706,26707,26708,26709,26710,26711,26712,26713,26714,26715,26716,26717,26718,26719,26720,26721,26722,26723,26724,26725,26726,26727,26728,26729,26730,26731,26732,26733,26734,26735,26736,26737,26738,26739,26740,26741,26742,26743,26744,26745,26746,26747,26748,26749,26750,26751,26752,26753,26754,26755,26756,26757,26758,26759,26760,26761,26762,26763,26764,26765,26766,26767,26768,26769,26770,26771,26772,26773,26774,26775,26776,26777,26778,26779,26780,26781,26782,26783,26784,26785,26786,26787,26788,26789,26790,26791,26792,26793,26794,26795,26796,26797,26798,26799,26800,26801,26802,26803,26804,26805,26806,26807,26808,26809,26810,26811,26812,26813,26814,26815,26816,26817,26818,26819,26820,26821,26822,26823,26824,26825,26826,26827,26828,26829,26830,26831,26832,26833,26834,26835,26836,26837,26838,26839,26840,26841,26842,26843,26844,26845,26846,26847,26848,26849,26850,26851,26852,26853,26854,26855,26856,26857,26858,26859,26860,26861,26862,26863,26864,26865,26866,26867,26868,26869,26870,26871,26872,26873,26874,26875,26876,26877,26878,26879,26880,26881,26882,26883,26884,26885,26886,26887,26888,26889,26890,26891,26892,26893,26894,26895,26896,26897,26898,26899,26900,26901,26902,26903,26904,26905,26906,26907,26908,26909,26910,26911,26912,26913,26914,26915,26916,26917,26918,26919,26920,26921,26922,26923,26924,26925,26926,26927,26928,26929,26930,26931,26932,26933,26934,26935,26936,26937,26938,26939,26940,26941,26942,26943,26944,26945,26946,26947,26948,26949,26950,26951,26952,26953,26954,26955,26956,26957,26958,26959,26960,26961,26962,26963,26964,26965,26966,26967,26968,26969,26970,26971,26972,26973,26974,26975,26976,26977,26978,26979,26980,26981,26982,26983,26984,26985,26986,26987,26988,26989,26990,26991,26992,26993,26994,26995,26996,26997,26998,26999,27000,27001,27002,27003,27004,27005,27006,27007,27008,27009,27010,27011,27012,27013,27014,27015,27016,27017,27018,27019,27020,27021,27022,27023,27024,27025,27026,27027,27028,27029,27030,27031,27032,27033,27034,27035,27036,27037,27038,27039,27040,27041,27042,27043,27044,27045,27046,27047,27048,27049,27050,27051,27052,27053,27054,27055,27056,27057,27058,27059,27060,27061,27062,27063,27064,27065,27066,27067,27068,27069,27070,27071,27072,27073,27074,27075,27076,27077,27078,27079,27080,27081,27082,27083,27084,27085,27086,27087,27088,27089,27090,27091,27092,27093,27094,27095,27096,27097,27098,27099,27100,27101,27102,27103,27104,27105,27106,27107,27108,27109,27110,27111,27112,27113,27114,27115,27116,27117,27118,27119,27120,27121,27122,27123,27124,27125,27126,27127,27128,27129,27130,27131,27132,27133,27134,27135,27136,27137,27138,27139,27140,27141,27142,27143,27144,27145,27146,27147,27148,27149,27150,27151,27152,27153,27154,27155,27156,27157,27158,27159,27160,27161,27162,27163,27164,27165,27166,27167,27168,27169,27170,27171,27172,27173,27174,27175,27176,27177,27178,27179,27180,27181,27182,27183,27184,27185,27186,27187,27188,27189,27190,27191,27192,27193,27194,27195,27196,27197,27198,27199,27200,27201,27202,27203,27204,27205,27206,27207,27208,27209,27210,27211,27212,27213,27214,27215,27216,27217,27218,27219,27220,27221,27222,27223,27224,27225,27226,27227,27228,27229,27230,27231,27232,27233,27234,27235,27236,27237,27238,27239,27240,27241,27242,27243,27244,27245,27246,27247,27248,27249,27250,27251,27252,27253,27254,27255,27256,27257,27258,27259,27260,27261,27262,27263,27264,27265,27266,27267,27268,27269,27270,27271,27272,27273,27274,27275,27276,27277,27278,27279,27280,27281,27282,27283,27284,27285,27286,27287,27288,27289,27290,27291,27292,27293,27294,27295,27296,27297,27298,27299,27300,27301,27302,27303,27304,27305,27306,27307,27308,27309,27310,27311,27312,27313,27314,27315,27316,27317,27318,27319,27320,27321,27322,27323,27324,27325,27326,27327,27328,27329,27330,27331,27332,27333,27334,27335,27336,27337,27338,27339,27340,27341,27342,27343,27344,27345,27346,27347,27348,27349,27350,27351,27352,27353,27354,27355,27356,27357,27358,27359,27360,27361,27362,27363,27364,27365,27366,27367,27368,27369,27370,27371,27372,27373,27374,27375,27376,27377,27378,27379,27380,27381,27382,27383,27384,27385,27386,27387,27388,27389,27390,27391,27392,27393,27394,27395,27396,27397,27398,27399,27400,27401,27402,27403,27404,27405,27406,27407,27408,27409,27410,27411,27412,27413,27414,27415,27416,27417,27418,27419,27420,27421,27422,27423,27424,27425,27426,27427,27428,27429,27430,27431,27432,27433,27434,27435,27436,27437,27438,27439,27440,27441,27442,27443,27444,27445,27446,27447,27448,27449,27450,27451,27452,27453,27454,27455,27456,27457,27458,27459,27460,27461,27462,27463,27464,27465,27466,27467,27468,27469,27470,27471,27472,27473,27474,27475,27476,27477,27478,27479,27480,27481,27482,27483,27484,27485,27486,27487,27488,27489,27490,27491,27492,27493,27494,27495,27496,27497,27498,27499,27500,27501,27502,27503,27504,27505,27506,27507,27508,27509,27510,27511,27512,27513,27514,27515,27516,27517,27518,27519,27520,27521,27522,27523,27524,27525,27526,27527,27528,27529,27530,27531,27532,27533,27534,27535,27536,27537,27538,27539,27540,27541,27542,27543,27544,27545,27546,27547,27548,27549,27550,27551,27552,27553,27554,27555,27556,27557,27558,27559,27560,27561,27562,27563,27564,27565,27566,27567,27568,27569,27570,27571,27572,27573,27574,27575,27576,27577,27578,27579,27580,27581,27582,27583,27584,27585,27586,27587,27588,27589,27590,27591,27592,27593,27594,27595,27596,27597,27598,27599,27600,27601,27602,27603,27604,27605,27606,27607,27608,27609,27610,27611,27612,27613,27614,27615,27616,27617,27618,27619,27620,27621,27622,27623,27624,27625,27626,27627,27628,27629,27630,27631,27632,27633,27634,27635,27636,27637,27638,27639,27640,27641,27642,27643,27644,27645,27646,27647,27648,27649,27650,27651,27652,27653,27654,27655,27656,27657,27658,27659,27660,27661,27662,27663,27664,27665,27666,27667,27668,27669,27670,27671,27672,27673,27674,27675,27676,27677,27678,27679,27680,27681,27682,27683,27684,27685,27686,27687,27688,27689,27690,27691,27692,27693,27694,27695,27696,27697,27698,27699,27700,27701,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27742,27743,27744,27745,27746,27747,27748,27749,27750,27751,27752,27753,27754,27755,27756,27757,27758,27759,27760,27761,27762,27763,27764,27765,27766,27767,27768,27769,27770,27771,27772,27773,27774,27775,27776,27777,27778,27779,27780,27781,27782,27783,27784,27785,27786,27787,27788,27789,27790,27791,27792,27793,27794,27795,27796,27797,27798,27799,27800,27801,27802,27803,27804,27805,27806,27807,27808,27809,27810,27811,27812,27813,27814,27815,27816,27817,27818,27819,27820,27821,27822,27823,27824,27825,27826,27827,27828,27829,27830,27831,27832,27833,27834,27835,27836,27837,27838,27839,27840,27841,27842,27843,27844,27845,27846,27847,27848,27849,27850,27851,27852,27853,27854,27855,27856,27857,27858,27859,27860,27861,27862,27863,27864,27865,27866,27867,27868,27869,27870,27871,27872,27873,27874,27875,27876,27877,27878,27879,27880,27881,27882,27883,27884,27885,27886,27887,27888,27889,27890,27891,27892,27893,27894,27895,27896,27897,27898,27899,27900,27901,27902,27903,27904,27905,27906,27907,27908,27909,27910,27911,27912,27913,27914,27915,27916,27917,27918,27919,27920,27921,27922,27923,27924,27925,27926,27927,27928,27929,27930,27931,27932,27933,27934,27935,27936,27937,27938,27939,27940,27941,27942,27943,27944,27945,27946,27947,27948,27949,27950,27951,27952,27953,27954,27955,27956,27957,27958,27959,27960,27961,27962,27963,27964,27965,27966,27967,27968,27969,27970,27971,27972,27973,27974,27975,27976,27977,27978,27979,27980,27981,27982,27983,27984,27985,27986,27987,27988,27989,27990,27991,27992,27993,27994,27995,27996,27997,27998,27999,28000,28001,28002,28003,28004,28005,28006,28007,28008,28009,28010,28011,28012,28013,28014,28015,28016,28017,28018,28019,28020,28021,28022,28023,28024,28025,28026,28027,28028,28029,28030,28031,28032,28033,28034,28035,28036,28037,28038,28039,28040,28041,28042,28043,28044,28045,28046,28047,28048,28049,28050,28051,28052,28053,28054,28055,28056,28057,28058,28059,28060,28061,28062,28063,28064,28065,28066,28067,28068,28069,28070,28071,28072,28073,28074,28075,28076,28077,28078,28079,28080,28081,28082,28083,28084,28085,28086,28087,28088,28089,28090,28091,28092,28093,28094,28095,28096,28097,28098,28099,28100,28101,28102,28103,28104,28105,28106,28107,28108,28109,28110,28111,28112,28113,28114,28115,28116,28117,28118,28119,28120,28121,28122,28123,28124,28125,28126,28127,28128,28129,28130,28131,28132,28133,28134,28135,28136,28137,28138,28139,28140,28141,28142,28143,28144,28145,28146,28147,28148,28149,28150,28151,28152,28153,28154,28155,28156,28157,28158,28159,28160,28161,28162,28163,28164,28165,28166,28167,28168,28169,28170,28171,28172,28173,28174,28175,28176,28177,28178,28179,28180,28181,28182,28183,28184,28185,28186,28187,28188,28189,28190,28191,28192,28193,28194,28195,28196,28197,28198,28199,28200,28201,28202,28203,28204,28205,28206,28207,28208,28209,28210,28211,28212,28213,28214,28215,28216,28217,28218,28219,28220,28221,28222,28223,28224,28225,28226,28227,28228,28229,28230,28231,28232,28233,28234,28235,28236,28237,28238,28239,28240,28241,28242,28243,28244,28245,28246,28247,28248,28249,28250,28251,28252,28253,28254,28255,28256,28257,28258,28259,28260,28261,28262,28263,28264,28265,28266,28267,28268,28269,28270,28271,28272,28273,28274,28275,28276,28277,28278,28279,28280,28281,28282,28283,28284,28285,28286,28287,28288,28289,28290,28291,28292,28293,28294,28295,28296,28297,28298,28299,28300,28301,28302,28303,28304,28305,28306,28307,28308,28309,28310,28311,28312,28313,28314,28315,28316,28317,28318,28319,28320,28321,28322,28323,28324,28325,28326,28327,28328,28329,28330,28331,28332,28333,28334,28335,28336,28337,28338,28339,28340,28341,28342,28343,28344,28345,28346,28347,28348,28349,28350,28351,28352,28353,28354,28355,28356,28357,28358,28359,28360,28361,28362,28363,28364,28365,28366,28367,28368,28369,28370,28371,28372,28373,28374,28375,28376,28377,28378,28379,28380,28381,28382,28383,28384,28385,28386,28387,28388,28389,28390,28391,28392,28393,28394,28395,28396,28397,28398,28399,28400,28401,28402,28403,28404,28405,28406,28407,28408,28409,28410,28411,28412,28413,28414,28415,28416,28417,28418,28419,28420,28421,28422,28423,28424,28425,28426,28427,28428,28429,28430,28431,28432,28433,28434,28435,28436,28437,28438,28439,28440,28441,28442,28443,28444,28445,28446,28447,28448,28449,28450,28451,28452,28453,28454,28455,28456,28457,28458,28459,28460,28461,28462,28463,28464,28465,28466,28467,28468,28469,28470,28471,28472,28473,28474,28475,28476,28477,28478,28479,28480,28481,28482,28483,28484,28485,28486,28487,28488,28489,28490,28491,28492,28493,28494,28495,28496,28497,28498,28499,28500,28501,28502,28503,28504,28505,28506,28507,28508,28509,28510,28511,28512,28513,28514,28515,28516,28517,28518,28519,28520,28521,28522,28523,28524,28525,28526,28527,28528,28529,28530,28531,28532,28533,28534,28535,28536,28537,28538,28539,28540,28541,28542,28543,28544,28545,28546,28547,28548,28549,28550,28551,28552,28553,28554,28555,28556,28557,28558,28559,28560,28561,28562,28563,28564,28565,28566,28567,28568,28569,28570,28571,28572,28573,28574,28575,28576,28577,28578,28579,28580,28581,28582,28583,28584,28585,28586,28587,28588,28589,28590,28591,28592,28593,28594,28595,28596,28597,28598,28599,28600,28601,28602,28603,28604,28605,28606,28607,28608,28609,28610,28611,28612,28613,28614,28615,28616,28617,28618,28619,28620,28621,28622,28623,28624,28625,28626,28627,28628,28629,28630,28631,28632,28633,28634,28635,28636,28637,28638,28639,28640,28641,28642,28643,28644,28645,28646,28647,28648,28649,28650,28651,28652,28653,28654,28655,28656,28657,28658,28659,28660,28661,28662,28663,28664,28665,28666,28667,28668,28669,28670,28671,28672,28673,28674,28675,28676,28677,28678,28679,28680,28681,28682,28683,28684,28685,28686,28687,28688,28689,28690,28691,28692,28693,28694,28695,28696,28697,28698,28699,28700,28701,28702,28703,28704,28705,28706,28707,28708,28709,28710,28711,28712,28713,28714,28715,28716,28717,28718,28719,28720,28721,28722,28723,28724,28725,28726,28727,28728,28729,28730,28731,28732,28733,28734,28735,28736,28737,28738,28739,28740,28741,28742,28743,28744,28745,28746,28747,28748,28749,28750,28751,28752,28753,28754,28755,28756,28757,28758,28759,28760,28761,28762,28763,28764,28765,28766,28767,28768,28769,28770,28771,28772,28773,28774,28775,28776,28777,28778,28779,28780,28781,28782,28783,28784,28785,28786,28787,28788,28789,28790,28791,28792,28793,28794,28795,28796,28797,28798,28799,28800,28801,28802,28803,28804,28805,28806,28807,28808,28809,28810,28811,28812,28813,28814,28815,28816,28817,28818,28819,28820,28821,28822,28823,28824,28825,28826,28827,28828,28829,28830,28831,28832,28833,28834,28835,28836,28837,28838,28839,28840,28841,28842,28843,28844,28845,28846,28847,28848,28849,28850,28851,28852,28853,28854,28855,28856,28857,28858,28859,28860,28861,28862,28863,28864,28865,28866,28867,28868,28869,28870,28871,28872,28873,28874,28875,28876,28877,28878,28879,28880,28881,28882,28883,28884,28885,28886,28887,28888,28889,28890,28891,28892,28893,28894,28895,28896,28897,28898,28899,28900,28901,28902,28903,28904,28905,28906,28907,28908,28909,28910,28911,28912,28913,28914,28915,28916,28917,28918,28919,28920,28921,28922,28923,28924,28925,28926,28927,28928,28929,28930,28931,28932,28933,28934,28935,28936,28937,28938,28939,28940,28941,28942,28943,28944,28945,28946,28947,28948,28949,28950,28951,28952,28953,28954,28955,28956,28957,28958,28959,28960,28961,28962,28963,28964,28965,28966,28967,28968,28969,28970,28971,28972,28973,28974,28975,28976,28977,28978,28979,28980,28981,28982,28983,28984,28985,28986,28987,28988,28989,28990,28991,28992,28993,28994,28995,28996,28997,28998,28999,29000,29001,29002,29003,29004,29005,29006,29007,29008,29009,29010,29011,29012,29013,29014,29015,29016,29017,29018,29019,29020,29021,29022,29023,29024,29025,29026,29027,29028,29029,29030,29031,29032,29033,29034,29035,29036,29037,29038,29039,29040,29041,29042,29043,29044,29045,29046,29047,29048,29049,29050,29051,29052,29053,29054,29055,29056,29057,29058,29059,29060,29061,29062,29063,29064,29065,29066,29067,29068,29069,29070,29071,29072,29073,29074,29075,29076,29077,29078,29079,29080,29081,29082,29083,29084,29085,29086,29087,29088,29089,29090,29091,29092,29093,29094,29095,29096,29097,29098,29099,29100,29101,29102,29103,29104,29105,29106,29107,29108,29109,29110,29111,29112,29113,29114,29115,29116,29117,29118,29119,29120,29121,29122,29123,29124,29125,29126,29127,29128,29129,29130,29131,29132,29133,29134,29135,29136,29137,29138,29139,29140,29141,29142,29143,29144,29145,29146,29147,29148,29149,29150,29151,29152,29153,29154,29155,29156,29157,29158,29159,29160,29161,29162,29163,29164,29165,29166,29167,29168,29169,29170,29171,29172,29173,29174,29175,29176,29177,29178,29179,29180,29181,29182,29183,29184,29185,29186,29187,29188,29189,29190,29191,29192,29193,29194,29195,29196,29197,29198,29199,29200,29201,29202,29203,29204,29205,29206,29207,29208,29209,29210,29211,29212,29213,29214,29215,29216,29217,29218,29219,29220,29221,29222,29223,29224,29225,29226,29227,29228,29229,29230,29231,29232,29233,29234,29235,29236,29237,29238,29239,29240,29241,29242,29243,29244,29245,29246,29247,29248,29249,29250,29251,29252,29253,29254,29255,29256,29257,29258,29259,29260,29261,29262,29263,29264,29265,29266,29267,29268,29269,29270,29271,29272,29273,29274,29275,29276,29277,29278,29279,29280,29281,29282,29283,29284,29285,29286,29287,29288,29289,29290,29291,29292,29293,29294,29295,29296,29297,29298,29299,29300,29301,29302,29303,29304,29305,29306,29307,29308,29309,29310,29311,29312,29313,29314,29315,29316,29317,29318,29319,29320,29321,29322,29323,29324,29325,29326,29327,29328,29329,29330,29331,29332,29333,29334,29335,29336,29337,29338,29339,29340,29341,29342,29343,29344,29345,29346,29347,29348,29349,29350,29351,29352,29353,29354,29355,29356,29357,29358,29359,29360,29361,29362,29363,29364,29365,29366,29367,29368,29369,29370,29371,29372,29373,29374,29375,29376,29377,29378,29379,29380,29381,29382,29383,29384,29385,29386,29387,29388,29389,29390,29391,29392,29393,29394,29395,29396,29397,29398,29399,29400,29401,29402,29403,29404,29405,29406,29407,29408,29409,29410,29411,29412,29413,29414,29415,29416,29417,29418,29419,29420,29421,29422,29423,29424,29425,29426,29427,29428,29429,29430,29431,29432,29433,29434,29435,29436,29437,29438,29439,29440,29441,29442,29443,29444,29445,29446,29447,29448,29449,29450,29451,29452,29453,29454,29455,29456,29457,29458,29459,29460,29461,29462,29463,29464,29465,29466,29467,29468,29469,29470,29471,29472,29473,29474,29475,29476,29477,29478,29479,29480,29481,29482,29483,29484,29485,29486,29487,29488,29489,29490,29491,29492,29493,29494,29495,29496,29497,29498,29499,29500,29501,29502,29503,29504,29505,29506,29507,29508,29509,29510,29511,29512,29513,29514,29515,29516,29517,29518,29519,29520,29521,29522,29523,29524,29525,29526,29527,29528,29529,29530,29531,29532,29533,29534,29535,29536,29537,29538,29539,29540,29541,29542,29543,29544,29545,29546,29547,29548,29549,29550,29551,29552,29553,29554,29555,29556,29557,29558,29559,29560,29561,29562,29563,29564,29565,29566,29567,29568,29569,29570,29571,29572,29573,29574,29575,29576,29577,29578,29579,29580,29581,29582,29583,29584,29585,29586,29587,29588,29589,29590,29591,29592,29593,29594,29595,29596,29597,29598,29599,29600,29601,29602,29603,29604,29605,29606,29607,29608,29609,29610,29611,29612,29613,29614,29615,29616,29617,29618,29619,29620,29621,29622,29623,29624,29625,29626,29627,29628,29629,29630,29631,29632,29633,29634,29635,29636,29637,29638,29639,29640,29641,29642,29643,29644,29645,29646,29647,29648,29649,29650,29651,29652,29653,29654,29655,29656,29657,29658,29659,29660,29661,29662,29663,29664,29665,29666,29667,29668,29669,29670,29671,29672,29673,29674,29675,29676,29677,29678,29679,29680,29681,29682,29683,29684,29685,29686,29687,29688,29689,29690,29691,29692,29693,29694,29695,29696,29697,29698,29699,29700,29701,29702,29703,29704,29705,29706,29707,29708,29709,29710,29711,29712,29713,29714,29715,29716,29717,29718,29719,29720,29721,29722,29723,29724,29725,29726,29727,29728,29729,29730,29731,29732,29733,29734,29735,29736,29737,29738,29739,29740,29741,29742,29743,29744,29745,29746,29747,29748,29749,29750,29751,29752,29753,29754,29755,29756,29757,29758,29759,29760,29761,29762,29763,29764,29765,29766,29767,29768,29769,29770,29771,29772,29773,29774,29775,29776,29777,29778,29779,29780,29781,29782,29783,29784,29785,29786,29787,29788,29789,29790,29791,29792,29793,29794,29795,29796,29797,29798,29799,29800,29801,29802,29803,29804,29805,29806,29807,29808,29809,29810,29811,29812,29813,29814,29815,29816,29817,29818,29819,29820,29821,29822,29823,29824,29825,29826,29827,29828,29829,29830,29831,29832,29833,29834,29835,29836,29837,29838,29839,29840,29841,29842,29843,29844,29845,29846,29847,29848,29849,29850,29851,29852,29853,29854,29855,29856,29857,29858,29859,29860,29861,29862,29863,29864,29865,29866,29867,29868,29869,29870,29871,29872,29873,29874,29875,29876,29877,29878,29879,29880,29881,29882,29883,29884,29885,29886,29887,29888,29889,29890,29891,29892,29893,29894,29895,29896,29897,29898,29899,29900,29901,29902,29903,29904,29905,29906,29907,29908,29909,29910,29911,29912,29913,29914,29915,29916,29917,29918,29919,29920,29921,29922,29923,29924,29925,29926,29927,29928,29929,29930,29931,29932,29933,29934,29935,29936,29937,29938,29939,29940,29941,29942,29943,29944,29945,29946,29947,29948,29949,29950,29951,29952,29953,29954,29955,29956,29957,29958,29959,29960,29961,29962,29963,29964,29965,29966,29967,29968,29969,29970,29971,29972,29973,29974,29975,29976,29977,29978,29979,29980,29981,29982,29983,29984,29985,29986,29987,29988,29989,29990,29991,29992,29993,29994,29995,29996,29997,29998,29999,30000,30001,30002,30003,30004,30005,30006,30007,30008,30009,30010,30011,30012,30013,30014,30015,30016,30017,30018,30019,30020,30021,30022,30023,30024,30025,30026,30027,30028,30029,30030,30031,30032,30033,30034,30035,30036,30037,30038,30039,30040,30041,30042,30043,30044,30045,30046,30047,30048,30049,30050,30051,30052,30053,30054,30055,30056,30057,30058,30059,30060,30061,30062,30063,30064,30065,30066,30067,30068,30069,30070,30071,30072,30073,30074,30075,30076,30077,30078,30079,30080,30081,30082,30083,30084,30085,30086,30087,30088,30089,30090,30091,30092,30093,30094,30095,30096,30097,30098,30099,30100,30101,30102,30103,30104,30105,30106,30107,30108,30109,30110,30111,30112,30113,30114,30115,30116,30117,30118,30119,30120,30121,30122,30123,30124,30125,30126,30127,30128,30129,30130,30131,30132,30133,30134,30135,30136,30137,30138,30139,30140,30141,30142,30143,30144,30145,30146,30147,30148,30149,30150,30151,30152,30153,30154,30155,30156,30157,30158,30159,30160,30161,30162,30163,30164,30165,30166,30167,30168,30169,30170,30171,30172,30173,30174,30175,30176,30177,30178,30179,30180,30181,30182,30183,30184,30185,30186,30187,30188,30189,30190,30191,30192,30193,30194,30195,30196,30197,30198,30199,30200,30201,30202,30203,30204,30205,30206,30207,30208,30209,30210,30211,30212,30213,30214,30215,30216,30217,30218,30219,30220,30221,30222,30223,30224,30225,30226,30227,30228,30229,30230,30231,30232,30233,30234,30235,30236,30237,30238,30239,30240,30241,30242,30243,30244,30245,30246,30247,30248,30249,30250,30251,30252,30253,30254,30255,30256,30257,30258,30259,30260,30261,30262,30263,30264,30265,30266,30267,30268,30269,30270,30271,30272,30273,30274,30275,30276,30277,30278,30279,30280,30281,30282,30283,30284,30285,30286,30287,30288,30289,30290,30291,30292,30293,30294,30295,30296,30297,30298,30299,30300,30301,30302,30303,30304,30305,30306,30307,30308,30309,30310,30311,30312,30313,30314,30315,30316,30317,30318,30319,30320,30321,30322,30323,30324,30325,30326,30327,30328,30329,30330,30331,30332,30333,30334,30335,30336,30337,30338,30339,30340,30341,30342,30343,30344,30345,30346,30347,30348,30349,30350,30351,30352,30353,30354,30355,30356,30357,30358,30359,30360,30361,30362,30363,30364,30365,30366,30367,30368,30369,30370,30371,30372,30373,30374,30375,30376,30377,30378,30379,30380,30381,30382,30383,30384,30385,30386,30387,30388,30389,30390,30391,30392,30393,30394,30395,30396,30397,30398,30399,30400,30401,30402,30403,30404,30405,30406,30407,30408,30409,30410,30411,30412,30413,30414,30415,30416,30417,30418,30419,30420,30421,30422,30423,30424,30425,30426,30427,30428,30429,30430,30431,30432,30433,30434,30435,30436,30437,30438,30439,30440,30441,30442,30443,30444,30445,30446,30447,30448,30449,30450,30451,30452,30453,30454,30455,30456,30457,30458,30459,30460,30461,30462,30463,30464,30465,30466,30467,30468,30469,30470,30471,30472,30473,30474,30475,30476,30477,30478,30479,30480,30481,30482,30483,30484,30485,30486,30487,30488,30489,30490,30491,30492,30493,30494,30495,30496,30497,30498,30499,30500,30501,30502,30503,30504,30505,30506,30507,30508,30509,30510,30511,30512,30513,30514,30515,30516,30517,30518,30519,30520,30521,30522,30523,30524,30525,30526,30527,30528,30529,30530,30531,30532,30533,30534,30535,30536,30537,30538,30539,30540,30541,30542,30543,30544,30545,30546,30547,30548,30549,30550,30551,30552,30553,30554,30555,30556,30557,30558,30559,30560,30561,30562,30563,30564,30565,30566,30567,30568,30569,30570,30571,30572,30573,30574,30575,30576,30577,30578,30579,30580,30581,30582,30583,30584,30585,30586,30587,30588,30589,30590,30591,30592,30593,30594,30595,30596,30597,30598,30599,30600,30601,30602,30603,30604,30605,30606,30607,30608,30609,30610,30611,30612,30613,30614,30615,30616,30617,30618,30619,30620,30621,30622,30623,30624,30625,30626,30627,30628,30629,30630,30631,30632,30633,30634,30635,30636,30637,30638,30639,30640,30641,30642,30643,30644,30645,30646,30647,30648,30649,30650,30651,30652,30653,30654,30655,30656,30657,30658,30659,30660,30661,30662,30663,30664,30665,30666,30667,30668,30669,30670,30671,30672,30673,30674,30675,30676,30677,30678,30679,30680,30681,30682,30683,30684,30685,30686,30687,30688,30689,30690,30691,30692,30693,30694,30695,30696,30697,30698,30699,30700,30701,30702,30703,30704,30705,30706,30707,30708,30709,30710,30711,30712,30713,30714,30715,30716,30717,30718,30719,30720,30721,30722,30723,30724,30725,30726,30727,30728,30729,30730,30731,30732,30733,30734,30735,30736,30737,30738,30739,30740,30741,30742,30743,30744,30745,30746,30747,30748,30749,30750,30751,30752,30753,30754,30755,30756,30757,30758,30759,30760,30761,30762,30763,30764,30765,30766,30767,30768,30769,30770,30771,30772,30773,30774,30775,30776,30777,30778,30779,30780,30781,30782,30783,30784,30785,30786,30787,30788,30789,30790,30791,30792,30793,30794,30795,30796,30797,30798,30799,30800,30801,30802,30803,30804,30805,30806,30807,30808,30809,30810,30811,30812,30813,30814,30815,30816,30817,30818,30819,30820,30821,30822,30823,30824,30825,30826,30827,30828,30829,30830,30831,30832,30833,30834,30835,30836,30837,30838,30839,30840,30841,30842,30843,30844,30845,30846,30847,30848,30849,30850,30851,30852,30853,30854,30855,30856,30857,30858,30859,30860,30861,30862,30863,30864,30865,30866,30867,30868,30869,30870,30871,30872,30873,30874,30875,30876,30877,30878,30879,30880,30881,30882,30883,30884,30885,30886,30887,30888,30889,30890,30891,30892,30893,30894,30895,30896,30897,30898,30899,30900,30901,30902,30903,30904,30905,30906,30907,30908,30909,30910,30911,30912,30913,30914,30915,30916,30917,30918,30919,30920,30921,30922,30923,30924,30925,30926,30927,30928,30929,30930,30931,30932,30933,30934,30935,30936,30937,30938,30939,30940,30941,30942,30943,30944,30945,30946,30947,30948,30949,30950,30951,30952,30953,30954,30955,30956,30957,30958,30959,30960,30961,30962,30963,30964,30965,30966,30967,30968,30969,30970,30971,30972,30973,30974,30975,30976,30977,30978,30979,30980,30981,30982,30983,30984,30985,30986,30987,30988,30989,30990,30991,30992,30993,30994,30995,30996,30997,30998,30999,31000,31001,31002,31003,31004,31005,31006,31007,31008,31009,31010,31011,31012,31013,31014,31015,31016,31017,31018,31019,31020,31021,31022,31023,31024,31025,31026,31027,31028,31029,31030,31031,31032,31033,31034,31035,31036,31037,31038,31039,31040,31041,31042,31043,31044,31045,31046,31047,31048,31049,31050,31051,31052,31053,31054,31055,31056,31057,31058,31059,31060,31061,31062,31063,31064,31065,31066,31067,31068,31069,31070,31071,31072,31073,31074,31075,31076,31077,31078,31079,31080,31081,31082,31083,31084,31085,31086,31087,31088,31089,31090,31091,31092,31093,31094,31095,31096,31097,31098,31099,31100,31101,31102,31103,31104,31105,31106,31107,31108,31109,31110,31111,31112,31113,31114,31115,31116,31117,31118,31119,31120,31121,31122,31123,31124,31125,31126,31127,31128,31129,31130,31131,31132,31133,31134,31135,31136,31137,31138,31139,31140,31141,31142,31143,31144,31145,31146,31147,31148,31149,31150,31151,31152,31153,31154,31155,31156,31157,31158,31159,31160,31161,31162,31163,31164,31165,31166,31167,31168,31169,31170,31171,31172,31173,31174,31175,31176,31177,31178,31179,31180,31181,31182,31183,31184,31185,31186,31187,31188,31189,31190,31191,31192,31193,31194,31195,31196,31197,31198,31199,31200,31201,31202,31203,31204,31205,31206,31207,31208,31209,31210,31211,31212,31213,31214,31215,31216,31217,31218,31219,31220,31221,31222,31223,31224,31225,31226,31227,31228,31229,31230,31231,31232,31233,31234,31235,31236,31237,31238,31239,31240,31241,31242,31243,31244,31245,31246,31247,31248,31249,31250,31251,31252,31253,31254,31255,31256,31257,31258,31259,31260,31261,31262,31263,31264,31265,31266,31267,31268,31269,31270,31271,31272,31273,31274,31275,31276,31277,31278,31279,31280,31281,31282,31283,31284,31285,31286,31287,31288,31289,31290,31291,31292,31293,31294,31295,31296,31297,31298,31299,31300,31301,31302,31303,31304,31305,31306,31307,31308,31309,31310,31311,31312,31313,31314,31315,31316,31317,31318,31319,31320,31321,31322,31323,31324,31325,31326,31327,31328,31329,31330,31331,31332,31333,31334,31335,31336,31337,31338,31339,31340,31341,31342,31343,31344,31345,31346,31347,31348,31349,31350,31351,31352,31353,31354,31355,31356,31357,31358,31359,31360,31361,31362,31363,31364,31365,31366,31367,31368,31369,31370,31371,31372,31373,31374,31375,31376,31377,31378,31379,31380,31381,31382,31383,31384,31385,31386,31387,31388,31389,31390,31391,31392,31393,31394,31395,31396,31397,31398,31399,31400,31401,31402,31403,31404,31405,31406,31407,31408,31409,31410,31411,31412,31413,31414,31415,31416,31417,31418,31419,31420,31421,31422,31423,31424,31425,31426,31427,31428,31429,31430,31431,31432,31433,31434,31435,31436,31437,31438,31439,31440,31441,31442,31443,31444,31445,31446,31447,31448,31449,31450,31451,31452,31453,31454,31455,31456,31457,31458,31459,31460,31461,31462,31463,31464,31465,31466,31467,31468,31469,31470,31471,31472,31473,31474,31475,31476,31477,31478,31479,31480,31481,31482,31483,31484,31485,31486,31487,31488,31489,31490,31491,31492,31493,31494,31495,31496,31497,31498,31499,31500,31501,31502,31503,31504,31505,31506,31507,31508,31509,31510,31511,31512,31513,31514,31515,31516,31517,31518,31519,31520,31521,31522,31523,31524,31525,31526,31527,31528,31529,31530,31531,31532,31533,31534,31535,31536,31537,31538,31539,31540,31541,31542,31543,31544,31545,31546,31547,31548,31549,31550,31551,31552,31553,31554,31555,31556,31557,31558,31559,31560,31561,31562,31563,31564,31565,31566,31567,31568,31569,31570,31571,31572,31573,31574,31575,31576,31577,31578,31579,31580,31581,31582,31583,31584,31585,31586,31587,31588,31589,31590,31591,31592,31593,31594,31595,31596,31597,31598,31599,31600,31601,31602,31603,31604,31605,31606,31607,31608,31609,31610,31611,31612,31613,31614,31615,31616,31617,31618,31619,31620,31621,31622,31623,31624,31625,31626,31627,31628,31629,31630,31631,31632,31633,31634,31635,31636,31637,31638,31639,31640,31641,31642,31643,31644,31645,31646,31647,31648,31649,31650,31651,31652,31653,31654,31655,31656,31657,31658,31659,31660,31661,31662,31663,31664,31665,31666,31667,31668,31669,31670,31671,31672,31673,31674,31675,31676,31677,31678,31679,31680,31681,31682,31683,31684,31685,31686,31687,31688,31689,31690,31691,31692,31693,31694,31695,31696,31697,31698,31699,31700,31701,31702,31703,31704,31705,31706,31707,31708,31709,31710,31711,31712,31713,31714,31715,31716,31717,31718,31719,31720,31721,31722,31723,31724,31725,31726,31727,31728,31729,31730,31731,31732,31733,31734,31735,31736,31737,31738,31739,31740,31741,31742,31743,31744,31745,31746,31747,31748,31749,31750,31751,31752,31753,31754,31755,31756,31757,31758,31759,31760,31761,31762,31763,31764,31765,31766,31767,31768,31769,31770,31771,31772,31773,31774,31775,31776,31777,31778,31779,31780,31781,31782,31783,31784,31785,31786,31787,31788,31789,31790,31791,31792,31793,31794,31795,31796,31797,31798,31799,31800,31801,31802,31803,31804,31805,31806,31807,31808,31809,31810,31811,31812,31813,31814,31815,31816,31817,31818,31819,31820,31821,31822,31823,31824,31825,31826,31827,31828,31829,31830,31831,31832,31833,31834,31835,31836,31837,31838,31839,31840,31841,31842,31843,31844,31845,31846,31847,31848,31849,31850,31851,31852,31853,31854,31855,31856,31857,31858,31859,31860,31861,31862,31863,31864,31865,31866,31867,31868,31869,31870,31871,31872,31873,31874,31875,31876,31877,31878,31879,31880,31881,31882,31883,31884,31885,31886,31887,31888,31889,31890,31891,31892,31893,31894,31895,31896,31897,31898,31899,31900,31901,31902,31903,31904,31905,31906,31907,31908,31909,31910,31911,31912,31913,31914,31915,31916,31917,31918,31919,31920,31921,31922,31923,31924,31925,31926,31927,31928,31929,31930,31931,31932,31933,31934,31935,31936,31937,31938,31939,31940,31941,31942,31943,31944,31945,31946,31947,31948,31949,31950,31951,31952,31953,31954,31955,31956,31957,31958,31959,31960,31961,31962,31963,31964,31965,31966,31967,31968,31969,31970,31971,31972,31973,31974,31975,31976,31977,31978,31979,31980,31981,31982,31983,31984,31985,31986,31987,31988,31989,31990,31991,31992,31993,31994,31995,31996,31997,31998,31999,32000,32001,32002,32003,32004,32005,32006,32007,32008,32009,32010,32011,32012,32013,32014,32015,32016,32017,32018,32019,32020,32021,32022,32023,32024,32025,32026,32027,32028,32029,32030,32031,32032,32033,32034,32035,32036,32037,32038,32039,32040,32041,32042,32043,32044,32045,32046,32047,32048,32049,32050,32051,32052,32053,32054,32055,32056,32057,32058,32059,32060,32061,32062,32063,32064,32065,32066,32067,32068,32069,32070,32071,32072,32073,32074,32075,32076,32077,32078,32079,32080,32081,32082,32083,32084,32085,32086,32087,32088,32089,32090,32091,32092,32093,32094,32095,32096,32097,32098,32099,32100,32101,32102,32103,32104,32105,32106,32107,32108,32109,32110,32111,32112,32113,32114,32115,32116,32117,32118,32119,32120,32121,32122,32123,32124,32125,32126,32127,32128,32129,32130,32131,32132,32133,32134,32135,32136,32137,32138,32139,32140,32141,32142,32143,32144,32145,32146,32147,32148,32149,32150,32151,32152,32153,32154,32155,32156,32157,32158,32159,32160,32161,32162,32163,32164,32165,32166,32167,32168,32169,32170,32171,32172,32173,32174,32175,32176,32177,32178,32179,32180,32181,32182,32183,32184,32185,32186,32187,32188,32189,32190,32191,32192,32193,32194,32195,32196,32197,32198,32199,32200,32201,32202,32203,32204,32205,32206,32207,32208,32209,32210,32211,32212,32213,32214,32215,32216,32217,32218,32219,32220,32221,32222,32223,32224,32225,32226,32227,32228,32229,32230,32231,32232,32233,32234,32235,32236,32237,32238,32239,32240,32241,32242,32243,32244,32245,32246,32247,32248,32249,32250,32251,32252,32253,32254,32255,32256,32257,32258,32259,32260,32261,32262,32263,32264,32265,32266,32267,32268,32269,32270,32271,32272,32273,32274,32275,32276,32277,32278,32279,32280,32281,32282,32283,32284,32285,32286,32287,32288,32289,32290,32291,32292,32293,32294,32295,32296,32297,32298,32299,32300,32301,32302,32303,32304,32305,32306,32307,32308,32309,32310,32311,32312,32313,32314,32315,32316,32317,32318,32319,32320,32321,32322,32323,32324,32325,32326,32327,32328,32329,32330,32331,32332,32333,32334,32335,32336,32337,32338,32339,32340,32341,32342,32343,32344,32345,32346,32347,32348,32349,32350,32351,32352,32353,32354,32355,32356,32357,32358,32359,32360,32361,32362,32363,32364,32365,32366,32367,32368,32369,32370,32371,32372,32373,32374,32375,32376,32377,32378,32379,32380,32381,32382,32383,32384,32385,32386,32387,32388,32389,32390,32391,32392,32393,32394,32395,32396,32397,32398,32399,32400,32401,32402,32403,32404,32405,32406,32407,32408,32409,32410,32411,32412,32413,32414,32415,32416,32417,32418,32419,32420,32421,32422,32423,32424,32425,32426,32427,32428,32429,32430,32431,32432,32433,32434,32435,32436,32437,32438,32439,32440,32441,32442,32443,32444,32445,32446,32447,32448,32449,32450,32451,32452,32453,32454,32455,32456,32457,32458,32459,32460,32461,32462,32463,32464,32465,32466,32467,32468,32469,32470,32471,32472,32473,32474,32475,32476,32477,32478,32479,32480,32481,32482,32483,32484,32485,32486,32487,32488,32489,32490,32491,32492,32493,32494,32495,32496,32497,32498,32499,32500,32501,32502,32503,32504,32505,32506,32507,32508,32509,32510,32511,32512,32513,32514,32515,32516,32517,32518,32519,32520,32521,32522,32523,32524,32525,32526,32527,32528,32529,32530,32531,32532,32533,32534,32535,32536,32537,32538,32539,32540,32541,32542,32543,32544,32545,32546,32547,32548,32549,32550,32551,32552,32553,32554,32555,32556,32557,32558,32559,32560,32561,32562,32563,32564,32565,32566,32567,32568,32569,32570,32571,32572,32573,32574,32575,32576,32577,32578,32579,32580,32581,32582,32583,32584,32585,32586,32587,32588,32589,32590,32591,32592,32593,32594,32595,32596,32597,32598,32599,32600,32601,32602,32603,32604,32605,32606,32607,32608,32609,32610,32611,32612,32613,32614,32615,32616,32617,32618,32619,32620,32621,32622,32623,32624,32625,32626,32627,32628,32629,32630,32631,32632,32633,32634,32635,32636,32637,32638,32639,32640,32641,32642,32643,32644,32645,32646,32647,32648,32649,32650,32651,32652,32653,32654,32655,32656,32657,32658,32659,32660,32661,32662,32663,32664,32665,32666,32667,32668,32669,32670,32671,32672,32673,32674,32675,32676,32677,32678,32679,32680,32681,32682,32683,32684,32685,32686,32687,32688,32689,32690,32691,32692,32693,32694,32695,32696,32697,32698,32699,32700,32701,32702,32703,32704,32705,32706,32707,32708,32709,32710,32711,32712,32713,32714,32715,32716,32717,32718,32719,32720,32721,32722,32723,32724,32725,32726,32727,32728,32729,32730,32731,32732,32733,32734,32735,32736,32737,32738,32739,32740,32741,32742,32743,32744,32745,32746,32747,32748,32749,32750,32751,32752,32753,32754,32755,32756,32757,32758,32759,32760,32761,32762,32763,32764,32765,32766,32767,32768,32769,32770,32771,32772,32773,32774,32775,32776,32777,32778,32779,32780,32781,32782,32783,32784,32785,32786,32787,32788,32789,32790,32791,32792,32793,32794,32795,32796,32797,32798,32799,32800,32801,32802,32803,32804,32805,32806,32807,32808,32809,32810,32811,32812,32813,32814,32815,32816,32817,32818,32819,32820,32821,32822,32823,32824,32825,32826,32827,32828,32829,32830,32831,32832,32833,32834,32835,32836,32837,32838,32839,32840,32841,32842,32843,32844,32845,32846,32847,32848,32849,32850,32851,32852,32853,32854,32855,32856,32857,32858,32859,32860,32861,32862,32863,32864,32865,32866,32867,32868,32869,32870,32871,32872,32873,32874,32875,32876,32877,32878,32879,32880,32881,32882,32883,32884,32885,32886,32887,32888,32889,32890,32891,32892,32893,32894,32895,32896,32897,32898,32899,32900,32901,32902,32903,32904,32905,32906,32907,32908,32909,32910,32911,32912,32913,32914,32915,32916,32917,32918,32919,32920,32921,32922,32923,32924,32925,32926,32927,32928,32929,32930,32931,32932,32933,32934,32935,32936,32937,32938,32939,32940,32941,32942,32943,32944,32945,32946,32947,32948,32949,32950,32951,32952,32953,32954,32955,32956,32957,32958,32959,32960,32961,32962,32963,32964,32965,32966,32967,32968,32969,32970,32971,32972,32973,32974,32975,32976,32977,32978,32979,32980,32981,32982,32983,32984,32985,32986,32987,32988,32989,32990,32991,32992,32993,32994,32995,32996,32997,32998,32999,33000,33001,33002,33003,33004,33005,33006,33007,33008,33009,33010,33011,33012,33013,33014,33015,33016,33017,33018,33019,33020,33021,33022,33023,33024,33025,33026,33027,33028,33029,33030,33031,33032,33033,33034,33035,33036,33037,33038,33039,33040,33041,33042,33043,33044,33045,33046,33047,33048,33049,33050,33051,33052,33053,33054,33055,33056,33057,33058,33059,33060,33061,33062,33063,33064,33065,33066,33067,33068,33069,33070,33071,33072,33073,33074,33075,33076,33077,33078,33079,33080,33081,33082,33083,33084,33085,33086,33087,33088,33089,33090,33091,33092,33093,33094,33095,33096,33097,33098,33099,33100,33101,33102,33103,33104,33105,33106,33107,33108,33109,33110,33111,33112,33113,33114,33115,33116,33117,33118,33119,33120,33121,33122,33123,33124,33125,33126,33127,33128,33129,33130,33131,33132,33133,33134,33135,33136,33137,33138,33139,33140,33141,33142,33143,33144,33145,33146,33147,33148,33149,33150,33151,33152,33153,33154,33155,33156,33157,33158,33159,33160,33161,33162,33163,33164,33165,33166,33167,33168,33169,33170,33171,33172,33173,33174,33175,33176,33177,33178,33179,33180,33181,33182,33183,33184,33185,33186,33187,33188,33189,33190,33191,33192,33193,33194,33195,33196,33197,33198,33199,33200,33201,33202,33203,33204,33205,33206,33207,33208,33209,33210,33211,33212,33213,33214,33215,33216,33217,33218,33219,33220,33221,33222,33223,33224,33225,33226,33227,33228,33229,33230,33231,33232,33233,33234,33235,33236,33237,33238,33239,33240,33241,33242,33243,33244,33245,33246,33247,33248,33249,33250,33251,33252,33253,33254,33255,33256,33257,33258,33259,33260,33261,33262,33263,33264,33265,33266,33267,33268,33269,33270,33271,33272,33273,33274,33275,33276,33277,33278,33279,33280,33281,33282,33283,33284,33285,33286,33287,33288,33289,33290,33291,33292,33293,33294,33295,33296,33297,33298,33299,33300,33301,33302,33303,33304,33305,33306,33307,33308,33309,33310,33311,33312,33313,33314,33315,33316,33317,33318,33319,33320,33321,33322,33323,33324,33325,33326,33327,33328,33329,33330,33331,33332,33333,33334,33335,33336,33337,33338,33339,33340,33341,33342,33343,33344,33345,33346,33347,33348,33349,33350,33351,33352,33353,33354,33355,33356,33357,33358,33359,33360,33361,33362,33363,33364,33365,33366,33367,33368,33369,33370,33371,33372,33373,33374,33375,33376,33377,33378,33379,33380,33381,33382,33383,33384,33385,33386,33387,33388,33389,33390,33391,33392,33393,33394,33395,33396,33397,33398,33399,33400,33401,33402,33403,33404,33405,33406,33407,33408,33409,33410,33411,33412,33413,33414,33415,33416,33417,33418,33419,33420,33421,33422,33423,33424,33425,33426,33427,33428,33429,33430,33431,33432,33433,33434,33435,33436,33437,33438,33439,33440,33441,33442,33443,33444,33445,33446,33447,33448,33449,33450,33451,33452,33453,33454,33455,33456,33457,33458,33459,33460,33461,33462,33463,33464,33465,33466,33467,33468,33469,33470,33471,33472,33473,33474,33475,33476,33477,33478,33479,33480,33481,33482,33483,33484,33485,33486,33487,33488,33489,33490,33491,33492,33493,33494,33495,33496,33497,33498,33499,33500,33501,33502,33503,33504,33505,33506,33507,33508,33509,33510,33511,33512,33513,33514,33515,33516,33517,33518,33519,33520,33521,33522,33523,33524,33525,33526,33527,33528,33529,33530,33531,33532,33533,33534,33535,33536,33537,33538,33539,33540,33541,33542,33543,33544,33545,33546,33547,33548,33549,33550,33551,33552,33553,33554,33555,33556,33557,33558,33559,33560,33561,33562,33563,33564,33565,33566,33567,33568,33569,33570,33571,33572,33573,33574,33575,33576,33577,33578,33579,33580,33581,33582,33583,33584,33585,33586,33587,33588,33589,33590,33591,33592,33593,33594,33595,33596,33597,33598,33599,33600,33601,33602,33603,33604,33605,33606,33607,33608,33609,33610,33611,33612,33613,33614,33615,33616,33617,33618,33619,33620,33621,33622,33623,33624,33625,33626,33627,33628,33629,33630,33631,33632,33633,33634,33635,33636,33637,33638,33639,33640,33641,33642,33643,33644,33645,33646,33647,33648,33649,33650,33651,33652,33653,33654,33655,33656,33657,33658,33659,33660,33661,33662,33663,33664,33665,33666,33667,33668,33669,33670,33671,33672,33673,33674,33675,33676,33677,33678,33679,33680,33681,33682,33683,33684,33685,33686,33687,33688,33689,33690,33691,33692,33693,33694,33695,33696,33697,33698,33699,33700,33701,33702,33703,33704,33705,33706,33707,33708,33709,33710,33711,33712,33713,33714,33715,33716,33717,33718,33719,33720,33721,33722,33723,33724,33725,33726,33727,33728,33729,33730,33731,33732,33733,33734,33735,33736,33737,33738,33739,33740,33741,33742,33743,33744,33745,33746,33747,33748,33749,33750,33751,33752,33753,33754,33755,33756,33757,33758,33759,33760,33761,33762,33763,33764,33765,33766,33767,33768,33769,33770,33771,33772,33773,33774,33775,33776,33777,33778,33779,33780,33781,33782,33783,33784,33785,33786,33787,33788,33789,33790,33791,33792,33793,33794,33795,33796,33797,33798,33799,33800,33801,33802,33803,33804,33805,33806,33807,33808,33809,33810,33811,33812,33813,33814,33815,33816,33817,33818,33819,33820,33821,33822,33823,33824,33825,33826,33827,33828,33829,33830,33831,33832,33833,33834,33835,33836,33837,33838,33839,33840,33841,33842,33843,33844,33845,33846,33847,33848,33849,33850,33851,33852,33853,33854,33855,33856,33857,33858,33859,33860,33861,33862,33863,33864,33865,33866,33867,33868,33869,33870,33871,33872,33873,33874,33875,33876,33877,33878,33879,33880,33881,33882,33883,33884,33885,33886,33887,33888,33889,33890,33891,33892,33893,33894,33895,33896,33897,33898,33899,33900,33901,33902,33903,33904,33905,33906,33907,33908,33909,33910,33911,33912,33913,33914,33915,33916,33917,33918,33919,33920,33921,33922,33923,33924,33925,33926,33927,33928,33929,33930,33931,33932,33933,33934,33935,33936,33937,33938,33939,33940,33941,33942,33943,33944,33945,33946,33947,33948,33949,33950,33951,33952,33953,33954,33955,33956,33957,33958,33959,33960,33961,33962,33963,33964,33965,33966,33967,33968,33969,33970,33971,33972,33973,33974,33975,33976,33977,33978,33979,33980,33981,33982,33983,33984,33985,33986,33987,33988,33989,33990,33991,33992,33993,33994,33995,33996,33997,33998,33999,34000,34001,34002,34003,34004,34005,34006,34007,34008,34009,34010,34011,34012,34013,34014,34015,34016,34017,34018,34019,34020,34021,34022,34023,34024,34025,34026,34027,34028,34029,34030,34031,34032,34033,34034,34035,34036,34037,34038,34039,34040,34041,34042,34043,34044,34045,34046,34047,34048,34049,34050,34051,34052,34053,34054,34055,34056,34057,34058,34059,34060,34061,34062,34063,34064,34065,34066,34067,34068,34069,34070,34071,34072,34073,34074,34075,34076,34077,34078,34079,34080,34081,34082,34083,34084,34085,34086,34087,34088,34089,34090,34091,34092,34093,34094,34095,34096,34097,34098,34099,34100,34101,34102,34103,34104,34105,34106,34107,34108,34109,34110,34111,34112,34113,34114,34115,34116,34117,34118,34119,34120,34121,34122,34123,34124,34125,34126,34127,34128,34129,34130,34131,34132,34133,34134,34135,34136,34137,34138,34139,34140,34141,34142,34143,34144,34145,34146,34147,34148,34149,34150,34151,34152,34153,34154,34155,34156,34157,34158,34159,34160,34161,34162,34163,34164,34165,34166,34167,34168,34169,34170,34171,34172,34173,34174,34175,34176,34177,34178,34179,34180,34181,34182,34183,34184,34185,34186,34187,34188,34189,34190,34191,34192,34193,34194,34195,34196,34197,34198,34199,34200,34201,34202,34203,34204,34205,34206,34207,34208,34209,34210,34211,34212,34213,34214,34215,34216,34217,34218,34219,34220,34221,34222,34223,34224,34225,34226,34227,34228,34229,34230,34231,34232,34233,34234,34235,34236,34237,34238,34239,34240,34241,34242,34243,34244,34245,34246,34247,34248,34249,34250,34251,34252,34253,34254,34255,34256,34257,34258,34259,34260,34261,34262,34263,34264,34265,34266,34267,34268,34269,34270,34271,34272,34273,34274,34275,34276,34277,34278,34279,34280,34281,34282,34283,34284,34285,34286,34287,34288,34289,34290,34291,34292,34293,34294,34295,34296,34297,34298,34299,34300,34301,34302,34303,34304,34305,34306,34307,34308,34309,34310,34311,34312,34313,34314,34315,34316,34317,34318,34319,34320,34321,34322,34323,34324,34325,34326,34327,34328,34329,34330,34331,34332,34333,34334,34335,34336,34337,34338,34339,34340,34341,34342,34343,34344,34345,34346,34347,34348,34349,34350,34351,34352,34353,34354,34355,34356,34357,34358,34359,34360,34361,34362,34363,34364,34365,34366,34367,34368,34369,34370,34371,34372,34373,34374,34375,34376,34377,34378,34379,34380,34381,34382,34383,34384,34385,34386,34387,34388,34389,34390,34391,34392,34393,34394,34395,34396,34397,34398,34399,34400,34401,34402,34403,34404,34405,34406,34407,34408,34409,34410,34411,34412,34413,34414,34415,34416,34417,34418,34419,34420,34421,34422,34423,34424,34425,34426,34427,34428,34429,34430,34431,34432,34433,34434,34435,34436,34437,34438,34439,34440,34441,34442,34443,34444,34445,34446,34447,34448,34449,34450,34451,34452,34453,34454,34455,34456,34457,34458,34459,34460,34461,34462,34463,34464,34465,34466,34467,34468,34469,34470,34471,34472,34473,34474,34475,34476,34477,34478,34479,34480,34481,34482,34483,34484,34485,34486,34487,34488,34489,34490,34491,34492,34493,34494,34495,34496,34497,34498,34499,34500,34501,34502,34503,34504,34505,34506,34507,34508,34509,34510,34511,34512,34513,34514,34515,34516,34517,34518,34519,34520,34521,34522,34523,34524,34525,34526,34527,34528,34529,34530,34531,34532,34533,34534,34535,34536,34537,34538,34539,34540,34541,34542,34543,34544,34545,34546,34547,34548,34549,34550,34551,34552,34553,34554,34555,34556,34557,34558,34559,34560,34561,34562,34563,34564,34565,34566,34567,34568,34569,34570,34571,34572,34573,34574,34575,34576,34577,34578,34579,34580,34581,34582,34583,34584,34585,34586,34587,34588,34589,34590,34591,34592,34593,34594,34595,34596,34597,34598,34599,34600,34601,34602,34603,34604,34605,34606,34607,34608,34609,34610,34611,34612,34613,34614,34615,34616,34617,34618,34619,34620,34621,34622,34623,34624,34625,34626,34627,34628,34629,34630,34631,34632,34633,34634,34635,34636,34637,34638,34639,34640,34641,34642,34643,34644,34645,34646,34647,34648,34649,34650,34651,34652,34653,34654,34655,34656,34657,34658,34659,34660,34661,34662,34663,34664,34665,34666,34667,34668,34669,34670,34671,34672,34673,34674,34675,34676,34677,34678,34679,34680,34681,34682,34683,34684,34685,34686,34687,34688,34689,34690,34691,34692,34693,34694,34695,34696,34697,34698,34699,34700,34701,34702,34703,34704,34705,34706,34707,34708,34709,34710,34711,34712,34713,34714,34715,34716,34717,34718,34719,34720,34721,34722,34723,34724,34725,34726,34727,34728,34729,34730,34731,34732,34733,34734,34735,34736,34737,34738,34739,34740,34741,34742,34743,34744,34745,34746,34747,34748,34749,34750,34751,34752,34753,34754,34755,34756,34757,34758,34759,34760,34761,34762,34763,34764,34765,34766,34767,34768,34769,34770,34771,34772,34773,34774,34775,34776,34777,34778,34779,34780,34781,34782,34783,34784,34785,34786,34787,34788,34789,34790,34791,34792,34793,34794,34795,34796,34797,34798,34799,34800,34801,34802,34803,34804,34805,34806,34807,34808,34809,34810,34811,34812,34813,34814,34815,34816,34817,34818,34819,34820,34821,34822,34823,34824,34825,34826,34827,34828,34829,34830,34831,34832,34833,34834,34835,34836,34837,34838,34839,34840,34841,34842,34843,34844,34845,34846,34847,34848,34849,34850,34851,34852,34853,34854,34855,34856,34857,34858,34859,34860,34861,34862,34863,34864,34865,34866,34867,34868,34869,34870,34871,34872,34873,34874,34875,34876,34877,34878,34879,34880,34881,34882,34883,34884,34885,34886,34887,34888,34889,34890,34891,34892,34893,34894,34895,34896,34897,34898,34899,34900,34901,34902,34903,34904,34905,34906,34907,34908,34909,34910,34911,34912,34913,34914,34915,34916,34917,34918,34919,34920,34921,34922,34923,34924,34925,34926,34927,34928,34929,34930,34931,34932,34933,34934,34935,34936,34937,34938,34939,34940,34941,34942,34943,34944,34945,34946,34947,34948,34949,34950,34951,34952,34953,34954,34955,34956,34957,34958,34959,34960,34961,34962,34963,34964,34965,34966,34967,34968,34969,34970,34971,34972,34973,34974,34975,34976,34977,34978,34979,34980,34981,34982,34983,34984,34985,34986,34987,34988,34989,34990,34991,34992,34993,34994,34995,34996,34997,34998,34999,35000,35001,35002,35003,35004,35005,35006,35007,35008,35009,35010,35011,35012,35013,35014,35015,35016,35017,35018,35019,35020,35021,35022,35023,35024,35025,35026,35027,35028,35029,35030,35031,35032,35033,35034,35035,35036,35037,35038,35039,35040,35041,35042,35043,35044,35045,35046,35047,35048,35049,35050,35051,35052,35053,35054,35055,35056,35057,35058,35059,35060,35061,35062,35063,35064,35065,35066,35067,35068,35069,35070,35071,35072,35073,35074,35075,35076,35077,35078,35079,35080,35081,35082,35083,35084,35085,35086,35087,35088,35089,35090,35091,35092,35093,35094,35095,35096,35097,35098,35099,35100,35101,35102,35103,35104,35105,35106,35107,35108,35109,35110,35111,35112,35113,35114,35115,35116,35117,35118,35119,35120,35121,35122,35123,35124,35125,35126,35127,35128,35129,35130,35131,35132,35133,35134,35135,35136,35137,35138,35139,35140,35141,35142,35143,35144,35145,35146,35147,35148,35149,35150,35151,35152,35153,35154,35155,35156,35157,35158,35159,35160,35161,35162,35163,35164,35165,35166,35167,35168,35169,35170,35171,35172,35173,35174,35175,35176,35177,35178,35179,35180,35181,35182,35183,35184,35185,35186,35187,35188,35189,35190,35191,35192,35193,35194,35195,35196,35197,35198,35199,35200,35201,35202,35203,35204,35205,35206,35207,35208,35209,35210,35211,35212,35213,35214,35215,35216,35217,35218,35219,35220,35221,35222,35223,35224,35225,35226,35227,35228,35229,35230,35231,35232,35233,35234,35235,35236,35237,35238,35239,35240,35241,35242,35243,35244,35245,35246,35247,35248,35249,35250,35251,35252,35253,35254,35255,35256,35257,35258,35259,35260,35261,35262,35263,35264,35265,35266,35267,35268,35269,35270,35271,35272,35273,35274,35275,35276,35277,35278,35279,35280,35281,35282,35283,35284,35285,35286,35287,35288,35289,35290,35291,35292,35293,35294,35295,35296,35297,35298,35299,35300,35301,35302,35303,35304,35305,35306,35307,35308,35309,35310,35311,35312,35313,35314,35315,35316,35317,35318,35319,35320,35321,35322,35323,35324,35325,35326,35327,35328,35329,35330,35331,35332,35333,35334,35335,35336,35337,35338,35339,35340,35341,35342,35343,35344,35345,35346,35347,35348,35349,35350,35351,35352,35353,35354,35355,35356,35357,35358,35359,35360,35361,35362,35363,35364,35365,35366,35367,35368,35369,35370,35371,35372,35373,35374,35375,35376,35377,35378,35379,35380,35381,35382,35383,35384,35385,35386,35387,35388,35389,35390,35391,35392,35393,35394,35395,35396,35397,35398,35399,35400,35401,35402,35403,35404,35405,35406,35407,35408,35409,35410,35411,35412,35413,35414,35415,35416,35417,35418,35419,35420,35421,35422,35423,35424,35425,35426,35427,35428,35429,35430,35431,35432,35433,35434,35435,35436,35437,35438,35439,35440,35441,35442,35443,35444,35445,35446,35447,35448,35449,35450,35451,35452,35453,35454,35455,35456,35457,35458,35459,35460,35461,35462,35463,35464,35465,35466,35467,35468,35469,35470,35471,35472,35473,35474,35475,35476,35477,35478,35479,35480,35481,35482,35483,35484,35485,35486,35487,35488,35489,35490,35491,35492,35493,35494,35495,35496,35497,35498,35499,35500,35501,35502,35503,35504,35505,35506,35507,35508,35509,35510,35511,35512,35513,35514,35515,35516,35517,35518,35519,35520,35521,35522,35523,35524,35525,35526,35527,35528,35529,35530,35531,35532,35533,35534,35535,35536,35537,35538,35539,35540,35541,35542,35543,35544,35545,35546,35547,35548,35549,35550,35551,35552,35553,35554,35555,35556,35557,35558,35559,35560,35561,35562,35563,35564,35565,35566,35567,35568,35569,35570,35571,35572,35573,35574,35575,35576,35577,35578,35579,35580,35581,35582,35583,35584,35585,35586,35587,35588,35589,35590,35591,35592,35593,35594,35595,35596,35597,35598,35599,35600,35601,35602,35603,35604,35605,35606,35607,35608,35609,35610,35611,35612,35613,35614,35615,35616,35617,35618,35619,35620,35621,35622,35623,35624,35625,35626,35627,35628,35629,35630,35631,35632,35633,35634,35635,35636,35637,35638,35639,35640,35641,35642,35643,35644,35645,35646,35647,35648,35649,35650,35651,35652,35653,35654,35655,35656,35657,35658,35659,35660,35661,35662,35663,35664,35665,35666,35667,35668,35669,35670,35671,35672,35673,35674,35675,35676,35677,35678,35679,35680,35681,35682,35683,35684,35685,35686,35687,35688,35689,35690,35691,35692,35693,35694,35695,35696,35697,35698,35699,35700,35701,35702,35703,35704,35705,35706,35707,35708,35709,35710,35711,35712,35713,35714,35715,35716,35717,35718,35719,35720,35721,35722,35723,35724,35725,35726,35727,35728,35729,35730,35731,35732,35733,35734,35735,35736,35737,35738,35739,35740,35741,35742,35743,35744,35745,35746,35747,35748,35749,35750,35751,35752,35753,35754,35755,35756,35757,35758,35759,35760,35761,35762,35763,35764,35765,35766,35767,35768,35769,35770,35771,35772,35773,35774,35775,35776,35777,35778,35779,35780,35781,35782,35783,35784,35785,35786,35787,35788,35789,35790,35791,35792,35793,35794,35795,35796,35797,35798,35799,35800,35801,35802,35803,35804,35805,35806,35807,35808,35809,35810,35811,35812,35813,35814,35815,35816,35817,35818,35819,35820,35821,35822,35823,35824,35825,35826,35827,35828,35829,35830,35831,35832,35833,35834,35835,35836,35837,35838,35839,35840,35841,35842,35843,35844,35845,35846,35847,35848,35849,35850,35851,35852,35853,35854,35855,35856,35857,35858,35859,35860,35861,35862,35863,35864,35865,35866,35867,35868,35869,35870,35871,35872,35873,35874,35875,35876,35877,35878,35879,35880,35881,35882,35883,35884,35885,35886,35887,35888,35889,35890,35891,35892,35893,35894,35895,35896,35897,35898,35899,35900,35901,35902,35903,35904,35905,35906,35907,35908,35909,35910,35911,35912,35913,35914,35915,35916,35917,35918,35919,35920,35921,35922,35923,35924,35925,35926,35927,35928,35929,35930,35931,35932,35933,35934,35935,35936,35937,35938,35939,35940,35941,35942,35943,35944,35945,35946,35947,35948,35949,35950,35951,35952,35953,35954,35955,35956,35957,35958,35959,35960,35961,35962,35963,35964,35965,35966,35967,35968,35969,35970,35971,35972,35973,35974,35975,35976,35977,35978,35979,35980,35981,35982,35983,35984,35985,35986,35987,35988,35989,35990,35991,35992,35993,35994,35995,35996,35997,35998,35999,36000,36001,36002,36003,36004,36005,36006,36007,36008,36009,36010,36011,36012,36013,36014,36015,36016,36017,36018,36019,36020,36021,36022,36023,36024,36025,36026,36027,36028,36029,36030,36031,36032,36033,36034,36035,36036,36037,36038,36039,36040,36041,36042,36043,36044,36045,36046,36047,36048,36049,36050,36051,36052,36053,36054,36055,36056,36057,36058,36059,36060,36061,36062,36063,36064,36065,36066,36067,36068,36069,36070,36071,36072,36073,36074,36075,36076,36077,36078,36079,36080,36081,36082,36083,36084,36085,36086,36087,36088,36089,36090,36091,36092,36093,36094,36095,36096,36097,36098,36099,36100,36101,36102,36103,36104,36105,36106,36107,36108,36109,36110,36111,36112,36113,36114,36115,36116,36117,36118,36119,36120,36121,36122,36123,36124,36125,36126,36127,36128,36129,36130,36131,36132,36133,36134,36135,36136,36137,36138,36139,36140,36141,36142,36143,36144,36145,36146,36147,36148,36149,36150,36151,36152,36153,36154,36155,36156,36157,36158,36159,36160,36161,36162,36163,36164,36165,36166,36167,36168,36169,36170,36171,36172,36173,36174,36175,36176,36177,36178,36179,36180,36181,36182,36183,36184,36185,36186,36187,36188,36189,36190,36191,36192,36193,36194,36195,36196,36197,36198,36199,36200,36201,36202,36203,36204,36205,36206,36207,36208,36209,36210,36211,36212,36213,36214,36215,36216,36217,36218,36219,36220,36221,36222,36223,36224,36225,36226,36227,36228,36229,36230,36231,36232,36233,36234,36235,36236,36237,36238,36239,36240,36241,36242,36243,36244,36245,36246,36247,36248,36249,36250,36251,36252,36253,36254,36255,36256,36257,36258,36259,36260,36261,36262,36263,36264,36265,36266,36267,36268,36269,36270,36271,36272,36273,36274,36275,36276,36277,36278,36279,36280,36281,36282,36283,36284,36285,36286,36287,36288,36289,36290,36291,36292,36293,36294,36295,36296,36297,36298,36299,36300,36301,36302,36303,36304,36305,36306,36307,36308,36309,36310,36311,36312,36313,36314,36315,36316,36317,36318,36319,36320,36321,36322,36323,36324,36325,36326,36327,36328,36329,36330,36331,36332,36333,36334,36335,36336,36337,36338,36339,36340,36341,36342,36343,36344,36345,36346,36347,36348,36349,36350,36351,36352,36353,36354,36355,36356,36357,36358,36359,36360,36361,36362,36363,36364,36365,36366,36367,36368,36369,36370,36371,36372,36373,36374,36375,36376,36377,36378,36379,36380,36381,36382,36383,36384,36385,36386,36387,36388,36389,36390,36391,36392,36393,36394,36395,36396,36397,36398,36399,36400,36401,36402,36403,36404,36405,36406,36407,36408,36409,36410,36411,36412,36413,36414,36415,36416,36417,36418,36419,36420,36421,36422,36423,36424,36425,36426,36427,36428,36429,36430,36431,36432,36433,36434,36435,36436,36437,36438,36439,36440,36441,36442,36443,36444,36445,36446,36447,36448,36449,36450,36451,36452,36453,36454,36455,36456,36457,36458,36459,36460,36461,36462,36463,36464,36465,36466,36467,36468,36469,36470,36471,36472,36473,36474,36475,36476,36477,36478,36479,36480,36481,36482,36483,36484,36485,36486,36487,36488,36489,36490,36491,36492,36493,36494,36495,36496,36497,36498,36499,36500,36501,36502,36503,36504,36505,36506,36507,36508,36509,36510,36511,36512,36513,36514,36515,36516,36517,36518,36519,36520,36521,36522,36523,36524,36525,36526,36527,36528,36529,36530,36531,36532,36533,36534,36535,36536,36537,36538,36539,36540,36541,36542,36543,36544,36545,36546,36547,36548,36549,36550,36551,36552,36553,36554,36555,36556,36557,36558,36559,36560,36561,36562,36563,36564,36565,36566,36567,36568,36569,36570,36571,36572,36573,36574,36575,36576,36577,36578,36579,36580,36581,36582,36583,36584,36585,36586,36587,36588,36589,36590,36591,36592,36593,36594,36595,36596,36597,36598,36599,36600,36601,36602,36603,36604,36605,36606,36607,36608,36609,36610,36611,36612,36613,36614,36615,36616,36617,36618,36619,36620,36621,36622,36623,36624,36625,36626,36627,36628,36629,36630,36631,36632,36633,36634,36635,36636,36637,36638,36639,36640,36641,36642,36643,36644,36645,36646,36647,36648,36649,36650,36651,36652,36653,36654,36655,36656,36657,36658,36659,36660,36661,36662,36663,36664,36665,36666,36667,36668,36669,36670,36671,36672,36673,36674,36675,36676,36677,36678,36679,36680,36681,36682,36683,36684,36685,36686,36687,36688,36689,36690,36691,36692,36693,36694,36695,36696,36697,36698,36699,36700,36701,36702,36703,36704,36705,36706,36707,36708,36709,36710,36711,36712,36713,36714,36715,36716,36717,36718,36719,36720,36721,36722,36723,36724,36725,36726,36727,36728,36729,36730,36731,36732,36733,36734,36735,36736,36737,36738,36739,36740,36741,36742,36743,36744,36745,36746,36747,36748,36749,36750,36751,36752,36753,36754,36755,36756,36757,36758,36759,36760,36761,36762,36763,36764,36765,36766,36767,36768,36769,36770,36771,36772,36773,36774,36775,36776,36777,36778,36779,36780,36781,36782,36783,36784,36785,36786,36787,36788,36789,36790,36791,36792,36793,36794,36795,36796,36797,36798,36799,36800,36801,36802,36803,36804,36805,36806,36807,36808,36809,36810,36811,36812,36813,36814,36815,36816,36817,36818,36819,36820,36821,36822,36823,36824,36825,36826,36827,36828,36829,36830,36831,36832,36833,36834,36835,36836,36837,36838,36839,36840,36841,36842,36843,36844,36845,36846,36847,36848,36849,36850,36851,36852,36853,36854,36855,36856,36857,36858,36859,36860,36861,36862,36863,36864,36865,36866,36867,36868,36869,36870,36871,36872,36873,36874,36875,36876,36877,36878,36879,36880,36881,36882,36883,36884,36885,36886,36887,36888,36889,36890,36891,36892,36893,36894,36895,36896,36897,36898,36899,36900,36901,36902,36903,36904,36905,36906,36907,36908,36909,36910,36911,36912,36913,36914,36915,36916,36917,36918,36919,36920,36921,36922,36923,36924,36925,36926,36927,36928,36929,36930,36931,36932,36933,36934,36935,36936,36937,36938,36939,36940,36941,36942,36943,36944,36945,36946,36947,36948,36949,36950,36951,36952,36953,36954,36955,36956,36957,36958,36959,36960,36961,36962,36963,36964,36965,36966,36967,36968,36969,36970,36971,36972,36973,36974,36975,36976,36977,36978,36979,36980,36981,36982,36983,36984,36985,36986,36987,36988,36989,36990,36991,36992,36993,36994,36995,36996,36997,36998,36999,37000,37001,37002,37003,37004,37005,37006,37007,37008,37009,37010,37011,37012,37013,37014,37015,37016,37017,37018,37019,37020,37021,37022,37023,37024,37025,37026,37027,37028,37029,37030,37031,37032,37033,37034,37035,37036,37037,37038,37039,37040,37041,37042,37043,37044,37045,37046,37047,37048,37049,37050,37051,37052,37053,37054,37055,37056,37057,37058,37059,37060,37061,37062,37063,37064,37065,37066,37067,37068,37069,37070,37071,37072,37073,37074,37075,37076,37077,37078,37079,37080,37081,37082,37083,37084,37085,37086,37087,37088,37089,37090,37091,37092,37093,37094,37095,37096,37097,37098,37099,37100,37101,37102,37103,37104,37105,37106,37107,37108,37109,37110,37111,37112,37113,37114,37115,37116,37117,37118,37119,37120,37121,37122,37123,37124,37125,37126,37127,37128,37129,37130,37131,37132,37133,37134,37135,37136,37137,37138,37139,37140,37141,37142,37143,37144,37145,37146,37147,37148,37149,37150,37151,37152,37153,37154,37155,37156,37157,37158,37159,37160,37161,37162,37163,37164,37165,37166,37167,37168,37169,37170,37171,37172,37173,37174,37175,37176,37177,37178,37179,37180,37181,37182,37183,37184,37185,37186,37187,37188,37189,37190,37191,37192,37193,37194,37195,37196,37197,37198,37199,37200,37201,37202,37203,37204,37205,37206,37207,37208,37209,37210,37211,37212,37213,37214,37215,37216,37217,37218,37219,37220,37221,37222,37223,37224,37225,37226,37227,37228,37229,37230,37231,37232,37233,37234,37235,37236,37237,37238,37239,37240,37241,37242,37243,37244,37245,37246,37247,37248,37249,37250,37251,37252,37253,37254,37255,37256,37257,37258,37259,37260,37261,37262,37263,37264,37265,37266,37267,37268,37269,37270,37271,37272,37273,37274,37275,37276,37277,37278,37279,37280,37281,37282,37283,37284,37285,37286,37287,37288,37289,37290,37291,37292,37293,37294,37295,37296,37297,37298,37299,37300,37301,37302,37303,37304,37305,37306,37307,37308,37309,37310,37311,37312,37313,37314,37315,37316,37317,37318,37319,37320,37321,37322,37323,37324,37325,37326,37327,37328,37329,37330,37331,37332,37333,37334,37335,37336,37337,37338,37339,37340,37341,37342,37343,37344,37345,37346,37347,37348,37349,37350,37351,37352,37353,37354,37355,37356,37357,37358,37359,37360,37361,37362,37363,37364,37365,37366,37367,37368,37369,37370,37371,37372,37373,37374,37375,37376,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37387,37388,37389,37390,37391,37392,37393,37394,37395,37396,37397,37398,37399,37400,37401,37402,37403,37404,37405,37406,37407,37408,37409,37410,37411,37412,37413,37414,37415,37416,37417,37418,37419,37420,37421,37422,37423,37424,37425,37426,37427,37428,37429,37430,37431,37432,37433,37434,37435,37436,37437,37438,37439,37440,37441,37442,37443,37444,37445,37446,37447,37448,37449,37450,37451,37452,37453,37454,37455,37456,37457,37458,37459,37460,37461,37462,37463,37464,37465,37466,37467,37468,37469,37470,37471,37472,37473,37474,37475,37476,37477,37478,37479,37480,37481,37482,37483,37484,37485,37486,37487,37488,37489,37490,37491,37492,37493,37494,37495,37496,37497,37498,37499,37500,37501,37502,37503,37504,37505,37506,37507,37508,37509,37510,37511,37512,37513,37514,37515,37516,37517,37518,37519,37520,37521,37522,37523,37524,37525,37526,37527,37528,37529,37530,37531,37532,37533,37534,37535,37536,37537,37538,37539,37540,37541,37542,37543,37544,37545,37546,37547,37548,37549,37550,37551,37552,37553,37554,37555,37556,37557,37558,37559,37560,37561,37562,37563,37564,37565,37566,37567,37568,37569,37570,37571,37572,37573,37574,37575,37576,37577,37578,37579,37580,37581,37582,37583,37584,37585,37586,37587,37588,37589,37590,37591,37592,37593,37594,37595,37596,37597,37598,37599,37600,37601,37602,37603,37604,37605,37606,37607,37608,37609,37610,37611,37612,37613,37614,37615,37616,37617,37618,37619,37620,37621,37622,37623,37624,37625,37626,37627,37628,37629,37630,37631,37632,37633,37634,37635,37636,37637,37638,37639,37640,37641,37642,37643,37644,37645,37646,37647,37648,37649,37650,37651,37652,37653,37654,37655,37656,37657,37658,37659,37660,37661,37662,37663,37664,37665,37666,37667,37668,37669,37670,37671,37672,37673,37674,37675,37676,37677,37678,37679,37680,37681,37682,37683,37684,37685,37686,37687,37688,37689,37690,37691,37692,37693,37694,37695,37696,37697,37698,37699,37700,37701,37702,37703,37704,37705,37706,37707,37708,37709,37710,37711,37712,37713,37714,37715,37716,37717,37718,37719,37720,37721,37722,37723,37724,37725,37726,37727,37728,37729,37730,37731,37732,37733,37734,37735,37736,37737,37738,37739,37740,37741,37742,37743,37744,37745,37746,37747,37748,37749,37750,37751,37752,37753,37754,37755,37756,37757,37758,37759,37760,37761,37762,37763,37764,37765,37766,37767,37768,37769,37770,37771,37772,37773,37774,37775,37776,37777,37778,37779,37780,37781,37782,37783,37784,37785,37786,37787,37788,37789,37790,37791,37792,37793,37794,37795,37796,37797,37798,37799,37800,37801,37802,37803,37804,37805,37806,37807,37808,37809,37810,37811,37812,37813,37814,37815,37816,37817,37818,37819,37820,37821,37822,37823,37824,37825,37826,37827,37828,37829,37830,37831,37832,37833,37834,37835,37836,37837,37838,37839,37840,37841,37842,37843,37844,37845,37846,37847,37848,37849,37850,37851,37852,37853,37854,37855,37856,37857,37858,37859,37860,37861,37862,37863,37864,37865,37866,37867,37868,37869,37870,37871,37872,37873,37874,37875,37876,37877,37878,37879,37880,37881,37882,37883,37884,37885,37886,37887,37888,37889,37890,37891,37892,37893,37894,37895,37896,37897,37898,37899,37900,37901,37902,37903,37904,37905,37906,37907,37908,37909,37910,37911,37912,37913,37914,37915,37916,37917,37918,37919,37920,37921,37922,37923,37924,37925,37926,37927,37928,37929,37930,37931,37932,37933,37934,37935,37936,37937,37938,37939,37940,37941,37942,37943,37944,37945,37946,37947,37948,37949,37950,37951,37952,37953,37954,37955,37956,37957,37958,37959,37960,37961,37962,37963,37964,37965,37966,37967,37968,37969,37970,37971,37972,37973,37974,37975,37976,37977,37978,37979,37980,37981,37982,37983,37984,37985,37986,37987,37988,37989,37990,37991,37992,37993,37994,37995,37996,37997,37998,37999,38000,38001,38002,38003,38004,38005,38006,38007,38008,38009,38010,38011,38012,38013,38014,38015,38016,38017,38018,38019,38020,38021,38022,38023,38024,38025,38026,38027,38028,38029,38030,38031,38032,38033,38034,38035,38036,38037,38038,38039,38040,38041,38042,38043,38044,38045,38046,38047,38048,38049,38050,38051,38052,38053,38054,38055,38056,38057,38058,38059,38060,38061,38062,38063,38064,38065,38066,38067,38068,38069,38070,38071,38072,38073,38074,38075,38076,38077,38078,38079,38080,38081,38082,38083,38084,38085,38086,38087,38088,38089,38090,38091,38092,38093,38094,38095,38096,38097,38098,38099,38100,38101,38102,38103,38104,38105,38106,38107,38108,38109,38110,38111,38112,38113,38114,38115,38116,38117,38118,38119,38120,38121,38122,38123,38124,38125,38126,38127,38128,38129,38130,38131,38132,38133,38134,38135,38136,38137,38138,38139,38140,38141,38142,38143,38144,38145,38146,38147,38148,38149,38150,38151,38152,38153,38154,38155,38156,38157,38158,38159,38160,38161,38162,38163,38164,38165,38166,38167,38168,38169,38170,38171,38172,38173,38174,38175,38176,38177,38178,38179,38180,38181,38182,38183,38184,38185,38186,38187,38188,38189,38190,38191,38192,38193,38194,38195,38196,38197,38198,38199,38200,38201,38202,38203,38204,38205,38206,38207,38208,38209,38210,38211,38212,38213,38214,38215,38216,38217,38218,38219,38220,38221,38222,38223,38224,38225,38226,38227,38228,38229,38230,38231,38232,38233,38234,38235,38236,38237,38238,38239,38240,38241,38242,38243,38244,38245,38246,38247,38248,38249,38250,38251,38252,38253,38254,38255,38256,38257,38258,38259,38260,38261,38262,38263,38264,38265,38266,38267,38268,38269,38270,38271,38272,38273,38274,38275,38276,38277,38278,38279,38280,38281,38282,38283,38284,38285,38286,38287,38288,38289,38290,38291,38292,38293,38294,38295,38296,38297,38298,38299,38300,38301,38302,38303,38304,38305,38306,38307,38308,38309,38310,38311,38312,38313,38314,38315,38316,38317,38318,38319,38320,38321,38322,38323,38324,38325,38326,38327,38328,38329,38330,38331,38332,38333,38334,38335,38336,38337,38338,38339,38340,38341,38342,38343,38344,38345,38346,38347,38348,38349,38350,38351,38352,38353,38354,38355,38356,38357,38358,38359,38360,38361,38362,38363,38364,38365,38366,38367,38368,38369,38370,38371,38372,38373,38374,38375,38376,38377,38378,38379,38380,38381,38382,38383,38384,38385,38386,38387,38388,38389,38390,38391,38392,38393,38394,38395,38396,38397,38398,38399,38400,38401,38402,38403,38404,38405,38406,38407,38408,38409,38410,38411,38412,38413,38414,38415,38416,38417,38418,38419,38420,38421,38422,38423,38424,38425,38426,38427,38428,38429,38430,38431,38432,38433,38434,38435,38436,38437,38438,38439,38440,38441,38442,38443,38444,38445,38446,38447,38448,38449,38450,38451,38452,38453,38454,38455,38456,38457,38458,38459,38460,38461,38462,38463,38464,38465,38466,38467,38468,38469,38470,38471,38472,38473,38474,38475,38476,38477,38478,38479,38480,38481,38482,38483,38484,38485,38486,38487,38488,38489,38490,38491,38492,38493,38494,38495,38496,38497,38498,38499,38500,38501,38502,38503,38504,38505,38506,38507,38508,38509,38510,38511,38512,38513,38514,38515,38516,38517,38518,38519,38520,38521,38522,38523,38524,38525,38526,38527,38528,38529,38530,38531,38532,38533,38534,38535,38536,38537,38538,38539,38540,38541,38542,38543,38544,38545,38546,38547,38548,38549,38550,38551,38552,38553,38554,38555,38556,38557,38558,38559,38560,38561,38562,38563,38564,38565,38566,38567,38568,38569,38570,38571,38572,38573,38574,38575,38576,38577,38578,38579,38580,38581,38582,38583,38584,38585,38586,38587,38588,38589,38590,38591,38592,38593,38594,38595,38596,38597,38598,38599,38600,38601,38602,38603,38604,38605,38606,38607,38608,38609,38610,38611,38612,38613,38614,38615,38616,38617,38618,38619,38620,38621,38622,38623,38624,38625,38626,38627,38628,38629,38630,38631,38632,38633,38634,38635,38636,38637,38638,38639,38640,38641,38642,38643,38644,38645,38646,38647,38648,38649,38650,38651,38652,38653,38654,38655,38656,38657,38658,38659,38660,38661,38662,38663,38664,38665,38666,38667,38668,38669,38670,38671,38672,38673,38674,38675,38676,38677,38678,38679,38680,38681,38682,38683,38684,38685,38686,38687,38688,38689,38690,38691,38692,38693,38694,38695,38696,38697,38698,38699,38700,38701,38702,38703,38704,38705,38706,38707,38708,38709,38710,38711,38712,38713,38714,38715,38716,38717,38718,38719,38720,38721,38722,38723,38724,38725,38726,38727,38728,38729,38730,38731,38732,38733,38734,38735,38736,38737,38738,38739,38740,38741,38742,38743,38744,38745,38746,38747,38748,38749,38750,38751,38752,38753,38754,38755,38756,38757,38758,38759,38760,38761,38762,38763,38764,38765,38766,38767,38768,38769,38770,38771,38772,38773,38774,38775,38776,38777,38778,38779,38780,38781,38782,38783,38784,38785,38786,38787,38788,38789,38790,38791,38792,38793,38794,38795,38796,38797,38798,38799,38800,38801,38802,38803,38804,38805,38806,38807,38808,38809,38810,38811,38812,38813,38814,38815,38816,38817,38818,38819,38820,38821,38822,38823,38824,38825,38826,38827,38828,38829,38830,38831,38832,38833,38834,38835,38836,38837,38838,38839,38840,38841,38842,38843,38844,38845,38846,38847,38848,38849,38850,38851,38852,38853,38854,38855,38856,38857,38858,38859,38860,38861,38862,38863,38864,38865,38866,38867,38868,38869,38870,38871,38872,38873,38874,38875,38876,38877,38878,38879,38880,38881,38882,38883,38884,38885,38886,38887,38888,38889,38890,38891,38892,38893,38894,38895,38896,38897,38898,38899,38900,38901,38902,38903,38904,38905,38906,38907,38908,38909,38910,38911,38912,38913,38914,38915,38916,38917,38918,38919,38920,38921,38922,38923,38924,38925,38926,38927,38928,38929,38930,38931,38932,38933,38934,38935,38936,38937,38938,38939,38940,38941,38942,38943,38944,38945,38946,38947,38948,38949,38950,38951,38952,38953,38954,38955,38956,38957,38958,38959,38960,38961,38962,38963,38964,38965,38966,38967,38968,38969,38970,38971,38972,38973,38974,38975,38976,38977,38978,38979,38980,38981,38982,38983,38984,38985,38986,38987,38988,38989,38990,38991,38992,38993,38994,38995,38996,38997,38998,38999,39000,39001,39002,39003,39004,39005,39006,39007,39008,39009,39010,39011,39012,39013,39014,39015,39016,39017,39018,39019,39020,39021,39022,39023,39024,39025,39026,39027,39028,39029,39030,39031,39032,39033,39034,39035,39036,39037,39038,39039,39040,39041,39042,39043,39044,39045,39046,39047,39048,39049,39050,39051,39052,39053,39054,39055,39056,39057,39058,39059,39060,39061,39062,39063,39064,39065,39066,39067,39068,39069,39070,39071,39072,39073,39074,39075,39076,39077,39078,39079,39080,39081,39082,39083,39084,39085,39086,39087,39088,39089,39090,39091,39092,39093,39094,39095,39096,39097,39098,39099,39100,39101,39102,39103,39104,39105,39106,39107,39108,39109,39110,39111,39112,39113,39114,39115,39116,39117,39118,39119,39120,39121,39122,39123,39124,39125,39126,39127,39128,39129,39130,39131,39132,39133,39134,39135,39136,39137,39138,39139,39140,39141,39142,39143,39144,39145,39146,39147,39148,39149,39150,39151,39152,39153,39154,39155,39156,39157,39158,39159,39160,39161,39162,39163,39164,39165,39166,39167,39168,39169,39170,39171,39172,39173,39174,39175,39176,39177,39178,39179,39180,39181,39182,39183,39184,39185,39186,39187,39188,39189,39190,39191,39192,39193,39194,39195,39196,39197,39198,39199,39200,39201,39202,39203,39204,39205,39206,39207,39208,39209,39210,39211,39212,39213,39214,39215,39216,39217,39218,39219,39220,39221,39222,39223,39224,39225,39226,39227,39228,39229,39230,39231,39232,39233,39234,39235,39236,39237,39238,39239,39240,39241,39242,39243,39244,39245,39246,39247,39248,39249,39250,39251,39252,39253,39254,39255,39256,39257,39258,39259,39260,39261,39262,39263,39264,39265,39266,39267,39268,39269,39270,39271,39272,39273,39274,39275,39276,39277,39278,39279,39280,39281,39282,39283,39284,39285,39286,39287,39288,39289,39290,39291,39292,39293,39294,39295,39296,39297,39298,39299,39300,39301,39302,39303,39304,39305,39306,39307,39308,39309,39310,39311,39312,39313,39314,39315,39316,39317,39318,39319,39320,39321,39322,39323,39324,39325,39326,39327,39328,39329,39330,39331,39332,39333,39334,39335,39336,39337,39338,39339,39340,39341,39342,39343,39344,39345,39346,39347,39348,39349,39350,39351,39352,39353,39354,39355,39356,39357,39358,39359,39360,39361,39362,39363,39364,39365,39366,39367,39368,39369,39370,39371,39372,39373,39374,39375,39376,39377,39378,39379,39380,39381,39382,39383,39384,39385,39386,39387,39388,39389,39390,39391,39392,39393,39394,39395,39396,39397,39398,39399,39400,39401,39402,39403,39404,39405,39406,39407,39408,39409,39410,39411,39412,39413,39414,39415,39416,39417,39418,39419,39420,39421,39422,39423,39424,39425,39426,39427,39428,39429,39430,39431,39432,39433,39434,39435,39436,39437,39438,39439,39440,39441,39442,39443,39444,39445,39446,39447,39448,39449,39450,39451,39452,39453,39454,39455,39456,39457,39458,39459,39460,39461,39462,39463,39464,39465,39466,39467,39468,39469,39470,39471,39472,39473,39474,39475,39476,39477,39478,39479,39480,39481,39482,39483,39484,39485,39486,39487,39488,39489,39490,39491,39492,39493,39494,39495,39496,39497,39498,39499,39500,39501,39502,39503,39504,39505,39506,39507,39508,39509,39510,39511,39512,39513,39514,39515,39516,39517,39518,39519,39520,39521,39522,39523,39524,39525,39526,39527,39528,39529,39530,39531,39532,39533,39534,39535,39536,39537,39538,39539,39540,39541,39542,39543,39544,39545,39546,39547,39548,39549,39550,39551,39552,39553,39554,39555,39556,39557,39558,39559,39560,39561,39562,39563,39564,39565,39566,39567,39568,39569,39570,39571,39572,39573,39574,39575,39576,39577,39578,39579,39580,39581,39582,39583,39584,39585,39586,39587,39588,39589,39590,39591,39592,39593,39594,39595,39596,39597,39598,39599,39600,39601,39602,39603,39604,39605,39606,39607,39608,39609,39610,39611,39612,39613,39614,39615,39616,39617,39618,39619,39620,39621,39622,39623,39624,39625,39626,39627,39628,39629,39630,39631,39632,39633,39634,39635,39636,39637,39638,39639,39640,39641,39642,39643,39644,39645,39646,39647,39648,39649,39650,39651,39652,39653,39654,39655,39656,39657,39658,39659,39660,39661,39662,39663,39664,39665,39666,39667,39668,39669,39670,39671,39672,39673,39674,39675,39676,39677,39678,39679,39680,39681,39682,39683,39684,39685,39686,39687,39688,39689,39690,39691,39692,39693,39694,39695,39696,39697,39698,39699,39700,39701,39702,39703,39704,39705,39706,39707,39708,39709,39710,39711,39712,39713,39714,39715,39716,39717,39718,39719,39720,39721,39722,39723,39724,39725,39726,39727,39728,39729,39730,39731,39732,39733,39734,39735,39736,39737,39738,39739,39740,39741,39742,39743,39744,39745,39746,39747,39748,39749,39750,39751,39752,39753,39754,39755,39756,39757,39758,39759,39760,39761,39762,39763,39764,39765,39766,39767,39768,39769,39770,39771,39772,39773,39774,39775,39776,39777,39778,39779,39780,39781,39782,39783,39784,39785,39786,39787,39788,39789,39790,39791,39792,39793,39794,39795,39796,39797,39798,39799,39800,39801,39802,39803,39804,39805,39806,39807,39808,39809,39810,39811,39812,39813,39814,39815,39816,39817,39818,39819,39820,39821,39822,39823,39824,39825,39826,39827,39828,39829,39830,39831,39832,39833,39834,39835,39836,39837,39838,39839,39840,39841,39842,39843,39844,39845,39846,39847,39848,39849,39850,39851,39852,39853,39854,39855,39856,39857,39858,39859,39860,39861,39862,39863,39864,39865,39866,39867,39868,39869,39870,39871,39872,39873,39874,39875,39876,39877,39878,39879,39880,39881,39882,39883,39884,39885,39886,39887,39888,39889,39890,39891,39892,39893,39894,39895,39896,39897,39898,39899,39900,39901,39902,39903,39904,39905,39906,39907,39908,39909,39910,39911,39912,39913,39914,39915,39916,39917,39918,39919,39920,39921,39922,39923,39924,39925,39926,39927,39928,39929,39930,39931,39932,39933,39934,39935,39936,39937,39938,39939,39940,39941,39942,39943,39944,39945,39946,39947,39948,39949,39950,39951,39952,39953,39954,39955,39956,39957,39958,39959,39960,39961,39962,39963,39964,39965,39966,39967,39968,39969,39970,39971,39972,39973,39974,39975,39976,39977,39978,39979,39980,39981,39982,39983,39984,39985,39986,39987,39988,39989,39990,39991,39992,39993,39994,39995,39996,39997,39998,39999,40000,40001,40002,40003,40004,40005,40006,40007,40008,40009,40010,40011,40012,40013,40014,40015,40016,40017,40018,40019,40020,40021,40022,40023,40024,40025,40026,40027,40028,40029,40030,40031,40032,40033,40034,40035,40036,40037,40038,40039,40040,40041,40042,40043,40044,40045,40046,40047,40048,40049,40050,40051,40052,40053,40054,40055,40056,40057,40058,40059,40060,40061,40062,40063,40064,40065,40066,40067,40068,40069,40070,40071,40072,40073,40074,40075,40076,40077,40078,40079,40080,40081,40082,40083,40084,40085,40086,40087,40088,40089,40090,40091,40092,40093,40094,40095,40096,40097,40098,40099,40100,40101,40102,40103,40104,40105,40106,40107,40108,40109,40110,40111,40112,40113,40114,40115,40116,40117,40118,40119,40120,40121,40122,40123,40124,40125,40126,40127,40128,40129,40130,40131,40132,40133,40134,40135,40136,40137,40138,40139,40140,40141,40142,40143,40144,40145,40146,40147,40148,40149,40150,40151,40152,40153,40154,40155,40156,40157,40158,40159,40160,40161,40162,40163,40164,40165,40166,40167,40168,40169,40170,40171,40172,40173,40174,40175,40176,40177,40178,40179,40180,40181,40182,40183,40184,40185,40186,40187,40188,40189,40190,40191,40192,40193,40194,40195,40196,40197,40198,40199,40200,40201,40202,40203,40204,40205,40206,40207,40208,40209,40210,40211,40212,40213,40214,40215,40216,40217,40218,40219,40220,40221,40222,40223,40224,40225,40226,40227,40228,40229,40230,40231,40232,40233,40234,40235,40236,40237,40238,40239,40240,40241,40242,40243,40244,40245,40246,40247,40248,40249,40250,40251,40252,40253,40254,40255,40256,40257,40258,40259,40260,40261,40262,40263,40264,40265,40266,40267,40268,40269,40270,40271,40272,40273,40274,40275,40276,40277,40278,40279,40280,40281,40282,40283,40284,40285,40286,40287,40288,40289,40290,40291,40292,40293,40294,40295,40296,40297,40298,40299,40300,40301,40302,40303,40304,40305,40306,40307,40308,40309,40310,40311,40312,40313,40314,40315,40316,40317,40318,40319,40320,40321,40322,40323,40324,40325,40326,40327,40328,40329,40330,40331,40332,40333,40334,40335,40336,40337,40338,40339,40340,40341,40342,40343,40344,40345,40346,40347,40348,40349,40350,40351,40352,40353,40354,40355,40356,40357,40358,40359,40360,40361,40362,40363,40364,40365,40366,40367,40368,40369,40370,40371,40372,40373,40374,40375,40376,40377,40378,40379,40380,40381,40382,40383,40384,40385,40386,40387,40388,40389,40390,40391,40392,40393,40394,40395,40396,40397,40398,40399,40400,40401,40402,40403,40404,40405,40406,40407,40408,40409,40410,40411,40412,40413,40414,40415,40416,40417,40418,40419,40420,40421,40422,40423,40424,40425,40426,40427,40428,40429,40430,40431,40432,40433,40434,40435,40436,40437,40438,40439,40440,40441,40442,40443,40444,40445,40446,40447,40448,40449,40450,40451,40452,40453,40454,40455,40456,40457,40458,40459,40460,40461,40462,40463,40464,40465,40466,40467,40468,40469,40470,40471,40472,40473,40474,40475,40476,40477,40478,40479,40480,40481,40482,40483,40484,40485,40486,40487,40488,40489,40490,40491,40492,40493,40494,40495,40496,40497,40498,40499,40500,40501,40502,40503,40504,40505,40506,40507,40508,40509,40510,40511,40512,40513,40514,40515,40516,40517,40518,40519,40520,40521,40522,40523,40524,40525,40526,40527,40528,40529,40530,40531,40532,40533,40534,40535,40536,40537,40538,40539,40540,40541,40542,40543,40544,40545,40546,40547,40548,40549,40550,40551,40552,40553,40554,40555,40556,40557,40558,40559,40560,40561,40562,40563,40564,40565,40566,40567,40568,40569,40570,40571,40572,40573,40574,40575,40576,40577,40578,40579,40580,40581,40582,40583,40584,40585,40586,40587,40588,40589,40590,40591,40592,40593,40594,40595,40596,40597,40598,40599,40600,40601,40602,40603,40604,40605,40606,40607,40608,40609,40610,40611,40612,40613,40614,40615,40616,40617,40618,40619,40620,40621,40622,40623,40624,40625,40626,40627,40628,40629,40630,40631,40632,40633,40634,40635,40636,40637,40638,40639,40640,40641,40642,40643,40644,40645,40646,40647,40648,40649,40650,40651,40652,40653,40654,40655,40656,40657,40658,40659,40660,40661,40662,40663,40664,40665,40666,40667,40668,40669,40670,40671,40672,40673,40674,40675,40676,40677,40678,40679,40680,40681,40682,40683,40684,40685,40686,40687,40688,40689,40690,40691,40692,40693,40694,40695,40696,40697,40698,40699,40700,40701,40702,40703,40704,40705,40706,40707,40708,40709,40710,40711,40712,40713,40714,40715,40716,40717,40718,40719,40720,40721,40722,40723,40724,40725,40726,40727,40728,40729,40730,40731,40732,40733,40734,40735,40736,40737,40738,40739,40740,40741,40742,40743,40744,40745,40746,40747,40748,40749,40750,40751,40752,40753,40754,40755,40756,40757,40758,40759,40760,40761,40762,40763,40764,40765,40766,40767,40768,40769,40770,40771,40772,40773,40774,40775,40776,40777,40778,40779,40780,40781,40782,40783,40784,40785,40786,40787,40788,40789,40790,40791,40792,40793,40794,40795,40796,40797,40798,40799,40800,40801,40802,40803,40804,40805,40806,40807,40808,40809,40810,40811,40812,40813,40814,40815,40816,40817,40818,40819,40820,40821,40822,40823,40824,40825,40826,40827,40828,40829,40830,40831,40832,40833,40834,40835,40836,40837,40838,40839,40840,40841,40842,40843,40844,40845,40846,40847,40848,40849,40850,40851,40852,40853,40854,40855,40856,40857,40858,40859,40860,40861,40862,40863,40864,40865,40866,40867,40868,40869,40870,40871,40872,40873,40874,40875,40876,40877,40878,40879,40880,40881,40882,40883,40884,40885,40886,40887,40888,40889,40890,40891,40892,40893,40894,40895,40896,40897,40898,40899,40900,40901,40902,40903,40904,40905,40906,40907,40908,40909,40910,40911,40912,40913,40914,40915,40916,40917,40918,40919,40920,40921,40922,40923,40924,40925,40926,40927,40928,40929,40930,40931,40932,40933,40934,40935,40936,40937,40938,40939,40940,40941,40942,40943,40960,40961,40962,40963,40964,40965,40966,40967,40968,40969,40970,40971,40972,40973,40974,40975,40976,40977,40978,40979,40980,40981,40982,40983,40984,40985,40986,40987,40988,40989,40990,40991,40992,40993,40994,40995,40996,40997,40998,40999,41000,41001,41002,41003,41004,41005,41006,41007,41008,41009,41010,41011,41012,41013,41014,41015,41016,41017,41018,41019,41020,41021,41022,41023,41024,41025,41026,41027,41028,41029,41030,41031,41032,41033,41034,41035,41036,41037,41038,41039,41040,41041,41042,41043,41044,41045,41046,41047,41048,41049,41050,41051,41052,41053,41054,41055,41056,41057,41058,41059,41060,41061,41062,41063,41064,41065,41066,41067,41068,41069,41070,41071,41072,41073,41074,41075,41076,41077,41078,41079,41080,41081,41082,41083,41084,41085,41086,41087,41088,41089,41090,41091,41092,41093,41094,41095,41096,41097,41098,41099,41100,41101,41102,41103,41104,41105,41106,41107,41108,41109,41110,41111,41112,41113,41114,41115,41116,41117,41118,41119,41120,41121,41122,41123,41124,41125,41126,41127,41128,41129,41130,41131,41132,41133,41134,41135,41136,41137,41138,41139,41140,41141,41142,41143,41144,41145,41146,41147,41148,41149,41150,41151,41152,41153,41154,41155,41156,41157,41158,41159,41160,41161,41162,41163,41164,41165,41166,41167,41168,41169,41170,41171,41172,41173,41174,41175,41176,41177,41178,41179,41180,41181,41182,41183,41184,41185,41186,41187,41188,41189,41190,41191,41192,41193,41194,41195,41196,41197,41198,41199,41200,41201,41202,41203,41204,41205,41206,41207,41208,41209,41210,41211,41212,41213,41214,41215,41216,41217,41218,41219,41220,41221,41222,41223,41224,41225,41226,41227,41228,41229,41230,41231,41232,41233,41234,41235,41236,41237,41238,41239,41240,41241,41242,41243,41244,41245,41246,41247,41248,41249,41250,41251,41252,41253,41254,41255,41256,41257,41258,41259,41260,41261,41262,41263,41264,41265,41266,41267,41268,41269,41270,41271,41272,41273,41274,41275,41276,41277,41278,41279,41280,41281,41282,41283,41284,41285,41286,41287,41288,41289,41290,41291,41292,41293,41294,41295,41296,41297,41298,41299,41300,41301,41302,41303,41304,41305,41306,41307,41308,41309,41310,41311,41312,41313,41314,41315,41316,41317,41318,41319,41320,41321,41322,41323,41324,41325,41326,41327,41328,41329,41330,41331,41332,41333,41334,41335,41336,41337,41338,41339,41340,41341,41342,41343,41344,41345,41346,41347,41348,41349,41350,41351,41352,41353,41354,41355,41356,41357,41358,41359,41360,41361,41362,41363,41364,41365,41366,41367,41368,41369,41370,41371,41372,41373,41374,41375,41376,41377,41378,41379,41380,41381,41382,41383,41384,41385,41386,41387,41388,41389,41390,41391,41392,41393,41394,41395,41396,41397,41398,41399,41400,41401,41402,41403,41404,41405,41406,41407,41408,41409,41410,41411,41412,41413,41414,41415,41416,41417,41418,41419,41420,41421,41422,41423,41424,41425,41426,41427,41428,41429,41430,41431,41432,41433,41434,41435,41436,41437,41438,41439,41440,41441,41442,41443,41444,41445,41446,41447,41448,41449,41450,41451,41452,41453,41454,41455,41456,41457,41458,41459,41460,41461,41462,41463,41464,41465,41466,41467,41468,41469,41470,41471,41472,41473,41474,41475,41476,41477,41478,41479,41480,41481,41482,41483,41484,41485,41486,41487,41488,41489,41490,41491,41492,41493,41494,41495,41496,41497,41498,41499,41500,41501,41502,41503,41504,41505,41506,41507,41508,41509,41510,41511,41512,41513,41514,41515,41516,41517,41518,41519,41520,41521,41522,41523,41524,41525,41526,41527,41528,41529,41530,41531,41532,41533,41534,41535,41536,41537,41538,41539,41540,41541,41542,41543,41544,41545,41546,41547,41548,41549,41550,41551,41552,41553,41554,41555,41556,41557,41558,41559,41560,41561,41562,41563,41564,41565,41566,41567,41568,41569,41570,41571,41572,41573,41574,41575,41576,41577,41578,41579,41580,41581,41582,41583,41584,41585,41586,41587,41588,41589,41590,41591,41592,41593,41594,41595,41596,41597,41598,41599,41600,41601,41602,41603,41604,41605,41606,41607,41608,41609,41610,41611,41612,41613,41614,41615,41616,41617,41618,41619,41620,41621,41622,41623,41624,41625,41626,41627,41628,41629,41630,41631,41632,41633,41634,41635,41636,41637,41638,41639,41640,41641,41642,41643,41644,41645,41646,41647,41648,41649,41650,41651,41652,41653,41654,41655,41656,41657,41658,41659,41660,41661,41662,41663,41664,41665,41666,41667,41668,41669,41670,41671,41672,41673,41674,41675,41676,41677,41678,41679,41680,41681,41682,41683,41684,41685,41686,41687,41688,41689,41690,41691,41692,41693,41694,41695,41696,41697,41698,41699,41700,41701,41702,41703,41704,41705,41706,41707,41708,41709,41710,41711,41712,41713,41714,41715,41716,41717,41718,41719,41720,41721,41722,41723,41724,41725,41726,41727,41728,41729,41730,41731,41732,41733,41734,41735,41736,41737,41738,41739,41740,41741,41742,41743,41744,41745,41746,41747,41748,41749,41750,41751,41752,41753,41754,41755,41756,41757,41758,41759,41760,41761,41762,41763,41764,41765,41766,41767,41768,41769,41770,41771,41772,41773,41774,41775,41776,41777,41778,41779,41780,41781,41782,41783,41784,41785,41786,41787,41788,41789,41790,41791,41792,41793,41794,41795,41796,41797,41798,41799,41800,41801,41802,41803,41804,41805,41806,41807,41808,41809,41810,41811,41812,41813,41814,41815,41816,41817,41818,41819,41820,41821,41822,41823,41824,41825,41826,41827,41828,41829,41830,41831,41832,41833,41834,41835,41836,41837,41838,41839,41840,41841,41842,41843,41844,41845,41846,41847,41848,41849,41850,41851,41852,41853,41854,41855,41856,41857,41858,41859,41860,41861,41862,41863,41864,41865,41866,41867,41868,41869,41870,41871,41872,41873,41874,41875,41876,41877,41878,41879,41880,41881,41882,41883,41884,41885,41886,41887,41888,41889,41890,41891,41892,41893,41894,41895,41896,41897,41898,41899,41900,41901,41902,41903,41904,41905,41906,41907,41908,41909,41910,41911,41912,41913,41914,41915,41916,41917,41918,41919,41920,41921,41922,41923,41924,41925,41926,41927,41928,41929,41930,41931,41932,41933,41934,41935,41936,41937,41938,41939,41940,41941,41942,41943,41944,41945,41946,41947,41948,41949,41950,41951,41952,41953,41954,41955,41956,41957,41958,41959,41960,41961,41962,41963,41964,41965,41966,41967,41968,41969,41970,41971,41972,41973,41974,41975,41976,41977,41978,41979,41980,41981,41982,41983,41984,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,41997,41998,41999,42000,42001,42002,42003,42004,42005,42006,42007,42008,42009,42010,42011,42012,42013,42014,42015,42016,42017,42018,42019,42020,42021,42022,42023,42024,42025,42026,42027,42028,42029,42030,42031,42032,42033,42034,42035,42036,42037,42038,42039,42040,42041,42042,42043,42044,42045,42046,42047,42048,42049,42050,42051,42052,42053,42054,42055,42056,42057,42058,42059,42060,42061,42062,42063,42064,42065,42066,42067,42068,42069,42070,42071,42072,42073,42074,42075,42076,42077,42078,42079,42080,42081,42082,42083,42084,42085,42086,42087,42088,42089,42090,42091,42092,42093,42094,42095,42096,42097,42098,42099,42100,42101,42102,42103,42104,42105,42106,42107,42108,42109,42110,42111,42112,42113,42114,42115,42116,42117,42118,42119,42120,42121,42122,42123,42124,42192,42193,42194,42195,42196,42197,42198,42199,42200,42201,42202,42203,42204,42205,42206,42207,42208,42209,42210,42211,42212,42213,42214,42215,42216,42217,42218,42219,42220,42221,42222,42223,42224,42225,42226,42227,42228,42229,42230,42231,42232,42233,42234,42235,42236,42237,42240,42241,42242,42243,42244,42245,42246,42247,42248,42249,42250,42251,42252,42253,42254,42255,42256,42257,42258,42259,42260,42261,42262,42263,42264,42265,42266,42267,42268,42269,42270,42271,42272,42273,42274,42275,42276,42277,42278,42279,42280,42281,42282,42283,42284,42285,42286,42287,42288,42289,42290,42291,42292,42293,42294,42295,42296,42297,42298,42299,42300,42301,42302,42303,42304,42305,42306,42307,42308,42309,42310,42311,42312,42313,42314,42315,42316,42317,42318,42319,42320,42321,42322,42323,42324,42325,42326,42327,42328,42329,42330,42331,42332,42333,42334,42335,42336,42337,42338,42339,42340,42341,42342,42343,42344,42345,42346,42347,42348,42349,42350,42351,42352,42353,42354,42355,42356,42357,42358,42359,42360,42361,42362,42363,42364,42365,42366,42367,42368,42369,42370,42371,42372,42373,42374,42375,42376,42377,42378,42379,42380,42381,42382,42383,42384,42385,42386,42387,42388,42389,42390,42391,42392,42393,42394,42395,42396,42397,42398,42399,42400,42401,42402,42403,42404,42405,42406,42407,42408,42409,42410,42411,42412,42413,42414,42415,42416,42417,42418,42419,42420,42421,42422,42423,42424,42425,42426,42427,42428,42429,42430,42431,42432,42433,42434,42435,42436,42437,42438,42439,42440,42441,42442,42443,42444,42445,42446,42447,42448,42449,42450,42451,42452,42453,42454,42455,42456,42457,42458,42459,42460,42461,42462,42463,42464,42465,42466,42467,42468,42469,42470,42471,42472,42473,42474,42475,42476,42477,42478,42479,42480,42481,42482,42483,42484,42485,42486,42487,42488,42489,42490,42491,42492,42493,42494,42495,42496,42497,42498,42499,42500,42501,42502,42503,42504,42505,42506,42507,42508,42512,42513,42514,42515,42516,42517,42518,42519,42520,42521,42522,42523,42524,42525,42526,42527,42538,42539,42560,42561,42562,42563,42564,42565,42566,42567,42568,42569,42570,42571,42572,42573,42574,42575,42576,42577,42578,42579,42580,42581,42582,42583,42584,42585,42586,42587,42588,42589,42590,42591,42592,42593,42594,42595,42596,42597,42598,42599,42600,42601,42602,42603,42604,42605,42606,42623,42624,42625,42626,42627,42628,42629,42630,42631,42632,42633,42634,42635,42636,42637,42638,42639,42640,42641,42642,42643,42644,42645,42646,42647,42648,42649,42650,42651,42652,42653,42656,42657,42658,42659,42660,42661,42662,42663,42664,42665,42666,42667,42668,42669,42670,42671,42672,42673,42674,42675,42676,42677,42678,42679,42680,42681,42682,42683,42684,42685,42686,42687,42688,42689,42690,42691,42692,42693,42694,42695,42696,42697,42698,42699,42700,42701,42702,42703,42704,42705,42706,42707,42708,42709,42710,42711,42712,42713,42714,42715,42716,42717,42718,42719,42720,42721,42722,42723,42724,42725,42726,42727,42728,42729,42730,42731,42732,42733,42734,42735,42775,42776,42777,42778,42779,42780,42781,42782,42783,42786,42787,42788,42789,42790,42791,42792,42793,42794,42795,42796,42797,42798,42799,42800,42801,42802,42803,42804,42805,42806,42807,42808,42809,42810,42811,42812,42813,42814,42815,42816,42817,42818,42819,42820,42821,42822,42823,42824,42825,42826,42827,42828,42829,42830,42831,42832,42833,42834,42835,42836,42837,42838,42839,42840,42841,42842,42843,42844,42845,42846,42847,42848,42849,42850,42851,42852,42853,42854,42855,42856,42857,42858,42859,42860,42861,42862,42863,42864,42865,42866,42867,42868,42869,42870,42871,42872,42873,42874,42875,42876,42877,42878,42879,42880,42881,42882,42883,42884,42885,42886,42887,42888,42891,42892,42893,42894,42895,42896,42897,42898,42899,42900,42901,42902,42903,42904,42905,42906,42907,42908,42909,42910,42911,42912,42913,42914,42915,42916,42917,42918,42919,42920,42921,42922,42923,42924,42925,42926,42927,42928,42929,42930,42931,42932,42933,42934,42935,42936,42937,42999,43000,43001,43002,43003,43004,43005,43006,43007,43008,43009,43011,43012,43013,43015,43016,43017,43018,43020,43021,43022,43023,43024,43025,43026,43027,43028,43029,43030,43031,43032,43033,43034,43035,43036,43037,43038,43039,43040,43041,43042,43072,43073,43074,43075,43076,43077,43078,43079,43080,43081,43082,43083,43084,43085,43086,43087,43088,43089,43090,43091,43092,43093,43094,43095,43096,43097,43098,43099,43100,43101,43102,43103,43104,43105,43106,43107,43108,43109,43110,43111,43112,43113,43114,43115,43116,43117,43118,43119,43120,43121,43122,43123,43138,43139,43140,43141,43142,43143,43144,43145,43146,43147,43148,43149,43150,43151,43152,43153,43154,43155,43156,43157,43158,43159,43160,43161,43162,43163,43164,43165,43166,43167,43168,43169,43170,43171,43172,43173,43174,43175,43176,43177,43178,43179,43180,43181,43182,43183,43184,43185,43186,43187,43250,43251,43252,43253,43254,43255,43259,43261,43262,43274,43275,43276,43277,43278,43279,43280,43281,43282,43283,43284,43285,43286,43287,43288,43289,43290,43291,43292,43293,43294,43295,43296,43297,43298,43299,43300,43301,43312,43313,43314,43315,43316,43317,43318,43319,43320,43321,43322,43323,43324,43325,43326,43327,43328,43329,43330,43331,43332,43333,43334,43360,43361,43362,43363,43364,43365,43366,43367,43368,43369,43370,43371,43372,43373,43374,43375,43376,43377,43378,43379,43380,43381,43382,43383,43384,43385,43386,43387,43388,43396,43397,43398,43399,43400,43401,43402,43403,43404,43405,43406,43407,43408,43409,43410,43411,43412,43413,43414,43415,43416,43417,43418,43419,43420,43421,43422,43423,43424,43425,43426,43427,43428,43429,43430,43431,43432,43433,43434,43435,43436,43437,43438,43439,43440,43441,43442,43471,43488,43489,43490,43491,43492,43494,43495,43496,43497,43498,43499,43500,43501,43502,43503,43514,43515,43516,43517,43518,43520,43521,43522,43523,43524,43525,43526,43527,43528,43529,43530,43531,43532,43533,43534,43535,43536,43537,43538,43539,43540,43541,43542,43543,43544,43545,43546,43547,43548,43549,43550,43551,43552,43553,43554,43555,43556,43557,43558,43559,43560,43584,43585,43586,43588,43589,43590,43591,43592,43593,43594,43595,43616,43617,43618,43619,43620,43621,43622,43623,43624,43625,43626,43627,43628,43629,43630,43631,43632,43633,43634,43635,43636,43637,43638,43642,43646,43647,43648,43649,43650,43651,43652,43653,43654,43655,43656,43657,43658,43659,43660,43661,43662,43663,43664,43665,43666,43667,43668,43669,43670,43671,43672,43673,43674,43675,43676,43677,43678,43679,43680,43681,43682,43683,43684,43685,43686,43687,43688,43689,43690,43691,43692,43693,43694,43695,43697,43701,43702,43705,43706,43707,43708,43709,43712,43714,43739,43740,43741,43744,43745,43746,43747,43748,43749,43750,43751,43752,43753,43754,43762,43763,43764,43777,43778,43779,43780,43781,43782,43785,43786,43787,43788,43789,43790,43793,43794,43795,43796,43797,43798,43808,43809,43810,43811,43812,43813,43814,43816,43817,43818,43819,43820,43821,43822,43824,43825,43826,43827,43828,43829,43830,43831,43832,43833,43834,43835,43836,43837,43838,43839,43840,43841,43842,43843,43844,43845,43846,43847,43848,43849,43850,43851,43852,43853,43854,43855,43856,43857,43858,43859,43860,43861,43862,43863,43864,43865,43866,43868,43869,43870,43871,43872,43873,43874,43875,43876,43877,43888,43889,43890,43891,43892,43893,43894,43895,43896,43897,43898,43899,43900,43901,43902,43903,43904,43905,43906,43907,43908,43909,43910,43911,43912,43913,43914,43915,43916,43917,43918,43919,43920,43921,43922,43923,43924,43925,43926,43927,43928,43929,43930,43931,43932,43933,43934,43935,43936,43937,43938,43939,43940,43941,43942,43943,43944,43945,43946,43947,43948,43949,43950,43951,43952,43953,43954,43955,43956,43957,43958,43959,43960,43961,43962,43963,43964,43965,43966,43967,43968,43969,43970,43971,43972,43973,43974,43975,43976,43977,43978,43979,43980,43981,43982,43983,43984,43985,43986,43987,43988,43989,43990,43991,43992,43993,43994,43995,43996,43997,43998,43999,44000,44001,44002,44032,44033,44034,44035,44036,44037,44038,44039,44040,44041,44042,44043,44044,44045,44046,44047,44048,44049,44050,44051,44052,44053,44054,44055,44056,44057,44058,44059,44060,44061,44062,44063,44064,44065,44066,44067,44068,44069,44070,44071,44072,44073,44074,44075,44076,44077,44078,44079,44080,44081,44082,44083,44084,44085,44086,44087,44088,44089,44090,44091,44092,44093,44094,44095,44096,44097,44098,44099,44100,44101,44102,44103,44104,44105,44106,44107,44108,44109,44110,44111,44112,44113,44114,44115,44116,44117,44118,44119,44120,44121,44122,44123,44124,44125,44126,44127,44128,44129,44130,44131,44132,44133,44134,44135,44136,44137,44138,44139,44140,44141,44142,44143,44144,44145,44146,44147,44148,44149,44150,44151,44152,44153,44154,44155,44156,44157,44158,44159,44160,44161,44162,44163,44164,44165,44166,44167,44168,44169,44170,44171,44172,44173,44174,44175,44176,44177,44178,44179,44180,44181,44182,44183,44184,44185,44186,44187,44188,44189,44190,44191,44192,44193,44194,44195,44196,44197,44198,44199,44200,44201,44202,44203,44204,44205,44206,44207,44208,44209,44210,44211,44212,44213,44214,44215,44216,44217,44218,44219,44220,44221,44222,44223,44224,44225,44226,44227,44228,44229,44230,44231,44232,44233,44234,44235,44236,44237,44238,44239,44240,44241,44242,44243,44244,44245,44246,44247,44248,44249,44250,44251,44252,44253,44254,44255,44256,44257,44258,44259,44260,44261,44262,44263,44264,44265,44266,44267,44268,44269,44270,44271,44272,44273,44274,44275,44276,44277,44278,44279,44280,44281,44282,44283,44284,44285,44286,44287,44288,44289,44290,44291,44292,44293,44294,44295,44296,44297,44298,44299,44300,44301,44302,44303,44304,44305,44306,44307,44308,44309,44310,44311,44312,44313,44314,44315,44316,44317,44318,44319,44320,44321,44322,44323,44324,44325,44326,44327,44328,44329,44330,44331,44332,44333,44334,44335,44336,44337,44338,44339,44340,44341,44342,44343,44344,44345,44346,44347,44348,44349,44350,44351,44352,44353,44354,44355,44356,44357,44358,44359,44360,44361,44362,44363,44364,44365,44366,44367,44368,44369,44370,44371,44372,44373,44374,44375,44376,44377,44378,44379,44380,44381,44382,44383,44384,44385,44386,44387,44388,44389,44390,44391,44392,44393,44394,44395,44396,44397,44398,44399,44400,44401,44402,44403,44404,44405,44406,44407,44408,44409,44410,44411,44412,44413,44414,44415,44416,44417,44418,44419,44420,44421,44422,44423,44424,44425,44426,44427,44428,44429,44430,44431,44432,44433,44434,44435,44436,44437,44438,44439,44440,44441,44442,44443,44444,44445,44446,44447,44448,44449,44450,44451,44452,44453,44454,44455,44456,44457,44458,44459,44460,44461,44462,44463,44464,44465,44466,44467,44468,44469,44470,44471,44472,44473,44474,44475,44476,44477,44478,44479,44480,44481,44482,44483,44484,44485,44486,44487,44488,44489,44490,44491,44492,44493,44494,44495,44496,44497,44498,44499,44500,44501,44502,44503,44504,44505,44506,44507,44508,44509,44510,44511,44512,44513,44514,44515,44516,44517,44518,44519,44520,44521,44522,44523,44524,44525,44526,44527,44528,44529,44530,44531,44532,44533,44534,44535,44536,44537,44538,44539,44540,44541,44542,44543,44544,44545,44546,44547,44548,44549,44550,44551,44552,44553,44554,44555,44556,44557,44558,44559,44560,44561,44562,44563,44564,44565,44566,44567,44568,44569,44570,44571,44572,44573,44574,44575,44576,44577,44578,44579,44580,44581,44582,44583,44584,44585,44586,44587,44588,44589,44590,44591,44592,44593,44594,44595,44596,44597,44598,44599,44600,44601,44602,44603,44604,44605,44606,44607,44608,44609,44610,44611,44612,44613,44614,44615,44616,44617,44618,44619,44620,44621,44622,44623,44624,44625,44626,44627,44628,44629,44630,44631,44632,44633,44634,44635,44636,44637,44638,44639,44640,44641,44642,44643,44644,44645,44646,44647,44648,44649,44650,44651,44652,44653,44654,44655,44656,44657,44658,44659,44660,44661,44662,44663,44664,44665,44666,44667,44668,44669,44670,44671,44672,44673,44674,44675,44676,44677,44678,44679,44680,44681,44682,44683,44684,44685,44686,44687,44688,44689,44690,44691,44692,44693,44694,44695,44696,44697,44698,44699,44700,44701,44702,44703,44704,44705,44706,44707,44708,44709,44710,44711,44712,44713,44714,44715,44716,44717,44718,44719,44720,44721,44722,44723,44724,44725,44726,44727,44728,44729,44730,44731,44732,44733,44734,44735,44736,44737,44738,44739,44740,44741,44742,44743,44744,44745,44746,44747,44748,44749,44750,44751,44752,44753,44754,44755,44756,44757,44758,44759,44760,44761,44762,44763,44764,44765,44766,44767,44768,44769,44770,44771,44772,44773,44774,44775,44776,44777,44778,44779,44780,44781,44782,44783,44784,44785,44786,44787,44788,44789,44790,44791,44792,44793,44794,44795,44796,44797,44798,44799,44800,44801,44802,44803,44804,44805,44806,44807,44808,44809,44810,44811,44812,44813,44814,44815,44816,44817,44818,44819,44820,44821,44822,44823,44824,44825,44826,44827,44828,44829,44830,44831,44832,44833,44834,44835,44836,44837,44838,44839,44840,44841,44842,44843,44844,44845,44846,44847,44848,44849,44850,44851,44852,44853,44854,44855,44856,44857,44858,44859,44860,44861,44862,44863,44864,44865,44866,44867,44868,44869,44870,44871,44872,44873,44874,44875,44876,44877,44878,44879,44880,44881,44882,44883,44884,44885,44886,44887,44888,44889,44890,44891,44892,44893,44894,44895,44896,44897,44898,44899,44900,44901,44902,44903,44904,44905,44906,44907,44908,44909,44910,44911,44912,44913,44914,44915,44916,44917,44918,44919,44920,44921,44922,44923,44924,44925,44926,44927,44928,44929,44930,44931,44932,44933,44934,44935,44936,44937,44938,44939,44940,44941,44942,44943,44944,44945,44946,44947,44948,44949,44950,44951,44952,44953,44954,44955,44956,44957,44958,44959,44960,44961,44962,44963,44964,44965,44966,44967,44968,44969,44970,44971,44972,44973,44974,44975,44976,44977,44978,44979,44980,44981,44982,44983,44984,44985,44986,44987,44988,44989,44990,44991,44992,44993,44994,44995,44996,44997,44998,44999,45000,45001,45002,45003,45004,45005,45006,45007,45008,45009,45010,45011,45012,45013,45014,45015,45016,45017,45018,45019,45020,45021,45022,45023,45024,45025,45026,45027,45028,45029,45030,45031,45032,45033,45034,45035,45036,45037,45038,45039,45040,45041,45042,45043,45044,45045,45046,45047,45048,45049,45050,45051,45052,45053,45054,45055,45056,45057,45058,45059,45060,45061,45062,45063,45064,45065,45066,45067,45068,45069,45070,45071,45072,45073,45074,45075,45076,45077,45078,45079,45080,45081,45082,45083,45084,45085,45086,45087,45088,45089,45090,45091,45092,45093,45094,45095,45096,45097,45098,45099,45100,45101,45102,45103,45104,45105,45106,45107,45108,45109,45110,45111,45112,45113,45114,45115,45116,45117,45118,45119,45120,45121,45122,45123,45124,45125,45126,45127,45128,45129,45130,45131,45132,45133,45134,45135,45136,45137,45138,45139,45140,45141,45142,45143,45144,45145,45146,45147,45148,45149,45150,45151,45152,45153,45154,45155,45156,45157,45158,45159,45160,45161,45162,45163,45164,45165,45166,45167,45168,45169,45170,45171,45172,45173,45174,45175,45176,45177,45178,45179,45180,45181,45182,45183,45184,45185,45186,45187,45188,45189,45190,45191,45192,45193,45194,45195,45196,45197,45198,45199,45200,45201,45202,45203,45204,45205,45206,45207,45208,45209,45210,45211,45212,45213,45214,45215,45216,45217,45218,45219,45220,45221,45222,45223,45224,45225,45226,45227,45228,45229,45230,45231,45232,45233,45234,45235,45236,45237,45238,45239,45240,45241,45242,45243,45244,45245,45246,45247,45248,45249,45250,45251,45252,45253,45254,45255,45256,45257,45258,45259,45260,45261,45262,45263,45264,45265,45266,45267,45268,45269,45270,45271,45272,45273,45274,45275,45276,45277,45278,45279,45280,45281,45282,45283,45284,45285,45286,45287,45288,45289,45290,45291,45292,45293,45294,45295,45296,45297,45298,45299,45300,45301,45302,45303,45304,45305,45306,45307,45308,45309,45310,45311,45312,45313,45314,45315,45316,45317,45318,45319,45320,45321,45322,45323,45324,45325,45326,45327,45328,45329,45330,45331,45332,45333,45334,45335,45336,45337,45338,45339,45340,45341,45342,45343,45344,45345,45346,45347,45348,45349,45350,45351,45352,45353,45354,45355,45356,45357,45358,45359,45360,45361,45362,45363,45364,45365,45366,45367,45368,45369,45370,45371,45372,45373,45374,45375,45376,45377,45378,45379,45380,45381,45382,45383,45384,45385,45386,45387,45388,45389,45390,45391,45392,45393,45394,45395,45396,45397,45398,45399,45400,45401,45402,45403,45404,45405,45406,45407,45408,45409,45410,45411,45412,45413,45414,45415,45416,45417,45418,45419,45420,45421,45422,45423,45424,45425,45426,45427,45428,45429,45430,45431,45432,45433,45434,45435,45436,45437,45438,45439,45440,45441,45442,45443,45444,45445,45446,45447,45448,45449,45450,45451,45452,45453,45454,45455,45456,45457,45458,45459,45460,45461,45462,45463,45464,45465,45466,45467,45468,45469,45470,45471,45472,45473,45474,45475,45476,45477,45478,45479,45480,45481,45482,45483,45484,45485,45486,45487,45488,45489,45490,45491,45492,45493,45494,45495,45496,45497,45498,45499,45500,45501,45502,45503,45504,45505,45506,45507,45508,45509,45510,45511,45512,45513,45514,45515,45516,45517,45518,45519,45520,45521,45522,45523,45524,45525,45526,45527,45528,45529,45530,45531,45532,45533,45534,45535,45536,45537,45538,45539,45540,45541,45542,45543,45544,45545,45546,45547,45548,45549,45550,45551,45552,45553,45554,45555,45556,45557,45558,45559,45560,45561,45562,45563,45564,45565,45566,45567,45568,45569,45570,45571,45572,45573,45574,45575,45576,45577,45578,45579,45580,45581,45582,45583,45584,45585,45586,45587,45588,45589,45590,45591,45592,45593,45594,45595,45596,45597,45598,45599,45600,45601,45602,45603,45604,45605,45606,45607,45608,45609,45610,45611,45612,45613,45614,45615,45616,45617,45618,45619,45620,45621,45622,45623,45624,45625,45626,45627,45628,45629,45630,45631,45632,45633,45634,45635,45636,45637,45638,45639,45640,45641,45642,45643,45644,45645,45646,45647,45648,45649,45650,45651,45652,45653,45654,45655,45656,45657,45658,45659,45660,45661,45662,45663,45664,45665,45666,45667,45668,45669,45670,45671,45672,45673,45674,45675,45676,45677,45678,45679,45680,45681,45682,45683,45684,45685,45686,45687,45688,45689,45690,45691,45692,45693,45694,45695,45696,45697,45698,45699,45700,45701,45702,45703,45704,45705,45706,45707,45708,45709,45710,45711,45712,45713,45714,45715,45716,45717,45718,45719,45720,45721,45722,45723,45724,45725,45726,45727,45728,45729,45730,45731,45732,45733,45734,45735,45736,45737,45738,45739,45740,45741,45742,45743,45744,45745,45746,45747,45748,45749,45750,45751,45752,45753,45754,45755,45756,45757,45758,45759,45760,45761,45762,45763,45764,45765,45766,45767,45768,45769,45770,45771,45772,45773,45774,45775,45776,45777,45778,45779,45780,45781,45782,45783,45784,45785,45786,45787,45788,45789,45790,45791,45792,45793,45794,45795,45796,45797,45798,45799,45800,45801,45802,45803,45804,45805,45806,45807,45808,45809,45810,45811,45812,45813,45814,45815,45816,45817,45818,45819,45820,45821,45822,45823,45824,45825,45826,45827,45828,45829,45830,45831,45832,45833,45834,45835,45836,45837,45838,45839,45840,45841,45842,45843,45844,45845,45846,45847,45848,45849,45850,45851,45852,45853,45854,45855,45856,45857,45858,45859,45860,45861,45862,45863,45864,45865,45866,45867,45868,45869,45870,45871,45872,45873,45874,45875,45876,45877,45878,45879,45880,45881,45882,45883,45884,45885,45886,45887,45888,45889,45890,45891,45892,45893,45894,45895,45896,45897,45898,45899,45900,45901,45902,45903,45904,45905,45906,45907,45908,45909,45910,45911,45912,45913,45914,45915,45916,45917,45918,45919,45920,45921,45922,45923,45924,45925,45926,45927,45928,45929,45930,45931,45932,45933,45934,45935,45936,45937,45938,45939,45940,45941,45942,45943,45944,45945,45946,45947,45948,45949,45950,45951,45952,45953,45954,45955,45956,45957,45958,45959,45960,45961,45962,45963,45964,45965,45966,45967,45968,45969,45970,45971,45972,45973,45974,45975,45976,45977,45978,45979,45980,45981,45982,45983,45984,45985,45986,45987,45988,45989,45990,45991,45992,45993,45994,45995,45996,45997,45998,45999,46000,46001,46002,46003,46004,46005,46006,46007,46008,46009,46010,46011,46012,46013,46014,46015,46016,46017,46018,46019,46020,46021,46022,46023,46024,46025,46026,46027,46028,46029,46030,46031,46032,46033,46034,46035,46036,46037,46038,46039,46040,46041,46042,46043,46044,46045,46046,46047,46048,46049,46050,46051,46052,46053,46054,46055,46056,46057,46058,46059,46060,46061,46062,46063,46064,46065,46066,46067,46068,46069,46070,46071,46072,46073,46074,46075,46076,46077,46078,46079,46080,46081,46082,46083,46084,46085,46086,46087,46088,46089,46090,46091,46092,46093,46094,46095,46096,46097,46098,46099,46100,46101,46102,46103,46104,46105,46106,46107,46108,46109,46110,46111,46112,46113,46114,46115,46116,46117,46118,46119,46120,46121,46122,46123,46124,46125,46126,46127,46128,46129,46130,46131,46132,46133,46134,46135,46136,46137,46138,46139,46140,46141,46142,46143,46144,46145,46146,46147,46148,46149,46150,46151,46152,46153,46154,46155,46156,46157,46158,46159,46160,46161,46162,46163,46164,46165,46166,46167,46168,46169,46170,46171,46172,46173,46174,46175,46176,46177,46178,46179,46180,46181,46182,46183,46184,46185,46186,46187,46188,46189,46190,46191,46192,46193,46194,46195,46196,46197,46198,46199,46200,46201,46202,46203,46204,46205,46206,46207,46208,46209,46210,46211,46212,46213,46214,46215,46216,46217,46218,46219,46220,46221,46222,46223,46224,46225,46226,46227,46228,46229,46230,46231,46232,46233,46234,46235,46236,46237,46238,46239,46240,46241,46242,46243,46244,46245,46246,46247,46248,46249,46250,46251,46252,46253,46254,46255,46256,46257,46258,46259,46260,46261,46262,46263,46264,46265,46266,46267,46268,46269,46270,46271,46272,46273,46274,46275,46276,46277,46278,46279,46280,46281,46282,46283,46284,46285,46286,46287,46288,46289,46290,46291,46292,46293,46294,46295,46296,46297,46298,46299,46300,46301,46302,46303,46304,46305,46306,46307,46308,46309,46310,46311,46312,46313,46314,46315,46316,46317,46318,46319,46320,46321,46322,46323,46324,46325,46326,46327,46328,46329,46330,46331,46332,46333,46334,46335,46336,46337,46338,46339,46340,46341,46342,46343,46344,46345,46346,46347,46348,46349,46350,46351,46352,46353,46354,46355,46356,46357,46358,46359,46360,46361,46362,46363,46364,46365,46366,46367,46368,46369,46370,46371,46372,46373,46374,46375,46376,46377,46378,46379,46380,46381,46382,46383,46384,46385,46386,46387,46388,46389,46390,46391,46392,46393,46394,46395,46396,46397,46398,46399,46400,46401,46402,46403,46404,46405,46406,46407,46408,46409,46410,46411,46412,46413,46414,46415,46416,46417,46418,46419,46420,46421,46422,46423,46424,46425,46426,46427,46428,46429,46430,46431,46432,46433,46434,46435,46436,46437,46438,46439,46440,46441,46442,46443,46444,46445,46446,46447,46448,46449,46450,46451,46452,46453,46454,46455,46456,46457,46458,46459,46460,46461,46462,46463,46464,46465,46466,46467,46468,46469,46470,46471,46472,46473,46474,46475,46476,46477,46478,46479,46480,46481,46482,46483,46484,46485,46486,46487,46488,46489,46490,46491,46492,46493,46494,46495,46496,46497,46498,46499,46500,46501,46502,46503,46504,46505,46506,46507,46508,46509,46510,46511,46512,46513,46514,46515,46516,46517,46518,46519,46520,46521,46522,46523,46524,46525,46526,46527,46528,46529,46530,46531,46532,46533,46534,46535,46536,46537,46538,46539,46540,46541,46542,46543,46544,46545,46546,46547,46548,46549,46550,46551,46552,46553,46554,46555,46556,46557,46558,46559,46560,46561,46562,46563,46564,46565,46566,46567,46568,46569,46570,46571,46572,46573,46574,46575,46576,46577,46578,46579,46580,46581,46582,46583,46584,46585,46586,46587,46588,46589,46590,46591,46592,46593,46594,46595,46596,46597,46598,46599,46600,46601,46602,46603,46604,46605,46606,46607,46608,46609,46610,46611,46612,46613,46614,46615,46616,46617,46618,46619,46620,46621,46622,46623,46624,46625,46626,46627,46628,46629,46630,46631,46632,46633,46634,46635,46636,46637,46638,46639,46640,46641,46642,46643,46644,46645,46646,46647,46648,46649,46650,46651,46652,46653,46654,46655,46656,46657,46658,46659,46660,46661,46662,46663,46664,46665,46666,46667,46668,46669,46670,46671,46672,46673,46674,46675,46676,46677,46678,46679,46680,46681,46682,46683,46684,46685,46686,46687,46688,46689,46690,46691,46692,46693,46694,46695,46696,46697,46698,46699,46700,46701,46702,46703,46704,46705,46706,46707,46708,46709,46710,46711,46712,46713,46714,46715,46716,46717,46718,46719,46720,46721,46722,46723,46724,46725,46726,46727,46728,46729,46730,46731,46732,46733,46734,46735,46736,46737,46738,46739,46740,46741,46742,46743,46744,46745,46746,46747,46748,46749,46750,46751,46752,46753,46754,46755,46756,46757,46758,46759,46760,46761,46762,46763,46764,46765,46766,46767,46768,46769,46770,46771,46772,46773,46774,46775,46776,46777,46778,46779,46780,46781,46782,46783,46784,46785,46786,46787,46788,46789,46790,46791,46792,46793,46794,46795,46796,46797,46798,46799,46800,46801,46802,46803,46804,46805,46806,46807,46808,46809,46810,46811,46812,46813,46814,46815,46816,46817,46818,46819,46820,46821,46822,46823,46824,46825,46826,46827,46828,46829,46830,46831,46832,46833,46834,46835,46836,46837,46838,46839,46840,46841,46842,46843,46844,46845,46846,46847,46848,46849,46850,46851,46852,46853,46854,46855,46856,46857,46858,46859,46860,46861,46862,46863,46864,46865,46866,46867,46868,46869,46870,46871,46872,46873,46874,46875,46876,46877,46878,46879,46880,46881,46882,46883,46884,46885,46886,46887,46888,46889,46890,46891,46892,46893,46894,46895,46896,46897,46898,46899,46900,46901,46902,46903,46904,46905,46906,46907,46908,46909,46910,46911,46912,46913,46914,46915,46916,46917,46918,46919,46920,46921,46922,46923,46924,46925,46926,46927,46928,46929,46930,46931,46932,46933,46934,46935,46936,46937,46938,46939,46940,46941,46942,46943,46944,46945,46946,46947,46948,46949,46950,46951,46952,46953,46954,46955,46956,46957,46958,46959,46960,46961,46962,46963,46964,46965,46966,46967,46968,46969,46970,46971,46972,46973,46974,46975,46976,46977,46978,46979,46980,46981,46982,46983,46984,46985,46986,46987,46988,46989,46990,46991,46992,46993,46994,46995,46996,46997,46998,46999,47000,47001,47002,47003,47004,47005,47006,47007,47008,47009,47010,47011,47012,47013,47014,47015,47016,47017,47018,47019,47020,47021,47022,47023,47024,47025,47026,47027,47028,47029,47030,47031,47032,47033,47034,47035,47036,47037,47038,47039,47040,47041,47042,47043,47044,47045,47046,47047,47048,47049,47050,47051,47052,47053,47054,47055,47056,47057,47058,47059,47060,47061,47062,47063,47064,47065,47066,47067,47068,47069,47070,47071,47072,47073,47074,47075,47076,47077,47078,47079,47080,47081,47082,47083,47084,47085,47086,47087,47088,47089,47090,47091,47092,47093,47094,47095,47096,47097,47098,47099,47100,47101,47102,47103,47104,47105,47106,47107,47108,47109,47110,47111,47112,47113,47114,47115,47116,47117,47118,47119,47120,47121,47122,47123,47124,47125,47126,47127,47128,47129,47130,47131,47132,47133,47134,47135,47136,47137,47138,47139,47140,47141,47142,47143,47144,47145,47146,47147,47148,47149,47150,47151,47152,47153,47154,47155,47156,47157,47158,47159,47160,47161,47162,47163,47164,47165,47166,47167,47168,47169,47170,47171,47172,47173,47174,47175,47176,47177,47178,47179,47180,47181,47182,47183,47184,47185,47186,47187,47188,47189,47190,47191,47192,47193,47194,47195,47196,47197,47198,47199,47200,47201,47202,47203,47204,47205,47206,47207,47208,47209,47210,47211,47212,47213,47214,47215,47216,47217,47218,47219,47220,47221,47222,47223,47224,47225,47226,47227,47228,47229,47230,47231,47232,47233,47234,47235,47236,47237,47238,47239,47240,47241,47242,47243,47244,47245,47246,47247,47248,47249,47250,47251,47252,47253,47254,47255,47256,47257,47258,47259,47260,47261,47262,47263,47264,47265,47266,47267,47268,47269,47270,47271,47272,47273,47274,47275,47276,47277,47278,47279,47280,47281,47282,47283,47284,47285,47286,47287,47288,47289,47290,47291,47292,47293,47294,47295,47296,47297,47298,47299,47300,47301,47302,47303,47304,47305,47306,47307,47308,47309,47310,47311,47312,47313,47314,47315,47316,47317,47318,47319,47320,47321,47322,47323,47324,47325,47326,47327,47328,47329,47330,47331,47332,47333,47334,47335,47336,47337,47338,47339,47340,47341,47342,47343,47344,47345,47346,47347,47348,47349,47350,47351,47352,47353,47354,47355,47356,47357,47358,47359,47360,47361,47362,47363,47364,47365,47366,47367,47368,47369,47370,47371,47372,47373,47374,47375,47376,47377,47378,47379,47380,47381,47382,47383,47384,47385,47386,47387,47388,47389,47390,47391,47392,47393,47394,47395,47396,47397,47398,47399,47400,47401,47402,47403,47404,47405,47406,47407,47408,47409,47410,47411,47412,47413,47414,47415,47416,47417,47418,47419,47420,47421,47422,47423,47424,47425,47426,47427,47428,47429,47430,47431,47432,47433,47434,47435,47436,47437,47438,47439,47440,47441,47442,47443,47444,47445,47446,47447,47448,47449,47450,47451,47452,47453,47454,47455,47456,47457,47458,47459,47460,47461,47462,47463,47464,47465,47466,47467,47468,47469,47470,47471,47472,47473,47474,47475,47476,47477,47478,47479,47480,47481,47482,47483,47484,47485,47486,47487,47488,47489,47490,47491,47492,47493,47494,47495,47496,47497,47498,47499,47500,47501,47502,47503,47504,47505,47506,47507,47508,47509,47510,47511,47512,47513,47514,47515,47516,47517,47518,47519,47520,47521,47522,47523,47524,47525,47526,47527,47528,47529,47530,47531,47532,47533,47534,47535,47536,47537,47538,47539,47540,47541,47542,47543,47544,47545,47546,47547,47548,47549,47550,47551,47552,47553,47554,47555,47556,47557,47558,47559,47560,47561,47562,47563,47564,47565,47566,47567,47568,47569,47570,47571,47572,47573,47574,47575,47576,47577,47578,47579,47580,47581,47582,47583,47584,47585,47586,47587,47588,47589,47590,47591,47592,47593,47594,47595,47596,47597,47598,47599,47600,47601,47602,47603,47604,47605,47606,47607,47608,47609,47610,47611,47612,47613,47614,47615,47616,47617,47618,47619,47620,47621,47622,47623,47624,47625,47626,47627,47628,47629,47630,47631,47632,47633,47634,47635,47636,47637,47638,47639,47640,47641,47642,47643,47644,47645,47646,47647,47648,47649,47650,47651,47652,47653,47654,47655,47656,47657,47658,47659,47660,47661,47662,47663,47664,47665,47666,47667,47668,47669,47670,47671,47672,47673,47674,47675,47676,47677,47678,47679,47680,47681,47682,47683,47684,47685,47686,47687,47688,47689,47690,47691,47692,47693,47694,47695,47696,47697,47698,47699,47700,47701,47702,47703,47704,47705,47706,47707,47708,47709,47710,47711,47712,47713,47714,47715,47716,47717,47718,47719,47720,47721,47722,47723,47724,47725,47726,47727,47728,47729,47730,47731,47732,47733,47734,47735,47736,47737,47738,47739,47740,47741,47742,47743,47744,47745,47746,47747,47748,47749,47750,47751,47752,47753,47754,47755,47756,47757,47758,47759,47760,47761,47762,47763,47764,47765,47766,47767,47768,47769,47770,47771,47772,47773,47774,47775,47776,47777,47778,47779,47780,47781,47782,47783,47784,47785,47786,47787,47788,47789,47790,47791,47792,47793,47794,47795,47796,47797,47798,47799,47800,47801,47802,47803,47804,47805,47806,47807,47808,47809,47810,47811,47812,47813,47814,47815,47816,47817,47818,47819,47820,47821,47822,47823,47824,47825,47826,47827,47828,47829,47830,47831,47832,47833,47834,47835,47836,47837,47838,47839,47840,47841,47842,47843,47844,47845,47846,47847,47848,47849,47850,47851,47852,47853,47854,47855,47856,47857,47858,47859,47860,47861,47862,47863,47864,47865,47866,47867,47868,47869,47870,47871,47872,47873,47874,47875,47876,47877,47878,47879,47880,47881,47882,47883,47884,47885,47886,47887,47888,47889,47890,47891,47892,47893,47894,47895,47896,47897,47898,47899,47900,47901,47902,47903,47904,47905,47906,47907,47908,47909,47910,47911,47912,47913,47914,47915,47916,47917,47918,47919,47920,47921,47922,47923,47924,47925,47926,47927,47928,47929,47930,47931,47932,47933,47934,47935,47936,47937,47938,47939,47940,47941,47942,47943,47944,47945,47946,47947,47948,47949,47950,47951,47952,47953,47954,47955,47956,47957,47958,47959,47960,47961,47962,47963,47964,47965,47966,47967,47968,47969,47970,47971,47972,47973,47974,47975,47976,47977,47978,47979,47980,47981,47982,47983,47984,47985,47986,47987,47988,47989,47990,47991,47992,47993,47994,47995,47996,47997,47998,47999,48000,48001,48002,48003,48004,48005,48006,48007,48008,48009,48010,48011,48012,48013,48014,48015,48016,48017,48018,48019,48020,48021,48022,48023,48024,48025,48026,48027,48028,48029,48030,48031,48032,48033,48034,48035,48036,48037,48038,48039,48040,48041,48042,48043,48044,48045,48046,48047,48048,48049,48050,48051,48052,48053,48054,48055,48056,48057,48058,48059,48060,48061,48062,48063,48064,48065,48066,48067,48068,48069,48070,48071,48072,48073,48074,48075,48076,48077,48078,48079,48080,48081,48082,48083,48084,48085,48086,48087,48088,48089,48090,48091,48092,48093,48094,48095,48096,48097,48098,48099,48100,48101,48102,48103,48104,48105,48106,48107,48108,48109,48110,48111,48112,48113,48114,48115,48116,48117,48118,48119,48120,48121,48122,48123,48124,48125,48126,48127,48128,48129,48130,48131,48132,48133,48134,48135,48136,48137,48138,48139,48140,48141,48142,48143,48144,48145,48146,48147,48148,48149,48150,48151,48152,48153,48154,48155,48156,48157,48158,48159,48160,48161,48162,48163,48164,48165,48166,48167,48168,48169,48170,48171,48172,48173,48174,48175,48176,48177,48178,48179,48180,48181,48182,48183,48184,48185,48186,48187,48188,48189,48190,48191,48192,48193,48194,48195,48196,48197,48198,48199,48200,48201,48202,48203,48204,48205,48206,48207,48208,48209,48210,48211,48212,48213,48214,48215,48216,48217,48218,48219,48220,48221,48222,48223,48224,48225,48226,48227,48228,48229,48230,48231,48232,48233,48234,48235,48236,48237,48238,48239,48240,48241,48242,48243,48244,48245,48246,48247,48248,48249,48250,48251,48252,48253,48254,48255,48256,48257,48258,48259,48260,48261,48262,48263,48264,48265,48266,48267,48268,48269,48270,48271,48272,48273,48274,48275,48276,48277,48278,48279,48280,48281,48282,48283,48284,48285,48286,48287,48288,48289,48290,48291,48292,48293,48294,48295,48296,48297,48298,48299,48300,48301,48302,48303,48304,48305,48306,48307,48308,48309,48310,48311,48312,48313,48314,48315,48316,48317,48318,48319,48320,48321,48322,48323,48324,48325,48326,48327,48328,48329,48330,48331,48332,48333,48334,48335,48336,48337,48338,48339,48340,48341,48342,48343,48344,48345,48346,48347,48348,48349,48350,48351,48352,48353,48354,48355,48356,48357,48358,48359,48360,48361,48362,48363,48364,48365,48366,48367,48368,48369,48370,48371,48372,48373,48374,48375,48376,48377,48378,48379,48380,48381,48382,48383,48384,48385,48386,48387,48388,48389,48390,48391,48392,48393,48394,48395,48396,48397,48398,48399,48400,48401,48402,48403,48404,48405,48406,48407,48408,48409,48410,48411,48412,48413,48414,48415,48416,48417,48418,48419,48420,48421,48422,48423,48424,48425,48426,48427,48428,48429,48430,48431,48432,48433,48434,48435,48436,48437,48438,48439,48440,48441,48442,48443,48444,48445,48446,48447,48448,48449,48450,48451,48452,48453,48454,48455,48456,48457,48458,48459,48460,48461,48462,48463,48464,48465,48466,48467,48468,48469,48470,48471,48472,48473,48474,48475,48476,48477,48478,48479,48480,48481,48482,48483,48484,48485,48486,48487,48488,48489,48490,48491,48492,48493,48494,48495,48496,48497,48498,48499,48500,48501,48502,48503,48504,48505,48506,48507,48508,48509,48510,48511,48512,48513,48514,48515,48516,48517,48518,48519,48520,48521,48522,48523,48524,48525,48526,48527,48528,48529,48530,48531,48532,48533,48534,48535,48536,48537,48538,48539,48540,48541,48542,48543,48544,48545,48546,48547,48548,48549,48550,48551,48552,48553,48554,48555,48556,48557,48558,48559,48560,48561,48562,48563,48564,48565,48566,48567,48568,48569,48570,48571,48572,48573,48574,48575,48576,48577,48578,48579,48580,48581,48582,48583,48584,48585,48586,48587,48588,48589,48590,48591,48592,48593,48594,48595,48596,48597,48598,48599,48600,48601,48602,48603,48604,48605,48606,48607,48608,48609,48610,48611,48612,48613,48614,48615,48616,48617,48618,48619,48620,48621,48622,48623,48624,48625,48626,48627,48628,48629,48630,48631,48632,48633,48634,48635,48636,48637,48638,48639,48640,48641,48642,48643,48644,48645,48646,48647,48648,48649,48650,48651,48652,48653,48654,48655,48656,48657,48658,48659,48660,48661,48662,48663,48664,48665,48666,48667,48668,48669,48670,48671,48672,48673,48674,48675,48676,48677,48678,48679,48680,48681,48682,48683,48684,48685,48686,48687,48688,48689,48690,48691,48692,48693,48694,48695,48696,48697,48698,48699,48700,48701,48702,48703,48704,48705,48706,48707,48708,48709,48710,48711,48712,48713,48714,48715,48716,48717,48718,48719,48720,48721,48722,48723,48724,48725,48726,48727,48728,48729,48730,48731,48732,48733,48734,48735,48736,48737,48738,48739,48740,48741,48742,48743,48744,48745,48746,48747,48748,48749,48750,48751,48752,48753,48754,48755,48756,48757,48758,48759,48760,48761,48762,48763,48764,48765,48766,48767,48768,48769,48770,48771,48772,48773,48774,48775,48776,48777,48778,48779,48780,48781,48782,48783,48784,48785,48786,48787,48788,48789,48790,48791,48792,48793,48794,48795,48796,48797,48798,48799,48800,48801,48802,48803,48804,48805,48806,48807,48808,48809,48810,48811,48812,48813,48814,48815,48816,48817,48818,48819,48820,48821,48822,48823,48824,48825,48826,48827,48828,48829,48830,48831,48832,48833,48834,48835,48836,48837,48838,48839,48840,48841,48842,48843,48844,48845,48846,48847,48848,48849,48850,48851,48852,48853,48854,48855,48856,48857,48858,48859,48860,48861,48862,48863,48864,48865,48866,48867,48868,48869,48870,48871,48872,48873,48874,48875,48876,48877,48878,48879,48880,48881,48882,48883,48884,48885,48886,48887,48888,48889,48890,48891,48892,48893,48894,48895,48896,48897,48898,48899,48900,48901,48902,48903,48904,48905,48906,48907,48908,48909,48910,48911,48912,48913,48914,48915,48916,48917,48918,48919,48920,48921,48922,48923,48924,48925,48926,48927,48928,48929,48930,48931,48932,48933,48934,48935,48936,48937,48938,48939,48940,48941,48942,48943,48944,48945,48946,48947,48948,48949,48950,48951,48952,48953,48954,48955,48956,48957,48958,48959,48960,48961,48962,48963,48964,48965,48966,48967,48968,48969,48970,48971,48972,48973,48974,48975,48976,48977,48978,48979,48980,48981,48982,48983,48984,48985,48986,48987,48988,48989,48990,48991,48992,48993,48994,48995,48996,48997,48998,48999,49000,49001,49002,49003,49004,49005,49006,49007,49008,49009,49010,49011,49012,49013,49014,49015,49016,49017,49018,49019,49020,49021,49022,49023,49024,49025,49026,49027,49028,49029,49030,49031,49032,49033,49034,49035,49036,49037,49038,49039,49040,49041,49042,49043,49044,49045,49046,49047,49048,49049,49050,49051,49052,49053,49054,49055,49056,49057,49058,49059,49060,49061,49062,49063,49064,49065,49066,49067,49068,49069,49070,49071,49072,49073,49074,49075,49076,49077,49078,49079,49080,49081,49082,49083,49084,49085,49086,49087,49088,49089,49090,49091,49092,49093,49094,49095,49096,49097,49098,49099,49100,49101,49102,49103,49104,49105,49106,49107,49108,49109,49110,49111,49112,49113,49114,49115,49116,49117,49118,49119,49120,49121,49122,49123,49124,49125,49126,49127,49128,49129,49130,49131,49132,49133,49134,49135,49136,49137,49138,49139,49140,49141,49142,49143,49144,49145,49146,49147,49148,49149,49150,49151,49152,49153,49154,49155,49156,49157,49158,49159,49160,49161,49162,49163,49164,49165,49166,49167,49168,49169,49170,49171,49172,49173,49174,49175,49176,49177,49178,49179,49180,49181,49182,49183,49184,49185,49186,49187,49188,49189,49190,49191,49192,49193,49194,49195,49196,49197,49198,49199,49200,49201,49202,49203,49204,49205,49206,49207,49208,49209,49210,49211,49212,49213,49214,49215,49216,49217,49218,49219,49220,49221,49222,49223,49224,49225,49226,49227,49228,49229,49230,49231,49232,49233,49234,49235,49236,49237,49238,49239,49240,49241,49242,49243,49244,49245,49246,49247,49248,49249,49250,49251,49252,49253,49254,49255,49256,49257,49258,49259,49260,49261,49262,49263,49264,49265,49266,49267,49268,49269,49270,49271,49272,49273,49274,49275,49276,49277,49278,49279,49280,49281,49282,49283,49284,49285,49286,49287,49288,49289,49290,49291,49292,49293,49294,49295,49296,49297,49298,49299,49300,49301,49302,49303,49304,49305,49306,49307,49308,49309,49310,49311,49312,49313,49314,49315,49316,49317,49318,49319,49320,49321,49322,49323,49324,49325,49326,49327,49328,49329,49330,49331,49332,49333,49334,49335,49336,49337,49338,49339,49340,49341,49342,49343,49344,49345,49346,49347,49348,49349,49350,49351,49352,49353,49354,49355,49356,49357,49358,49359,49360,49361,49362,49363,49364,49365,49366,49367,49368,49369,49370,49371,49372,49373,49374,49375,49376,49377,49378,49379,49380,49381,49382,49383,49384,49385,49386,49387,49388,49389,49390,49391,49392,49393,49394,49395,49396,49397,49398,49399,49400,49401,49402,49403,49404,49405,49406,49407,49408,49409,49410,49411,49412,49413,49414,49415,49416,49417,49418,49419,49420,49421,49422,49423,49424,49425,49426,49427,49428,49429,49430,49431,49432,49433,49434,49435,49436,49437,49438,49439,49440,49441,49442,49443,49444,49445,49446,49447,49448,49449,49450,49451,49452,49453,49454,49455,49456,49457,49458,49459,49460,49461,49462,49463,49464,49465,49466,49467,49468,49469,49470,49471,49472,49473,49474,49475,49476,49477,49478,49479,49480,49481,49482,49483,49484,49485,49486,49487,49488,49489,49490,49491,49492,49493,49494,49495,49496,49497,49498,49499,49500,49501,49502,49503,49504,49505,49506,49507,49508,49509,49510,49511,49512,49513,49514,49515,49516,49517,49518,49519,49520,49521,49522,49523,49524,49525,49526,49527,49528,49529,49530,49531,49532,49533,49534,49535,49536,49537,49538,49539,49540,49541,49542,49543,49544,49545,49546,49547,49548,49549,49550,49551,49552,49553,49554,49555,49556,49557,49558,49559,49560,49561,49562,49563,49564,49565,49566,49567,49568,49569,49570,49571,49572,49573,49574,49575,49576,49577,49578,49579,49580,49581,49582,49583,49584,49585,49586,49587,49588,49589,49590,49591,49592,49593,49594,49595,49596,49597,49598,49599,49600,49601,49602,49603,49604,49605,49606,49607,49608,49609,49610,49611,49612,49613,49614,49615,49616,49617,49618,49619,49620,49621,49622,49623,49624,49625,49626,49627,49628,49629,49630,49631,49632,49633,49634,49635,49636,49637,49638,49639,49640,49641,49642,49643,49644,49645,49646,49647,49648,49649,49650,49651,49652,49653,49654,49655,49656,49657,49658,49659,49660,49661,49662,49663,49664,49665,49666,49667,49668,49669,49670,49671,49672,49673,49674,49675,49676,49677,49678,49679,49680,49681,49682,49683,49684,49685,49686,49687,49688,49689,49690,49691,49692,49693,49694,49695,49696,49697,49698,49699,49700,49701,49702,49703,49704,49705,49706,49707,49708,49709,49710,49711,49712,49713,49714,49715,49716,49717,49718,49719,49720,49721,49722,49723,49724,49725,49726,49727,49728,49729,49730,49731,49732,49733,49734,49735,49736,49737,49738,49739,49740,49741,49742,49743,49744,49745,49746,49747,49748,49749,49750,49751,49752,49753,49754,49755,49756,49757,49758,49759,49760,49761,49762,49763,49764,49765,49766,49767,49768,49769,49770,49771,49772,49773,49774,49775,49776,49777,49778,49779,49780,49781,49782,49783,49784,49785,49786,49787,49788,49789,49790,49791,49792,49793,49794,49795,49796,49797,49798,49799,49800,49801,49802,49803,49804,49805,49806,49807,49808,49809,49810,49811,49812,49813,49814,49815,49816,49817,49818,49819,49820,49821,49822,49823,49824,49825,49826,49827,49828,49829,49830,49831,49832,49833,49834,49835,49836,49837,49838,49839,49840,49841,49842,49843,49844,49845,49846,49847,49848,49849,49850,49851,49852,49853,49854,49855,49856,49857,49858,49859,49860,49861,49862,49863,49864,49865,49866,49867,49868,49869,49870,49871,49872,49873,49874,49875,49876,49877,49878,49879,49880,49881,49882,49883,49884,49885,49886,49887,49888,49889,49890,49891,49892,49893,49894,49895,49896,49897,49898,49899,49900,49901,49902,49903,49904,49905,49906,49907,49908,49909,49910,49911,49912,49913,49914,49915,49916,49917,49918,49919,49920,49921,49922,49923,49924,49925,49926,49927,49928,49929,49930,49931,49932,49933,49934,49935,49936,49937,49938,49939,49940,49941,49942,49943,49944,49945,49946,49947,49948,49949,49950,49951,49952,49953,49954,49955,49956,49957,49958,49959,49960,49961,49962,49963,49964,49965,49966,49967,49968,49969,49970,49971,49972,49973,49974,49975,49976,49977,49978,49979,49980,49981,49982,49983,49984,49985,49986,49987,49988,49989,49990,49991,49992,49993,49994,49995,49996,49997,49998,49999,50000,50001,50002,50003,50004,50005,50006,50007,50008,50009,50010,50011,50012,50013,50014,50015,50016,50017,50018,50019,50020,50021,50022,50023,50024,50025,50026,50027,50028,50029,50030,50031,50032,50033,50034,50035,50036,50037,50038,50039,50040,50041,50042,50043,50044,50045,50046,50047,50048,50049,50050,50051,50052,50053,50054,50055,50056,50057,50058,50059,50060,50061,50062,50063,50064,50065,50066,50067,50068,50069,50070,50071,50072,50073,50074,50075,50076,50077,50078,50079,50080,50081,50082,50083,50084,50085,50086,50087,50088,50089,50090,50091,50092,50093,50094,50095,50096,50097,50098,50099,50100,50101,50102,50103,50104,50105,50106,50107,50108,50109,50110,50111,50112,50113,50114,50115,50116,50117,50118,50119,50120,50121,50122,50123,50124,50125,50126,50127,50128,50129,50130,50131,50132,50133,50134,50135,50136,50137,50138,50139,50140,50141,50142,50143,50144,50145,50146,50147,50148,50149,50150,50151,50152,50153,50154,50155,50156,50157,50158,50159,50160,50161,50162,50163,50164,50165,50166,50167,50168,50169,50170,50171,50172,50173,50174,50175,50176,50177,50178,50179,50180,50181,50182,50183,50184,50185,50186,50187,50188,50189,50190,50191,50192,50193,50194,50195,50196,50197,50198,50199,50200,50201,50202,50203,50204,50205,50206,50207,50208,50209,50210,50211,50212,50213,50214,50215,50216,50217,50218,50219,50220,50221,50222,50223,50224,50225,50226,50227,50228,50229,50230,50231,50232,50233,50234,50235,50236,50237,50238,50239,50240,50241,50242,50243,50244,50245,50246,50247,50248,50249,50250,50251,50252,50253,50254,50255,50256,50257,50258,50259,50260,50261,50262,50263,50264,50265,50266,50267,50268,50269,50270,50271,50272,50273,50274,50275,50276,50277,50278,50279,50280,50281,50282,50283,50284,50285,50286,50287,50288,50289,50290,50291,50292,50293,50294,50295,50296,50297,50298,50299,50300,50301,50302,50303,50304,50305,50306,50307,50308,50309,50310,50311,50312,50313,50314,50315,50316,50317,50318,50319,50320,50321,50322,50323,50324,50325,50326,50327,50328,50329,50330,50331,50332,50333,50334,50335,50336,50337,50338,50339,50340,50341,50342,50343,50344,50345,50346,50347,50348,50349,50350,50351,50352,50353,50354,50355,50356,50357,50358,50359,50360,50361,50362,50363,50364,50365,50366,50367,50368,50369,50370,50371,50372,50373,50374,50375,50376,50377,50378,50379,50380,50381,50382,50383,50384,50385,50386,50387,50388,50389,50390,50391,50392,50393,50394,50395,50396,50397,50398,50399,50400,50401,50402,50403,50404,50405,50406,50407,50408,50409,50410,50411,50412,50413,50414,50415,50416,50417,50418,50419,50420,50421,50422,50423,50424,50425,50426,50427,50428,50429,50430,50431,50432,50433,50434,50435,50436,50437,50438,50439,50440,50441,50442,50443,50444,50445,50446,50447,50448,50449,50450,50451,50452,50453,50454,50455,50456,50457,50458,50459,50460,50461,50462,50463,50464,50465,50466,50467,50468,50469,50470,50471,50472,50473,50474,50475,50476,50477,50478,50479,50480,50481,50482,50483,50484,50485,50486,50487,50488,50489,50490,50491,50492,50493,50494,50495,50496,50497,50498,50499,50500,50501,50502,50503,50504,50505,50506,50507,50508,50509,50510,50511,50512,50513,50514,50515,50516,50517,50518,50519,50520,50521,50522,50523,50524,50525,50526,50527,50528,50529,50530,50531,50532,50533,50534,50535,50536,50537,50538,50539,50540,50541,50542,50543,50544,50545,50546,50547,50548,50549,50550,50551,50552,50553,50554,50555,50556,50557,50558,50559,50560,50561,50562,50563,50564,50565,50566,50567,50568,50569,50570,50571,50572,50573,50574,50575,50576,50577,50578,50579,50580,50581,50582,50583,50584,50585,50586,50587,50588,50589,50590,50591,50592,50593,50594,50595,50596,50597,50598,50599,50600,50601,50602,50603,50604,50605,50606,50607,50608,50609,50610,50611,50612,50613,50614,50615,50616,50617,50618,50619,50620,50621,50622,50623,50624,50625,50626,50627,50628,50629,50630,50631,50632,50633,50634,50635,50636,50637,50638,50639,50640,50641,50642,50643,50644,50645,50646,50647,50648,50649,50650,50651,50652,50653,50654,50655,50656,50657,50658,50659,50660,50661,50662,50663,50664,50665,50666,50667,50668,50669,50670,50671,50672,50673,50674,50675,50676,50677,50678,50679,50680,50681,50682,50683,50684,50685,50686,50687,50688,50689,50690,50691,50692,50693,50694,50695,50696,50697,50698,50699,50700,50701,50702,50703,50704,50705,50706,50707,50708,50709,50710,50711,50712,50713,50714,50715,50716,50717,50718,50719,50720,50721,50722,50723,50724,50725,50726,50727,50728,50729,50730,50731,50732,50733,50734,50735,50736,50737,50738,50739,50740,50741,50742,50743,50744,50745,50746,50747,50748,50749,50750,50751,50752,50753,50754,50755,50756,50757,50758,50759,50760,50761,50762,50763,50764,50765,50766,50767,50768,50769,50770,50771,50772,50773,50774,50775,50776,50777,50778,50779,50780,50781,50782,50783,50784,50785,50786,50787,50788,50789,50790,50791,50792,50793,50794,50795,50796,50797,50798,50799,50800,50801,50802,50803,50804,50805,50806,50807,50808,50809,50810,50811,50812,50813,50814,50815,50816,50817,50818,50819,50820,50821,50822,50823,50824,50825,50826,50827,50828,50829,50830,50831,50832,50833,50834,50835,50836,50837,50838,50839,50840,50841,50842,50843,50844,50845,50846,50847,50848,50849,50850,50851,50852,50853,50854,50855,50856,50857,50858,50859,50860,50861,50862,50863,50864,50865,50866,50867,50868,50869,50870,50871,50872,50873,50874,50875,50876,50877,50878,50879,50880,50881,50882,50883,50884,50885,50886,50887,50888,50889,50890,50891,50892,50893,50894,50895,50896,50897,50898,50899,50900,50901,50902,50903,50904,50905,50906,50907,50908,50909,50910,50911,50912,50913,50914,50915,50916,50917,50918,50919,50920,50921,50922,50923,50924,50925,50926,50927,50928,50929,50930,50931,50932,50933,50934,50935,50936,50937,50938,50939,50940,50941,50942,50943,50944,50945,50946,50947,50948,50949,50950,50951,50952,50953,50954,50955,50956,50957,50958,50959,50960,50961,50962,50963,50964,50965,50966,50967,50968,50969,50970,50971,50972,50973,50974,50975,50976,50977,50978,50979,50980,50981,50982,50983,50984,50985,50986,50987,50988,50989,50990,50991,50992,50993,50994,50995,50996,50997,50998,50999,51000,51001,51002,51003,51004,51005,51006,51007,51008,51009,51010,51011,51012,51013,51014,51015,51016,51017,51018,51019,51020,51021,51022,51023,51024,51025,51026,51027,51028,51029,51030,51031,51032,51033,51034,51035,51036,51037,51038,51039,51040,51041,51042,51043,51044,51045,51046,51047,51048,51049,51050,51051,51052,51053,51054,51055,51056,51057,51058,51059,51060,51061,51062,51063,51064,51065,51066,51067,51068,51069,51070,51071,51072,51073,51074,51075,51076,51077,51078,51079,51080,51081,51082,51083,51084,51085,51086,51087,51088,51089,51090,51091,51092,51093,51094,51095,51096,51097,51098,51099,51100,51101,51102,51103,51104,51105,51106,51107,51108,51109,51110,51111,51112,51113,51114,51115,51116,51117,51118,51119,51120,51121,51122,51123,51124,51125,51126,51127,51128,51129,51130,51131,51132,51133,51134,51135,51136,51137,51138,51139,51140,51141,51142,51143,51144,51145,51146,51147,51148,51149,51150,51151,51152,51153,51154,51155,51156,51157,51158,51159,51160,51161,51162,51163,51164,51165,51166,51167,51168,51169,51170,51171,51172,51173,51174,51175,51176,51177,51178,51179,51180,51181,51182,51183,51184,51185,51186,51187,51188,51189,51190,51191,51192,51193,51194,51195,51196,51197,51198,51199,51200,51201,51202,51203,51204,51205,51206,51207,51208,51209,51210,51211,51212,51213,51214,51215,51216,51217,51218,51219,51220,51221,51222,51223,51224,51225,51226,51227,51228,51229,51230,51231,51232,51233,51234,51235,51236,51237,51238,51239,51240,51241,51242,51243,51244,51245,51246,51247,51248,51249,51250,51251,51252,51253,51254,51255,51256,51257,51258,51259,51260,51261,51262,51263,51264,51265,51266,51267,51268,51269,51270,51271,51272,51273,51274,51275,51276,51277,51278,51279,51280,51281,51282,51283,51284,51285,51286,51287,51288,51289,51290,51291,51292,51293,51294,51295,51296,51297,51298,51299,51300,51301,51302,51303,51304,51305,51306,51307,51308,51309,51310,51311,51312,51313,51314,51315,51316,51317,51318,51319,51320,51321,51322,51323,51324,51325,51326,51327,51328,51329,51330,51331,51332,51333,51334,51335,51336,51337,51338,51339,51340,51341,51342,51343,51344,51345,51346,51347,51348,51349,51350,51351,51352,51353,51354,51355,51356,51357,51358,51359,51360,51361,51362,51363,51364,51365,51366,51367,51368,51369,51370,51371,51372,51373,51374,51375,51376,51377,51378,51379,51380,51381,51382,51383,51384,51385,51386,51387,51388,51389,51390,51391,51392,51393,51394,51395,51396,51397,51398,51399,51400,51401,51402,51403,51404,51405,51406,51407,51408,51409,51410,51411,51412,51413,51414,51415,51416,51417,51418,51419,51420,51421,51422,51423,51424,51425,51426,51427,51428,51429,51430,51431,51432,51433,51434,51435,51436,51437,51438,51439,51440,51441,51442,51443,51444,51445,51446,51447,51448,51449,51450,51451,51452,51453,51454,51455,51456,51457,51458,51459,51460,51461,51462,51463,51464,51465,51466,51467,51468,51469,51470,51471,51472,51473,51474,51475,51476,51477,51478,51479,51480,51481,51482,51483,51484,51485,51486,51487,51488,51489,51490,51491,51492,51493,51494,51495,51496,51497,51498,51499,51500,51501,51502,51503,51504,51505,51506,51507,51508,51509,51510,51511,51512,51513,51514,51515,51516,51517,51518,51519,51520,51521,51522,51523,51524,51525,51526,51527,51528,51529,51530,51531,51532,51533,51534,51535,51536,51537,51538,51539,51540,51541,51542,51543,51544,51545,51546,51547,51548,51549,51550,51551,51552,51553,51554,51555,51556,51557,51558,51559,51560,51561,51562,51563,51564,51565,51566,51567,51568,51569,51570,51571,51572,51573,51574,51575,51576,51577,51578,51579,51580,51581,51582,51583,51584,51585,51586,51587,51588,51589,51590,51591,51592,51593,51594,51595,51596,51597,51598,51599,51600,51601,51602,51603,51604,51605,51606,51607,51608,51609,51610,51611,51612,51613,51614,51615,51616,51617,51618,51619,51620,51621,51622,51623,51624,51625,51626,51627,51628,51629,51630,51631,51632,51633,51634,51635,51636,51637,51638,51639,51640,51641,51642,51643,51644,51645,51646,51647,51648,51649,51650,51651,51652,51653,51654,51655,51656,51657,51658,51659,51660,51661,51662,51663,51664,51665,51666,51667,51668,51669,51670,51671,51672,51673,51674,51675,51676,51677,51678,51679,51680,51681,51682,51683,51684,51685,51686,51687,51688,51689,51690,51691,51692,51693,51694,51695,51696,51697,51698,51699,51700,51701,51702,51703,51704,51705,51706,51707,51708,51709,51710,51711,51712,51713,51714,51715,51716,51717,51718,51719,51720,51721,51722,51723,51724,51725,51726,51727,51728,51729,51730,51731,51732,51733,51734,51735,51736,51737,51738,51739,51740,51741,51742,51743,51744,51745,51746,51747,51748,51749,51750,51751,51752,51753,51754,51755,51756,51757,51758,51759,51760,51761,51762,51763,51764,51765,51766,51767,51768,51769,51770,51771,51772,51773,51774,51775,51776,51777,51778,51779,51780,51781,51782,51783,51784,51785,51786,51787,51788,51789,51790,51791,51792,51793,51794,51795,51796,51797,51798,51799,51800,51801,51802,51803,51804,51805,51806,51807,51808,51809,51810,51811,51812,51813,51814,51815,51816,51817,51818,51819,51820,51821,51822,51823,51824,51825,51826,51827,51828,51829,51830,51831,51832,51833,51834,51835,51836,51837,51838,51839,51840,51841,51842,51843,51844,51845,51846,51847,51848,51849,51850,51851,51852,51853,51854,51855,51856,51857,51858,51859,51860,51861,51862,51863,51864,51865,51866,51867,51868,51869,51870,51871,51872,51873,51874,51875,51876,51877,51878,51879,51880,51881,51882,51883,51884,51885,51886,51887,51888,51889,51890,51891,51892,51893,51894,51895,51896,51897,51898,51899,51900,51901,51902,51903,51904,51905,51906,51907,51908,51909,51910,51911,51912,51913,51914,51915,51916,51917,51918,51919,51920,51921,51922,51923,51924,51925,51926,51927,51928,51929,51930,51931,51932,51933,51934,51935,51936,51937,51938,51939,51940,51941,51942,51943,51944,51945,51946,51947,51948,51949,51950,51951,51952,51953,51954,51955,51956,51957,51958,51959,51960,51961,51962,51963,51964,51965,51966,51967,51968,51969,51970,51971,51972,51973,51974,51975,51976,51977,51978,51979,51980,51981,51982,51983,51984,51985,51986,51987,51988,51989,51990,51991,51992,51993,51994,51995,51996,51997,51998,51999,52000,52001,52002,52003,52004,52005,52006,52007,52008,52009,52010,52011,52012,52013,52014,52015,52016,52017,52018,52019,52020,52021,52022,52023,52024,52025,52026,52027,52028,52029,52030,52031,52032,52033,52034,52035,52036,52037,52038,52039,52040,52041,52042,52043,52044,52045,52046,52047,52048,52049,52050,52051,52052,52053,52054,52055,52056,52057,52058,52059,52060,52061,52062,52063,52064,52065,52066,52067,52068,52069,52070,52071,52072,52073,52074,52075,52076,52077,52078,52079,52080,52081,52082,52083,52084,52085,52086,52087,52088,52089,52090,52091,52092,52093,52094,52095,52096,52097,52098,52099,52100,52101,52102,52103,52104,52105,52106,52107,52108,52109,52110,52111,52112,52113,52114,52115,52116,52117,52118,52119,52120,52121,52122,52123,52124,52125,52126,52127,52128,52129,52130,52131,52132,52133,52134,52135,52136,52137,52138,52139,52140,52141,52142,52143,52144,52145,52146,52147,52148,52149,52150,52151,52152,52153,52154,52155,52156,52157,52158,52159,52160,52161,52162,52163,52164,52165,52166,52167,52168,52169,52170,52171,52172,52173,52174,52175,52176,52177,52178,52179,52180,52181,52182,52183,52184,52185,52186,52187,52188,52189,52190,52191,52192,52193,52194,52195,52196,52197,52198,52199,52200,52201,52202,52203,52204,52205,52206,52207,52208,52209,52210,52211,52212,52213,52214,52215,52216,52217,52218,52219,52220,52221,52222,52223,52224,52225,52226,52227,52228,52229,52230,52231,52232,52233,52234,52235,52236,52237,52238,52239,52240,52241,52242,52243,52244,52245,52246,52247,52248,52249,52250,52251,52252,52253,52254,52255,52256,52257,52258,52259,52260,52261,52262,52263,52264,52265,52266,52267,52268,52269,52270,52271,52272,52273,52274,52275,52276,52277,52278,52279,52280,52281,52282,52283,52284,52285,52286,52287,52288,52289,52290,52291,52292,52293,52294,52295,52296,52297,52298,52299,52300,52301,52302,52303,52304,52305,52306,52307,52308,52309,52310,52311,52312,52313,52314,52315,52316,52317,52318,52319,52320,52321,52322,52323,52324,52325,52326,52327,52328,52329,52330,52331,52332,52333,52334,52335,52336,52337,52338,52339,52340,52341,52342,52343,52344,52345,52346,52347,52348,52349,52350,52351,52352,52353,52354,52355,52356,52357,52358,52359,52360,52361,52362,52363,52364,52365,52366,52367,52368,52369,52370,52371,52372,52373,52374,52375,52376,52377,52378,52379,52380,52381,52382,52383,52384,52385,52386,52387,52388,52389,52390,52391,52392,52393,52394,52395,52396,52397,52398,52399,52400,52401,52402,52403,52404,52405,52406,52407,52408,52409,52410,52411,52412,52413,52414,52415,52416,52417,52418,52419,52420,52421,52422,52423,52424,52425,52426,52427,52428,52429,52430,52431,52432,52433,52434,52435,52436,52437,52438,52439,52440,52441,52442,52443,52444,52445,52446,52447,52448,52449,52450,52451,52452,52453,52454,52455,52456,52457,52458,52459,52460,52461,52462,52463,52464,52465,52466,52467,52468,52469,52470,52471,52472,52473,52474,52475,52476,52477,52478,52479,52480,52481,52482,52483,52484,52485,52486,52487,52488,52489,52490,52491,52492,52493,52494,52495,52496,52497,52498,52499,52500,52501,52502,52503,52504,52505,52506,52507,52508,52509,52510,52511,52512,52513,52514,52515,52516,52517,52518,52519,52520,52521,52522,52523,52524,52525,52526,52527,52528,52529,52530,52531,52532,52533,52534,52535,52536,52537,52538,52539,52540,52541,52542,52543,52544,52545,52546,52547,52548,52549,52550,52551,52552,52553,52554,52555,52556,52557,52558,52559,52560,52561,52562,52563,52564,52565,52566,52567,52568,52569,52570,52571,52572,52573,52574,52575,52576,52577,52578,52579,52580,52581,52582,52583,52584,52585,52586,52587,52588,52589,52590,52591,52592,52593,52594,52595,52596,52597,52598,52599,52600,52601,52602,52603,52604,52605,52606,52607,52608,52609,52610,52611,52612,52613,52614,52615,52616,52617,52618,52619,52620,52621,52622,52623,52624,52625,52626,52627,52628,52629,52630,52631,52632,52633,52634,52635,52636,52637,52638,52639,52640,52641,52642,52643,52644,52645,52646,52647,52648,52649,52650,52651,52652,52653,52654,52655,52656,52657,52658,52659,52660,52661,52662,52663,52664,52665,52666,52667,52668,52669,52670,52671,52672,52673,52674,52675,52676,52677,52678,52679,52680,52681,52682,52683,52684,52685,52686,52687,52688,52689,52690,52691,52692,52693,52694,52695,52696,52697,52698,52699,52700,52701,52702,52703,52704,52705,52706,52707,52708,52709,52710,52711,52712,52713,52714,52715,52716,52717,52718,52719,52720,52721,52722,52723,52724,52725,52726,52727,52728,52729,52730,52731,52732,52733,52734,52735,52736,52737,52738,52739,52740,52741,52742,52743,52744,52745,52746,52747,52748,52749,52750,52751,52752,52753,52754,52755,52756,52757,52758,52759,52760,52761,52762,52763,52764,52765,52766,52767,52768,52769,52770,52771,52772,52773,52774,52775,52776,52777,52778,52779,52780,52781,52782,52783,52784,52785,52786,52787,52788,52789,52790,52791,52792,52793,52794,52795,52796,52797,52798,52799,52800,52801,52802,52803,52804,52805,52806,52807,52808,52809,52810,52811,52812,52813,52814,52815,52816,52817,52818,52819,52820,52821,52822,52823,52824,52825,52826,52827,52828,52829,52830,52831,52832,52833,52834,52835,52836,52837,52838,52839,52840,52841,52842,52843,52844,52845,52846,52847,52848,52849,52850,52851,52852,52853,52854,52855,52856,52857,52858,52859,52860,52861,52862,52863,52864,52865,52866,52867,52868,52869,52870,52871,52872,52873,52874,52875,52876,52877,52878,52879,52880,52881,52882,52883,52884,52885,52886,52887,52888,52889,52890,52891,52892,52893,52894,52895,52896,52897,52898,52899,52900,52901,52902,52903,52904,52905,52906,52907,52908,52909,52910,52911,52912,52913,52914,52915,52916,52917,52918,52919,52920,52921,52922,52923,52924,52925,52926,52927,52928,52929,52930,52931,52932,52933,52934,52935,52936,52937,52938,52939,52940,52941,52942,52943,52944,52945,52946,52947,52948,52949,52950,52951,52952,52953,52954,52955,52956,52957,52958,52959,52960,52961,52962,52963,52964,52965,52966,52967,52968,52969,52970,52971,52972,52973,52974,52975,52976,52977,52978,52979,52980,52981,52982,52983,52984,52985,52986,52987,52988,52989,52990,52991,52992,52993,52994,52995,52996,52997,52998,52999,53000,53001,53002,53003,53004,53005,53006,53007,53008,53009,53010,53011,53012,53013,53014,53015,53016,53017,53018,53019,53020,53021,53022,53023,53024,53025,53026,53027,53028,53029,53030,53031,53032,53033,53034,53035,53036,53037,53038,53039,53040,53041,53042,53043,53044,53045,53046,53047,53048,53049,53050,53051,53052,53053,53054,53055,53056,53057,53058,53059,53060,53061,53062,53063,53064,53065,53066,53067,53068,53069,53070,53071,53072,53073,53074,53075,53076,53077,53078,53079,53080,53081,53082,53083,53084,53085,53086,53087,53088,53089,53090,53091,53092,53093,53094,53095,53096,53097,53098,53099,53100,53101,53102,53103,53104,53105,53106,53107,53108,53109,53110,53111,53112,53113,53114,53115,53116,53117,53118,53119,53120,53121,53122,53123,53124,53125,53126,53127,53128,53129,53130,53131,53132,53133,53134,53135,53136,53137,53138,53139,53140,53141,53142,53143,53144,53145,53146,53147,53148,53149,53150,53151,53152,53153,53154,53155,53156,53157,53158,53159,53160,53161,53162,53163,53164,53165,53166,53167,53168,53169,53170,53171,53172,53173,53174,53175,53176,53177,53178,53179,53180,53181,53182,53183,53184,53185,53186,53187,53188,53189,53190,53191,53192,53193,53194,53195,53196,53197,53198,53199,53200,53201,53202,53203,53204,53205,53206,53207,53208,53209,53210,53211,53212,53213,53214,53215,53216,53217,53218,53219,53220,53221,53222,53223,53224,53225,53226,53227,53228,53229,53230,53231,53232,53233,53234,53235,53236,53237,53238,53239,53240,53241,53242,53243,53244,53245,53246,53247,53248,53249,53250,53251,53252,53253,53254,53255,53256,53257,53258,53259,53260,53261,53262,53263,53264,53265,53266,53267,53268,53269,53270,53271,53272,53273,53274,53275,53276,53277,53278,53279,53280,53281,53282,53283,53284,53285,53286,53287,53288,53289,53290,53291,53292,53293,53294,53295,53296,53297,53298,53299,53300,53301,53302,53303,53304,53305,53306,53307,53308,53309,53310,53311,53312,53313,53314,53315,53316,53317,53318,53319,53320,53321,53322,53323,53324,53325,53326,53327,53328,53329,53330,53331,53332,53333,53334,53335,53336,53337,53338,53339,53340,53341,53342,53343,53344,53345,53346,53347,53348,53349,53350,53351,53352,53353,53354,53355,53356,53357,53358,53359,53360,53361,53362,53363,53364,53365,53366,53367,53368,53369,53370,53371,53372,53373,53374,53375,53376,53377,53378,53379,53380,53381,53382,53383,53384,53385,53386,53387,53388,53389,53390,53391,53392,53393,53394,53395,53396,53397,53398,53399,53400,53401,53402,53403,53404,53405,53406,53407,53408,53409,53410,53411,53412,53413,53414,53415,53416,53417,53418,53419,53420,53421,53422,53423,53424,53425,53426,53427,53428,53429,53430,53431,53432,53433,53434,53435,53436,53437,53438,53439,53440,53441,53442,53443,53444,53445,53446,53447,53448,53449,53450,53451,53452,53453,53454,53455,53456,53457,53458,53459,53460,53461,53462,53463,53464,53465,53466,53467,53468,53469,53470,53471,53472,53473,53474,53475,53476,53477,53478,53479,53480,53481,53482,53483,53484,53485,53486,53487,53488,53489,53490,53491,53492,53493,53494,53495,53496,53497,53498,53499,53500,53501,53502,53503,53504,53505,53506,53507,53508,53509,53510,53511,53512,53513,53514,53515,53516,53517,53518,53519,53520,53521,53522,53523,53524,53525,53526,53527,53528,53529,53530,53531,53532,53533,53534,53535,53536,53537,53538,53539,53540,53541,53542,53543,53544,53545,53546,53547,53548,53549,53550,53551,53552,53553,53554,53555,53556,53557,53558,53559,53560,53561,53562,53563,53564,53565,53566,53567,53568,53569,53570,53571,53572,53573,53574,53575,53576,53577,53578,53579,53580,53581,53582,53583,53584,53585,53586,53587,53588,53589,53590,53591,53592,53593,53594,53595,53596,53597,53598,53599,53600,53601,53602,53603,53604,53605,53606,53607,53608,53609,53610,53611,53612,53613,53614,53615,53616,53617,53618,53619,53620,53621,53622,53623,53624,53625,53626,53627,53628,53629,53630,53631,53632,53633,53634,53635,53636,53637,53638,53639,53640,53641,53642,53643,53644,53645,53646,53647,53648,53649,53650,53651,53652,53653,53654,53655,53656,53657,53658,53659,53660,53661,53662,53663,53664,53665,53666,53667,53668,53669,53670,53671,53672,53673,53674,53675,53676,53677,53678,53679,53680,53681,53682,53683,53684,53685,53686,53687,53688,53689,53690,53691,53692,53693,53694,53695,53696,53697,53698,53699,53700,53701,53702,53703,53704,53705,53706,53707,53708,53709,53710,53711,53712,53713,53714,53715,53716,53717,53718,53719,53720,53721,53722,53723,53724,53725,53726,53727,53728,53729,53730,53731,53732,53733,53734,53735,53736,53737,53738,53739,53740,53741,53742,53743,53744,53745,53746,53747,53748,53749,53750,53751,53752,53753,53754,53755,53756,53757,53758,53759,53760,53761,53762,53763,53764,53765,53766,53767,53768,53769,53770,53771,53772,53773,53774,53775,53776,53777,53778,53779,53780,53781,53782,53783,53784,53785,53786,53787,53788,53789,53790,53791,53792,53793,53794,53795,53796,53797,53798,53799,53800,53801,53802,53803,53804,53805,53806,53807,53808,53809,53810,53811,53812,53813,53814,53815,53816,53817,53818,53819,53820,53821,53822,53823,53824,53825,53826,53827,53828,53829,53830,53831,53832,53833,53834,53835,53836,53837,53838,53839,53840,53841,53842,53843,53844,53845,53846,53847,53848,53849,53850,53851,53852,53853,53854,53855,53856,53857,53858,53859,53860,53861,53862,53863,53864,53865,53866,53867,53868,53869,53870,53871,53872,53873,53874,53875,53876,53877,53878,53879,53880,53881,53882,53883,53884,53885,53886,53887,53888,53889,53890,53891,53892,53893,53894,53895,53896,53897,53898,53899,53900,53901,53902,53903,53904,53905,53906,53907,53908,53909,53910,53911,53912,53913,53914,53915,53916,53917,53918,53919,53920,53921,53922,53923,53924,53925,53926,53927,53928,53929,53930,53931,53932,53933,53934,53935,53936,53937,53938,53939,53940,53941,53942,53943,53944,53945,53946,53947,53948,53949,53950,53951,53952,53953,53954,53955,53956,53957,53958,53959,53960,53961,53962,53963,53964,53965,53966,53967,53968,53969,53970,53971,53972,53973,53974,53975,53976,53977,53978,53979,53980,53981,53982,53983,53984,53985,53986,53987,53988,53989,53990,53991,53992,53993,53994,53995,53996,53997,53998,53999,54000,54001,54002,54003,54004,54005,54006,54007,54008,54009,54010,54011,54012,54013,54014,54015,54016,54017,54018,54019,54020,54021,54022,54023,54024,54025,54026,54027,54028,54029,54030,54031,54032,54033,54034,54035,54036,54037,54038,54039,54040,54041,54042,54043,54044,54045,54046,54047,54048,54049,54050,54051,54052,54053,54054,54055,54056,54057,54058,54059,54060,54061,54062,54063,54064,54065,54066,54067,54068,54069,54070,54071,54072,54073,54074,54075,54076,54077,54078,54079,54080,54081,54082,54083,54084,54085,54086,54087,54088,54089,54090,54091,54092,54093,54094,54095,54096,54097,54098,54099,54100,54101,54102,54103,54104,54105,54106,54107,54108,54109,54110,54111,54112,54113,54114,54115,54116,54117,54118,54119,54120,54121,54122,54123,54124,54125,54126,54127,54128,54129,54130,54131,54132,54133,54134,54135,54136,54137,54138,54139,54140,54141,54142,54143,54144,54145,54146,54147,54148,54149,54150,54151,54152,54153,54154,54155,54156,54157,54158,54159,54160,54161,54162,54163,54164,54165,54166,54167,54168,54169,54170,54171,54172,54173,54174,54175,54176,54177,54178,54179,54180,54181,54182,54183,54184,54185,54186,54187,54188,54189,54190,54191,54192,54193,54194,54195,54196,54197,54198,54199,54200,54201,54202,54203,54204,54205,54206,54207,54208,54209,54210,54211,54212,54213,54214,54215,54216,54217,54218,54219,54220,54221,54222,54223,54224,54225,54226,54227,54228,54229,54230,54231,54232,54233,54234,54235,54236,54237,54238,54239,54240,54241,54242,54243,54244,54245,54246,54247,54248,54249,54250,54251,54252,54253,54254,54255,54256,54257,54258,54259,54260,54261,54262,54263,54264,54265,54266,54267,54268,54269,54270,54271,54272,54273,54274,54275,54276,54277,54278,54279,54280,54281,54282,54283,54284,54285,54286,54287,54288,54289,54290,54291,54292,54293,54294,54295,54296,54297,54298,54299,54300,54301,54302,54303,54304,54305,54306,54307,54308,54309,54310,54311,54312,54313,54314,54315,54316,54317,54318,54319,54320,54321,54322,54323,54324,54325,54326,54327,54328,54329,54330,54331,54332,54333,54334,54335,54336,54337,54338,54339,54340,54341,54342,54343,54344,54345,54346,54347,54348,54349,54350,54351,54352,54353,54354,54355,54356,54357,54358,54359,54360,54361,54362,54363,54364,54365,54366,54367,54368,54369,54370,54371,54372,54373,54374,54375,54376,54377,54378,54379,54380,54381,54382,54383,54384,54385,54386,54387,54388,54389,54390,54391,54392,54393,54394,54395,54396,54397,54398,54399,54400,54401,54402,54403,54404,54405,54406,54407,54408,54409,54410,54411,54412,54413,54414,54415,54416,54417,54418,54419,54420,54421,54422,54423,54424,54425,54426,54427,54428,54429,54430,54431,54432,54433,54434,54435,54436,54437,54438,54439,54440,54441,54442,54443,54444,54445,54446,54447,54448,54449,54450,54451,54452,54453,54454,54455,54456,54457,54458,54459,54460,54461,54462,54463,54464,54465,54466,54467,54468,54469,54470,54471,54472,54473,54474,54475,54476,54477,54478,54479,54480,54481,54482,54483,54484,54485,54486,54487,54488,54489,54490,54491,54492,54493,54494,54495,54496,54497,54498,54499,54500,54501,54502,54503,54504,54505,54506,54507,54508,54509,54510,54511,54512,54513,54514,54515,54516,54517,54518,54519,54520,54521,54522,54523,54524,54525,54526,54527,54528,54529,54530,54531,54532,54533,54534,54535,54536,54537,54538,54539,54540,54541,54542,54543,54544,54545,54546,54547,54548,54549,54550,54551,54552,54553,54554,54555,54556,54557,54558,54559,54560,54561,54562,54563,54564,54565,54566,54567,54568,54569,54570,54571,54572,54573,54574,54575,54576,54577,54578,54579,54580,54581,54582,54583,54584,54585,54586,54587,54588,54589,54590,54591,54592,54593,54594,54595,54596,54597,54598,54599,54600,54601,54602,54603,54604,54605,54606,54607,54608,54609,54610,54611,54612,54613,54614,54615,54616,54617,54618,54619,54620,54621,54622,54623,54624,54625,54626,54627,54628,54629,54630,54631,54632,54633,54634,54635,54636,54637,54638,54639,54640,54641,54642,54643,54644,54645,54646,54647,54648,54649,54650,54651,54652,54653,54654,54655,54656,54657,54658,54659,54660,54661,54662,54663,54664,54665,54666,54667,54668,54669,54670,54671,54672,54673,54674,54675,54676,54677,54678,54679,54680,54681,54682,54683,54684,54685,54686,54687,54688,54689,54690,54691,54692,54693,54694,54695,54696,54697,54698,54699,54700,54701,54702,54703,54704,54705,54706,54707,54708,54709,54710,54711,54712,54713,54714,54715,54716,54717,54718,54719,54720,54721,54722,54723,54724,54725,54726,54727,54728,54729,54730,54731,54732,54733,54734,54735,54736,54737,54738,54739,54740,54741,54742,54743,54744,54745,54746,54747,54748,54749,54750,54751,54752,54753,54754,54755,54756,54757,54758,54759,54760,54761,54762,54763,54764,54765,54766,54767,54768,54769,54770,54771,54772,54773,54774,54775,54776,54777,54778,54779,54780,54781,54782,54783,54784,54785,54786,54787,54788,54789,54790,54791,54792,54793,54794,54795,54796,54797,54798,54799,54800,54801,54802,54803,54804,54805,54806,54807,54808,54809,54810,54811,54812,54813,54814,54815,54816,54817,54818,54819,54820,54821,54822,54823,54824,54825,54826,54827,54828,54829,54830,54831,54832,54833,54834,54835,54836,54837,54838,54839,54840,54841,54842,54843,54844,54845,54846,54847,54848,54849,54850,54851,54852,54853,54854,54855,54856,54857,54858,54859,54860,54861,54862,54863,54864,54865,54866,54867,54868,54869,54870,54871,54872,54873,54874,54875,54876,54877,54878,54879,54880,54881,54882,54883,54884,54885,54886,54887,54888,54889,54890,54891,54892,54893,54894,54895,54896,54897,54898,54899,54900,54901,54902,54903,54904,54905,54906,54907,54908,54909,54910,54911,54912,54913,54914,54915,54916,54917,54918,54919,54920,54921,54922,54923,54924,54925,54926,54927,54928,54929,54930,54931,54932,54933,54934,54935,54936,54937,54938,54939,54940,54941,54942,54943,54944,54945,54946,54947,54948,54949,54950,54951,54952,54953,54954,54955,54956,54957,54958,54959,54960,54961,54962,54963,54964,54965,54966,54967,54968,54969,54970,54971,54972,54973,54974,54975,54976,54977,54978,54979,54980,54981,54982,54983,54984,54985,54986,54987,54988,54989,54990,54991,54992,54993,54994,54995,54996,54997,54998,54999,55000,55001,55002,55003,55004,55005,55006,55007,55008,55009,55010,55011,55012,55013,55014,55015,55016,55017,55018,55019,55020,55021,55022,55023,55024,55025,55026,55027,55028,55029,55030,55031,55032,55033,55034,55035,55036,55037,55038,55039,55040,55041,55042,55043,55044,55045,55046,55047,55048,55049,55050,55051,55052,55053,55054,55055,55056,55057,55058,55059,55060,55061,55062,55063,55064,55065,55066,55067,55068,55069,55070,55071,55072,55073,55074,55075,55076,55077,55078,55079,55080,55081,55082,55083,55084,55085,55086,55087,55088,55089,55090,55091,55092,55093,55094,55095,55096,55097,55098,55099,55100,55101,55102,55103,55104,55105,55106,55107,55108,55109,55110,55111,55112,55113,55114,55115,55116,55117,55118,55119,55120,55121,55122,55123,55124,55125,55126,55127,55128,55129,55130,55131,55132,55133,55134,55135,55136,55137,55138,55139,55140,55141,55142,55143,55144,55145,55146,55147,55148,55149,55150,55151,55152,55153,55154,55155,55156,55157,55158,55159,55160,55161,55162,55163,55164,55165,55166,55167,55168,55169,55170,55171,55172,55173,55174,55175,55176,55177,55178,55179,55180,55181,55182,55183,55184,55185,55186,55187,55188,55189,55190,55191,55192,55193,55194,55195,55196,55197,55198,55199,55200,55201,55202,55203,55216,55217,55218,55219,55220,55221,55222,55223,55224,55225,55226,55227,55228,55229,55230,55231,55232,55233,55234,55235,55236,55237,55238,55243,55244,55245,55246,55247,55248,55249,55250,55251,55252,55253,55254,55255,55256,55257,55258,55259,55260,55261,55262,55263,55264,55265,55266,55267,55268,55269,55270,55271,55272,55273,55274,55275,55276,55277,55278,55279,55280,55281,55282,55283,55284,55285,55286,55287,55288,55289,55290,55291,63744,63745,63746,63747,63748,63749,63750,63751,63752,63753,63754,63755,63756,63757,63758,63759,63760,63761,63762,63763,63764,63765,63766,63767,63768,63769,63770,63771,63772,63773,63774,63775,63776,63777,63778,63779,63780,63781,63782,63783,63784,63785,63786,63787,63788,63789,63790,63791,63792,63793,63794,63795,63796,63797,63798,63799,63800,63801,63802,63803,63804,63805,63806,63807,63808,63809,63810,63811,63812,63813,63814,63815,63816,63817,63818,63819,63820,63821,63822,63823,63824,63825,63826,63827,63828,63829,63830,63831,63832,63833,63834,63835,63836,63837,63838,63839,63840,63841,63842,63843,63844,63845,63846,63847,63848,63849,63850,63851,63852,63853,63854,63855,63856,63857,63858,63859,63860,63861,63862,63863,63864,63865,63866,63867,63868,63869,63870,63871,63872,63873,63874,63875,63876,63877,63878,63879,63880,63881,63882,63883,63884,63885,63886,63887,63888,63889,63890,63891,63892,63893,63894,63895,63896,63897,63898,63899,63900,63901,63902,63903,63904,63905,63906,63907,63908,63909,63910,63911,63912,63913,63914,63915,63916,63917,63918,63919,63920,63921,63922,63923,63924,63925,63926,63927,63928,63929,63930,63931,63932,63933,63934,63935,63936,63937,63938,63939,63940,63941,63942,63943,63944,63945,63946,63947,63948,63949,63950,63951,63952,63953,63954,63955,63956,63957,63958,63959,63960,63961,63962,63963,63964,63965,63966,63967,63968,63969,63970,63971,63972,63973,63974,63975,63976,63977,63978,63979,63980,63981,63982,63983,63984,63985,63986,63987,63988,63989,63990,63991,63992,63993,63994,63995,63996,63997,63998,63999,64000,64001,64002,64003,64004,64005,64006,64007,64008,64009,64010,64011,64012,64013,64014,64015,64016,64017,64018,64019,64020,64021,64022,64023,64024,64025,64026,64027,64028,64029,64030,64031,64032,64033,64034,64035,64036,64037,64038,64039,64040,64041,64042,64043,64044,64045,64046,64047,64048,64049,64050,64051,64052,64053,64054,64055,64056,64057,64058,64059,64060,64061,64062,64063,64064,64065,64066,64067,64068,64069,64070,64071,64072,64073,64074,64075,64076,64077,64078,64079,64080,64081,64082,64083,64084,64085,64086,64087,64088,64089,64090,64091,64092,64093,64094,64095,64096,64097,64098,64099,64100,64101,64102,64103,64104,64105,64106,64107,64108,64109,64112,64113,64114,64115,64116,64117,64118,64119,64120,64121,64122,64123,64124,64125,64126,64127,64128,64129,64130,64131,64132,64133,64134,64135,64136,64137,64138,64139,64140,64141,64142,64143,64144,64145,64146,64147,64148,64149,64150,64151,64152,64153,64154,64155,64156,64157,64158,64159,64160,64161,64162,64163,64164,64165,64166,64167,64168,64169,64170,64171,64172,64173,64174,64175,64176,64177,64178,64179,64180,64181,64182,64183,64184,64185,64186,64187,64188,64189,64190,64191,64192,64193,64194,64195,64196,64197,64198,64199,64200,64201,64202,64203,64204,64205,64206,64207,64208,64209,64210,64211,64212,64213,64214,64215,64216,64217,64256,64257,64258,64259,64260,64261,64262,64275,64276,64277,64278,64279,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,65382,65383,65384,65385,65386,65387,65388,65389,65390,65391,65392,65393,65394,65395,65396,65397,65398,65399,65400,65401,65402,65403,65404,65405,65406,65407,65408,65409,65410,65411,65412,65413,65414,65415,65416,65417,65418,65419,65420,65421,65422,65423,65424,65425,65426,65427,65428,65429,65430,65431,65432,65433,65434,65435,65436,65437,65438,65439,65440,65441,65442,65443,65444,65445,65446,65447,65448,65449,65450,65451,65452,65453,65454,65455,65456,65457,65458,65459,65460,65461,65462,65463,65464,65465,65466,65467,65468,65469,65470,65474,65475,65476,65477,65478,65479,65482,65483,65484,65485,65486,65487,65490,65491,65492,65493,65494,65495,65498,65499,65500".split(",").map((function(e){return parseInt(e,10)}));e.exports=n},function(e,t){var n="183,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,903,1155,1156,1157,1158,1159,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1471,1473,1474,1476,1477,1479,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1648,1750,1751,1752,1753,1754,1755,1756,1759,1760,1761,1762,1763,1764,1767,1768,1770,1771,1772,1773,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1809,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,2027,2028,2029,2030,2031,2032,2033,2034,2035,2045,2070,2071,2072,2073,2075,2076,2077,2078,2079,2080,2081,2082,2083,2085,2086,2087,2089,2090,2091,2092,2093,2137,2138,2139,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2362,2363,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2385,2386,2387,2388,2389,2390,2391,2402,2403,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2433,2434,2435,2492,2494,2495,2496,2497,2498,2499,2500,2503,2504,2507,2508,2509,2519,2530,2531,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2558,2561,2562,2563,2620,2622,2623,2624,2625,2626,2631,2632,2635,2636,2637,2641,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2677,2689,2690,2691,2748,2750,2751,2752,2753,2754,2755,2756,2757,2759,2760,2761,2763,2764,2765,2786,2787,2790,2791,2792,2793,2794,2795,2796,2797,2798,2799,2810,2811,2812,2813,2814,2815,2817,2818,2819,2876,2878,2879,2880,2881,2882,2883,2884,2887,2888,2891,2892,2893,2902,2903,2914,2915,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2946,3006,3007,3008,3009,3010,3014,3015,3016,3018,3019,3020,3021,3031,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3072,3073,3074,3075,3076,3134,3135,3136,3137,3138,3139,3140,3142,3143,3144,3146,3147,3148,3149,3157,3158,3170,3171,3174,3175,3176,3177,3178,3179,3180,3181,3182,3183,3201,3202,3203,3260,3262,3263,3264,3265,3266,3267,3268,3270,3271,3272,3274,3275,3276,3277,3285,3286,3298,3299,3302,3303,3304,3305,3306,3307,3308,3309,3310,3311,3328,3329,3330,3331,3387,3388,3390,3391,3392,3393,3394,3395,3396,3398,3399,3400,3402,3403,3404,3405,3415,3426,3427,3430,3431,3432,3433,3434,3435,3436,3437,3438,3439,3458,3459,3530,3535,3536,3537,3538,3539,3540,3542,3544,3545,3546,3547,3548,3549,3550,3551,3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3570,3571,3633,3636,3637,3638,3639,3640,3641,3642,3655,3656,3657,3658,3659,3660,3661,3662,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3761,3764,3765,3766,3767,3768,3769,3771,3772,3784,3785,3786,3787,3788,3789,3792,3793,3794,3795,3796,3797,3798,3799,3800,3801,3864,3865,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3893,3895,3897,3902,3903,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,3965,3966,3967,3968,3969,3970,3971,3972,3974,3975,3981,3982,3983,3984,3985,3986,3987,3988,3989,3990,3991,3993,3994,3995,3996,3997,3998,3999,4000,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4038,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4182,4183,4184,4185,4190,4191,4192,4194,4195,4196,4199,4200,4201,4202,4203,4204,4205,4209,4210,4211,4212,4226,4227,4228,4229,4230,4231,4232,4233,4234,4235,4236,4237,4239,4240,4241,4242,4243,4244,4245,4246,4247,4248,4249,4250,4251,4252,4253,4957,4958,4959,4969,4970,4971,4972,4973,4974,4975,4976,4977,5906,5907,5908,5938,5939,5940,5970,5971,6002,6003,6068,6069,6070,6071,6072,6073,6074,6075,6076,6077,6078,6079,6080,6081,6082,6083,6084,6085,6086,6087,6088,6089,6090,6091,6092,6093,6094,6095,6096,6097,6098,6099,6109,6112,6113,6114,6115,6116,6117,6118,6119,6120,6121,6155,6156,6157,6160,6161,6162,6163,6164,6165,6166,6167,6168,6169,6313,6432,6433,6434,6435,6436,6437,6438,6439,6440,6441,6442,6443,6448,6449,6450,6451,6452,6453,6454,6455,6456,6457,6458,6459,6470,6471,6472,6473,6474,6475,6476,6477,6478,6479,6608,6609,6610,6611,6612,6613,6614,6615,6616,6617,6618,6679,6680,6681,6682,6683,6741,6742,6743,6744,6745,6746,6747,6748,6749,6750,6752,6753,6754,6755,6756,6757,6758,6759,6760,6761,6762,6763,6764,6765,6766,6767,6768,6769,6770,6771,6772,6773,6774,6775,6776,6777,6778,6779,6780,6783,6784,6785,6786,6787,6788,6789,6790,6791,6792,6793,6800,6801,6802,6803,6804,6805,6806,6807,6808,6809,6832,6833,6834,6835,6836,6837,6838,6839,6840,6841,6842,6843,6844,6845,6912,6913,6914,6915,6916,6964,6965,6966,6967,6968,6969,6970,6971,6972,6973,6974,6975,6976,6977,6978,6979,6980,6992,6993,6994,6995,6996,6997,6998,6999,7000,7001,7019,7020,7021,7022,7023,7024,7025,7026,7027,7040,7041,7042,7073,7074,7075,7076,7077,7078,7079,7080,7081,7082,7083,7084,7085,7088,7089,7090,7091,7092,7093,7094,7095,7096,7097,7142,7143,7144,7145,7146,7147,7148,7149,7150,7151,7152,7153,7154,7155,7204,7205,7206,7207,7208,7209,7210,7211,7212,7213,7214,7215,7216,7217,7218,7219,7220,7221,7222,7223,7232,7233,7234,7235,7236,7237,7238,7239,7240,7241,7248,7249,7250,7251,7252,7253,7254,7255,7256,7257,7376,7377,7378,7380,7381,7382,7383,7384,7385,7386,7387,7388,7389,7390,7391,7392,7393,7394,7395,7396,7397,7398,7399,7400,7405,7410,7411,7412,7415,7416,7417,7616,7617,7618,7619,7620,7621,7622,7623,7624,7625,7626,7627,7628,7629,7630,7631,7632,7633,7634,7635,7636,7637,7638,7639,7640,7641,7642,7643,7644,7645,7646,7647,7648,7649,7650,7651,7652,7653,7654,7655,7656,7657,7658,7659,7660,7661,7662,7663,7664,7665,7666,7667,7668,7669,7670,7671,7672,7673,7675,7676,7677,7678,7679,8204,8205,8255,8256,8276,8400,8401,8402,8403,8404,8405,8406,8407,8408,8409,8410,8411,8412,8417,8421,8422,8423,8424,8425,8426,8427,8428,8429,8430,8431,8432,11503,11504,11505,11647,11744,11745,11746,11747,11748,11749,11750,11751,11752,11753,11754,11755,11756,11757,11758,11759,11760,11761,11762,11763,11764,11765,11766,11767,11768,11769,11770,11771,11772,11773,11774,11775,12330,12331,12332,12333,12334,12335,12441,12442,42528,42529,42530,42531,42532,42533,42534,42535,42536,42537,42607,42612,42613,42614,42615,42616,42617,42618,42619,42620,42621,42654,42655,42736,42737,43010,43014,43019,43043,43044,43045,43046,43047,43136,43137,43188,43189,43190,43191,43192,43193,43194,43195,43196,43197,43198,43199,43200,43201,43202,43203,43204,43205,43216,43217,43218,43219,43220,43221,43222,43223,43224,43225,43232,43233,43234,43235,43236,43237,43238,43239,43240,43241,43242,43243,43244,43245,43246,43247,43248,43249,43263,43264,43265,43266,43267,43268,43269,43270,43271,43272,43273,43302,43303,43304,43305,43306,43307,43308,43309,43335,43336,43337,43338,43339,43340,43341,43342,43343,43344,43345,43346,43347,43392,43393,43394,43395,43443,43444,43445,43446,43447,43448,43449,43450,43451,43452,43453,43454,43455,43456,43472,43473,43474,43475,43476,43477,43478,43479,43480,43481,43493,43504,43505,43506,43507,43508,43509,43510,43511,43512,43513,43561,43562,43563,43564,43565,43566,43567,43568,43569,43570,43571,43572,43573,43574,43587,43596,43597,43600,43601,43602,43603,43604,43605,43606,43607,43608,43609,43643,43644,43645,43696,43698,43699,43700,43703,43704,43710,43711,43713,43755,43756,43757,43758,43759,43765,43766,44003,44004,44005,44006,44007,44008,44009,44010,44012,44013,44016,44017,44018,44019,44020,44021,44022,44023,44024,44025,64286,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65056,65057,65058,65059,65060,65061,65062,65063,65064,65065,65066,65067,65068,65069,65070,65071,65075,65076,65101,65102,65103,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,65343".split(",").map((function(e){return parseInt(e,10)}));e.exports=n},function(e,t){e.exports=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0525\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0621-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971\u0972\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3D\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC\u0EDD\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8B\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u2094\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31B7\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCB\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA65F\uA662-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B\uA78C\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA2D\uFA30-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])(?:[\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0525\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0621-\u065E\u0660-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0900-\u0939\u093C-\u094E\u0950-\u0955\u0958-\u0963\u0966-\u096F\u0971\u0972\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC\u0EDD\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17B3\u17B6-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BAA\u1BAE-\u1BB9\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF2\u1D00-\u1DE6\u1DFD-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u2094\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF1\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31B7\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCB\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA65F\uA662-\uA66F\uA67C\uA67D\uA67F-\uA697\uA6A0-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B\uA78C\uA7FB-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA2D\uFA30-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])*$/},function(e,t,n){"use strict";t.register=function(e){e.on("Identifier",(function(t){e.getOption("proto")||"__proto__"===t.name&&e.warn("W103",{line:t.line,char:t.char,data:[t.name,"6"]})})),e.on("Identifier",(function(t){e.getOption("iterator")||"__iterator__"===t.name&&e.warn("W103",{line:t.line,char:t.char,data:[t.name]})})),e.on("Identifier",(function(t){e.getOption("camelcase")&&t.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!t.name.match(/^[A-Z0-9_]*$/)&&e.warn("W106",{line:t.line,char:t.char,data:[t.name]})})),e.on("String",(function(t){var n,r=e.getOption("quotmark");r&&("single"===r&&"'"!==t.quote&&(n="W109"),"double"===r&&'"'!==t.quote&&(n="W108"),!0===r&&(e.getCache("quotmark")||e.setCache("quotmark",t.quote),e.getCache("quotmark")!==t.quote&&(n="W110")),n&&e.warn(n,{line:t.line,char:t.char}))})),e.on("Number",(function(t){"."===t.value.charAt(0)&&e.warn("W008",{line:t.line,char:t.char,data:[t.value]}),"."===t.value.substr(t.value.length-1)&&e.warn("W047",{line:t.line,char:t.char,data:[t.value]}),/^00+/.test(t.value)&&e.warn("W046",{line:t.line,char:t.char,data:[t.value]})})),e.on("String",(function(t){e.getOption("scripturl")||/^(?:javascript|jscript|ecmascript|vbscript|livescript)\s*:/i.test(t.value)&&e.warn("W107",{line:t.line,char:t.char})}))}},function(e,t,n){"use strict";t.bool={enforcing:{bitwise:!0,freeze:!0,camelcase:!0,curly:!0,eqeqeq:!0,futurehostile:!0,es3:!0,es5:!0,forin:!0,immed:!0,leanswitch:!0,newcap:!0,noarg:!0,nocomma:!0,noempty:!0,nonbsp:!0,nonew:!0,noreturnawait:!0,regexpu:!0,undef:!0,singleGroups:!1,varstmt:!1,enforceall:!1,trailingcomma:!1},relaxing:{asi:!0,multistr:!0,debug:!0,boss:!0,evil:!0,funcscope:!0,globalstrict:!0,iterator:!0,notypeof:!0,plusplus:!0,proto:!0,scripturl:!0,sub:!0,supernew:!0,laxbreak:!0,laxcomma:!0,validthis:!0,withstmt:!0,moz:!0,noyield:!0,eqnull:!0,lastsemic:!0,loopfunc:!0,expr:!0,esnext:!0,elision:!0},environments:{mootools:!0,couch:!0,jasmine:!0,jquery:!0,node:!0,qunit:!0,rhino:!0,shelljs:!0,prototypejs:!0,yui:!0,mocha:!0,module:!0,wsh:!0,worker:!0,nonstandard:!0,browser:!0,browserify:!0,devel:!0,dojo:!0,typed:!0,phantom:!0},obsolete:{onecase:!0,regexp:!0,regexdash:!0}},t.val={maxlen:!1,indent:!1,maxerr:!1,predef:!1,globals:!1,quotmark:!1,scope:!1,maxstatements:!1,maxdepth:!1,maxparams:!1,maxcomplexity:!1,shadow:!1,strict:!0,unused:!0,latedef:!1,ignore:!1,ignoreDelimiters:!1,esversion:5},t.unstable={bigint:!0},t.inverted={bitwise:!0,forin:!0,newcap:!0,plusplus:!0,regexp:!0,undef:!0,eqeqeq:!0,strict:!0},t.validNames=Object.keys(t.val).concat(Object.keys(t.bool.relaxing)).concat(Object.keys(t.bool.enforcing)).concat(Object.keys(t.bool.obsolete)).concat(Object.keys(t.bool.environments)).concat(["unstable"]),t.unstableNames=Object.keys(t.unstable),t.renamed={eqeq:"eqeqeq",windows:"wsh",sloppy:"strict"},t.removed={nomen:!0,onevar:!0,passfail:!0,white:!0,gcl:!0,smarttabs:!0,trailing:!0},t.noenforceall={varstmt:!0,strict:!0,regexpu:!0}},function(e,t,n){"use strict";var r=n(50),i=n(77),o={};e.exports=function(e,t,n,a){var s,l=[];function u(e){s={"(bindings)":Object.create(null),"(usages)":Object.create(null),"(labels)":Object.create(null),"(parent)":s,"(type)":e,"(params)":"functionparams"===e||"catchparams"===e?[]:null},l.push(s)}u("global"),s["(predefined)"]=t;var c=s,f=Object.create(null),p=Object.create(null),d=[],h=new i.EventEmitter;function m(e,t){h.emit("warning",{code:e,token:t,data:r.slice(arguments,2)})}function v(e,t){h.emit("warning",{code:e,token:t,data:r.slice(arguments,2)})}function g(e){s["(usages)"][e]||(s["(usages)"][e]={"(modified)":[],"(reassigned)":[],"(tokens)":[]})}var y=function(t){return void 0===t&&(t=e.option.unused),!0===t&&(t="last-param"),t},b=function(e,t,n,r){var i=t.line,o=t.from,a=t.raw_text||e,s={vars:["var"],"last-param":["var","param"],strict:["var","param","last-param"]};(r=y(r))&&s[r]&&-1!==s[r].indexOf(n)&&m("W098",{line:i,from:o},a),(r||"var"===n)&&d.push({name:e,line:i,character:o})};function _(e){for(var t=l.length-1;t>=0;--t){var n=l[t]["(bindings)"];if(n[e])return n}}function w(t,n){if("outer"===e.option.shadow)for(var r="global"===c["(type)"],i="functionparams"===s["(type)"],o=!r,a=0;a<l.length;a++){var u=l[a];i||l[a+1]!==c||(o=!1),o&&u["(bindings)"][t]&&m("W123",n,t),u["(labels)"][t]&&m("W123",n,t)}}function x(t,n,r){var i;e.option.latedef&&(i="function"===t||"generator function"===t||"async function"===t,(!0===e.option.latedef&&i||!i)&&m("W003",r,n))}var k={on:function(e,t){e.split(" ").forEach((function(e){h.on(e,t)}))},isPredefined:function(e){return!this.has(e)&&r.has(l[0]["(predefined)"],e)},stack:function(e){var t=s;u(e),e||"functionparams"!==t["(type)"]||(s["(isFuncBody)"]=!0,c=s)},unstack:function(){var t,n,i,u=l.length>1?l[l.length-2]:null,d=s===c,h="functionparams"===s["(type)"],g="functionouter"===s["(type)"],_=s["(usages)"],w=s["(bindings)"],x=Object.keys(_);for(_.__proto__&&-1===x.indexOf("__proto__")&&x.push("__proto__"),t=0;t<x.length;t++){var k=x[t],E=_[k],C=w[k];if(C){var S=C["(type)"];if(i="const"===S||"import"===S,C["(useOutsideOfScope)"]&&!e.option.funcscope){var O=E["(tokens)"];for(n=0;n<O.length;n++)C["(function)"]===O[n]["(function)"]&&v("W038",O[n],k)}if(s["(bindings)"][k]["(unused)"]=!1,i&&E["(modified)"])for(n=0;n<E["(modified)"].length;n++)v("E013",E["(modified)"][n],k);if(("function"===S||"generator function"===S||"async function"===S||"class"===S)&&E["(reassigned)"])for(n=0;n<E["(reassigned)"].length;n++)E["(reassigned)"][n].ignoreW021||m("W021",E["(reassigned)"][n],k,S)}else if(u){var A=this.bindingtype(k);if(i="const"===A||null===A&&!1===l[0]["(predefined)"][k],g&&!i&&(e.funct["(outerMutables)"]||(e.funct["(outerMutables)"]=[]),e.funct["(outerMutables)"].push(k)),u["(usages)"][k]){var j=u["(usages)"][k];j["(modified)"]=j["(modified)"].concat(E["(modified)"]),j["(tokens)"]=j["(tokens)"].concat(E["(tokens)"]),j["(reassigned)"]=j["(reassigned)"].concat(E["(reassigned)"])}else u["(usages)"][k]=E,d&&(u["(usages)"][k]["(onlyUsedSubFunction)"]=!0)}else if("boolean"==typeof s["(predefined)"][k]){if(delete a[k],f[k]=o,!1===s["(predefined)"][k]&&E["(reassigned)"])for(n=0;n<E["(reassigned)"].length;n++)E["(reassigned)"][n].ignoreW020||m("W020",E["(reassigned)"][n])}else for(n=0;n<E["(tokens)"].length;n++){var P=E["(tokens)"][n];P.forgiveUndef||(e.option.undef&&!P.ignoreUndef&&m("W117",P,k),p[k]?p[k].line.push(P.line):p[k]={name:k,line:[P.line]})}}if(u||Object.keys(a).forEach((function(e){b(e,a[e],"var")})),u&&!d&&!h&&!g){var N=Object.keys(w);for(t=0;t<N.length;t++){var T=N[t],M=w[T];if(!M["(blockscoped)"]&&"exception"!==M["(type)"]){var D=u["(bindings)"][T];D?D["(unused)"]&=M["(unused)"]:(M["(useOutsideOfScope)"]="global"!==c["(type)"]&&!this.funct.has(T,{excludeCurrent:!0}),u["(bindings)"][T]=M),delete w[T]}}}!function(){if("functionparams"===s["(type)"])for(var t,n=s["(params)"],r=n.pop();r;){var i=s["(bindings)"][r];if(t=y(e.funct["(unusedOption)"]),"undefined"===r)return;if(i["(unused)"])b(r,i["(token)"],"param",e.funct["(unusedOption)"]);else if("last-param"===t)return;r=n.pop()}else{var o=s["(bindings)"];for(var a in o)"exception"!==o[a]["(type)"]&&o[a]["(unused)"]&&b(a,o[a]["(token)"],"var")}}(),l.pop(),d&&(c=l[r.findLastIndex(l,(function(e){return e["(isFuncBody)"]||"global"===e["(type)"]}))]),s=u},addParam:function(t,n,i){if("exception"===(i=i||"param")){var o=this.funct.bindingtype(t);o&&"exception"!==o&&(e.option.node||m("W002",e.tokens.next,t)),!e.isStrict()||"arguments"!==t&&"eval"!==t||m("E008",n)}(r.has(s["(bindings)"],t)?s["(bindings)"][t].duplicated=!0:(w(t,n),s["(bindings)"][t]={"(type)":i,"(token)":n,"(unused)":!0},s["(params)"].push(t)),r.has(s["(usages)"],t))&&(s["(usages)"][t]["(onlyUsedSubFunction)"]?x(i,t,n):m("E056",n,t,i))},validateParams:function(t){var n=e.isStrict(),r=c["(parent)"],i=e.funct["(hasSimpleParams)"],o=e.funct["(method)"];r["(params)"]&&r["(params)"].forEach((function(a){var s=r["(bindings)"][a];s.duplicated&&(n||t||o||!i?m("E011",s["(token)"],a):!0!==e.option.shadow&&m("W004",s["(token)"],a)),!n||"arguments"!==a&&"eval"!==a||m("E008",s["(token)"])}))},getUsedOrDefinedGlobals:function(){var e=Object.keys(f);return f.__proto__===o&&-1===e.indexOf("__proto__")&&e.push("__proto__"),e},getImpliedGlobals:function(){var e=r.values(p);return p.__proto__&&(e.some((function(e){return"__proto__"===e.name}))||e.push(p.__proto__)),e},getUnuseds:function(){return d},has:function(e){return Boolean(_(e))},bindingtype:function(e){var t=_(e);return t?t[e]["(type)"]:null},addExported:function(e){var t=l[0]["(bindings)"];if(r.has(a,e))delete a[e];else if(r.has(t,e))t[e]["(unused)"]=!1;else{for(var i=1;i<l.length;i++){var o=l[i];if(o["(type)"])break;if(r.has(o["(bindings)"],e)&&!o["(bindings)"][e]["(blockscoped)"])return void(o["(bindings)"][e]["(unused)"]=!1)}n[e]=!0}},setExported:function(e,t){this.block.use(e,t)},initialize:function(e){s["(bindings)"][e]&&(s["(bindings)"][e]["(initialized)"]=!0)},addbinding:function(t,i){var a=i.type,u=i.token,p="let"===a||"const"===a||"class"===a||"import"===a||"generator function"===a||"async function"===a||"async generator function"===a,d="function"===a||"generator function"===a||"async function"===a||"import"===a,h="global"===(p?s:c)["(type)"]&&r.has(n,t);if(w(t,u),!e.isStrict()||"arguments"!==t&&"eval"!==t||m("E008",u),p){var v=s["(bindings)"][t];if(v||s!==c||"global"===s["(type)"]||(v=!!c["(parent)"]["(bindings)"][t]),!v&&s["(usages)"][t])s["(usages)"][t]["(onlyUsedSubFunction)"]||d?x(a,t,u):d||m("E056",u,t,a);!v||d&&"global"===s["(type)"]&&"import"!==a?"outer"===e.option.shadow&&k.funct.has(t)&&m("W004",u,t):m("E011",u,t),k.block.add(t,a,u,!h,i.initialized)}else{var g=k.funct.has(t);!g&&function(e){for(var t=l.length-1;t>=0;t--){var n=l[t];if(n["(usages)"][e])return n["(usages)"][e];if(n===c)break}return!1}(t)&&x(a,t,u),k.funct.has(t,{onlyBlockscoped:!0})?m("E011",u,t):!0!==e.option.shadow&&g&&"__proto__"!==t&&"global"!==c["(type)"]&&m("W004",u,t),k.funct.add(t,a,u,!h),"global"!==c["(type)"]||e.impliedClosure()||(f[t]=o)}},funct:{bindingtype:function(e,t){for(var n=t&&t.onlyBlockscoped,r=t&&t.excludeParams,i=l.length-(t&&t.excludeCurrent?2:1);i>=0;i--){var o=l[i];if(o["(bindings)"][e]&&(!n||o["(bindings)"][e]["(blockscoped)"]))return o["(bindings)"][e]["(type)"];var a=r?l[i-1]:o;if(a&&"functionparams"===a["(type)"])return null}return null},hasLabel:function(e){for(var t=l.length-1;t>=0;t--){var n=l[t];if(n["(labels)"][e])return!0;if("functionparams"===n["(type)"])return!1}return!1},has:function(e,t){return Boolean(this.bindingtype(e,t))},add:function(e,t,n,r){s["(bindings)"][e]={"(type)":t,"(token)":n,"(blockscoped)":!1,"(function)":c,"(unused)":r}}},block:{isGlobal:function(){return"global"===s["(type)"]},use:function(t,n){var r=c["(parent)"];r&&r["(bindings)"][t]&&"param"===r["(bindings)"][t]["(type)"]&&(k.funct.has(t,{excludeParams:!0,onlyBlockscoped:!0})||(r["(bindings)"][t]["(unused)"]=!1)),n&&(e.ignored.W117||!1===e.option.undef)&&(n.ignoreUndef=!0),g(t),s["(usages)"][t]["(onlyUsedSubFunction)"]=!1,n&&(n["(function)"]=c,s["(usages)"][t]["(tokens)"].push(n));var i=s["(bindings)"][t];i&&i["(blockscoped)"]&&!i["(initialized)"]&&v("E056",n,t,i["(type)"])},reassign:function(t,n){n.ignoreW020=e.ignored.W020,n.ignoreW021=e.ignored.W021,this.modify(t,n),s["(usages)"][t]["(reassigned)"].push(n)},modify:function(e,t){g(e),s["(usages)"][e]["(onlyUsedSubFunction)"]=!1,s["(usages)"][e]["(modified)"].push(t)},add:function(e,t,n,r,i){s["(bindings)"][e]={"(type)":t,"(token)":n,"(initialized)":!!i,"(blockscoped)":!0,"(unused)":r}},addLabel:function(t,n){var r=n.token;k.funct.hasLabel(t)?m("E011",r,t):"outer"===e.option.shadow&&(k.funct.has(t)?m("W004",r,t):w(t,r)),s["(labels)"][t]=r}}};return k}},function(e,t){e.exports={export:1,noin:2,initial:4,preAsync:8,async:16,tryClause:32,yield:64}},function(e,t,n){(function(t){var r,i=n(128),o=n(428),a=n(429),s=Array.prototype.slice,l={};r=void 0!==t&&t.console?t.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){r.log.apply(r,arguments)},"info"],[function(){r.log.apply(r,arguments)},"warn"],[function(){r.warn.apply(r,arguments)},"error"],[function(e){l[e]=a()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);var n=a()-t;r.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=i.format.apply(null,arguments),r.error(e.stack)},"trace"],[function(e){r.log(i.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);o.ok(!1,i.format.apply(null,t))}},"assert"]],c=0;c<u.length;c++){var f=u[c],p=f[0],d=f[1];r[d]||(r[d]=p)}e.exports=r}).call(this,n(29))},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";(function(t){function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=n(128),a=Object.prototype.hasOwnProperty,s=Array.prototype.slice,l="foo"===function(){}.name;function u(e){return Object.prototype.toString.call(e)}function c(e){return!i(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var f=e.exports=g,p=/\s*function\s+([^\(\s]*)\s*/;function d(e){if(o.isFunction(e)){if(l)return e.name;var t=e.toString().match(p);return t&&t[1]}}function h(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(l||!o.isFunction(e))return o.inspect(e);var t=d(e);return"[Function"+(t?": "+t:"")+"]"}function v(e,t,n,r,i){throw new f.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function g(e,t){e||v(e,!0,t,"==",f.ok)}function y(e,t,n,a){if(e===t)return!0;if(i(e)&&i(t))return 0===r(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(c(e)&&c(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var l=(a=a||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=b(e),a=b(t);if(i&&!a||!i&&a)return!1;if(i)return e=s.call(e),t=s.call(t),y(e,t,n);var l,u,c=x(e),f=x(t);if(c.length!==f.length)return!1;for(c.sort(),f.sort(),u=c.length-1;u>=0;u--)if(c[u]!==f[u])return!1;for(u=c.length-1;u>=0;u--)if(l=c[u],!y(e[l],t[l],n,r))return!1;return!0}(e,t,n,a))}return n?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&v(i,n,"Missing expected exception"+r);var a="string"==typeof r,s=!e&&i&&!n;if((!e&&o.isError(i)&&a&&_(i,n)||s)&&v(i,n,"Got unwanted exception"+r),e&&i&&n&&!_(i,n)||!e&&i)throw i}f.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return h(m(e.actual),128)+" "+e.operator+" "+h(m(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=d(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},o.inherits(f.AssertionError,Error),f.fail=v,f.ok=g,f.equal=function(e,t,n){e!=t&&v(e,t,n,"==",f.equal)},f.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",f.notEqual)},f.deepEqual=function(e,t,n){y(e,t,!1)||v(e,t,n,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,n){y(e,t,!0)||v(e,t,n,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,n){y(e,t,!1)&&v(e,t,n,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,n,r){y(t,n,!0)&&v(t,n,r,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",f.strictEqual)},f.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",f.notStrictEqual)},f.throws=function(e,t,n){w(!0,e,t,n)},f.doesNotThrow=function(e,t,n){w(!1,e,t,n)},f.ifError=function(e){if(e)throw e};var x=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}}).call(this,n(29))},function(e,t){e.exports=function(){return(new Date).getTime()}},function(e,t,n){!function(e){"use strict";var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),a=null)}var l=setInterval((function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)}),400);e.on(o,"mouseout",s)}function i(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,l=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),u=[],c=0;c<l.length;++c){var f=l[c].__annotation;f&&u.push(f)}u.length&&function(e,t,n){for(var i=n.target||n.srcElement,o=document.createDocumentFragment(),a=0;a<t.length;a++){var l=t[a];o.appendChild(s(l))}r(e,n,o,i)}(e,u,t)}}(e,t)},this.waitingFor=0}function o(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function a(t,n,i,o,a){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker-"+i,o&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=a&&e.on(l,"mouseover",(function(e){r(t,e,n,l)})),s}function s(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function l(t){var n=t.state.lint.options,r=n.options||n,i=n.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(n.async||i.async)!function(t,n,r){var i=t.state.lint,o=++i.waitingFor;function a(){o=-1,t.off("change",a)}t.on("change",a),n(t.getValue(),(function(n,r){t.off("change",a),i.waitingFor==o&&(r&&n instanceof e&&(n=r),t.operation((function(){u(t,n)})))}),r,t)}(t,i,r);else{var o=i(t.getValue(),r,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){u(t,e)}))})):t.operation((function(){u(t,o)}))}}function u(e,n){o(e);for(var r,i,l=e.state.lint,u=l.options,c=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}(n),f=0;f<c.length;++f){var p=c[f];if(p){for(var d=null,h=l.hasGutter&&document.createDocumentFragment(),m=0;m<p.length;++m){var v=p[m],g=v.severity;g||(g="error"),i=g,d="error"==(r=d)?r:i,u.formatAnnotation&&(v=u.formatAnnotation(v)),l.hasGutter&&h.appendChild(s(v)),v.to&&l.marked.push(e.markText(v.from,v.to,{className:"CodeMirror-lint-mark-"+g,__annotation:v}))}l.hasGutter&&e.setGutterMarker(f,t,a(e,h,d,p.length>1,l.options.tooltips))}}u.onUpdateLinting&&u.onUpdateLinting(n,c,e)}function c(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){l(e)}),t.options.delay||500))}e.defineOption("lint",!1,(function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",c),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),u=!1,f=0;f<s.length;++f)s[f]==t&&(u=!0);var p=n.state.lint=new i(n,(d=r)instanceof Function?{getAnnotations:d}:(d&&!0!==d||(d={}),d),u);!1!==p.options.lintOnChange&&n.on("change",c),0!=p.options.tooltips&&"gutter"!=p.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",p.onMouseOver),l(n)}var d})),e.defineExtension("performLint",(function(){this.state.lint&&l(this)}))}(n(9))},function(e,t,n){!function(e){"use strict";e.registerHelper("lint","javascript",(function(t,n){if(!window.JSHINT)return window.console&&window.console.error("Error: window.JSHINT not defined, CodeMirror JavaScript linting cannot run."),[];n.indent||(n.indent=1),JSHINT(t,n,n.globals);var r=JSHINT.data().errors,i=[];return r&&function(t,n){for(var r=0;r<t.length;r++){var i=t[r];if(i){if(i.line<=0){window.console&&window.console.warn("Cannot display JSHint error (invalid line "+i.line+")",i);continue}var o=i.character-1,a=o+1;if(i.evidence){var s=i.evidence.substring(o).search(/.\b/);s>-1&&(a+=s)}var l={message:i.reason,severity:i.code&&i.code.startsWith("W")?"warning":"error",from:e.Pos(i.line-1,o),to:e.Pos(i.line-1,a)};n.push(l)}}}(r,i),i}))}(n(9))},function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=n.typescript,c=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,d=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e,t,n){return r=e,i=n,t}function m(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(d))return t.tokenize=m,h("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=m),h("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return h("number","number");if("."==r&&e.match(".."))return h("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return h(r);if("="==r&&e.eat(">"))return h("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return h("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),h("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),h("comment","comment")):Ge(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),h("regexp","string-2")):(e.eat("="),h("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),h("meta","meta");if("#"==r&&e.eatWhile(c))return h("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->"))return e.skipToEnd(),h("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?h("."):h("operator","operator",e.current());if(c.test(r)){e.eatWhile(c);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return h(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return h("async","keyword",i)}return h("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return h("comment","comment")}function g(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}r=!r&&"\\"==n}return h("quasi","string-2",e.current())}function y(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(c.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function _(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var x={state:null,column:null,marked:null,cc:null};function k(){for(var e=arguments.length-1;e>=0;e--)x.cc.push(arguments[e])}function E(){return k.apply(null,arguments),!0}function C(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function S(e){var t=x.state;if(x.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,n){if(n){if(n.block){var r=e(t,n.prev);return r?r==n.prev?n:new A(r,n.vars,!0):null}return C(t,n.vars)?n:new A(n.prev,new j(t,n.vars),!1)}return null}(e,t.context);if(null!=r)return void(t.context=r)}else if(!C(e,t.localVars))return void(t.localVars=new j(e,t.localVars));n.globalVars&&!C(e,t.globalVars)&&(t.globalVars=new j(e,t.globalVars))}function O(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function A(e,t,n){this.prev=e,this.vars=t,this.block=n}function j(e,t){this.name=e,this.next=t}var P=new j("this",new j("arguments",null));function N(){x.state.context=new A(x.state.context,x.state.localVars,!1),x.state.localVars=P}function T(){x.state.context=new A(x.state.context,x.state.localVars,!0),x.state.localVars=null}function M(){x.state.localVars=x.state.context.vars,x.state.context=x.state.context.prev}function D(e,t){var n=function(){var n=x.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new _(r,x.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function L(){var e=x.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function F(e){return function t(n){return n==e?E():";"==e||"}"==n||")"==n||"]"==n?k():E(t)}}function I(e,t){return"var"==e?E(D("vardef",t),ye,F(";"),L):"keyword a"==e?E(D("form"),W,I,L):"keyword b"==e?E(D("form"),I,L):"keyword d"==e?x.stream.match(/^\s*$/,!1)?E():E(D("stat"),H,F(";"),L):"debugger"==e?E(F(";")):"{"==e?E(D("}"),T,oe,L,M):";"==e?E():"if"==e?("else"==x.state.lexical.info&&x.state.cc[x.state.cc.length-1]==L&&x.state.cc.pop()(),E(D("form"),W,I,L,Ee)):"function"==e?E(Ae):"for"==e?E(D("form"),Ce,I,L):"class"==e||u&&"interface"==t?(x.marked="keyword",E(D("form","class"==e?e:t),Me,L)):"variable"==e?u&&"declare"==t?(x.marked="keyword",E(I)):u&&("module"==t||"enum"==t||"type"==t)&&x.stream.match(/^\s*\w/,!1)?(x.marked="keyword","enum"==t?E(Ue):"type"==t?E(Pe,F("operator"),ce,F(";")):E(D("form"),be,F("{"),D("}"),oe,L,L)):u&&"namespace"==t?(x.marked="keyword",E(D("form"),B,I,L)):u&&"abstract"==t?(x.marked="keyword",E(I)):E(D("stat"),Z):"switch"==e?E(D("form"),W,F("{"),D("}","switch"),T,oe,L,L,M):"case"==e?E(B,F(":")):"default"==e?E(F(":")):"catch"==e?E(D("form"),N,R,I,L,M):"export"==e?E(D("stat"),Ie,L):"import"==e?E(D("stat"),Be,L):"async"==e?E(I):"@"==t?E(B,I):k(D("stat"),B,F(";"),L)}function R(e){if("("==e)return E(Ne,F(")"))}function B(e,t){return z(e,t,!1)}function $(e,t){return z(e,t,!0)}function W(e){return"("!=e?k():E(D(")"),H,F(")"),L)}function z(e,t,n){if(x.state.fatArrowAt==x.stream.start){var r=n?Y:X;if("("==e)return E(N,D(")"),re(Ne,")"),L,F("=>"),r,M);if("variable"==e)return k(N,be,F("=>"),r,M)}var i=n?U:V;return b.hasOwnProperty(e)?E(i):"function"==e?E(Ae,i):"class"==e||u&&"interface"==t?(x.marked="keyword",E(D("form"),Te,L)):"keyword c"==e||"async"==e?E(n?$:B):"("==e?E(D(")"),H,F(")"),L,i):"operator"==e||"spread"==e?E(n?$:B):"["==e?E(D("]"),Ve,L,i):"{"==e?ie(ee,"}",null,i):"quasi"==e?k(q,i):"new"==e?E(function(e){return function(t){return"."==t?E(e?J:K):"variable"==t&&u?E(me,e?U:V):k(e?$:B)}}(n)):"import"==e?E(B):E()}function H(e){return e.match(/[;\}\)\],]/)?k():k(B)}function V(e,t){return","==e?E(H):U(e,t,!1)}function U(e,t,n){var r=0==n?V:U,i=0==n?B:$;return"=>"==e?E(N,n?Y:X,M):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?E(r):u&&"<"==t&&x.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?E(D(">"),re(ce,">"),L,r):"?"==t?E(B,F(":"),i):E(i):"quasi"==e?k(q,r):";"!=e?"("==e?ie($,")","call",r):"."==e?E(Q,r):"["==e?E(D("]"),H,F("]"),L,r):u&&"as"==t?(x.marked="keyword",E(ce,r)):"regexp"==e?(x.state.lastType=x.marked="operator",x.stream.backUp(x.stream.pos-x.stream.start-1),E(i)):void 0:void 0}function q(e,t){return"quasi"!=e?k():"${"!=t.slice(t.length-2)?E(q):E(B,G)}function G(e){if("}"==e)return x.marked="string-2",x.state.tokenize=g,E(q)}function X(e){return y(x.stream,x.state),k("{"==e?I:B)}function Y(e){return y(x.stream,x.state),k("{"==e?I:$)}function K(e,t){if("target"==t)return x.marked="keyword",E(V)}function J(e,t){if("target"==t)return x.marked="keyword",E(U)}function Z(e){return":"==e?E(L,I):k(V,F(";"),L)}function Q(e){if("variable"==e)return x.marked="property",E()}function ee(e,t){return"async"==e?(x.marked="property",E(ee)):"variable"==e||"keyword"==x.style?(x.marked="property","get"==t||"set"==t?E(te):(u&&x.state.fatArrowAt==x.stream.start&&(n=x.stream.match(/^\s*:\s*/,!1))&&(x.state.fatArrowAt=x.stream.pos+n[0].length),E(ne))):"number"==e||"string"==e?(x.marked=s?"property":x.style+" property",E(ne)):"jsonld-keyword"==e?E(ne):u&&O(t)?(x.marked="keyword",E(ee)):"["==e?E(B,ae,F("]"),ne):"spread"==e?E($,ne):"*"==t?(x.marked="keyword",E(ee)):":"==e?k(ne):void 0;var n}function te(e){return"variable"!=e?k(ne):(x.marked="property",E(Ae))}function ne(e){return":"==e?E($):"("==e?k(Ae):void 0}function re(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=x.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),E((function(n,r){return n==t||r==t?k():k(e)}),r)}return i==t||o==t?E():n&&n.indexOf(";")>-1?k(e):E(F(t))}return function(n,i){return n==t||i==t?E():k(e,r)}}function ie(e,t,n){for(var r=3;r<arguments.length;r++)x.cc.push(arguments[r]);return E(D(t,n),re(e,t),L)}function oe(e){return"}"==e?E():k(I,oe)}function ae(e,t){if(u){if(":"==e)return E(ce);if("?"==t)return E(ae)}}function se(e,t){if(u&&(":"==e||"in"==t))return E(ce)}function le(e){if(u&&":"==e)return x.stream.match(/^\s*\w+\s+is\b/,!1)?E(B,ue,ce):E(ce)}function ue(e,t){if("is"==t)return x.marked="keyword",E()}function ce(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(x.marked="keyword",E("typeof"==t?$:ce)):"variable"==e||"void"==t?(x.marked="type",E(he)):"|"==t||"&"==t?E(ce):"string"==e||"number"==e||"atom"==e?E(he):"["==e?E(D("]"),re(ce,"]",","),L,he):"{"==e?E(D("}"),re(pe,"}",",;"),L,he):"("==e?E(re(de,")"),fe,he):"<"==e?E(re(ce,">"),ce):void 0}function fe(e){if("=>"==e)return E(ce)}function pe(e,t){return"variable"==e||"keyword"==x.style?(x.marked="property",E(pe)):"?"==t||"number"==e||"string"==e?E(pe):":"==e?E(ce):"["==e?E(F("variable"),se,F("]"),pe):"("==e?k(je,pe):void 0}function de(e,t){return"variable"==e&&x.stream.match(/^\s*[?:]/,!1)||"?"==t?E(de):":"==e?E(ce):"spread"==e?E(de):k(ce)}function he(e,t){return"<"==t?E(D(">"),re(ce,">"),L,he):"|"==t||"."==e||"&"==t?E(ce):"["==e?E(ce,F("]"),he):"extends"==t||"implements"==t?(x.marked="keyword",E(ce)):"?"==t?E(ce,F(":"),ce):void 0}function me(e,t){if("<"==t)return E(D(">"),re(ce,">"),L,he)}function ve(){return k(ce,ge)}function ge(e,t){if("="==t)return E(ce)}function ye(e,t){return"enum"==t?(x.marked="keyword",E(Ue)):k(be,ae,xe,ke)}function be(e,t){return u&&O(t)?(x.marked="keyword",E(be)):"variable"==e?(S(t),E()):"spread"==e?E(be):"["==e?ie(we,"]"):"{"==e?ie(_e,"}"):void 0}function _e(e,t){return"variable"!=e||x.stream.match(/^\s*:/,!1)?("variable"==e&&(x.marked="property"),"spread"==e?E(be):"}"==e?k():"["==e?E(B,F("]"),F(":"),_e):E(F(":"),be,xe)):(S(t),E(xe))}function we(){return k(be,xe)}function xe(e,t){if("="==t)return E($)}function ke(e){if(","==e)return E(ye)}function Ee(e,t){if("keyword b"==e&&"else"==t)return E(D("form","else"),I,L)}function Ce(e,t){return"await"==t?E(Ce):"("==e?E(D(")"),Se,L):void 0}function Se(e){return"var"==e?E(ye,Oe):"variable"==e?E(Oe):k(Oe)}function Oe(e,t){return")"==e?E():";"==e?E(Oe):"in"==t||"of"==t?(x.marked="keyword",E(B,Oe)):k(B,Oe)}function Ae(e,t){return"*"==t?(x.marked="keyword",E(Ae)):"variable"==e?(S(t),E(Ae)):"("==e?E(N,D(")"),re(Ne,")"),L,le,I,M):u&&"<"==t?E(D(">"),re(ve,">"),L,Ae):void 0}function je(e,t){return"*"==t?(x.marked="keyword",E(je)):"variable"==e?(S(t),E(je)):"("==e?E(N,D(")"),re(Ne,")"),L,le,M):u&&"<"==t?E(D(">"),re(ve,">"),L,je):void 0}function Pe(e,t){return"keyword"==e||"variable"==e?(x.marked="type",E(Pe)):"<"==t?E(D(">"),re(ve,">"),L):void 0}function Ne(e,t){return"@"==t&&E(B,Ne),"spread"==e?E(Ne):u&&O(t)?(x.marked="keyword",E(Ne)):u&&"this"==e?E(ae,xe):k(be,ae,xe)}function Te(e,t){return"variable"==e?Me(e,t):De(e,t)}function Me(e,t){if("variable"==e)return S(t),E(De)}function De(e,t){return"<"==t?E(D(">"),re(ve,">"),L,De):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(x.marked="keyword"),E(u?ce:B,De)):"{"==e?E(D("}"),Le,L):void 0}function Le(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&O(t))&&x.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(x.marked="keyword",E(Le)):"variable"==e||"keyword"==x.style?(x.marked="property",E(Fe,Le)):"number"==e||"string"==e?E(Fe,Le):"["==e?E(B,ae,F("]"),Fe,Le):"*"==t?(x.marked="keyword",E(Le)):u&&"("==e?k(je,Le):";"==e||","==e?E(Le):"}"==e?E():"@"==t?E(B,Le):void 0}function Fe(e,t){if("?"==t)return E(Fe);if(":"==e)return E(ce,xe);if("="==t)return E($);var n=x.state.lexical.prev;return k(n&&"interface"==n.info?je:Ae)}function Ie(e,t){return"*"==t?(x.marked="keyword",E(He,F(";"))):"default"==t?(x.marked="keyword",E(B,F(";"))):"{"==e?E(re(Re,"}"),He,F(";")):k(I)}function Re(e,t){return"as"==t?(x.marked="keyword",E(F("variable"))):"variable"==e?k($,Re):void 0}function Be(e){return"string"==e?E():"("==e?k(B):k($e,We,He)}function $e(e,t){return"{"==e?ie($e,"}"):("variable"==e&&S(t),"*"==t&&(x.marked="keyword"),E(ze))}function We(e){if(","==e)return E($e,We)}function ze(e,t){if("as"==t)return x.marked="keyword",E($e)}function He(e,t){if("from"==t)return x.marked="keyword",E(B)}function Ve(e){return"]"==e?E():k(re($,"]"))}function Ue(){return k(D("form"),be,F("{"),D("}"),re(qe,"}"),L,L)}function qe(){return k(be,xe)}function Ge(e,t,n){return t.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return M.lex=!0,L.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new _((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new A(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),y(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(e,t,n,r,i){var o=e.cc;for(x.state=e,x.stream=i,x.marked=null,x.cc=o,x.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?B:I)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return x.marked?x.marked:"variable"==n&&w(e,r)?"variable-2":t}}(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v)return e.Pass;if(t.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==L)l=l.prev;else if(c!=Ee)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==V||i==U)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,d=s==f;return"vardef"==f?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==f&&"{"==s?l.indented:"form"==f?l.indented+o:"stat"==f?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Ge,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=B&&t!=$||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(9))},function(e,t,n){!function(e){var t=e.Pos;function n(e,t){for(var n=0,r=e.length;n<r;++n)t(e[n])}function r(n,r,i,o){var a=n.getCursor(),s=i(n,a);if(!/\b(?:string|comment)\b/.test(s.type)){var l=e.innerMode(n.getMode(),s.state);if("json"!==l.mode.helperType){s.state=l.state,/^[\w$_]*$/.test(s.string)?s.end>a.ch&&(s.end=a.ch,s.string=s.string.slice(0,a.ch-s.start)):s={start:a.ch,end:a.ch,string:"",state:s.state,type:"."==s.string?"property":null};for(var u=s;"property"==u.type;){if("."!=(u=i(n,t(a.line,u.start))).string)return;if(u=i(n,t(a.line,u.start)),!f)var f=[];f.push(u)}return{list:c(s,f,r,o),from:t(a.line,s.start),to:t(a.line,s.end)}}}}function i(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}e.registerHelper("hint","javascript",(function(e,t){return r(e,l,(function(e,t){return e.getTokenAt(t)}),t)})),e.registerHelper("hint","coffeescript",(function(e,t){return r(e,u,i,t)}));var o="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),a="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),s="prototype apply call bind".split(" "),l="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),u="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function c(e,t,r,i){var l=[],u=e.string,c=i&&i.globalScope||window;function f(e){0!=e.lastIndexOf(u,0)||function(e,t){if(!Array.prototype.indexOf){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1}return-1!=e.indexOf(t)}(l,e)||l.push(e)}function p(e){"string"==typeof e?n(o,f):e instanceof Array?n(a,f):e instanceof Function&&n(s,f),function(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var r in e)t(r)}(e,f)}if(t&&t.length){var d,h=t.pop();for(h.type&&0===h.type.indexOf("variable")?(i&&i.additionalContext&&(d=i.additionalContext[h.string]),i&&!1===i.useGlobalScope||(d=d||c[h.string])):"string"==h.type?d="":"atom"==h.type?d=1:"function"==h.type&&(null==c.jQuery||"$"!=h.string&&"jQuery"!=h.string||"function"!=typeof c.jQuery?null!=c._&&"_"==h.string&&"function"==typeof c._&&(d=c._()):d=c.jQuery());null!=d&&t.length;)d=d[t.pop().string];null!=d&&p(d)}else{for(var m=e.state.localVars;m;m=m.next)f(m.name);for(var v=e.state.context;v;v=v.prev)for(m=v.vars;m;m=m.next)f(m.name);for(m=e.state.globalVars;m;m=m.next)f(m.name);if(i&&null!=i.additionalContext)for(var g in i.additionalContext)f(g);i&&!1===i.useGlobalScope||p(c),n(r,f)}return l}}(n(9))},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o=n(14),a=n.n(o),s=n(5),l=n.n(s),u=n(23),c=n.n(u),f=n(24),p=n.n(f),d=n(10),h=n.n(d),m=n(25),v=n.n(m),g=n(26),y=n.n(g),b=n(16),_=n.n(b),w=n(3),x=n.n(w),k=(n(143),n(1)),E=n.n(k),C=n(7),S=n.n(C),O=n(36),A=n.n(O),j=n(11),P=n.n(j),N=["editable","has-been-processed"],T=["custom_editableclass","editableclass","custom_editablesuggestion","editablesuggestion","original_editableclass","original_editablesuggestion","heroclicked","heroprocessed"],M=["page-","post-","category-"],D=["!.search","type-","format-","status-","column-","grid-","span-","category-","page-","post_","page_",":hover",":visited",":focus",":active",":link","[data-aos","clearfix",":first",":last",":nth",":before",":after",".category-",":root",".align","has-","clear","!.no-rocket","!div","!body div",".elementor div","locale-","aos-"],L={detached:!1,curPanel:null,mode:"wysi",showWysiCode:!0,editorW:"315px",pageInspectorH:parseInt("357px")+"px",inspectorShowHints:!0,inspectorFontSize:14,inspectorLineHeight:"1.3",showTab:"properties",inspectorTheme:"ayu-mirage",appTheme:"dark",showSiteBrowser:!1,siteBrowserScale:50,interfaceFontSize:11,inspectorAutoRender:!0},F=["",":hover",":active",":visited"],I={Background:{"background-color":{hasPicker:!0,alias:"background color"},"background-image":{alias:"background image",dropdown:["none","linear-gradient(90deg,#FDEB71,#F8D800)","linear-gradient(90deg,#ABDCFF,#0396FF)","linear-gradient(90deg,#FEB692,#EA5455)","linear-gradient(90deg,#CE9FFC,#7367F0)","linear-gradient(90deg,#90F7EC,#32CCBC)","linear-gradient(90deg,#FFF6B7,#F6416C)","linear-gradient(90deg,#81FBB8,#28C76F)","linear-gradient(90deg,#E2B0FF,#9F44D3)","linear-gradient(90deg,#F97794,#623AA2)","linear-gradient(90deg,#FCCF31,#F55555)","linear-gradient(90deg,#F761A1,#8C1BAB)","linear-gradient(90deg,#43CBFF,#9708CC)","linear-gradient(90deg,#5EFCE8,#736EFE)","linear-gradient(90deg,#FAD7A1,#E96D71)","linear-gradient(90deg,#FFD26F,#3677FF)","linear-gradient(90deg,#A0FE65,#FA016D)","linear-gradient(90deg,#FFDB01,#0E197D)","linear-gradient(90deg,#FEC163,#DE4313)","linear-gradient(90deg,#92FFC0,#002661)","linear-gradient(90deg,#EEAD92,#6018DC)","linear-gradient(90deg,#F6CEEC,#D939CD)","linear-gradient(90deg,#52E5E7,#130CB7)","linear-gradient(90deg,#F1CA74,#A64DB6)","linear-gradient(90deg,#E8D07A,#5312D6)","linear-gradient(90deg,#EECE13,#B210FF)","linear-gradient(90deg,#79F1A4,#0E5CAD)","linear-gradient(90deg,#FDD819,#E80505)","linear-gradient(90deg,#FFF3B0,#CA26FF)","linear-gradient(90deg,#FFF5C3,#9452A5)","linear-gradient(90deg,#F05F57,#360940)","linear-gradient(90deg,#2AFADF,#4C83FF)","linear-gradient(90deg,#FFF886,#F072B6)","linear-gradient(90deg,#97ABFF,#123597)","linear-gradient(90deg,#F5CBFF,#C346C2)","linear-gradient(90deg,#FFF720,#3CD500)","linear-gradient(90deg,#FF6FD8,#3813C2)","linear-gradient(90deg,#EE9AE5,#5961F9)","linear-gradient(90deg,#FFD3A5,#FD6585)","linear-gradient(90deg,#C2FFD8,#465EFB)","linear-gradient(90deg,#FD6585,#0D25B9)","linear-gradient(90deg,#FD6E6A,#FFC600)","linear-gradient(90deg,#65FDF0,#1D6FA3)","linear-gradient(90deg,#6B73FF,#000DFF)","linear-gradient(90deg,#FF7AF5,#513162)","linear-gradient(90deg,#F0FF00,#58CFFB)","linear-gradient(90deg,#FFE985,#FA742B)","linear-gradient(90deg,#FFA6B7,#1E2AD2)","linear-gradient(90deg,#FFAA85,#B3315F)","linear-gradient(90deg,#72EDF2,#5151E5)","linear-gradient(90deg,#FF9D6C,#BB4E75)","linear-gradient(90deg,#F6D242,#FF52E5)","linear-gradient(90deg,#69FF97,#00E4FF)","linear-gradient(90deg,#3B2667,#BC78EC)","linear-gradient(90deg,#70F570,#49C628)","linear-gradient(90deg,#3C8CE7,#00EAFF)","linear-gradient(90deg,#FAB2FF,#1904E5)","linear-gradient(90deg,#81FFEF,#F067B4)","linear-gradient(90deg,#FFA8A8,#FCFF00)","linear-gradient(90deg,#FFCF71,#2376DD)","linear-gradient(90deg,#FF96F9,#C32BAC)"]},"background-clip":{buttons:["text"],alias:"Clip Text"},"background-position":{buttons:["top left","top","top right","left","center","right","bottom left","bottom","bottom right"],alias:"position"},"background-repeat":{alias:"tile",buttons:["no-repeat","repeat","repeat-x","repeat-y"]},"background-size":{buttons:["auto","cover","contain","100% 100%"],alias:"size"},"background-blend-mode":{alias:"blend mode",dropdown:["normal","multiply","screen","overlay","darken","lighten","color-dodge","saturation","luminosity"]},"background-attachment":{alias:"background scroll",dropdown:["fixed","scroll"]}},Typography:{color:{hasPicker:!0},"font-size":{hasSlider:!0,sliderMin:0,sliderMax:100,hasNumberControls:!0,clamp:!0},"line-height":{hasSlider:!0,sliderMin:0,sliderMax:100,hasNumberControls:!0},"font-family":{},"font-weight":{dropdown:["200","300","400","500","600","700","800","900"]},"font-style":{alias:"style",buttons:["normal","italic"]},"text-transform":{alias:"transform",buttons:["none","capitalize","uppercase","lowercase"]},"text-decoration":{alias:"decoration",buttons:["none","underline","overline","line-through"]},"text-align":{alias:"align",buttons:["left","center","right","justify"]},"-webkit-text-stroke-color":{alias:"Stroke Color",hasPicker:!0},"-webkit-text-stroke-width":{alias:"Stroke Width",hasNumberControls:!0},"letter-spacing":{hasSlider:!0,sliderMin:0,sliderMax:20,hasNumberControls:!0},"word-spacing":{hasSlider:!0,sliderMin:0,sliderMax:20,hasNumberControls:!0},"text-shadow":{}},Borders:{"border-width":{hasSlider:!0,sliderMin:0,sliderMax:50,hasNumberControls:!0,subGroup:"All",clamp:!0},"border-color":{hasPicker:!0,subGroup:"All"},"border-style":{buttons:["none","solid","dashed","dotted"],subGroup:"All"},"border-top-width":{hasSlider:!0,sliderMin:0,sliderMax:50,hasNumberControls:!0,subGroup:"Top",clamp:!0},"border-top-color":{hasPicker:!0,subGroup:"Top"},"border-top-style":{buttons:["none","solid","dashed","dotted"],subGroup:"Top"},"border-right-width":{hasSlider:!0,sliderMin:0,sliderMax:50,hasNumberControls:!0,subGroup:"Right",clamp:!0},"border-right-color":{hasPicker:!0,subGroup:"Right"},"border-right-style":{buttons:["none","solid","dashed","dotted"],subGroup:"Right"},"border-bottom-width":{hasSlider:!0,sliderMin:0,sliderMax:50,hasNumberControls:!0,subGroup:"Bottom",clamp:!0},"border-bottom-color":{hasPicker:!0,subGroup:"Bottom"},"border-bottom-style":{buttons:["none","solid","dashed","dotted"],subGroup:"Bottom"},"border-left-width":{hasSlider:!0,sliderMin:0,sliderMax:50,hasNumberControls:!0,subGroup:"Left",clamp:!0},"border-left-color":{hasPicker:!0,subGroup:"Left"},"border-left-style":{buttons:["none","solid","dashed","dotted"],subGroup:"Left"}},"Border-Radius":{"border-radius":{}},Spacings:{"padding-top":{hasSlider:!0,sliderMin:0,sliderMax:200,hasNumberControls:!0,clamp:!0},"padding-right":{hasSlider:!0,sliderMin:0,sliderMax:200,hasNumberControls:!0,clamp:!0},"padding-bottom":{hasSlider:!0,sliderMin:0,sliderMax:200,hasNumberControls:!0,clamp:!0},"padding-left":{hasSlider:!0,sliderMin:0,sliderMax:200,hasNumberControls:!0,clamp:!0},"margin-top":{hasSlider:!0,sliderMin:-200,sliderMax:200,hasNumberControls:!0,clamp:!0},"margin-right":{hasSlider:!0,sliderMin:-200,sliderMax:200,hasNumberControls:!0,clamp:!0},"margin-bottom":{hasSlider:!0,sliderMin:-200,sliderMax:200,hasNumberControls:!0,clamp:!0},"margin-left":{hasSlider:!0,sliderMin:-200,sliderMax:200,hasNumberControls:!0,clamp:!0}},Transform:{transform:{},"transform-origin":{buttons:["0% 0%","0% 50%","0% 100%","50% 0%","50% 50%","50% 100%","100% 0%","100% 50%","100% 100%"]}},Filters:{filter:{}},"List Styles":{"list-style-type":{buttons:["disc","circle","decimal"]},"list-style-image":{},"list-style-position":{buttons:["inside","outside"]}},Display:{display:{buttons:["none","block","inline","inline-block","flex","inline-flex"]},"flex-direction":{alias:"Direction",buttons:["row","row-reverse","column","column-reverse"],flexer:!0},"align-items":{alias:"Align Childs",buttons:["flex-start","center","flex-end","stretch","baseline"],flexer:!0},"justify-content":{alias:"Justify",buttons:["flex-start","center","flex-end","space-between","space-around","space-evenly"],flexer:!0},"align-content":{alias:"Align Rows",buttons:["flex-start","center","flex-end","stretch","space-between","space-around"],flexer:!0},"flex-wrap":{alias:"Wrap",buttons:["nowrap","wrap","wrap-reverse"],flexer:!0},flex:{buttons:["0","1"],flexer:!0,lastFlex:!0},"box-sizing":{dropdown:["border-box","content-box"]},overflow:{dropdown:["visible","hidden","scroll","auto","initial","inherit"]},float:{dropdown:["none","left","right"]},visibility:{dropdown:["visible","hidden"]}},Extra:{opacity:{hasSlider:!0,sliderMin:0,sliderMax:1,sliderStep:.05,sliderUnit:" "},"box-shadow":{},"mix-blend-mode":{dropdown:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},transition:{dropdown:["all .2s","all .4s","all .8s"]}},Measures:{warning:"Those properties may break your layout, use'm only if you're 100% sure of what you're doing.","min-width":{clamp:!0,dropdown:["auto","0","25%","50%","75%","100%"]},"max-width":{clamp:!0,dropdown:["auto","0","25%","50%","75%","100%"]},"min-height":{clamp:!0,dropdown:["auto","0","25%","50%","75%","100%"]},"max-height":{clamp:!0,dropdown:["auto","0","25%","50%","75%","100%"]},width:{clamp:!0,dropdown:["auto","0","25%","50%","75%","100%"]},height:{clamp:!0,dropdown:["auto","0","25%","50%","75%","100%"]}},Position:{warning:"Those properties may break your layout, use'm only if you're 100% sure of what you're doing.",position:{dropdown:["static","fixed","relative","absolute","sticky"]},top:{hasSlider:!0,sliderMin:-300,sliderMax:300,hasNumberControls:!0},right:{hasSlider:!0,sliderMin:-300,sliderMax:300,hasNumberControls:!0},bottom:{hasSlider:!0,sliderMin:-300,sliderMax:300,hasNumberControls:!0},left:{hasSlider:!0,sliderMin:-300,sliderMax:300,hasNumberControls:!0}}},R={"data-aos":["fade","fade-up","fade-down","fade-left","fade-right","fade-up-right","fade-up-left","fade-down-right","fade-down-left","flip-up","flip-down","flip-left","flip-right","slide-up","slide-down","slide-left","slide-right","zoom-in","zoom-in-up","zoom-in-down","zoom-in-left","zoom-in-right","zoom-out","zoom-out-up","zoom-out-down","zoom-out-left","zoom-out-right"],"data-aos-offset":[-400,-300,-200,-100,-50,0,50,100,200,300,400],"data-aos-delay":[0,50,100,150,200,250,300,350,400,450,500,600,700,800,900,1e3,1500,2e3,3e3],"data-aos-duration":[0,200,500,1e3,1500,2e3,2500,3e3,3500,4e3,4500,5e3],"data-aos-once":["true","false"],"data-aos-easing":["linear","ease","ease-in","ease-out","ease-in-out","ease-in-back","ease-out-back","ease-in-out-back","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart"]},B=["all","@media screen and (max-width:1024px)","@media screen and (max-width:768px)","@media screen and (max-width:667px)","@media screen and (max-width:375px)"],$=["All","Tablet Landscape","Tablet Portrait","Mobile Landscape","Mobile Portrait"],W={};B.map((function(e,t){return W[e]=$[t]}));var z={mode:"text/x-less",theme:"csshero-theme",autoCloseBrackets:!0,matchBrackets:!0,lineWrapping:!0,scrollbarStyle:"overlay",tabSize:2,indentUnit:2,indentWithTabs:!0,electricChars:!1,smartIndent:!1},H={analog:["spin($color, 30)","spin($color, -30)"],tones:["lighten($color, 60%)","lighten($color, 40%)","lighten($color, 20%)","$color","darken($color, 20%)","darken($color, 40%)","darken($color, 60%)"],shades:["fade($color, 20%)","fade($color, 40%)","fade($color, 60%)","fade($color, 80%)","$color"],tri:["$color","spin($color, 120)","spin($color, -120)"],quadri:["$color","spin($color, (90))","spin($color, (180))","spin($color, (270))"],palette:["$color","spin($color, 180)","darken(spin($color, 180), 15%)","lighten($color, 15%)","lighten($color, 30%)"],darken:["darken($color, 5%)","darken($color, 10%)","darken($color, 15%)","darken($color, 20%)","darken($color, 25%)"],lighten:["lighten($color, 5%)","lighten($color, 10%)","lighten($color, 15%)","lighten($color, 20%)","lighten($color, 25%)"],text:["mix($color,contrast($color, black, white, 43%), 20)"]},V=[{family:"Georgia, serif",category:"web-safe-fonts"},{family:"'Palatino Linotype', Palatino, serif",category:"web-safe-fonts"},{family:"'Times New Roman', Times, serif",category:"web-safe-fonts"},{family:"Arial, Helvetica, sans-serif",category:"web-safe-fonts"},{family:"'Arial Black', Gadget, sans-serif",category:"web-safe-fonts"},{family:"'Comic Sans MS', cursive, sans-serif",category:"web-safe-fonts"},{family:"Impact, Charcoal, sans-serif",category:"web-safe-fonts"},{family:"'Lucida Grande', sans-serif",category:"web-safe-fonts"},{family:"Tahoma, Geneva, sans-serif",category:"web-safe-fonts"},{family:"'Trebuchet MS', Helvetica, sans-serif",category:"web-safe-fonts"},{family:"Verdana, Geneva, sans-serif",category:"web-safe-fonts"},{family:"'Courier New', Courier, monospace",category:"web-safe-fonts"},{family:"'Lucida Console', Monaco, monospace",category:"web-safe-fonts"}];function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y(e,t){var n,r=e.state,i={},o=r.heroFrame.document,a=G(o.body.classList);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("string"==typeof s){if(/^page-id-([0-9]+)$/.test(s)){var l=s.replace("page-id-","");i.page={s:s,d:l}}if(/^category-([0-9]+)$/.test(s)){var u=s.replace("category-","");i.category={s:s,d:u}}if(s.indexOf("page-template-")>-1){var c=s.replace("page-template-","");i.template={s:s,d:c}}"search"===s&&(i.search={s:s,d:""})}}}catch(e){a.e(e)}finally{a.f()}var f=t.split(","),p={};f.forEach((function(e){var t=e=(e=e.trim())?e.split(" ").join(" "):"";p[t]={};var n,r=[],a=G(e=e.split(/ |>|\+|~/));try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s&&"|"!==s){var l=!1;try{l=o.querySelectorAll(s)[0]}catch(s){}if(l&&!l.matches("body")&&!l.matches("html")){var u=t.indexOf(s+">")>-1||t.indexOf(s+" >")>-1?">":" ";r.push(s+u)}}}}catch(e){a.e(e)}finally{a.f()}for(var c in r=r.join("").trim(),i){var f=i[c],d="."+f.s+" "+r,h=c+" "+f.d;p[t][c]={s:Ve(d),d:h}}}));var d={};for(var h in p){var m=p[h];for(var v in i)d[v]||(d[v]={}),d[v].s?d[v].s+=","+m[v].s:d[v].s=m[v].s,d[v].d=m[v].d}return d.normal={s:Ve(t),d:"normal"},d}function K(e){var t={clean:e=e.split("::").join(":"),mode:"",pseudo:""},n="";if(e){var r=[];F.forEach((function(e){e&&r.push(e)})),n=e.trim(),r.forEach((function(e){n.indexOf(e)>-1&&(t.clean=n.split(e).join(""),t.mode=e)})),[":before",":after"].forEach((function(e){n.indexOf(e)>-1&&(t.clean=t.clean.replace(new RegExp(e+"$"),""),t.pseudo=e)}))}return t}function J(e,t,n,r,o,a){var s=r.state,l=r.update,u=s.currentEl,c=s.currentElContexts,f=c.normal?c.normal.s:u||"body";f=K(f).clean===t?"cur":"";var p=Ue(t,s.storedEdits)?"edited":"",d=i.a.createElement("span",{className:"cnt"},s.heroFrame.document.querySelectorAll(t).length),h=t===n?"":i.a.createElement("b",{className:"sel"},t);return a=a||"",i.a.createElement("div",{title:t,className:p+" item "+f+" "+a,key:e,onMouseEnter:function(e){e.stopPropagation(),l({currentlyHovered:t})},onMouseLeave:function(e){e.stopPropagation(),l({currentlyHovered:null})},onClick:function(e){e.stopPropagation(),o?l({currentElContext:"normal"},(function(e){var i=q(q({},r),{},{state:e});se(t,i,n)})):se(t,r,n)}},i.a.createElement("span",{className:"irIcon ico"}),i.a.createElement("div",{className:"dtls"},n,h),d)}function Z(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t){return t&&(e=e.split(t).join("")),e=e.replace(/[^\w_]+/g,"_"),t&&e[0]!==t&&(e=t+e),e}function re(e,t){if(document.querySelector("#inspector .CodeMirror")){var n=document.querySelector("#inspector .CodeMirror").CodeMirror;n.setValue(be(t.state.storedEdits,t.state.mqOrder));for(var r=0,i=n.getSearchCursor(e);i.findNext();)if(1===++r){n.setSelection(i.from(),i.to());var o=i.to().line,a=n.charCoords({line:o,ch:0},"local").top,s=n.getScrollerElement().offsetHeight/2;n.scrollTo(null,a-s-5)}}}function ie(e){var t="function"==typeof window.getPath&&Ve(window.getPath(e));return t||(t=Ve(oe(e))),t}var oe=function(e){var t=[];(e=[e]).forEach((function(e){for(var n,r=e;r;){var i=r,o=i.localName;if(!o)break;o=o.toLowerCase();var a=r.parentNode,s=a.querySelectorAll(":scope > "+o);if((s=[].slice.call(s)).length>1){var l=a.querySelectorAll(":scope > *"),u=(l=[].slice.call(l)).indexOf(i)+1;u>0&&(o+=":nth-child("+u+")")}var c=i.getAttribute("class");i.getAttribute("id")?o="#"+i.getAttribute("id"):c&&c.indexOf("post-")>-1&&function(){var e=c.split(" "),t=[];e.forEach((function(e){e.indexOf("post-")&&t.push(e)})),t.length>0&&(o="."+t.join("."))}(),n=o+(n?" > "+n:""),r=a}t.push(n)}));var n=t.join(","),r=n;return n.indexOf("#")>-1&&(r="#"+(r=n.split("#"))[r.length-1]),r};function ae(){var e=[];if(sessionStorage.getItem("heroRocket")){var t=JSON.parse(sessionStorage.getItem("heroRocket"));e=[].concat(l()(e),l()(t))}return e}function se(e,t,n){var r=t.emitChange,i=t.state,o=i.heroFrame,a=i.viewSettings;if(!i.inspectorNavigation){var s,l,u,c=a.mode,f=a.inspectorAutoRender,p=o.document.querySelectorAll("*[heroClicked]");if("string"==typeof e){if(s=e,l=n||e,p&&p[0])try{p[0].matches(e)||(p.forEach((function(e){return e.removeAttribute("heroClicked")})),(u=o.document.querySelectorAll(e)[0])&&u.setAttribute("heroClicked",!0))}catch(e){p.forEach((function(e){return e.removeAttribute("heroClicked")}))}}else{p.forEach((function(e){return e.removeAttribute("heroClicked")}));var d=e.getAttribute("editableclass")||"";l=(e.getAttribute("editablesuggestion")||"").split(" | ")[0],s=d.split(" | ")[0],e&&e.setAttribute("heroClicked",!0),u=e}l=l=l||s;var h=Y(t,s),m=ie(o.document.querySelectorAll("*[heroClicked]")[0]);h["only-this"]={s:m,d:"only-this"};var v=h[i.currentElContext].s,g={currentEl:v,session:v,currentElDesc:l,currentlyRightClicked:null,currentElContexts:h,currentlyClicked:o.document.querySelectorAll("*[heroClicked]")[0]};s.indexOf(",")>-1&&(g.currentEl=s,g.currentElContext="normal"),v===m&&v!==h.normal.s&&(g.currentElContext="only-this"),r(g),"insp"===c&&f&&function(e,t){for(var n=t.state,r=t.update,i=n.storedEdits,o=n.currentMq,a=!1,s=0,l=[e+"{",e+" {",e+"\n{",e+"\n {"];s<l.length;s++){var u=l[s];JSON.stringify(i).indexOf(u)>-1&&(a=u)}if(a)re(a,t);else{var c=te({},i),f=c[o]?c[o]:"";c[o]=f+"\n"+e+"{\n\n}",a=e+"{",r?r({storedEdits:c,session:Date.now()},(function(e){re(a,{state:e})})):t.setState({storedEdits:c,session:Date.now()},(function(){re(a,t)}))}}(v,t)}}function le(e){var t=e.document.getElementById("heroStyle");return t=(t=t?t.textContent:"")||"/* EMPTYNESS */"}function ue(e){return he(e).ob}function ce(e,t){var n=new FormData;for(var r in n.append("nonce",window.nonce),e)n.append(r,e[r]);if(window.adminAjaxUrl?fetch(window.adminAjaxUrl,{method:"POST",credentials:"same-origin",headers:{"Cache-Control":"no-cache"},body:n}).then((function(e){return e.text()})).then((function(e){t&&t(e)})).catch((function(e){console.log("Error :( Details: "+e)})):(console.log("window.adminAjaxUrl not available"),t&&t()),!window.adminAjaxUrl)return!1}function fe(e,t,n){var r=e.charCoords({line:t,ch:0},"local").top,i=e.getScrollerElement().offsetHeight/2;e.scrollTo(null,r-i-5),n&&n()}function pe(e){var t=e.state.heroFrame;if(t){var n=t.document.querySelectorAll("body, body *"),r=function(n){if(!e.state.navigationMode&&n.target.getAttribute("editableclass")){var r=n.target.matches("*[heroParent] *")?t.document.querySelectorAll("*[heroParent]")[0]:n.target;n.preventDefault(),n.stopPropagation(),se(r,e)}},i=function(n){0===t.document.querySelectorAll("*[heroclicked]").length&&n.target.setAttribute("heroclicked",!0),function(e,t,n){if(!t.state.navigationMode){if(e.getAttribute("editableclass"))if(n.stopPropagation(),n.preventDefault(),e.getAttribute("editableclass").split(" | ").length>0){var r=document.getElementById("contents").getBoundingClientRect();t.setState({currentlyRightClicked:{ev:{x:r.left+n.clientX,y:r.top+n.clientY},el:n.target}})}}}(n.target,e,n)};n.forEach((function(e){e.addEventListener("click",r,!0),e.addEventListener("contextmenu",i,!0)}))}}function de(e){var t=document.getElementById("cssheroSaveData"),n=!1;e?n=e:t&&t.value.trim()&&(n=t.value.trim());try{n=JSON.parse(n)}catch(e){console.log("savedData CONTAINS ERRORS"),console.log(e)}return he(n||{}).ob}function he(e,t){var n=!1,r=e.storedEdits,i=e.mqOrder,o=e.animatedEls,a=e.storedJS,s=e.videoBgs,l=e.customFonts,u={storedEdits:r=r||{all:""},mqOrder:i=i||B,animatedEls:o=o||{},storedJS:a=a||{all:"",libs:[],stripped:""},videoBgs:s=s||{},customFonts:l=l||{},session:Date.now()};if(t){var c=t.state,f=JSON.stringify;f(c.animatedEls)===f(o)&&f(c.storedJS)===f(a)&&f(c.videoBgs)===f(s)||(n=!0)}return{ob:u,needsRefresh:n}}var me=0,ve=0;function ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"heroColorPreview",r=e.state,i=e.update;if(r.heroFrame){ye(e,n,!0);var o=document.createElement("style");o.id=n;var a=document.createTextNode(t);o.appendChild(a),r.heroFrame.document.getElementsByTagName("head")[0].appendChild(o);var s=r.currentlyClicked;(t.indexOf("margin")>-1||t.indexOf("padding")>-1)&&i({currentlyHovered:s})}}function ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"heroColorPreview",n=arguments.length>2?arguments[2]:void 0,r=e.state,i=e.update;if(r.heroFrame){var o=r.heroFrame.document.getElementById(t);o&&(o.outerHTML="")}n||i({currentlyHovered:null})}function be(e,t){var n=[],r=[];for(var i in e){var o="all"===i?e[i]:i+"{"+e[i]+"}";o===i+"{}"&&(o="");var a=t.indexOf(i);a>-1?n[a]=o.trim():r.push(o.trim())}return n=n.concat(r).join("\n")}function _e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"{",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"}";e[t];for(var i=1,o=t+1;o<e.length;o++)switch(e[o]){case n:i++;break;case r:if(0==--i)return o}return-1}function we(e){var t={s:"",m:""};if(e){var n=(e=(e=(e=e.split("(//").join("[--PRESERVE-1--]")).split("('//").join("[--PRESERVE-2--]")).split('("//').join("[--PRESERVE-3--]")).match(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm)||[],r=[];n.forEach((function(t){for(t=t.trim();"/"!==t.charAt(0);)t=t.substr(1);return e=e.replace(t,""),r.push(t)})),t={s:e=(e=(e=e.split("[--PRESERVE-1--]").join("(//")).split("[--PRESERVE-2--]").join("('//")).split("[--PRESERVE-3--]").join('("//'),m:r}}return t}function xe(e,t){var n={s:"",b:{}},r=e,i={};for(var o in r)if("{"===r[o]){var a=_e(r,+o),s=r.substring(+o,a+1),l=t||"{[[--conts"+o+"--]]}";r=r.replace(s,l),i[l]=s}return n.b=i,n.s=r,n}function ke(e){var t={s:"",b:{}},n=e,r={};for(var i in n)if("("===n[i]){var o=_e(n,+i,"(",")"),a=n.substring(+i,o+1),s="{[[--parens"+i+"--]]}";n=n.replace(a,s),r[s]=a}return t.b=r,t.s=n,t}function Ee(e){var t={},n=e.match(/@media[^{]*\{/g)||[],r=e;return n&&(n=n.map((function(e){var t=e.slice(0,-1),n="",i=r.indexOf(t)+t.length;if("{"===r.charAt(i)){var o=_e(r,i);n=r.substring(i,o+1),r=r.replace(t+n,"")}return t+n}))).map((function(e){r=r.replace(e,"");var n=e.split("{")[0],i=e.substring(e.indexOf("{")+1,e.lastIndexOf("}"));return t[n]=i})),t.all=r,t}function Ce(e,t){var n=t.state,r=t.update,i=Se(t,e,"all");r({currentNode:i,lastWorking:i,currentEl:e,currentElDesc:e,session:e,currentMq:"all",viewSettings:te(te({},n.viewSettings),{},{showTab:"properties",mode:"wysi"})})}function Se(e,t,n,r){var i=e.state;n||(n=i.currentMq),t||(t=i.currentEl),t&&(t=t.trim()),t&&(t=Ve(t));var o=r||i.storedEdits[n],a={};if(o&&(o.indexOf("'")>-1||o.indexOf('"')>-1)){if(o.indexOf('"')>-1){var s=o.match(/"([^"]*)"/g)||[];if(s.length>0)for(var l in s){var u="PRESERVER--M1-"+l;a[u]=s[l],o=o.replace(s[l],u)}}if(o.indexOf("'")>-1){var c=o.match(/'([^']*)'/g)||[];if(c.length>0)for(var f in c){var p="PRESERVER--M2-"+f;a[p]=c[f],o=o.replace(c[f],p)}}}o=(o=(o=(o=(o=(o=o?o.replace(/\s*\{\s*/g,"{"):"").replace(/\s*>\s*/g," > ")).replace(/\s*\+\s*/g," + ")).replace(/\s*,\s*/g," , ")).split("(//").join("[[--l1--]]")).split("://").join("[[--l2--]]");var d=[];(o.indexOf("//")>-1||o.indexOf("/*")>-1)&&(d=we(o).m),d.length&&d.map((function(e,t){return o=o.replace(e,"[[--comm"+t+"--]]")}));var h=xe(o),m=h.b,v={before:o=h.s,code:"{}",after:""};for(var g in o){var y=-1;if("}"===o[g]&&(y=+g),"{"===o[g]){var b=+g,_=o.substring(y,b);if((_=(_=_.split("}"))[_.length-1]).indexOf("\n")>-1&&(_=(_=_.split("\n"))[_.length-1]),_.indexOf(";")>-1&&(_=(_=_.split(";"))[_.length-1]),(_=_.trim())===t){var w=_e(o,+g),x=o.substring(b,w+1).trim();v.code=x,v.before=o.substring(0,b-_.length),v.after=o.substring(w+1)}}}var k=function(e){for(var t in m)v[e]=v[e].split(t).join(m[t]);if(d.length&&d.forEach((function(t,n){v[e]=v[e].split("[[--comm"+n+"--]]").join(t)})),v[e]=v[e].split("[[--l1--]]").join("(//"),v[e]=v[e].split("[[--l2--]]").join("://"),Object.keys(a).length>0)for(var n in a)v[e]=v[e].replace(n,a[n])};for(var E in v)k(E);return v}function Oe(e){var t=e.state.gFonts.plain||[],n=JSON.stringify(e.state.storedEdits);n=(n=n.split(" ").join(" ")).split(" ;").join(";").split(" }").join("}").split(" ,").join(",").split(" )").join(")").split(" !").join("!");var r=[],i="",o='@import url("https://fonts.googleapis.com/css2?family=';return t.forEach((function(e){var t=e.split(" ").join("+");(n.indexOf(e+"!")>-1||n.indexOf(e+";")>-1||n.indexOf(e+"}")>-1||n.indexOf(e+",")>-1||n.indexOf(e+")")>-1)&&-1===n.indexOf("family="+t)&&r.push(t)})),r.length&&(i=o+=r.join("&family=")+'");'),{has:r,ret:i}}function Ae(e){var t=e.state,n=e.worker,r=be(t.storedEdits,t.mqOrder);r=t.flatSnippets+r,n.postMessage({type:"setup",value:r})}function je(e){var t=He(e,")"),n=[],r=[];t.indexOf("){")>-1&&(n=t.match(/\.[^{}]*\(\)\{/g)||[],r=t.match(/\.[^{}]*\(@(.*?)\{/g)||[]);var i={customSnippets:n,customSnippets_withParams:r};for(var o in i)for(var a in i[o])i[o][a].indexOf(".includeFont(")>-1&&i[o].splice(a,1);return i}function Pe(e){var t=0,n=0,r=[];return e.replace(/[^(),]*([)]*)([(]*)(,)?/g,(function(e,i,o,a,s,l){t+=o.length-i.length;var u=s+e.length;return!t&&a&&(r.push(l.substring(n,u-1)),n=u),e})),r.push(e.substring(n)),r}function Ne(e){var t=e.state,n=e.update;if(t.viewSettings.showWysiCode){var r=te(te({},t.viewSettings),{},{showWysiCode:!1});n({viewSettings:r},(function(){n({viewSettings:te(te({},r),{},{showWysiCode:!0})})}))}}function Te(e,t,n){var r=n.state,i=n.update,o=te({},r.storedEdits),a=Se(n),s=He(a.code,";"),l=e.split("(")[0]+"("+t.join()+")";s=s.substring(0,s.lastIndexOf("}"))+l+";}",o[r.currentMq]=a.before+r.currentEl+s+a.after,i({storedEdits:o},(function(t){Ne(te(te({},n),{},{state:t})),ut(n,"snippet","applyes: "+e)}))}function Me(e,t,n){var r=t.state,i=t.update,o=te({},r.storedEdits),a=Se(t),s=He(a.code,";");if(s.indexOf(e.split("(")[0]+"(")>-1){var l=(s=(s=s.split(e).join(e+";").split(";;").join(";")).split(e.split("(")[0]+"("))[1];(l=l.split(";")).shift(),l=l.join(";"),s=s[0]+l,o[r.currentMq]=a.before+r.currentEl+s+a.after,i({storedEdits:o},(function(e){var r=te(te({},t),{},{state:e});Ne(r),n&&n(r)}))}}function De(e,t){var n=t.state,r=t.emitChange,i={currentMq:e,session:Date.now(),currentElContext:n.currentElContext};if(!n.storedEdits[e]){var o=te({},n.storedEdits);o[e]="",i.storedEdits=o}r(i),ut(t,"mq","changes mq view to "+e)}function Le(e){e=e.split(" ").join("").split(",").join(", ");var t=(new Option).style;t.color=e;var n=t.color.split(" ").join("").split(",").join(", ");return!!(e.match(/^#([0-9A-F]{3}){1,2}$/i)||e.indexOf("rgba")>-1)||n===e}function Fe(){return document.querySelector(":root").getAttribute("data-child-theme-slug")||"notheme"}function Ie(){return sessionStorage.getItem("HEROSESSIONHISTORY")?JSON.parse(sessionStorage.getItem("HEROSESSIONHISTORY")):[]}function Re(){document.body.setAttribute("noHistory","true")}function Be(e){var t,n=e.state,r=e.update,i=n.historyCurStep;if(!document.body.hasAttribute("noHistory")){!function(e){var t=e.appSession,n=Fe(),r=localStorage.getItem("CSSHEROLASTWORKING");r=r||"{}";try{r=JSON.parse(r)}catch(e){console.log(e),r={}}r[n]||(r[n]={}),r[n][t]=ue(e);var i=JSON.stringify(r);localStorage.setItem("CSSHEROLASTWORKING",i)}(n);var o=JSON.stringify,a=Ie(),s=Date.now(),l=ue(n);delete l.session;var u={time:s,data:l=o(l)};0!==a.length&&(t=!1,a.forEach((function(e){e.data===u.data&&(t=!0)})),t)||(0!==i&&r({historyCurStep:0}),a.push(u),sessionStorage.setItem("HEROSESSIONHISTORY",o(a)))}We(500,(function(){document.body.hasAttribute("noHistory")&&document.body.removeAttribute("noHistory")}))}var $e=null;function We(e,t){clearTimeout($e),$e=setTimeout((function(){t&&t()}),e)}function ze(e){var t=new Date(+e);return t=t.getMonth()+1+" / "+t.getDate()+" - "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()}function He(e,t){t=t.trim();var n=e.split(t),r=[];for(var i in n)r.push(n[i].trim());return r=r.join(t)}function Ve(e){for(var t=0,n=[">","+","~",","];t<n.length;t++){var r=n[t];e&&e.indexOf(r)>-1&&(e=(e=He(e,r)).split(r).join(" "+r+" "))}return e}function Ue(e,t){e=Ve(e);var n="";for(var r in t)n+=t[r];return n=He(n=(n=we(n=Ve(n)).s).replace(/\t|\n/g,""),"}"),(n="}"+(n=(n=He(n,"{")).replace(/;/g,"}"))).indexOf("}"+e+"{")>-1}function qe(e){if(e.indexOf(":before")>-1||e.indexOf(":after")>-1)return!0;try{document.createDocumentFragment().querySelector(e)}catch(e){return!1}return!0}function Ge(e,t){var n=e.getDoc().getCursor();e.getTokenAt(n).type&&(e.state.completionActive||{8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"escape",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"delete",91:"left window key",92:"right window key",93:"select",107:"add",109:"subtract",110:"decimal point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scrolllock",186:"semicolon",187:"equalsign",188:"comma",189:"dash",190:"period",191:"slash",192:"graveaccent",220:"backslash",222:"quote"}[(t.keyCode||t.which).toString()]||e.showHint(e))}function Xe(e,t){var n=e.state,r=e.update,i={code:"{}",before:"",after:""},o=te(te({},n.viewSettings),{},{mode:"wysi"});r(te(te({},n),{},{animatedEls:{},projectVars:{},currentNode:i,lastWorking:i,session:Date.now(),mqOrder:B,allEdits:{},videoBgs:{},storedJS:{all:"",libs:[],stripped:""},frameSession:Date.now(),inspectorFoldedLines:[],viewSettings:o,customFonts:{},storedEdits:{all:""},frameIsLoading:!0}),(function(n){var r=ue(n);ce({action:"csshero_save_state","csshero-livearray-saving-field":JSON.stringify(r),"csshero-css-saving-field":"/* EMPTYNESS */"},(function(r){console.log("Response: "+r),at(e),t&&t(n)})),!ce([])&&t&&t(n)})),ut(e,"interface","resets edits")}function Ye(e){var t=e.state.storedEdits,n=[];for(var r in t){var i=t[r];i&&(i=(i=(i=i.split(" ").join(" ")).split(" ,").join(",")).split(", ").join(",")).split(/[\s:]+/).forEach((function(e){var t=e.split("}")[0].split(";")[0].trim();t&&Le(t)&&-1===n.indexOf(t)&&n.unshift(t)}))}return n.slice(0,20)}function Ke(e){var t="";return e.getAttribute("editablesuggestion")?t=e.getAttribute("editablesuggestion").split(" | ")[0]:e.getAttribute("editableclass")&&(t=e.getAttribute("editableclass").split(" | ")[0]),t}function Je(e,t){var n=[];if(e.getAttribute("editableclass")){var r=function(e){return e.getAttribute("editableclass").split(" | ")[0]}(e),i=Ke(e);n.push(J(r,r,i,t,!1,"normal"))}return n}function Ze(e,t,n){var r=t.currentEl,i=t.heroFrame,o=n.code;o=(o=o.substring(o.indexOf("{")+1,o.lastIndexOf("}")).trim()).split(" ").join(" ").split(" ,").join(",").split(", ").join(",");var a="";[":hover",":active",":visited",":before",":after"].forEach((function(e){r.indexOf(e)>-1&&(r=(r=r.split("::").join(":")).split(e)[0],a=e)}));var s=i.document.querySelectorAll("body")[0],l=s;try{l=t.currentlyClicked}catch(e){}var u=l?i.getComputedStyle(l,a):i.getComputedStyle(s);if(a)try{var c=i.document.querySelectorAll(r)[0];u=i.getComputedStyle(c,a)}catch(e){console.log(e)}var f=o||"",p=u[e],d=!1,h=!1,m=!1,v=f.match(/\{.*?}/g);v&&v.map((function(e,t){return f=f.replace(e,"[[[---MARKER-"+t+"---]]]")}));var g=[],y=[];return f.split(/[\n;]+/).forEach((function(e){if(e){var t=(e=e.trim()).split(":")[0].trim(),n=g.indexOf(t);n>-1&&(y.splice(n,1),g.splice(n,1)),g.push(t),y.push(e)}})),y.map((function(t){var n=t;return(t=t.replace(/\s*:\s*/g,":")).trim().startsWith("._d("+e+",")?(p=(p=t.split("._d("+e+",")[1]).substring(0,p.lastIndexOf(")")),d=!0,f=(f=(f=f.split("-"+n).join("[skip]")).split(n).join("[[[S["+t+"]E]]]")).split("[skip]").join("-"+n),h=!0):t.trim().startsWith(e+":")&&(p=t.split(e+":")[1],m=p.indexOf("!important")>-1,d=!0,f=(f=(f=f.split("-"+n).join("[skip]")).split(n).join("[[[S["+t+"]E]]]")).split("[skip]").join("-"+n)),t})),v&&v.map((function(e,t){return f=f.replace("[[[---MARKER-"+t+"---]]]",e)})),{wysiCode:f,sendVal:p,isEdited:d,isDesktopOnly:h,isImportant:m}}function Qe(e,t,n){var r=window.frames["csshero-iframe-main-page"],o="function"==typeof r.placeVidElementInner?r.placeVidElementInner(e,t,n):function(){alert("sorry, function unavailable")},a=o.inS,s=o.outS,l=o.thumbnail,u=o.url;if(!e)return i.a.createElement("div",{className:"heroVideoBg",style:s},i.a.createElement("video",{autoPlay:!0,loop:!0,poster:l,style:a},i.a.createElement("source",{src:u,type:"video/mp4"}),"Your browser does not support the video tag."))}function et(e,t,n,r){if(e.document){var i=e.document.createElement("script");t&&(i.src=t),n&&(i.innerHTML=n),i.className="HEROJSLoadScript",r&&i.addEventListener("load",r),e.document.body&&e.document.body.appendChild(i)}}function tt(e){return e&&"object"===A()(e)&&!Array.isArray(e)}function nt(e){var t=e.state,n=e.update,r=window.location.hash;if(r.startsWith("#reset")&&Xe(e,(function(){return window.location.hash=""})),r.startsWith("#state=")){var i=r.split("#state=")[1];try{var o=JSON.parse(decodeURIComponent(i)),a=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!r.length)return t;var o=r.shift();if(tt(t)&&tt(o))for(var a in o)tt(o[a])?(t[a]||Object.assign(t,x()({},a,{})),e(t[a],o[a])):Object.assign(t,x()({},a,o[a]));return e.apply(void 0,[t].concat(r))}(te({},t),o);a.updateFromParam=!0,t.updateFromParam||n(a,(function(){return window.location.hash=""}))}catch(e){console.log(e)}}}function rt(e,t){if(e){var n=(e=e.trim()).slice(e.indexOf("?")+1).split("&"),r={};n.forEach((function(e){var t=e.split("="),n=E()(t,2),i=n[0],o=n[1];i&&o&&(r[i]=decodeURIComponent(o))}));var i=Object.keys(r).length>0?"&":"?",o=e.endsWith(".html")||e.endsWith(".htm"),a=e.endsWith("/")||o?"":"/",s=e+a+i+t;return s=s.split("/&").join("&")}return""}function it(e,t){var n=e.name,r=e.url;return"CSS"===t?"@font-face{\nfont-family: "+n+";\nsrc: url("+r+");\n}\n":".includeFont('"+n+"','"+r+"');"}function ot(e,t){var n=t.update,r=te({},t.state.storedEdits),i=it(e);r.all=i+r.all,n({storedEdits:r,session:Date.now()})}function at(e){var t=e.update,n=e.state.heroFrame;t({frameIsLoading:!0}),n.location.reload(!0)}function st(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),t}function lt(e){var t=document.getElementById("selectorBar"),n=(t=window.getComputedStyle(t)).getPropertyValue("background-color"),r=t.getPropertyValue("border-bottom-color"),i="::-webkit-scrollbar{width: 8px;}::-webkit-scrollbar-track{background:"+n+";border-left:1px solid "+r+";}::-webkit-scrollbar-thumb {background:"+r+";}";if(e.document.getElementById("heroStyleBars"))e.document.getElementById("heroStyleBars").innerHTML=i;else{var o=document.createElement("style");o.id="heroStyleBars",o.appendChild(document.createTextNode(i)),e.document.getElementsByTagName("head")[0].appendChild(o)}}function ut(e,t,n){var r=e.update,i=e.state,o={time:Date.now(),type:t,detail:n},a=l()(i.actionLog);a[a.length-1]&&a[a.length-1].detail===n&&a[a.length-1].type===t&&a.pop(),a.push(o),r({actionLog:a})}function ct(){document.querySelectorAll(".pseudoPrev").forEach((function(e){return e.remove()}))}function ft(e,t,n){[":before",":after"].forEach((function(t){var r=n.getComputedStyle(e,t);if("none"!==r.getPropertyValue("content")){var i=function(e,t){var n=e.getBoundingClientRect(),r=n.top,i=n.left;return r+=parseInt(t.top,10),i+=parseInt(t.left,10),{top:r,left:i}}(e,r),o=i.top,a=i.left,s=document.getElementById("frameMask"),l=document.createElement("div");l.style.top=o+"px",l.style.left=a+"px",l.style.width=r.width,l.style.height=r.height,l.classList.add("pseudoPrev",t.replace(":","")),s.append(l)}}))}function pt(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ht=function(e){var t=e.el,n=e.app,r=e.similar,o=e.cnt,a=n.state,s="";return t&&(s=function(){var e=a.storedEdits,s=a.currentElContext,l=t.getBoundingClientRect(),u=t.style,c={width:l.width,height:l.height};c.top=l.top-parseInt(u.marginTop||0),c.marginTop=parseInt(u.marginTop||0),c.left=l.left-parseInt(u.marginLeft||0),c.marginLeft=parseInt(u.marginLeft||0);var f=t.getAttribute("editableclass"),p=f+" | "+(t.getAttribute("custom_editableclass")?t.getAttribute("custom_editableclass").trim()+" | ":""),d="",h=t.getAttribute("editablesuggestion");h=h!==f&&h;var m=l.top<100?"lb":"lt",v=document.getElementById("contents").offsetWidth,g=l.left>v/2?"lr":"ll",y="",b=[],_=f;if("normal"===s)b=f?p.split(" | "):[];else if("only-this"===s){y="[OT] ",b=[ie(t)]}else{var w=!!f&&Y(n,f.split(" | ")[0]),k=w?w[s].s:"";b=[k],y="["+s+"] ",_=k}if(b.length>0){var E,C=pt(b);try{for(C.s();!(E=C.n()).done;){var S=E.value;S&&Ue(S,e)&&(d="edited")}}catch(e){C.e(e)}finally{C.f()}}h=h?h.split(" | ")[0]:h,_=_?_.split(" | ")[0]:_;var O=h?y+h:y+_,A=d?i.a.createElement("span",{className:"edited"},"Edited"):"",j=r?"":i.a.createElement("span",{className:"label"},O,i.a.createElement("span",{className:"cnt"},o),A),P=r?" simi":"",N=r?"":function(){var e=a.heroFrame.getComputedStyle(t),n=e.padding.split(" "),r=e.margin.split(" "),o=["t","r","b","l"],s={marg:o,padd:o},l=[];for(var u in s)for(var c in s[u]){var f="marg"===u?r:n,p=s[u][c],d=f[0];"r"===p&&f[1]&&(d=f[1]),"b"===p&&f[2]&&(d=f[2]),"l"===p&&(d=f[3]?f[3]:f[1]?f[1]:f[0]);var h=d=parseFloat(d),m=d<0?"neg":"",v=d<0?-1*d:d,g="t"===p||"b"===p?"height":"width",y=d>0&&d<10?"hid":"";l.push(i.a.createElement("div",{className:y+" "+m+" "+u+" "+p,style:x()({},g,v),key:u+"-"+p},i.a.createElement("div",{className:"s"}),i.a.createElement("div",{className:"s k"}),i.a.createElement("span",null,i.a.createElement("b",null,h))))}return l}();return i.a.createElement("div",{className:"probe "+P+" "+m+" "+g+" "+d,style:c},j,N)}(),r||t.getAttribute("editableclass")||(s="")),s},mt=function(e){var t=e.app,n=e.frame,r=e.locked,o=e.style,a=e.cur,s=e.curLock,l=a;if("string"==typeof l)try{l=n.document.querySelectorAll(l)[0]}catch(e){l=!1}var u=t.state.currentElContext,c=function(e,r){var o={e:[],c:1};if(e&&n){var a="function"==typeof e.getAttribute?e.getAttribute("editableclass"):"";a=a||"";var s="string"==typeof e?e:a.split("|")[0].trim();if(s){var l=[];try{l=r?r.querySelectorAll(s):n.document.querySelectorAll(s)}catch(e){}o.c="only-this"===u?1:l.length,l.forEach((function(n,r){n!==e&&o.e.push(i.a.createElement(ht,{key:r,app:t,locked:!1,el:n,similar:!0}))}))}}return o},f=!s&&r,p=s&&l?c(s).c:0,d="";a&&n&&l&&(d=i.a.createElement(ht,{cnt:c(a).c,app:t,locked:f,el:l,isBeingParent:!1}));var h=s&&l?i.a.createElement(ht,{cnt:p,app:t,locked:r,el:s}):"",m="only-this"!==u&&!s&&l?c(a).e:"";return i.a.createElement("div",{style:o,id:"frameMask","data-mode":u},d,h,m)},vt=n(2),gt=n.n(vt),yt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),bt=new Uint8Array(16);function _t(){if(!yt)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yt(bt)}for(var wt=[],xt=0;xt<256;++xt)wt[xt]=(xt+256).toString(16).substr(1);var kt=function(e,t){var n=t||0,r=wt;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var Et=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||_t)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||kt(i)};function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function St(e,t,n){return t&&Ct(e.prototype,t),n&&Ct(e,n),e}function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(){return(At=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tt(e,t){return(Tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mt(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var Dt={HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"},Lt=function(e,t){var n;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(n)};var Ft=function(e,t){var n=this.state.show,r=this.props.id,i=this.isCapture(t.currentTarget),o=t.currentTarget.getAttribute("currentItem");i||t.stopPropagation(),n&&"true"===o?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),It(t.currentTarget,this.getTargetArray(r)),this.showTooltip(t))},It=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},Rt={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,n){this.id in e?e[this.id][t]=n:Object.defineProperty(e,this.id,{configurable:!0,value:Ot({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}};var Bt=function(e,t,n){var r=t.respectEffect,i=void 0!==r&&r,o=t.customEvent,a=void 0!==o&&o,s=this.props.id,l=n.target.getAttribute("data-tip")||null,u=n.target.getAttribute("data-for")||null,c=n.target;if(!this.isCustomEvent(c)||a){var f=null==s&&null==u||u===s;if(null!=l&&(!i||"float"===this.getEffect(c))&&f){var p=function(e){var t={};for(var n in e)"function"==typeof e[n]?t[n]=e[n].bind(e):t[n]=e[n];return t}(n);p.currentTarget=c,e(p)}}},$t=function(e,t){var n={};return e.forEach((function(e){var r=e.getAttribute(t);r&&r.split(" ").forEach((function(e){return n[e]=!0}))})),n},Wt=function(){return document.getElementsByTagName("body")[0]};function zt(e,t,n,r,i,o,a){for(var s=Ht(n),l=s.width,u=s.height,c=Ht(t),f=c.width,p=c.height,d=Vt(e,t,o),h=d.mouseX,m=d.mouseY,v=Ut(o,f,p,l,u),g=qt(a),y=g.extraOffsetX,b=g.extraOffsetY,_=window.innerWidth,w=window.innerHeight,x=Gt(n),k=x.parentTop,E=x.parentLeft,C=function(e){var t=v[e].l;return h+t+y},S=function(e){var t=v[e].t;return m+t+b},O=function(e){return function(e){var t=v[e].r;return h+t+y}(e)>_},A=function(e){return function(e){var t=v[e].b;return m+t+b}(e)>w},j=function(e){return function(e){return C(e)<0}(e)||O(e)||function(e){return S(e)<0}(e)||A(e)},P=function(e){return!j(e)},N=["top","bottom","left","right"],T=[],M=0;M<4;M++){var D=N[M];P(D)&&T.push(D)}var L,F=!1,I=i!==r;return P(i)&&I?(F=!0,L=i):T.length>0&&j(i)&&j(r)&&(F=!0,L=T[0]),F?{isNewState:!0,newState:{place:L}}:{isNewState:!1,position:{left:parseInt(C(r)-E,10),top:parseInt(S(r)-k,10)}}}var Ht=function(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width;return{height:parseInt(n,10),width:parseInt(r,10)}},Vt=function(e,t,n){var r=t.getBoundingClientRect(),i=r.top,o=r.left,a=Ht(t),s=a.width,l=a.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:o+s/2,mouseY:i+l/2}},Ut=function(e,t,n,r,i){var o,a,s,l;return"float"===e?(o={l:-r/2,r:r/2,t:-(i+3+2),b:-3},s={l:-r/2,r:r/2,t:15,b:i+3+2+12},l={l:-(r+3+2),r:-3,t:-i/2,b:i/2},a={l:3,r:r+3+2,t:-i/2,b:i/2}):"solid"===e&&(o={l:-r/2,r:r/2,t:-(n/2+i+2),b:-n/2},s={l:-r/2,r:r/2,t:n/2,b:n/2+i+2},l={l:-(r+t/2+2),r:-t/2,t:-i/2,b:i/2},a={l:t/2,r:r+t/2+2,t:-i/2,b:i/2}),{top:o,bottom:s,left:l,right:a}},qt=function(e){var t=0,n=0;for(var r in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===r?n-=parseInt(e[r],10):"bottom"===r?n+=parseInt(e[r],10):"left"===r?t-=parseInt(e[r],10):"right"===r&&(t+=parseInt(e[r],10));return{extraOffsetX:t,extraOffsetY:n}},Gt=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function Xt(e,t,n,r){if(t)return t;if(null!=n)return n;if(null===n)return null;var o=/<br\s*\/?>/;return r&&"false"!==r&&o.test(e)?e.split(o).map((function(e,t){return i.a.createElement("span",{key:t,className:"multi-line"},e)})):e}function Yt(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function Kt(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var Jt,Zt,Qt,en={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function tn(e,t,n,r){return function(e,t){var n=t.text,r=t.background,i=t.border,o=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(n,";\n\t background: ").concat(r,";\n\t border: 1px solid ").concat(i,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(i,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(o,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(i,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(o,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(i,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(o,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(i,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(o,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,n){var r=e.text,i=e.background,o=e.border,a=e.arrow?e.arrow:e.background,s=function(e){return en[e]?Pt({},en[e]):void 0}(t);r&&(s.text=r);i&&(s.background=i);n&&(s.border=o||("light"===t?"black":"white"));a&&(s.arrow=a);return s}(t,n,r))}var nn,rn=function(e){e.hide=function(e){Lt(Dt.HIDE,{target:e})},e.rebuild=function(){Lt(Dt.REBUILD)},e.show=function(e){Lt(Dt.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(Jt=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(Dt.HIDE,this.globalHide),window.addEventListener(Dt.HIDE,this.globalHide,!1),window.removeEventListener(Dt.REBUILD,this.globalRebuild),window.addEventListener(Dt.REBUILD,this.globalRebuild,!1),window.removeEventListener(Dt.SHOW,this.globalShow),window.addEventListener(Dt.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(Dt.HIDE,this.globalHide),window.removeEventListener(Dt.REBUILD,this.globalRebuild),window.removeEventListener(Dt.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(Jt=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,r=n.event,i=n.eventOff,o=e.getAttribute("data-event")||r,a=e.getAttribute("data-event-off")||i;o.split(" ").forEach((function(n){e.removeEventListener(n,Rt.get(e,n));var r=Ft.bind(t,a);Rt.set(e,n,r),e.addEventListener(n,r,!1)})),a&&a.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,r=t.eventOff,i=n||e.getAttribute("data-event"),o=r||e.getAttribute("data-event-off");e.removeEventListener(i,Rt.get(e,n)),o&&e.removeEventListener(o,this.hideTooltip)}}(Jt=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(Jt=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(Jt=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,r=n.event,i=n.eventOff,o=n.possibleCustomEvents,a=n.possibleCustomEventsOff,s=Wt(),l=$t(e,"data-event"),u=$t(e,"data-event-off");null!=r&&(l[r]=!0),null!=i&&(u[i]=!0),o.split(" ").forEach((function(e){return l[e]=!0})),a.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(s);var c=this.bodyModeListeners={};for(var f in null==r&&(c.mouseover=Bt.bind(this,this.showTooltip,{}),c.mousemove=Bt.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=Bt.bind(this,this.hideTooltip,{})),l)c[f]=Bt.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||i;Ft.call(t,n,e)}),{customEvent:!0});for(var p in u)c[p]=Bt.bind(this,this.hideTooltip,{customEvent:!0});for(var d in c)s.addEventListener(d,c[d])},e.prototype.unbindBodyListener=function(e){e=e||Wt();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((Qt=Zt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Mt(this,Nt(t).call(this,e))).state={uuid:e.uuid||"t"+Et(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:Yt(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tt(e,t)}(t,e),St(t,null,[{key:"propTypes",get:function(){return{uuid:gt.a.string,children:gt.a.any,place:gt.a.string,type:gt.a.string,effect:gt.a.string,offset:gt.a.object,multiline:gt.a.bool,border:gt.a.bool,textColor:gt.a.string,backgroundColor:gt.a.string,borderColor:gt.a.string,arrowColor:gt.a.string,insecure:gt.a.bool,class:gt.a.string,className:gt.a.string,id:gt.a.string,html:gt.a.bool,delayHide:gt.a.number,delayUpdate:gt.a.number,delayShow:gt.a.number,event:gt.a.string,eventOff:gt.a.string,isCapture:gt.a.bool,globalEventOff:gt.a.string,getContent:gt.a.any,afterShow:gt.a.func,afterHide:gt.a.func,overridePosition:gt.a.func,disable:gt.a.bool,scrollHide:gt.a.bool,resizeHide:gt.a.bool,wrapper:gt.a.string,bodyMode:gt.a.bool,possibleCustomEvents:gt.a.string,possibleCustomEventsOff:gt.a.string,clickable:gt.a.bool}}}]),St(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.props.id,t=this.getTargetArray(e),n=[];if(t.forEach((function(e){for(var t=e.parentNode;t.parentNode&&!t.host;)t=t.parentNode;var r=t.querySelector("head");n.push(r||t)})),n.length){var r=document.createElement("style");r.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',r.setAttribute("data-react-tooltip","true"),n.filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(e){e.querySelector("style[data-react-tooltip]")||e.appendChild(r)}))}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var r=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(r,'"]')}else t="[data-tip]:not([data-for])";return Kt(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(Kt(e.shadowRoot.querySelectorAll(t)))})),n.concat(Kt(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff,i=t.isCapture,o=this.getTargetArray(n);o.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(o):o.forEach((function(t){var n=e.isCapture(t),r=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),"float"===r&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n))})),r&&(window.removeEventListener(r,this.hideTooltip),window.addEventListener(r,this.hideTooltip,i)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),r&&window.removeEventListener(r,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,r=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),Xt(this.state.originTooltip,r,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,r=n.multiline,i=n.getContent,o=e.currentTarget.getAttribute("data-tip"),a=e.currentTarget.getAttribute("data-multiline")||r||!1,s=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=s?"solid":this.getEffect(e.currentTarget),f=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},p=zt(e,e.currentTarget,this.tooltipRef,u,u,c,f);p.position&&this.props.overridePosition&&(p.position=this.props.overridePosition(p.position,e,e.currentTarget,this.tooltipRef,u,u,c,f));var d=p.isNewState?p.newState.place:u;this.clearTimer();var h=e.currentTarget,m=this.state.show?h.getAttribute("data-delay-update")||this.props.delayUpdate:0,v=this,g=function(){v.setState({originTooltip:o,isMultiline:a,desiredPlace:u,place:d,type:h.getAttribute("data-type")||v.props.type||"dark",customColors:{text:h.getAttribute("data-text-color")||v.props.textColor||null,background:h.getAttribute("data-background-color")||v.props.backgroundColor||null,border:h.getAttribute("data-border-color")||v.props.borderColor||null,arrow:h.getAttribute("data-arrow-color")||v.props.arrowColor||null},effect:c,offset:f,html:(h.getAttribute("data-html")?"true"===h.getAttribute("data-html"):v.props.html)||!1,delayShow:h.getAttribute("data-delay-show")||v.props.delayShow||0,delayHide:h.getAttribute("data-delay-hide")||v.props.delayHide||0,delayUpdate:h.getAttribute("data-delay-update")||v.props.delayUpdate||0,border:(h.getAttribute("data-border")?"true"===h.getAttribute("data-border"):v.props.border)||!1,extraClass:h.getAttribute("data-class")||v.props.class||v.props.className||"",disable:(h.getAttribute("data-tip-disable")?"true"===h.getAttribute("data-tip-disable"):v.props.disable)||!1,currentTarget:h},(function(){l&&v.addScrollListener(v.state.currentTarget),v.updateTooltip(e),i&&Array.isArray(i)&&(v.intervalUpdateContent=setInterval((function(){if(v.mount){var e=v.props.getContent,t=Xt(o,"",e[0](),a),n=v.isEmptyTip(t);v.setState({isEmptyTip:n}),v.updatePosition()}}),i[1]))}))};m?this.delayReshow=setTimeout(g,m):g()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,r=n.delayShow,i=n.disable,o=this.props.afterShow,a=this.getTooltipContent(),s=parseInt(r,10),l=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(a)&&!i){var u=function(){if(Array.isArray(a)&&a.length>0||a){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:l,show:!0},(function(){t.updatePosition(),n&&o&&o(e)}))}};clearTimeout(this.delayShowLoop),r?this.delayShowLoop=setTimeout(u,s):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},i=this.state.disable,o=r.isScroll,a=o?0:this.state.delayHide,s=this.props.afterHide,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!i){if(t){var u=this.getTargetArray(this.props.id),c=u.some((function(t){return t===e.currentTarget}));if(!c||!this.state.show)return}var f=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&s&&s(e)})))};this.clearTimer(),a?this.delayHideLoop=setTimeout(f,parseInt(a,10)):f()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,r=t.currentTarget,i=t.place,o=t.desiredPlace,a=t.effect,s=t.offset,l=this.tooltipRef,u=zt(n,r,l,i,o,a,s);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,n,r,l,i,o,a,s)),u.isNewState)return this.setState(u.newState,(function(){e.updatePosition()}));l.style.left=u.position.left+"px",l.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,o=n.html,a=n.ariaProps,s=n.disable,l=this.getTooltipContent(),u=this.isEmptyTip(l),c=tn(this.state.uuid,this.state.customColors,this.state.type,this.state.border),f="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||s||u?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),p=this.props.wrapper;t.supportedWrappers.indexOf(p)<0&&(p=t.defaultProps.wrapper);var d=[f,r].filter(Boolean).join(" ");if(o){var h="".concat(l,"\n<style>").concat(c,"</style>");return i.a.createElement(p,At({className:"".concat(d),id:this.props.id,ref:function(t){return e.tooltipRef=t}},a,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:h}}))}return i.a.createElement(p,At({className:"".concat(d),id:this.props.id},a,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),i.a.createElement("style",{dangerouslySetInnerHTML:{__html:c}}),l)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,r=Yt(e);return Object.keys(r).some((function(e){return r[e]!==n[e]}))?Pt({},t,{ariaProps:r}):null}}]),t}(i.a.Component),Ot(Zt,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),Ot(Zt,"supportedWrappers",["div","span"]),Ot(Zt,"displayName","ReactTooltip"),(nn=Jt=Qt).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.removedNodes.length;i++)if(r.removedNodes[i]===e.state.currentTarget)return void e.hideTooltip()}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},Jt=void(nn.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||Jt))||Jt)||Jt)||Jt)||Jt)||Jt)||Jt,on=function(e){for(var t=[],n=1;n<50;n++)t.push(i.a.createElement("div",{key:n},50*n));var r=e.wid,o=e.app,a=function(e){var t=l()(B),n=e.state.storedEdits;for(var r in n)-1===t.indexOf(r)&&t.push(r);return t}(o),s=[],u=o.state,c=u.currentMq,f=u.mqOrder,p=l()(f);return a.forEach((function(e){-1===p.indexOf(e)&&p.push(e)})),p.forEach((function(e,t){var n=e===c?"cur":"";if(e.indexOf("max-width")>-1||e.indexOf("min-width")>-1){var r=e.split("min-width");r=r[1]?r[1].split(")")[0]:"";var o=e.split("max-width");o=o[1]?o[1].split(")")[0]:"",r&&(r=parseInt(r.trim().split(":").join("").split(" ").join(""))),o&&(o=parseInt(o.trim().split(":").join("").split(" ").join("")));var a=r&&o?o-r:o||"100%",l=r||0,u=6*(t-1);s.push(i.a.createElement("div",{"data-name":e,"data-tip":e,className:n,style:{width:a,left:l,bottom:u},key:t},i.a.createElement(rn,{place:"top",effect:"solid"})))}})),i.a.createElement("div",{id:"iframeBottomBar",style:{minWidth:r}},i.a.createElement("div",{style:{width:r}},i.a.createElement("div",{className:"mqRulers"},s),i.a.createElement("div",{className:"rulers"},t)))},an=function(e){return function(){var t=[],n=e.el,r=e.app,o=r.state.heroFrame,a=n.el,s=[];if(a){var l=a.getAttribute("editableclass"),u={Selectors:{},Custom:{}};if(l){var c=a.getAttribute("editablesuggestion")?a.getAttribute("editablesuggestion").split(" | "):[];if(l.split(" | ").forEach((function(e,t){var n=c[t]?c[t]:e;u.Selectors[e]={s:e,d:n,l:e}})),a.getAttribute("custom_editableclass"))a.getAttribute("custom_editableclass").split(" | ").forEach((function(e){u.Selectors[e]||(u.Custom[e]={s:e,d:e,l:e})}));var f=ie(a);for(var p in u)for(var d in u[p]){var h=Y(r,d,c[0]);for(var m in h)for(var v in u[p])v===m&&delete u[p][v];u[p][d].s===f&&delete u[p][d]}for(var g in u){var y=u[g],b=Object.keys(y).length>0?[i.a.createElement("label",{key:g},g)]:[];for(var _ in y){var w=y[_],x=Ve(w.s),k=o.document.querySelectorAll(x).length;-1===s.indexOf(x)&&(s.push(x),b.push(i.a.createElement("div",{className:"as",key:x},J(x,x,w.d,r,!0,w.l),i.a.createElement("span",{className:"cnt"},k))))}t.push(b)}}}return t}()},sn=n(4),ln=n.n(sn),un=!("undefined"==typeof window||!window.document||!window.document.createElement),cn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function fn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var dn=function(e){function t(){return fn(this,t),pn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),cn(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return un?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),a.a.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(i.a.Component);dn.propTypes={children:gt.a.node.isRequired,node:gt.a.any};var hn=dn,mn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var yn=function(e){function t(){return vn(this,t),gn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),mn(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){this.renderPortal()}},{key:"componentWillUnmount",value:function(){a.a.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(e){this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var t=this.props.children;"function"==typeof this.props.children.type&&(t=i.a.cloneElement(this.props.children)),this.portal=a.a.unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(i.a.Component),bn=yn;yn.propTypes={children:gt.a.node.isRequired,node:gt.a.any};var _n=a.a.createPortal?hn:bn,wn=function(e){var t=e.selector,n=e.heroFrame;return function(e){var t="";if(e&&qe(e)){var r=n.document.querySelectorAll(e),o=[];r.length>0&&(r.forEach((function(e,t){var n=e.getBoundingClientRect(),r=n.top,a=n.left,s=n.height,l=n.width;o.push(i.a.createElement("div",{key:t,style:{top:r,left:a,height:s,width:l}}))})),t=i.a.createElement(_n,{node:document&&document.getElementById("frameWrap")},i.a.createElement("div",{id:"addSelectorMask"},o)))}return t}(t)};function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var En=function(e){var t=e.app,n=e.closeMe,o=t.state,a=t.update,s=o.currentMq,l=o.lastWorking,u=o.storedEdits,c=o.currentEl,f=o.editingSnippet,p=o.heroFrame,d=Object(r.useState)(c),h=E()(d,2),m=h[0],v=h[1];Object(r.useEffect)((function(){v(c)}),[c]);var g=function(e){if(qe(e=Ve(e).trim())||f){var n=l.before,r=l.after,i=l.code,o=kn({},u);n=n.trim()+"\n",r=r.trim()+"\n";var p=n+e+i+r;if(o[s]=p,f)for(var d in o){var h=o[d].split(c).join(e);o[d]=h}a({storedEdits:o},(function(n){var r=kn(kn({},t),{},{state:n});qe(e)?se(e,r):Ce(e,r)})),ut(t,"selector","modifies")}else a({heroAlert:{title:"Sorry, bad selector",content:"Sorry, "+e+" is not a valid CSS Selector.",type:"error"}})};return i.a.createElement("div",{className:"changeSelector"},function(){var e=0,t="";try{e=p.document.querySelectorAll(m).length}catch(e){}return m&&e>0&&(t=i.a.createElement(wn,{selector:m,heroFrame:p})),t}(),i.a.createElement("input",{autoFocus:!0,spellCheck:!1,type:"text",className:"ce",value:m,onChange:function(e){v(e.target.value)},onKeyUp:function(e){27===e.keyCode?(g(c+" "),n(!1)):13===e.keyCode&&(g(m),n(!1))}}),i.a.createElement("div",{className:"helpers"},function(){var e=0;try{e=p.document.querySelectorAll(m).length}catch(e){}return i.a.createElement("div",{className:"cnt"},e)}(),i.a.createElement("span",{className:"btn secondary",onClick:function(){return n(!1)}},"Cancel"),i.a.createElement("span",{className:"btn primary",onClick:function(){g(m),n(!1)}},"Submit")))};function Cn(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var On,An={};function jn(e,t){function n(t){return(e.match(t)||[]).length}e=e||"";for(var r=n(/\.[\w-_]+\b/g),i=n(/#[\w-_]+\b/g),o=0,a=e.match(/\[[^\]]*\b[\w-_]+\b[^\]]*\]/g)||[],s=0;s<a.length;++s)o+=(a[s].match(/\b[\w-_]+\b/g)||[]).length;var l=[0,0,0,0];return l[0]=t?1:0,l[1]=i,l[2]=n(/\[[^\]]+\]/g)+r,l[3]=n(/\b[\w-_]+\b/g)-i-r-o,l}function Pn(e){var t=!0;return D.forEach((function(n){n.indexOf("!")>-1?(n=n.replace("!",""),e===n&&(t=!1)):e.indexOf(n)>-1&&(t=!1)})),t}let Nn,Tn;function Mn(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";const n={root:document.body,idName:e=>!0,className:e=>!0,tagName:e=>!0,attr:(e,t)=>!1,seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};Nn=Object.assign(Object.assign({},n),t),Tn=function(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return e;if(e===t.root)return e.ownerDocument;return e}(Nn.root,n);let r=Dn(e,On.All,()=>Dn(e,On.Two,()=>Dn(e,On.One)));if(r){const t=Xn(function*e(t,n,r={counter:0,visited:new Map}){if(t.length>2&&t.length>Nn.optimizedMinLength)for(let i=1;i<t.length-1;i++){if(r.counter>Nn.maxNumberOfTries)return;r.counter+=1;const o=[...t];o.splice(i,1);const a=Fn(o);if(r.visited.has(a))return;Rn(o)&&Yn(o,n)&&(yield o,r.visited.set(a,!0),yield*e(o,n,r))}}(r,e));return t.length>0&&(r=t[0]),Fn(r)}throw new Error("Selector was not found.")}function Dn(e,t,n){let r=null,i=[],o=e,a=0;for(;o&&o!==Nn.root.parentElement;){let e=qn(Bn(o))||qn(...$n(o))||qn(...Wn(o))||qn(zn(o))||[{name:"*",penalty:3}];const s=Hn(o);if(t===On.All)s&&(e=e.concat(e.filter(Un).map(e=>Vn(e,s))));else if(t===On.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Un).map(e=>Vn(e,s))));else if(t===On.One){const[t]=e=e.slice(0,1);s&&Un(t)&&(e=[Vn(t,s)])}for(let t of e)t.level=a;if(i.push(e),i.length>=Nn.seedMinLength&&(r=Ln(i,n),r))break;o=o.parentElement,a++}return r||(r=Ln(i,n)),r}function Ln(e,t){const n=Xn(function*e(t,n=[]){if(t.length>0)for(let r of t[0])yield*e(t.slice(1,t.length),n.concat(r));else yield n}(e));if(n.length>Nn.threshold)return t?t():null;for(let e of n)if(Rn(e))return e;return null}function Fn(e){let t=e[0],n=t.name;for(let r=1;r<e.length;r++){const i=e[r].level||0;n=t.level===i-1?`${e[r].name} > ${n}`:`${e[r].name} ${n}`,t=e[r]}return n}function In(e){return e.map(e=>e.penalty).reduce((e,t)=>e+t,0)}function Rn(e){switch(Tn.querySelectorAll(Fn(e)).length){case 0:throw new Error("Can't select any node with this selector: "+Fn(e));case 1:return!0;default:return!1}}function Bn(e){const t=e.getAttribute("id");return t&&Nn.idName(t)?{name:"#"+er(t,{isIdentifier:!0}),penalty:0}:null}function $n(e){return Array.from(e.attributes).filter(e=>Nn.attr(e.name,e.value)).map(e=>({name:"["+er(e.name,{isIdentifier:!0})+'="'+er(e.value)+'"]',penalty:.5}))}function Wn(e){return Array.from(e.classList).filter(Nn.className).map(e=>({name:"."+er(e,{isIdentifier:!0}),penalty:1}))}function zn(e){const t=e.tagName.toLowerCase();return Nn.tagName(t)?{name:t,penalty:2}:null}function Hn(e){const t=e.parentNode;if(!t)return null;let n=t.firstChild;if(!n)return null;let r=0;for(;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}function Vn(e,t){return{name:e.name+`:nth-child(${t})`,penalty:e.penalty+1}}function Un(e){return"html"!==e.name&&!e.name.startsWith("#")}function qn(...e){const t=e.filter(Gn);return t.length>0?t:null}function Gn(e){return null!=e}function Xn(e){return Array.from(e).sort((e,t)=>In(e)-In(t))}function Yn(e,t){return Tn.querySelector(Fn(e))===t}An.cssPath=function(e,t,n){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var r=[],i=e;i;){var o=An._cssPathStep(i,!!t,i===e,n);if(!o)break;if(r.push(o),o.optimized)break;i=i.parentNode}return r.reverse(),r.join(" > ")},An._cssPathStep=function(e,t,n,r){if(e.nodeType!==Node.ELEMENT_NODE)return null;var i=e.getAttribute("id");if(t){if(i)return new An.DOMNodePathStep(u(i),!0);var o=e.nodeName.toLowerCase();if("body"===o||"head"===o||"html"===o)return new An.DOMNodePathStep(e.nodeName.toLowerCase(),!0)}var a=e.nodeName.toLowerCase();if(i)return new An.DOMNodePathStep(a.toLowerCase()+u(i),!0);var s=e.parentNode;if(!s||s.nodeType===Node.DOCUMENT_NODE)return new An.DOMNodePathStep(a.toLowerCase(),!0);function l(e){var t=e.getAttribute("class");return t?t.split(/\s+/g).filter(Boolean).map((function(e){return"$"+e})):[]}function u(e){return"#"+c(e)}function c(e){if(/^-?[a-zA-Z_][a-zA-Z0-9_-]*$/.test(e))return e;var t=/^(?:[0-9]|-[0-9-]?)/.test(e),n=e.length-1;return e.replace(/./g,(function(e,r){return t&&0===r||!function(e){return!!/[a-zA-Z0-9_-]/.test(e)||e.charCodeAt(0)>=160}(e)?function(e,t){return"\\"+function(e){var t=e.charCodeAt(0).toString(16);1===t.length&&(t="0"+t);return t}(e)+(t?"":" ")}(e,r===n):e}))}for(var f=l(e),p=!1,d=!1,h=-1,m=s.children,v=0;(-1===h||!d)&&v<m.length;++v){var g=m[v];if(g!==e){if(!d&&g.nodeName.toLowerCase()===a.toLowerCase()){p=!0;var y=f,b=0;for(var _ in y)++b;if(0!==b)for(var w=l(g),x=0;x<w.length;++x){var k=w[x];if(!y.indexOf(k)&&(delete y[k],!--b)){d=!0;break}}else d=!0}}else h=v}var E=a.toLowerCase();if(n&&"input"===a.toLowerCase()&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(E+='[type="'+e.getAttribute("type")+'"]'),d&&r)E+=":nth-child("+(h+1)+")";else if(p)for(var C in f)E+="."+c(f[C].substr(1));return new An.DOMNodePathStep(E,!1)},An.DOMNodePathStep=function(e,t){this.value=e,this.optimized=t||!1},An.DOMNodePathStep.prototype={toString:function(){return this.value}},function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(On||(On={}));const Kn=/[ -,\.\/:-@\[-\^`\{-~]/,Jn=/[ -,\.\/:-@\[\]\^`\{-~]/,Zn=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Qn={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function er(e,t={}){const n=Object.assign(Object.assign({},Qn),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");const r="double"==n.quotes?'"':"'",i=n.isIdentifier,o=e.charAt(0);let a="",s=0;const l=e.length;for(;s<l;){const t=e.charAt(s++);let o=t.charCodeAt(0),u=void 0;if(o<32||o>126){if(o>=55296&&o<=56319&&s<l){const t=e.charCodeAt(s++);56320==(64512&t)?o=((1023&o)<<10)+(1023&t)+65536:s--}u="\\"+o.toString(16).toUpperCase()+" "}else u=n.escapeEverything?Kn.test(t)?"\\"+t:"\\"+o.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(t)?"\\"+o.toString(16).toUpperCase()+" ":"\\"==t||!i&&('"'==t&&r==t||"'"==t&&r==t)||i&&Jn.test(t)?"\\"+t:t;a+=u}return i&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(Zn,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+a+r:a}function tr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rr(e){var t=window.frames["csshero-iframe-main-page"],n=["page","post","catgory","archive","menu","item","recent"],r="body";try{r=Mn(e,{root:t.document.body,seedMinLength:5,threshold:2e3,idName:function(e){var t,r=!0,i=tr(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;(e.startsWith(o+"-")||e.startsWith(o+"_"))&&(r=!1)}}catch(e){i.e(e)}finally{i.f()}return r},className:function(e){return function(e){for(var t=!0,n=["_","-"],r=0,i=["search","type","format","status","column","col","grid","span","category","page[n]","post[n]","!clearfix","!clear","align","has","locale","!no-rocket","!aos","menu[n]","item","id[n]","template","type"];r<i.length;r++){var o=i[r];if(o.startsWith("!"))"!"+e===o&&(t=!1);else{var a=!1;o.indexOf("[n]")>-1&&(o=o.replace("[n]",""),a=!0);var s,l=Cn(n);try{for(l.s();!(s=l.n()).done;){var u=s.value;if(e.indexOf(o+u)>-1)if(a){var c=e.split(o+u)[1];isNaN(parseInt(c))||(t=!1)}else t=!1}}catch(e){l.e(e)}finally{l.f()}}}return t}(e)}})}catch(e){}if(r.indexOf(":nth-child(")>-1){var i=r.split(":nth-child(");r=i[0]+i[1].split(")")[1]}var o=[];return r.split(" ").forEach((function(e){var n=e;try{1===t.document.querySelectorAll(e).length&&t.document.body.matches(e)&&(n="body")}catch(e){}o.push(n)})),o.join(" ")}function ir(e){var t=e.getAttribute("editableclass"),n=e.getAttribute("editablesuggestion");if(e&&!e.getAttribute("heroProcessed")&&!e.matches(".no-rocket *")&&!e.matches(".no-rocket")){var r=function(e){return[rr(e),An.cssPath(e,!0),An.cssPath(e,!0,!0)]}(e),i=or(e),o=st([].concat(l()(r),l()(i))).join(" | ");o=t?t+" | "+o:o;var a=n?n+" | "+o:o;e.setAttribute("editableclass",o),e.setAttribute("editablesuggestion",a),e.setAttribute("heroProcessed",!0)}}function or(e){var t=[],n=ae().filter((function(t){var n=!1;try{n=e.matches(t.el)}catch(e){}return n}));if(n){var r=function(e,t){var n=[],r=function(r){var i=t[r].el.split(","),o=e.getAttribute("id");if(o){var a=!0;M.forEach((function(e){o.indexOf(e)>-1&&(a=!1)})),a&&i.push("#"+o)}for(var s in e.classList.forEach((function(e){return i.push("."+e)})),i){var l=i[s].trim().replace(/"/g,"").replace(/'/g,"").replace(/.js/g,"");try{l&&e.matches(l)&&Pn(l)&&("*"===(l=l.trim())[l.length-1]&&(l=l.slice(0,-1)+e.tagName.toLowerCase()),n.push(l))}catch(e){console.log("problems with "+l+" selector, skipping it")}}};for(var i in t)r(i);return e&&0===n.length&&n.push(e.tagName),n}(e,n);r=function(e,t){e=st(e);var n=t.tagName.toLowerCase(),r=t.parentElement;if(r){r.getAttribute("editableclass")||or(r);var i=!1;if(e.forEach((function(e){i||e===n||e==="body "+n||(i=!0)})),!i){var o=r.getAttribute("editableclass");o=o?o.split(" | ")[0]:"",e.push(o+" "+n)}}return e}(r,e);var i=[];for(var o in r){var a=r[o],s=parseInt(jn(a).join(""));Pn(a)&&i.push({el:a,spec:s})}i.sort((function(e,t){return e.spec-t.spec}));var l=[];for(var u in i)i[u].el&&l.push(i[u].el);if(l.length>0){var c=l[l.length-1];if(parseInt(jn(c).join(""))<2){var f=function(e,t){var n=e.closest("*[original_editableclass]"),r="",i="";if(n&&n.length){var o=n.getAttribute("original_editableclass");r=(r=st(r=(r=o+" /// "+t).split(" /// "))).join(" "),i=parseInt(jn(r).join(""))}return{e:r,s:i}}(e,c).e;f&&l.unshift(f),l.sort((function(e,t){return parseInt(jn(e).join(""))-parseInt(jn(t).join(""))}))}var p=st(l);t=p=p.reverse()}}return t}var ar={Spacings:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("path",{className:"light",d:"M13,14v12h14V14H13z M25,24H15v-8h10V24z"}),i.a.createElement("path",{d:"M15,24h10v-8H15V24z M17,18h6v4h-6V18z"})),Filters:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("path",{d:"M27,20c0-1.105-0.895-2-2-2c-0.078,0-0.151,0.014-0.227,0.023c0.059-0.047,0.122-0.089,0.177-0.144 c0.781-0.781,0.781-2.047,0-2.828c-0.781-0.781-2.047-0.781-2.828,0c-0.055,0.055-0.097,0.117-0.144,0.177 C21.986,15.151,22,15.078,22,15c0-1.105-0.895-2-2-2s-2,0.895-2,2c0,0.078,0.014,0.151,0.023,0.227 c-0.047-0.059-0.089-0.122-0.144-0.177c-0.781-0.781-2.047-0.781-2.828,0c-0.781,0.781-0.781,2.047,0,2.828 c0.055,0.055,0.117,0.097,0.177,0.144C15.151,18.014,15.078,18,15,18c-1.105,0-2,0.895-2,2c0,1.105,0.895,2,2,2 c0.078,0,0.151-0.014,0.227-0.023c-0.059,0.047-0.122,0.089-0.176,0.144c-0.781,0.781-0.781,2.047,0,2.828 c0.781,0.781,2.047,0.781,2.828,0c0.055-0.055,0.097-0.117,0.144-0.177C18.014,24.849,18,24.922,18,25c0,1.105,0.895,2,2,2 s2-0.895,2-2c0-0.078-0.014-0.151-0.023-0.227c0.047,0.059,0.089,0.122,0.144,0.177c0.781,0.781,2.047,0.781,2.828,0 c0.781-0.781,0.781-2.047,0-2.828c-0.055-0.055-0.117-0.097-0.176-0.144C24.849,21.986,24.922,22,25,22C26.105,22,27,21.105,27,20z M20,24v-8c2.209,0,4,1.791,4,4C24,22.209,22.209,24,20,24z"})),"Border-Radius":i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("g",null,i.a.createElement("path",{className:"light",d:"M18,20c0-1.105,0.895-2,2-2h6v-3.438h-8l-2.625,3.188V26H18V20z"}),i.a.createElement("path",{d:"M20,14c-3.314,0-6,2.686-6,6v6h1h1h1v-2h-1v-4c0-2.206,1.794-4,4-4h4v1h2v-1v-1v-1H20z"}),i.a.createElement("rect",{x:"18",y:"24",width:"2",height:"2"}),i.a.createElement("rect",{x:"21",y:"24",width:"2",height:"2"}),i.a.createElement("rect",{x:"24",y:"24",width:"2",height:"2"}),i.a.createElement("rect",{x:"24",y:"21",width:"2",height:"2"}),i.a.createElement("rect",{x:"24",y:"18",width:"2",height:"2"}))),Typography:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("polygon",{points:"16,15 16,17 19.004,17 19.004,25 20.996,25 20.996,17 24,17 24,15 "})),Transform:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("g",null,i.a.createElement("rect",{x:"11",y:"16.5",className:"light",fill:"#A52AFF",width:"11",height:"11"}),i.a.createElement("rect",{x:"17",y:"22",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"17",y:"19",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"17",y:"16",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"17",y:"13",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"20",y:"13",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"23",y:"13",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"26",y:"13",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"26",y:"16",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"26",y:"19",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"26",y:"22",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"23",y:"22",fill:"#3256E3",width:"2",height:"2"}),i.a.createElement("rect",{x:"20",y:"22",fill:"#3256E3",width:"2",height:"2"}))),Borders:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("g",null,i.a.createElement("rect",{x:"22",y:"24",width:"2",height:"2"}),i.a.createElement("rect",{x:"25",y:"24",width:"2",height:"2"}),i.a.createElement("rect",{x:"25",y:"21",width:"2",height:"2"}),i.a.createElement("rect",{x:"25",y:"18",width:"2",height:"2"}),i.a.createElement("polygon",{points:"13,14 13,15 13,16 13,17 15,17 15,16 25,16 25,17 27,17 27,16 27,15 27,14 "}),i.a.createElement("rect",{x:"13",y:"18",width:"2",height:"2"}),i.a.createElement("rect",{x:"13",y:"21",width:"2",height:"2"}),i.a.createElement("rect",{x:"13",y:"24",width:"2",height:"2"}),i.a.createElement("rect",{x:"16",y:"24",width:"2",height:"2"}),i.a.createElement("rect",{x:"19",y:"24",width:"2",height:"2"}))),Background:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("path",{d:"M25.97,14H14.03C13.461,14,13,14.463,13,15.034v9.933C13,25.537,13.461,26,14.03,26H25.97 c0.569,0,1.03-0.463,1.03-1.034v-9.933C27,14.463,26.539,14,25.97,14z M25,24H15l3-3l2,2l4-4l1,1V24z"})),Extra:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("polygon",{points:"20,13.818 21.841,18.118 26.5,18.541 22.979,21.621 24.017,26.182 20,23.785 15.983,26.182 17.021,21.621 13.5,18.541 18.159,18.118 "})),"List Styles":i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("rect",{x:"14",y:"19",width:"2",height:"2"}),i.a.createElement("rect",{x:"14",y:"15",width:"2",height:"2"}),i.a.createElement("rect",{x:"14",y:"23",width:"2",height:"2"}),i.a.createElement("rect",{x:"18",y:"23",width:"8",height:"2"}),i.a.createElement("rect",{x:"18",y:"19",width:"8",height:"2"}),i.a.createElement("rect",{x:"18",y:"15",width:"8",height:"2"})),Measures:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("rect",{x:"14",y:"14",className:"light",width:"12",height:"12"}),i.a.createElement("g",null,i.a.createElement("polygon",{points:"16,24 16,20 14,20 14,26 20,26 20,24"}),i.a.createElement("polygon",{points:"20,14 20,16 24,16 24,20 26,20 26,14"}))),Position:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("rect",{x:"14",y:"14",className:"light",width:"12",height:"12"}),i.a.createElement("polygon",{points:"23,19 21,19 21,17 19,17 19,19 17,19 17,21 19,21 19,23 21,23 21,21 23,21 "}),i.a.createElement("rect",{x:"14",y:"14",width:"2",height:"2"}),i.a.createElement("rect",{x:"24",y:"14",width:"2",height:"2"}),i.a.createElement("rect",{x:"24",y:"24",width:"2",height:"2"}),i.a.createElement("rect",{x:"14",y:"24",width:"2",height:"2"})),"mq-All":i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px"},i.a.createElement("g",null,i.a.createElement("rect",{x:"25",y:"18",width:"2",height:"4",opacity:"0.3"}),i.a.createElement("path",{d:"M23,16v10h6V16H23z M25,25v-1h2v1H25z M28,23h-4v-6h4V23z"})),i.a.createElement("polygon",{points:"13,13 12,13 12,14 12,21 10,21 10,23 22,23 22,21 13,21 13,14 25,14 25,15 26,15 26,14 26,13 "}),i.a.createElement("rect",{x:"14",y:"15",width:"8",height:"5",opacity:"0.3"})),"mq-Tablet":i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px"},i.a.createElement("rect",{opacity:"0.3",x:"17",y:"15",width:"6",height:"7"}),i.a.createElement("path",{d:"M15,13v14h10V13H15z M19,26v-2h2v2H19z M24,23h-8v-9h8V23z"})),"mq-Mobile":i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px"},i.a.createElement("rect",{x:"19",y:"17",width:"2",height:"4",opacity:"0.3"}),i.a.createElement("path",{d:"M17,15v10h6V15H17z M19,24v-1h2v1H19z M22,22h-4v-6h4V22z"})),"mq-Custom":i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px"},i.a.createElement("polygon",{points:"23,21 23,15 17,15 17,22 22,22 22,21 ",opacity:"0.3"}),i.a.createElement("polygon",{points:"19,26 19,24 21,24 21,23 16,23 16,14 24,14 24,21 25,21 25,13 15,13 15,27 21,27 21,26 "}),i.a.createElement("polygon",{points:"27,22 27,23 27,24 27,25 27,26 27,27 27,28 26,28 25,28 24,28 23,28 23,29 28,29 28,22 "}),i.a.createElement("rect",{x:"23",y:"22",width:"1",height:"1"}),i.a.createElement("polygon",{points:"25,25 25,26 26,26 27,26 27,25 26,25 "}),i.a.createElement("polygon",{points:"25,23 26,23 27,23 27,22 25,22 "}),i.a.createElement("polygon",{points:"24,28 24,27 23,27 22,27 22,28 23,28 "}),i.a.createElement("polygon",{points:"23,25 23,24 24,24 24,23 23,23 22,23 22,27 23,27 23,26 "}),i.a.createElement("rect",{x:"24",y:"22",width:"1",height:"1"})),smallA:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("g",null,i.a.createElement("path",{d:"M1.98,10.02c0.888,0.888,2.328,0.888,3.216,0l1.608-1.608L6.402,8.01L6,7.608L4.392,9.216\t\tc-0.443,0.443-1.165,0.443-1.608,0s-0.443-1.165,0-1.608L4.392,6L3.99,5.598L3.588,5.196L1.98,6.804C1.092,7.692,1.092,9.132,1.98,10.02z"}),i.a.createElement("path",{d:"M6.804,1.98L5.196,3.588L5.598,3.99L6,4.392l1.608-1.608c0.443-0.443,1.165-0.443,1.608,0s0.443,1.165,0,1.608L7.608,6L8.01,6.402l0.402,0.402l1.608-1.608c0.888-0.888,0.888-2.328,0-3.216 C9.132,1.092,7.692,1.092,6.804,1.98z"})),i.a.createElement("path",{d:"M7.206,4.794c0.222,0.222,0.222,0.582,0,0.804L5.598,7.206c-0.222,0.222-0.582,0.222-0.804,0l0,0 c-0.222-0.222-0.222-0.582,0-0.804l1.608-1.608C6.624,4.572,6.984,4.572,7.206,4.794L7.206,4.794z"})),smallH:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("path",{d:"M8,2.5c-0.381,0-0.69,0.309-0.69,0.69V5.31H4.69V3.19C4.69,2.809,4.381,2.5,4,2.5S3.31,2.809,3.31,3.19V8.81 C3.31,9.191,3.619,9.5,4,9.5s0.69-0.309,0.69-0.69V6.69H7.31V8.81C7.31,9.191,7.619,9.5,8,9.5s0.69-0.309,0.69-0.69V3.19 C8.69,2.809,8.381,2.5,8,2.5z"})),smallDIV:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("path",{d:"M9,3H3H2v1v4v1h1h6h1V8V4V3H9z M9,8H3V4h6V8z"})),smallSECTION:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("g",null,i.a.createElement("rect",{x:"3",y:"1",width:"1",height:"1"}),i.a.createElement("rect",{x:"1",y:"1",width:"1",height:"1"}),i.a.createElement("rect",{x:"5",y:"1",width:"1",height:"1"}),i.a.createElement("rect",{x:"7",y:"1",width:"1",height:"1"}),i.a.createElement("rect",{x:"9",y:"1",width:"1",height:"1"}),i.a.createElement("path",{d:"M9,4H2V3H1v1v1v2v1v1h1V8h7v1h1V8V7V5V4V3H9V4z M2,7V5h7v2H2z"}),i.a.createElement("rect",{x:"3",y:"10",width:"1",height:"1"}),i.a.createElement("rect",{x:"5",y:"10",width:"1",height:"1"}),i.a.createElement("rect",{x:"7",y:"10",width:"1",height:"1"}),i.a.createElement("rect",{x:"9",y:"10",width:"1",height:"1"}),i.a.createElement("rect",{x:"1",y:"10",width:"1",height:"1"}))),smallUL:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("g",null,i.a.createElement("polygon",{points:"8,7 7,7 6,7 6,8 7,8 8,8 9,8 10,8 10,7 9,7 \t"}),i.a.createElement("path",{d:"M3.5,6C2.672,6,2,6.672,2,7.5S2.672,9,3.5,9S5,8.328,5,7.5S4.328,6,3.5,6z M3.5,8C3.224,8,3,7.776,3,7.5 C3,7.224,3.224,7,3.5,7S4,7.224,4,7.5C4,7.776,3.776,8,3.5,8z"}),i.a.createElement("polygon",{points:"9,3 8,3 7,3 6,3 6,4 7,4 8,4 9,4 10,4 10,3"}),i.a.createElement("path",{d:"M3.5,2C2.672,2,2,2.672,2,3.5S2.672,5,3.5,5S5,4.328,5,3.5S4.328,2,3.5,2z M3.5,4C3.224,4,3,3.776,3,3.5 C3,3.224,3.224,3,3.5,3S4,3.224,4,3.5C4,3.776,3.776,4,3.5,4z"}))),smallBODY:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px",viewBox:"0 0 12 12"},i.a.createElement("path",{fill:"#0057FF",d:"M10,1H8H7H6H5H4H3H2H1v1v1v1v1v1v1v1v2v1h1h1h1h1h1h1h1h2h1v-1V8V7V6V5V4V3V2V1H10z M7,2v1H6V2H7z M5,2v1H4\nV2H5z M2,2h1v1H2V2z M10,5v1v1v1v2H8H7H6H5H4H3H2V8V7V6V5V4h1h1h1h1h1h1h2V5z"})),smallSPAN:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px",viewBox:"0 0 12 12"},i.a.createElement("g",null," ",i.a.createElement("polygon",{fill:"#0057FF",points:"6.333,6 11,6 11,4 6.333,4 3.667,4 1,4 1,6 3.667,6"}),i.a.createElement("polygon",{fill:"#0057FF",points:"4,7 3,7 2,7 1,7 1,8 2,8 3,8 4,8 5,8 9,8 9,7 5,7 \t"}))),smallARTICLE:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px",viewBox:"0 0 12 12"},i.a.createElement("g",null,i.a.createElement("path",{fill:"#0057FF",d:"M10,1H9H7H6H5H4H3H2H1v1v1v1v1v1v1v1v2v1h1h1h1h1h1h1h2h1h1v-1V8V7V6V5V4V3V2V1H10z M10,3v1v1v1v1v1v2H9H7 H6H5H4H3H2V8V7V6V5V4V3V2h1h1h1h1h1h2h1V3z"}),i.a.createElement("polygon",{fill:"#0057FF",points:"5,4 6,4 6,3 5,3 4,3 3,3 3,4 4,4 \t"}),i.a.createElement("polygon",{fill:"#0057FF",points:"6,5 5,5 4,5 3,5 3,6 4,6 5,6 6,6 7,6 9,6 9,5 7,5 \t"}),i.a.createElement("polygon",{fill:"#0057FF",points:"6,7 5,7 4,7 3,7 3,8 4,8 5,8 6,8 7,8 9,8 9,7 7,7 \t"}))),smallI:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px",viewBox:"0 0 12 12"},i.a.createElement("polygon",{fill:"#0057FF",points:"6,2.504 7.136,4.806 9.676,5.175 7.838,6.966 8.272,9.496 6,8.302 3.728,9.496 4.162,6.966 \n2.324,5.175 4.864,4.806 "})),smallIMG:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("path",{d:"M9,2H8H7H1v8h6h1h1h2V2H9z M4,4c0.552,0,1,0.448,1,1c0,0.552-0.448,1-1,1S3,5.552,3,5C3,4.448,3.448,4,4,4z M9,8H3l6-2.594V8z"})),smallHEADER:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("g",null,i.a.createElement("path",{d:"M6,2H5H4H3H1v1v2v1h1h7h1V5V3V2H6z M9,5H2V3h1h1h1h1h3V5z"}),i.a.createElement("rect",{x:"1",y:"7",width:"1",height:"1"}),i.a.createElement("rect",{x:"1",y:"9",width:"1",height:"1"}),i.a.createElement("rect",{x:"3",y:"9",width:"1",height:"1"}),i.a.createElement("rect",{x:"5",y:"9",width:"1",height:"1"}),i.a.createElement("rect",{x:"7",y:"9",width:"1",height:"1"}),i.a.createElement("rect",{x:"9",y:"9",width:"1",height:"1"}),i.a.createElement("rect",{x:"9",y:"7",width:"1",height:"1"}))),smallFOOTER:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("g",null,i.a.createElement("path",{d:"M5,10h1h1h1h2V9V7V6H9H2H1v1v2v1H5z M2,7h7v2H8H7H6H5H2V7z"}),i.a.createElement("rect",{x:"9",y:"4",width:"1",height:"1"}),i.a.createElement("rect",{x:"9",y:"2",width:"1",height:"1"}),i.a.createElement("rect",{x:"7",y:"2",width:"1",height:"1"}),i.a.createElement("rect",{x:"5",y:"2",width:"1",height:"1"}),i.a.createElement("rect",{x:"3",y:"2",width:"1",height:"1"}),i.a.createElement("rect",{x:"1",y:"2",width:"1",height:"1"}),i.a.createElement("rect",{x:"1",y:"4",width:"1",height:"1"}))),smallNAV:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("path",{d:"M10,4V3H2v1"}),i.a.createElement("path",{d:"M10,7V6H2v1"}),i.a.createElement("path",{d:"M10,10V9H2v1"})),smallFORM:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("g",null,i.a.createElement("path",{d:"M6,2H5H4H3H1v1v7v1h1h7h1v-1V3V2H6z M9,10H2V3h1h1h1h1h3V10z"})),i.a.createElement("path",{d:"M8,5V4H3v1"}),i.a.createElement("path",{d:"M8,7V6H3v1"}),i.a.createElement("path",{d:"M8,9V8H6v1"})),smallINPUT:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("g",null,i.a.createElement("g",null,i.a.createElement("path",{d:"M6,4H5H4H3H1v1v3v1h1h8h1V8V5V4H6z M10,8H2V5h1h1h1h1h4V8z"})),i.a.createElement("path",{d:"M9,7V6H3v1"}))),smallP:i.a.createElement("svg",{x:"0px",y:"0px",width:"12px",height:"12px"},i.a.createElement("path",{d:"M9,5V4H3v1"}),i.a.createElement("path",{d:"M9,7V6H3v1"}),i.a.createElement("path",{d:"M6,9V8H3v1"})),Bug:i.a.createElement("svg",{x:"0px",y:"0px"},i.a.createElement("path",{d:"M25.617,19.835h-1.726v-2.018l1.438-1.459c0.15-0.152,0.15-0.398,0-0.549l-0.248-0.252c-0.15-0.152-0.392-0.152-0.542,0\nl-1.438,1.459H16.9l-1.438-1.459c-0.15-0.152-0.392-0.152-0.542,0l-0.248,0.252c-0.15,0.152-0.15,0.398,0,0.549l1.438,1.459v2.018\nh-1.726c-0.212,0-0.383,0.174-0.383,0.389v0.356c0,0.214,0.171,0.389,0.383,0.389h1.726v0.413c0,0.592,0.151,1.15,0.416,1.645\nl-1.607,1.63c-0.15,0.152-0.15,0.398,0,0.549l0.248,0.252c0.15,0.152,0.392,0.152,0.542,0l1.505-1.526\nc0.584,0.562,0.918,0.948,1.785,1.065v-4.583c0-0.214,0.171-0.389,0.383-0.389h1.234c0.212,0,0.383,0.175,0.383,0.389v4.583\nc0.868-0.117,1.202-0.503,1.785-1.065l1.505,1.526c0.15,0.152,0.392,0.152,0.542,0l0.248-0.252c0.15-0.152,0.15-0.398,0-0.549\nl-1.607-1.63c0.267-0.494,0.416-1.053,0.416-1.645v-0.413h1.726c0.212,0,0.383-0.175,0.383-0.389v-0.356\nC26.001,20.008,25.829,19.835,25.617,19.835z"}),i.a.createElement("path",{d:"M22.396,16c0.008-0.074,0.012-0.148,0.012-0.224c0-1.249-1.077-2.261-2.408-2.261c-1.33,0-2.408,1.012-2.408,2.261\nc0,0.075,0.004,0.151,0.012,0.224L22.396,16z"})),Cube:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px"},i.a.createElement("path",{d:"M20,12.368l-6.5,3.439v8.385l6.5,3.439l6.5-3.439v-8.385L20,12.368z M23.518,16.492L20,18.353l-3.518-1.861L20,14.631\nL23.518,16.492z M15.5,18.235l3.5,1.852v4.752l-3.5-1.852V18.235z M21,24.839v-4.752l3.5-1.852v4.752L21,24.839z"})),Anims:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px"},i.a.createElement("g",null,i.a.createElement("rect",{x:"12.843",y:"17.793",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -9.4411 15.7929)",width:"3",height:"3"}),i.a.createElement("rect",{x:"15.672",y:"20.621",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -10.6127 18.6213)",width:"3",height:"3"}),i.a.createElement("rect",{x:"18.5",y:"23.45",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -11.7843 21.4497)",width:"3",height:"3"}),i.a.createElement("rect",{x:"21.328",y:"20.621",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -8.9558 22.6213)",width:"3",height:"3"}),i.a.createElement("rect",{x:"24.157",y:"17.793",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -6.1274 23.7929)",width:"3",height:"3"}),i.a.createElement("rect",{x:"18.5",y:"17.793",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.7843 19.7929)",width:"3",height:"3"}),i.a.createElement("rect",{x:"16.672",y:"15.964",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -6.6127 16.9645)",width:"1",height:"1"}),i.a.createElement("rect",{x:"19.5",y:"13.136",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -3.7843 18.136)",width:"1",height:"1"}),i.a.createElement("rect",{x:"22.328",y:"15.964",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -4.9558 20.9645)",width:"1",height:"1"}))),Export:i.a.createElement("svg",{x:"0px",y:"0px",width:"14px",height:"14px",viewBox:"0 0 14 14"},i.a.createElement("g",null,i.a.createElement("polygon",{points:"6,4.828 6,9 8,9 8,4.828 9.121,5.95 10.536,4.536 8.414,2.414 7,1 5.586,2.414 3.464,4.536 4.879,5.95"}),i.a.createElement("polygon",{points:"11,5 11,11 3,11 3,5 1,5 1,11 1,13 13,13 13,11 13,5 \t"}))),Tree:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("g",null,i.a.createElement("rect",{x:"20",y:"19",width:"6",height:"2"}),i.a.createElement("rect",{x:"16",y:"19",width:"2",height:"2"}),i.a.createElement("rect",{x:"18",y:"15",width:"8",height:"2"}),i.a.createElement("rect",{x:"14",y:"15",width:"2",height:"2"}),i.a.createElement("rect",{x:"22",y:"23",width:"4",height:"2"}),i.a.createElement("rect",{x:"18",y:"23",width:"2",height:"2"}))),Display:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("g",null,i.a.createElement("polygon",{points:"20,21 22,21 22,19 20,19 20,17 22,17 22,15 20,15 14,15 14,25 20,25 22,25 22,23 20,23"}),i.a.createElement("rect",{x:"24",y:"15",width:"2",height:"2"}),i.a.createElement("rect",{x:"22",y:"17",width:"2",height:"2"}),i.a.createElement("rect",{x:"24",y:"19",width:"2",height:"2"}),i.a.createElement("rect",{x:"22",y:"21",width:"2",height:"2"}),i.a.createElement("rect",{x:"24",y:"23",width:"2",height:"2"}))),SB:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("g",null,i.a.createElement("rect",{x:"17",y:"13",fill:"#00A7AA",width:"5",height:"5"}),i.a.createElement("rect",{x:"17",y:"23",fill:"#00A7AA",width:"5",height:"5"}),i.a.createElement("rect",{x:"23",y:"23",fill:"#00A7AA",width:"5",height:"5"}),i.a.createElement("rect",{x:"11",y:"23",fill:"#00A7AA",width:"5",height:"5"}),i.a.createElement("rect",{x:"19",y:"19",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"19",y:"21",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"13",y:"21",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"13",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"25",y:"21",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"19",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"20",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"18",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"17",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"16",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"15",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"14",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"21",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"22",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"23",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"24",y:"20",fill:"#00A7AA",width:"1",height:"1"}),i.a.createElement("rect",{x:"25",y:"20",fill:"#00A7AA",width:"1",height:"1"}))),Vids:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("path",{d:"M27,17l-2,1.887V17c0-0.552-0.492-1-1.1-1h-8.8c-0.607,0-1.1,0.448-1.1,1v6c0,0.552,0.492,1,1.1,1h8.8\nc0.607,0,1.1-0.448,1.1-1v-1.887L27,23h1v-6H27z"}))};var sr=function(e){var t,n=e.app,o=e.el,a=n.update,s=document.getElementById("contents"),l=Object(r.useState)(!1),u=E()(l,2),c=u[0],f=u[1],p=o.el,d=o.ev,h=[{l:"Modify CSS Selector",t:"changeSelector",c:function(){return i.a.createElement(En,{closeMe:f,app:n})}},{c:function(){return!1},l:(t=ie(p),J(Ke(p),t,i.a.createElement(i.a.Fragment,null,i.a.createElement("span",null,"Only This")),n,!1,"only-this")),t:"only-this"},{l:"Alternatives",t:"alts",c:function(){return((p.getAttribute("editableclass")||"")+" | "+(p.getAttribute("custom_editableclass")||"")).split(" | ").length>2?i.a.createElement(an,{el:o,app:n}):[]}},{l:"Tree",t:"tree",c:function(){return function(e,t){var n=[];e.parentElement&&n.push(e.parentElement),e.parentElement&&e.parentElement.parentElement&&n.push(e.parentElement.parentElement),e.parentElement&&e.parentElement.parentElement&&e.parentElement.parentElement.parentElement&&n.push(e.parentElement.parentElement.parentElement);var r=n.reverse().map((function(e,n){return ir(e),i.a.createElement("div",{key:n,className:"k k-"+n},Je(e,t))})),o=e.querySelectorAll("*"),a=[],s=[];return o.forEach((function(e,n){ir(e);var r=e.getAttribute("editableclass")?e.getAttribute("editableclass").split(" | ")[0]:"";-1===s.indexOf(r)&&(s.push(r),a.push(i.a.createElement("div",{key:n,className:"c c-"+n},Je(e,t))))})),i.a.createElement("div",{className:"treeDesigner"},i.a.createElement("div",{className:"pars"},r),i.a.createElement("div",{className:"curs"},Je(e,t)),i.a.createElement("div",{className:"childs"},a))}(p,n)}}],m=38*h.length,v=parseInt(n.state.viewSettings.editorW),g=d.x-v,y=g+320>s.offsetWidth?g-320:g,b=d.y-s.offsetTop,_=b>s.offsetHeight-m?b-m:b,w=g>s.offsetWidth/2?"lt":"rt",x={top:_,left:y,right:"auto",width:320};return i.a.createElement("div",{id:"heroRightClickMask",onClick:function(){return a({currentlyRightClicked:null})}},i.a.createElement("div",{style:x,className:w+" heroRightClick"},i.a.createElement("div",{className:"area"},i.a.createElement("ul",null,function(e){var t=[],n=function(n){var r=e[n],o=r.c(),a=o&&0===o.length?"disa":"",s=o&&0!==o.length?"":"hasNo",l=o&&0!==o.length?i.a.createElement("div",{className:"sub",style:{width:320}},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},o)):"",u=i.a.createElement("span",{className:"irIcon ico"});"Alternatives"===r.l&&(u=ar["List Styles"]),"Tree"===r.l&&(u=ar.Tree);var p="string"==typeof r.l?i.a.createElement("span",{className:"label"},u,r.l):r.l,d=c===r.l?"open":"";t.push(i.a.createElement("li",{key:n,"data-tab":r.t,className:d+" "+s+" "+a+" subItm"},i.a.createElement("span",{className:"subl",onClick:function(e){e.stopPropagation(),s||f(c!==r.l&&r.l)}},p),c===r.l?l:""))};for(var r in e)n(r);return t}(h),function(e,t){var n=[];return[":before",":after"].forEach((function(r){"none"!==t.getComputedStyle(e,r).getPropertyValue("content")&&n.push(r)})),n}(p,n.state.heroFrame).map((function(e){return i.a.createElement("li",{key:e,onClick:function(){se(function(e,t){var n="";try{n=e.getAttribute("editableclass").split(" | ")[0]}catch(e){console.log(e)}return n&&(n+=t),n}(p,e),n)},className:"hasNo pse subItm kl"},i.a.createElement("span",{className:"subl"},i.a.createElement("span",{className:"label"},ar.Display,e)))})))),i.a.createElement("div",{className:"area extra"},i.a.createElement("ul",null,i.a.createElement("li",{className:"hasNo subItm kl"},i.a.createElement("span",{className:"subl",onClick:function(){se(p,n),a({showExpandedBottomBar:"pageInspector"})}},i.a.createElement("span",{className:"label"},ar.Bug,"Inspect HTML")))))))};function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cr=function(e){var t=e.app,n=e.navModeChecker,o=t.state,a=t.update,s=o.currentMq,l=o.heroFrame,u=o.currentlyHovered,c=o.currentlyRightClicked,f=o.frameSession,p=o.currentlyClicked,d=o.storedJS,h=o.videoBgs,m=o.frameIsLoading,v=!1;window.location.href.indexOf("?csshero_action=edit_page")>-1&&(v=window.location.href.split("?csshero_action=edit_page")[0]),window.location.href.indexOf("&csshero_action=edit_page")>-1&&(v=window.location.href.split("&csshero_action=edit_page")[0]),window.staticShopUrl&&(v=window.staticShopUrl);var g=rt(v||"http://localhost:3000/iframe.html","csshero_editing"),y=Object(r.useState)({width:"100%",left:0,marginLeft:0}),b=E()(y,2),_=b[0],w=b[1],x=Object(r.useState)(!1),k=E()(x,2),C=k[0],S=k[1],O=Object(r.useState)(null),A=E()(O,2),j=A[0],P=A[1];Object(r.useEffect)((function(){var e=function(e){var t=e.split("min-width:"),n=!!t[1]&&t[1].split(")")[0],r=e.split("max-width:"),i=!!r[1]&&r[1].split(")")[0],o={w:"100%",unit:"px",m:0};return i&&(o.w=i),n&&(o.w=n),o.unit=o.w.replace(parseInt(o.w),"").trim(),o.m="100%"===o.w?0:parseInt(o.w)/2*-1+o.unit,o.l="100%"===o.w?0:"50%",o}(s),t={};t.left=e.l,t.width="all"===s?e.w:parseInt(e.w),t.marginLeft=e.m,w(t)}),[s]),Object(r.useEffect)((function(){l&&l.document.querySelectorAll("body, body *").forEach((function(e){e.addEventListener("mousemove",(function(e){ct(),n.state.navigationMode||(e.stopPropagation(),j!==e.target&&(ir(e.target),ft(e.target,0,l),P(e.target)))}))}))}),[l,f,p]),Object(r.useEffect)((function(){P(u)}),[u]),Object(r.useEffect)((function(){window.frames["csshero-iframe-main-page"].addEventListener("serviceFrameLoad",(function(){N(),a({frameSession:Date.now()})}))}),[]);var N=function(){var e=window.frames["csshero-iframe-main-page"],n=document.createElement("style");n.id="heroStyle",e.document.getElementsByTagName("head")[0].appendChild(n);var r=document.createElement("style");r.id="heroStyleProtect",lt(e),r.appendChild(document.createTextNode("body *{user-select: none!important;}")),e.document.getElementsByTagName("head")[0].appendChild(r),Ae(t);var i=document.getElementById("csshero-iframe-main-page").contentDocument,o=function(){ct(),a({currentlyRightClicked:null}),P(null)};i.addEventListener("scroll",(function(){return o()}),!1),document.getElementById("contents").addEventListener("mouseleave",(function(){return o()}));var s=function(){if(function(e){if(e&&e.document){var t=[],n=e.document.styleSheets;e.document.body.setAttribute("editableclass","body"),e.document.body.setAttribute("heroProcessed",!0);for(var r=0;r<n.length;r++){var i=n[r],o=i.href,a=i.ownerNode;if("csshero-main-stylesheet-css"===a.getAttribute("id")&&a.setAttribute("disabled","disabled"),o&&-1===o.indexOf(window.location.host));else if(a.setAttribute("herostyleref",r),"csshero-main-stylesheet-css"!==a.getAttribute("id")&&"heroStyle"!==a.getAttribute("id")){var s=[];try{s=i.cssRules}catch(e){console.log("skipped loading stylesheet")}for(var l=0;l<s.length;l++){var u=s[l];if(u.conditionText)for(var c=u.cssRules,f=0;f<c.length;f++){var p=c[f];p.selectorText&&t.push({el:p.selectorText,ps:p.cssText,mq:u.conditionText,ref:r})}else u.selectorText&&t.push({el:u.selectorText,ps:u.cssText,mq:"all",ref:r})}}}sessionStorage.removeItem("heroRocket"),t.length<1e4&&sessionStorage.setItem("heroRocket",JSON.stringify(t))}}(e),"insp"===t.state.viewSettings.mode){var n={heroFrame:e,currentEl:"body",currentElDesc:"body",currentElContext:"normal",frameSession:Date.now(),heroPeer:e.heroPeer},r={state:n};n.currentElContexts=Y(r,"body"),a(n),ut(t,"load","iframe loaded with inspector")}else{var i={heroFrame:e,frameSession:Date.now(),heroPeer:e.heroPeer};"JSEditor"!==t.state.showExpandedBottomBar&&"VideoBgs"!==t.state.showExpandedBottomBar&&(i.currentEl=null),a(i),ut(t,"load","iframe loaded")}},l=window.hero_load_this_config();l?l.then((function(){return s()})):s(),-1===e.location.href.indexOf("csshero_editing")&&(e.location=rt(e.location.href,"csshero_editing")),t.t.initializeAnims(),T(e),function(e,t){var n=e.libs,r=e.stripped,i=[];if(n&&n.length>0){var o=function(e){et(t,n[e],!1,(function(){i.push(n[e]),i.length===n.length&&et(t,!1,r)}))};for(var a in n)o(a)}else et(t,!1,r)}(d,e),setTimeout((function(){for(var t in h){var n=h[t];Qe(t,{url:n.url,pos:n.pos,customizations:n.customizations,thumbnail:n.thumbnail},e)}window.dispatchEvent(new Event("heroFrameLoaded"))}),500),a({frameIsLoading:!1})},T=function(e){e.document.querySelectorAll("a").forEach((function(e){e.addEventListener("mouseenter",(function(){e.setAttribute("href",rt(e.getAttribute("href"),"csshero_editing"))}))}),!1)},M="all"===s?"isAll":null,D=c?i.a.createElement(sr,{el:c,app:t}):"",L=M?"":i.a.createElement(on,{app:t,wid:_.width}),F=M?"":i.a.createElement("div",{id:"frameResizerInput"},i.a.createElement("span",null,"Preview Width"),i.a.createElement("input",{onChange:function(e){return function(e){var t=parseInt(e.target.value),n=(t=isNaN(t)?0:t)/2*-1;isNaN(n)&&(n=_.marginLeft),w(ur(ur({},_),{},{marginLeft:n,width:t}))}(e)},value:_.width})),I=C?i.a.createElement("div",{id:"dragMask",onMouseMove:function(e){var t=function(e){var t="",n="";return e.pageX<me?n="left":e.pageX>me&&(n="right"),e.pageY<ve?t="top":e.pageY>ve&&(t="bottom"),ve=e.pageY,me=e.pageX,{x:n,y:t}}(e),n=parseInt(_.width),r=parseInt(_.marginLeft);"left"===t.x&&(n-=2),"right"===t.x&&(n+=2),r=n/2*-1,w(ur(ur({},_),{},{marginLeft:r,width:n}))},onMouseUp:function(){return S(!1)}}):"",R=M?"":i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:C?"dragging":"",id:"frameResizer",onMouseDown:function(){return S(!0)}}),I),B=i.a.createElement(i.a.Fragment,null,i.a.createElement(_n,{node:document&&document.getElementById("heroWrapper")},i.a.createElement("div",{className:m?"loading":"",id:"appLoadingMask"})),i.a.createElement("div",{id:"iframeHider",className:m?"loading":""},i.a.createElement("div",null,"Loading...",i.a.createElement("div",{className:"preloading"})))),$=j;return i.a.createElement("div",{id:"contents"},D,B,i.a.createElement(mt,{cur:$,frame:l,app:t,style:{width:_.width}}),i.a.createElement("div",{id:"frameWrap",className:M,style:{width:_.width}},i.a.createElement("iframe",{"data-mode":s,title:"csshero-iframe-main-page",onLoad:N,id:"csshero-iframe-main-page",name:"csshero-iframe-main-page",src:g}),R),F,L)},fr=n(19);n(54);function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(55);var hr=n(37).css,mr=function(e){var t=Object(r.useState)(!1),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)(null),l=E()(s,2),u=l[0],c=l[1],f=e.app,p=f.state,d=f.update,h=p.currentMq,m=p.currentEl,v=p.viewSettings,g=Object(r.useState)({loaded:!1,val:""}),y=E()(g,2),b=y[0],_=y[1],w=v.inspectorShowHints,x=Object(r.useCallback)((function(){var t=m+e.data.code;if(t.indexOf("{}")>-1)t=t.replace(/\{\}/g,"{\n\n}");else{var n=t.substring(0,t.indexOf("{")),r=t.substring(t.indexOf("{")+1).trim();t=(r=hr("[heroMarker]{\n"+r,{indent_with_tabs:!0})).replace("[heroMarker]",n)}_({val:t,loaded:!0,session:Date.now(),showHints:w}),a(!1)}),[m,e.data.code,w]);Object(r.useEffect)((function(){b.loaded||x()})),Object(r.useEffect)((function(){u&&!u.state.focused&&x()}),[e.data]),Object(r.useEffect)((function(){x()}),[m,h,w]);var k,C=dr(dr({},z),{},{theme:v.inspectorTheme});return i.a.createElement(i.a.Fragment,null,(k=o?"visi":"",i.a.createElement("div",{className:k+" protector"})),i.a.createElement("div",{id:"codeEditor"},i.a.createElement("span",{id:"codeEditorFakeLabel"},m),i.a.createElement(fr.UnControlled,{key:b.session,value:b.val,options:C,editorDidMount:function(e){c(e),function(e){var t=e,n=t.lineCount();t.markText({line:0,ch:0},{line:1,ch:0},{inclusiveLeft:!0,atomic:!0,className:"readOnly-line",readOnly:!0}),t.markText({line:n-1,ch:0},{line:n-1,ch:1},{inclusiveRight:!0,inclusiveLeft:!0,atomic:!0,className:"readOnly-line",readOnly:!0})}(e)},onChange:function(e,t,n){We(350,(function(){!function(e){if(u&&u.state.focused){var t=p.lastWorking,n=t.before,r=t.after,i=p.currentMq,o=dr({},p.storedEdits),a=(n=n.trim()+"\n")+e+(r=r.trim()+"\n");o[i]=a,d({storedEdits:o}),ut(f,"code-editor","edits from code editor")}}(n)}))},onKeyUp:function(e,t){b.showHints&&Ge(e,t)}})))};function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var gr=n(37).css;function yr(e,t,n,r,i,o,a){var s=o.isDesktopOnly,l=o.isImportant,u=i.state,c=i.update,f=u.lastWorking,p=f.before,d=f.after,h=u.storedEdits,m=u.currentMq,v=u.currentEl,g=u.heroFrame,y=e;if(e&&s&&(e="._d("+e+","+t+")",t=null),t&&l&&(t=t.split("!important").join(""),t+="!important"),t=t?":"+t:"",!e||s||t||(t="",e=""),y.indexOf("border-")>-1&&y.indexOf("-width")>-1){var b=y.split("-width")[0],_=K(v),w=g.document.querySelectorAll(_.clean,_.mode)[0];w&&"none"===getComputedStyle(w)[b+"-style"]&&(t=t+";\n"+b+"-style:solid")}var k=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},h),E=n;if(n.indexOf("[[[S[")>-1&&n.indexOf("]E]]]")>-1){var C=n.split("[[[S[")[0],S=n.split("]E]]]")[1];S=S.trim(),!(C=C.trim())||C.endsWith(";")||C.endsWith("}")||(C+=";"),e||t?E=C+e+t+S:(S.startsWith(";")&&(S=S.substr(1)),E=C+S+"\n")}else!(E=E.trim())||E.endsWith(";")||E.endsWith("}")||(E+=";"),e&&t&&(E+="\n"+e+t+";"),e&&!t&&(E+="\n"+e+";");var O=Date.now(),A=E.trim()?v+"{"+E+"}":"";k[m]=gr(p+A+d,{indent_size:1,indent_char:"\t"});var j={storedEdits:k,session:O};r&&(j.session=O),c(j,(function(){a&&a(j),t.indexOf("@")>-1?ut(i,"variables","applies variable"):ut(i,"all"===m?"wysiwyg-prop":"wysiwyg-prop-MQ",e)}))}var br=function(e){var t=e.val,n=e.app,o=e.step,a=e.wysiCode,s=e.propOptions,l=e.prop,u=n.state,c=Object(r.useState)(0),f=E()(c,2),p=f[0],d=f[1],h=u.projectVars,m=u.currentEl;Object(r.useEffect)((function(){var n=h[t]?h[t]:t;n=isNaN(parseFloat(n))?e.min:parseFloat(n),d(n)}),[t,h,e.min]);var v=function(e){var t=parseInt(e),n=e.replace(t,"");return n="@"!==(n=n.split(" ")[0])[0]&&n&&" "!==n&&""!==n&&"auto"!==n&&"normal"!==n&&"none"!==n?n:"px","opacity"===l&&(n=""),n},g=o||1;return i.a.createElement("div",{className:"inputSlider"},i.a.createElement("input",{onMouseUp:function(e){var r=e.target.value;yr(l,r+v(t),a,!0,n,s),setTimeout((function(){ye(n,"sliderPrev")}),600)},type:"range",min:e.min,max:e.max,value:p,step:g,onChange:function(e){var r=e.target.value;d(r);var i=m+"{"+l+":"+r+v(t)+"!important;}";ge(n,i,"sliderPrev")}}))},_r=function(e){var t=Object(r.useState)(!1),n=E()(t,2),o=n[0],a=n[1],s=e.val,l=e.app,u=e.data,c=e.wysiCode,f=e.prop,p=e.propOptions,d=o?"cur":"";return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"inputDD inputBtn"},i.a.createElement("div",{onClick:function(){a(!o)},className:d+" toggle ico arrow-down"})),function(e){var t=[];if(e){var n=u.map((function(e,t){var n=s===e?"cur":"",r="background-image"===f?{backgroundImage:e}:{};return e.indexOf("gradient")>-1&&(r.color="rgba(0,0,0,.3)"),i.a.createElement("li",{style:r,className:n,key:t,onClick:function(){e===s?yr("","",c,!0,l,p):yr(f,e,c,!0,l,p),a(!1)}},e)}));t=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"extraMask editorMask",onClick:function(){return a(!1)}}),i.a.createElement("ul",{className:"inputDrop"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},n)))}return t}(o))},wr=n(130),xr=function(e){var t=e.action,n=e.color,o=e.app,a=e.paletteAction,s=o.state.projectVars,l=Object(r.useState)(!1),u=E()(l,2),c=u[0],f=u[1];Object(r.useEffect)((function(){c||d()}));var p=function(e){var t=Object.keys(s).find((function(t){return s[t].replace(/ /g,"")===e}));return{isv:t||!1,clr:e,ori:s[e]}},d=function(){var e=[],t=function(t){var n=Ye(o)[t];n=n.replace(/ /g,"");var r=p(n),s=r.isv,l=r.clr,u=s||n;e.push(i.a.createElement("div",{className:s?"isv":"",onClick:function(){return a(u)},title:u,style:{backgroundColor:l},key:t}))};for(var n in Ye(o))t(n);f(e.slice(0,33))},h=p(n).ori?p(n).ori:p(n).clr;return i.a.createElement("div",{className:"colorPickerInner"},i.a.createElement(wr.ChromePicker,{color:h,onChange:t}),i.a.createElement("div",{className:"innerPalettes"},c))};function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cr=function(e){var t=e.name,n=e.val,o=e.app,a=o.state,s=o.update,l=o.worker,u=a.projectVars,c=a.currentlyClicked,f=Object(r.useState)(!1),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(!1),v=E()(m,2),g=v[0],y=v[1],b=Object(r.useState)(!1),_=E()(b,2),w=_[0],x=_[1],k=Object(r.useState)(!1),C=E()(k,2),S=C[0],O=C[1],A=Object(r.useState)(!1),j=E()(A,2),P=j[0],N=j[1],T=Object(r.useState)(""),M=E()(T,2),D=M[0],L=M[1],F=Object(r.useState)(!1),I=E()(F,2),R=I[0],B=I[1];Object(r.useEffect)((function(){var e="";for(var r in u)e+=r+":"+u[r]+";";var i=e+" #Y{color:"+n+"}";l.postMessage({type:"getColorForVar",value:i,var:t})}),[n]),Object(r.useEffect)((function(){l.addEventListener("message",(function(e){if("getColorForVar"===e.data.type&&e.data.render&&e.data.var){var n=e.data.render;n=(n=n.split(":")[1]).split(";")[0],e.data.var===t&&Le(n)&&B(n)}}),!1)}),[]);var $=function(){var e=Er({},a.storedEdits);if(w){var n=ne(w,"@");for(var r in e){var i=e[r],l=(i=(i=i.split(" ").join(" ")).split(t+" :").join(t+":")).split(t).join(n);e[r]=l}}var u=w||t;if(u=ne(u,"@"),S)for(var f in e){var p=e[f];if((p=(p=(p=(p=p.split(" ").join(" ")).split(u+" :").join(u+":")).split(d+" ;").join(d+";")).split(" "+d).join(d)).indexOf(u+":"+d+";")>-1){var h=p.split(u+":"+d+";").join("\n"+u+":"+S+";");e[f]=h}}(w||S)&&s({storedEdits:e,session:Date.now()},(function(e){var t=Er(Er({},o),{},{state:e});se("body:not(.refreshing)",t),setTimeout((function(){se(c,t)}),200)})),y(!1),N(!1)},W=function(e,t){var n=Er({},a.storedEdits);for(var r in n){var i=n[r];i=He(i,e),i=(i=(i=(i=He(i,t)).replace(e+":"+t+";","")).replace(e+":"+t,"")).split(e).join(t),n[r]=i}s({storedEdits:n,session:Date.now()})},z=D||R,H=R?i.a.createElement("div",{className:"pickerWrap"},P===t?i.a.createElement("div",{className:"varPicker"},i.a.createElement(xr,{color:z,action:function(e){var t=e.rgb,n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";L(n),O(n)},app:o}),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary",onClick:function(){N(!1)}},"Cancel"),i.a.createElement("div",{className:"btn",onClick:$},"Submit"))):"",i.a.createElement("div",{onClick:function(e){e.stopPropagation(),N(P!==t&&t)},className:"pickerTrigger",style:{backgroundColor:R}})):"",V=R?i.a.createElement("div",{className:"pickerWrap"},i.a.createElement("div",{className:"pickerTrigger",style:{backgroundColor:R}})):"",U=g?i.a.createElement("div",{className:"secondaryExtraBox"},i.a.createElement("div",{className:"l"},i.a.createElement("label",null,"Name"),i.a.createElement("input",{type:"text",spellCheck:"false",defaultValue:t,onChange:function(e){return x(e.target.value)}})),i.a.createElement("div",{className:"l"},i.a.createElement("label",null,"Value"),i.a.createElement("input",{type:"text",spellCheck:"false",defaultValue:n,onChange:function(e){return O(e.target.value)}}),H),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"delete",onClick:function(){var e,r;s({heroAlert:{title:"Delete Variable",content:'Are you sure you want to delete this variable? I will replace all "'+(e=t)+'" instances with "'+(r=n)+'".',type:"confirm",callBack:function(){return W(e,r)}}})}},"Delete Var"),i.a.createElement("div",{className:"btn secondary dark",onClick:function(){N(!1),y(!1)}},"Cancel"),i.a.createElement("div",{className:"btn primary vars",onClick:$},"Update"))):"",q=g?"open":"";return i.a.createElement("div",{className:q+" varWrap",key:t},i.a.createElement("div",{className:"var"},i.a.createElement("div",{className:"v"},t),i.a.createElement("div",{className:"c"},V,n),i.a.createElement("div",{className:"i",onClick:function(){x(!1),O(!1),h(n),L(n),y(!g)}},i.a.createElement("span",{className:"ico edit"}))),U)};function Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ar=function(e){var t=Object(r.useState)(!1),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)(""),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)("set"),p=E()(f,2),d=p[0],h=p[1],m=e.val,v=e.app,g=e.wysiCode,y=e.propOptions,b=e.prop,_=v.state,w=v.update;Object(r.useEffect)((function(){c("")}),[o]);var x="set"===d?i.a.createElement("div",{className:"setter"},i.a.createElement("b",null,"Store ",i.a.createElement("span",null,e.val)," as variable:"),i.a.createElement("div",null,i.a.createElement("input",{type:"text",spellCheck:"false",onClick:function(e){e.stopPropagation()},onChange:function(e){c(e.target.value)},value:u,placeholder:"@varName"}),i.a.createElement("div",{className:"btn vars",onClick:function(){var e=Or({},_.storedEdits),t=ne(u,"@");if(_.projectVars[t])w({heroAlert:{title:"Bad variable name",content:"Sorry, "+t+" is already defined.",type:"error"}});else if(t&&"@"!==t){var n=t+":"+m+";";-1===e.all.toLowerCase().split(" ").join("").indexOf(n)&&(e.all=n+e.all),w({storedEdits:e},(function(e){var n=Se(Or(Or({},v),{},{state:e}));w({currentNode:n,lastWorking:n},(function(e){var n=Or(Or({},v),{},{state:e});yr(b,t,g,!0,n,y)}))})),ut(v,"variables","creates new variable")}}},"Set"))):i.a.createElement("div",{className:"getter"},function(){var e=[],t=_.projectVars,n=[];for(var r in t)n.push({name:r,val:t[r]});n.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}));for(var o=function(){var t=s[a];e.push(i.a.createElement("div",{title:t.name+" : "+t.val,className:"varEl",onClick:function(e){e.stopPropagation(),yr(b,t.name,g,!0,v,y)},key:t.name},i.a.createElement(Cr,{name:t.name,val:t.val,app:v})))},a=0,s=n;a<s.length;a++)o();return e.length>0&&(e=i.a.createElement(ln.a,{options:{wheelPropagation:!1}},e)),e}()),k=o?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"extraMask"}),i.a.createElement("div",{className:"setVarWrap"},function(){for(var e=[],t=function(){var t=r[n],o=d===t?"cur":"";e.push(i.a.createElement("div",{className:o,onClick:function(e){e.stopPropagation(),h(t)},key:t},t))},n=0,r=["set","get"];n<r.length;n++)t();return i.a.createElement("header",{className:"extraHead"},e)}(),x)):"",C=o?"cur":"";return i.a.createElement("div",{className:C+" inputVar inputBtn",onClick:function(){return a(!o)}},i.a.createElement("span",{className:"ico var"}),k)},jr=n(131),Pr=n.n(jr),Nr=function(e){var t=Object(r.useState)(!1),n=E()(t,2),o=n[0],a=n[1],s=e.color,l=e.app,u=e.prop,c=e.wysiCode,f=e.propOptions,p=l.state,d=o?i.a.createElement("div",{onClick:function(){return a(!1)},className:"extraMask editorMask"}):"",h=o?"cur":"";return i.a.createElement(i.a.Fragment,null,d,i.a.createElement("div",{onClick:function(){return a(!o)},className:h+" colorPaletter"},i.a.createElement("span",{className:"ico arrow-down"}),function(){var e="@"+s.split("@")[1];e=(e=(e=e.split("!")[0]).indexOf(",")>-1?e.split(",")[0].trim():e).trim();var t=p.projectVars[e],n=[],r=[];if(o&&t){for(var d in H){var h=i.a.createElement("div",{className:"paletteTitle",key:d},d),m=H[d].map((function(n){var r=n.split("$color").join(e),o=r===s&&r!==e?"cur":"",a=e+":"+t+";a{color:"+r+"}",p=e;return Pr.a.render(a,(function(e,t){e||(p=(p=t.css).substring(p.indexOf(":")+1,p.indexOf(";")).trim())})),i.a.createElement("div",{onClick:function(e){e.stopPropagation(),yr(u,r,c,!0,l,f)},className:o+" paletteItem",key:n},i.a.createElement("div",{style:{backgroundColor:p}}))})),v=i.a.createElement("div",{key:d,className:"paletteOb"},h,i.a.createElement("div",{className:"paletteRow"},m));n.push(v)}r=i.a.createElement("div",null,i.a.createElement("div",{className:"paletteInner"},i.a.createElement("div",{className:"paletteHead"},i.a.createElement("span",null,"Palette"),i.a.createElement("span",{className:"ico close",onClick:function(){return a(!o)}})),n))}return r}()))};function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dr=function(e){var t=Object(r.useState)(!1),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)({top:0,left:100,width:225}),l=E()(s,2),u=l[0],c=l[1],f=e.val,p=e.prop,d=e.app,h=e.wysiCode,m=e.propOptions,v=d.state,g=d.worker,y=v.projectVars,b=Object(r.useState)(null),_=E()(b,2),w=_[0],x=_[1];Object(r.useEffect)((function(){if(f.startsWith("#")||f.startsWith("rgb"))x(f);else{var e="";for(var t in y)e+=t+":"+y[t]+";";var n=e+" #Y{color:"+f+"}";n=n.replace("!important","").trim(),g.postMessage({type:"getColor",value:n,property:p})}}),[f]),Object(r.useEffect)((function(){g.addEventListener("message",(function(e){if(e.data.property&&e.data.property===p&&"getColor"===e.data.type&&e.data.render){var t=e.data.render;t=(t=t.split(":")[1]).split(";")[0],x(t)}}),!1)}),[]);var k=function(e){var t=e.rgb,n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")",r=v.currentEl;x(n),ge(d,r+"{"+p+":"+n+"!important}")},C=function(e){yr(p,e||w,h,!0,d,m),e&&(ye(d),x(e))},S=function(){w&&(C(),x(null)),a(!1),setTimeout((function(){ye(d)}),250)},O="rgba(0, 0, 0, 0)"===w?"rgba(0, 0, 0, 1)":w;O=O||"rgba(0, 0, 0, 1)";var A=f.indexOf("@")>-1?i.a.createElement(Nr,{const:!0,app:d,color:f,propOptions:m,prop:p,wysiCode:h}):"";return i.a.createElement("div",{className:"pickerWrap"},A,i.a.createElement("div",{onClick:function(e){return function(e){a(!0);var t=e.getBoundingClientRect(),n=t.left+t.width-u.width;n=n<10?10:n,c(Mr(Mr({},u),{},{left:n,top:t.top+t.height}))}(e.target)},className:"pickerTrigger",style:{backgroundColor:w}}),function(e){return e?i.a.createElement(_n,{node:document&&document.getElementById("heroWrapper")},i.a.createElement("div",{className:"pickerPortal"},i.a.createElement("div",{className:"pickerPortalDrop",onClick:S}),i.a.createElement("div",{className:"pickerPortalInner",style:u},i.a.createElement(xr,{app:d,color:O,action:k,paletteAction:C}),i.a.createElement("div",{className:"pickerActions extraBtns"},i.a.createElement("span",{className:"btn secondary",onClick:function(){a(!1),ye(d)}},"Cancel"),i.a.createElement("span",{className:"btn primary",onClick:function(){C(),S()}},"Submit"))))):""}(o))},Lr=function(e){var t=e.data,n=e.wysiCode,r=e.val,o=e.prop,a=e.app,s=e.propOptions,l=t.map((function(e){var t=e,l=o,u="";return r===e&&(t="",l="",u="cur"),i.a.createElement("div",{"data-tip":e,"data-val":e,className:"ico "+u,onClick:function(){return yr(l,t,n,!0,a,s)},key:e,val:e},i.a.createElement(rn,{delayShow:200,type:"dark",place:"top",effect:"solid"}))}));return i.a.createElement("div",{className:"propButtons"},l)},Fr=function(e){var t=function(t){var n=e.app,r=e.propOptions,i=e.prop,o=e.sendVal,a=e.wysiCode,s=e.min,l=e.max;if(-1===o.indexOf("@")){var u=isNaN(parseInt(o))?0:parseInt(o),c=o.replace(u,"").trim();(i.indexOf("text-stroke")>-1&&!c||"normal"===c||"none"===c||"auto"===c)&&(c="px");var f=u+t;null!==l&&f>l&&(f=l),null!==s&&f<s&&(f=s),yr(i,f+c,a,!0,n,r)}};return i.a.createElement("div",{className:"inputControls inputBtn"},i.a.createElement("div",{className:"p",onClick:function(){return t(1)}},"+"),i.a.createElement("div",{className:"m",onClick:function(){return t(-1)}},"-"))};function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Br=function(e){var t=e.app,n=e.propOptions,o=e.wysiCode,a=e.sendVal,s={scale3d:[1,1,1],translate:[0,0],rotate:[0,0,0],skew:[0,0]},l=Object(r.useState)("scale3d"),u=E()(l,2),c=u[0],f=u[1],p=Object(r.useState)(s),d=E()(p,2),h=d[0],m=d[1],v=Object(r.useState)(!1),g=E()(v,2),y=g[0],b=g[1];Object(r.useEffect)((function(){m(function(e){e=e.split(" ").join(" ").split(" (").join("(");for(var t=Rr({},s),n=[0,0,0],r=0,i=["scale3d","translate","rotateX","rotateY","rotateZ","skew"];r<i.length;r++){var o=i[r];if(e.indexOf(o+"(")>-1)if(o.indexOf("rotate")>-1){var a=e.split(o+"(")[1].split(")")[0];n["rotateX"===o?0:"rotateY"===o?1:2]=a,t.rotate=n}else{var l=e.split(o+"(")[1].split(")")[0].split(",");t[o]=l}}return t}(a))}),[a]);var _={scale3d:{sl:{x:{min:0,max:2},y:{min:0,max:2},z:{min:0,max:2}},unit:"",step:.01},translate:{sl:{x:{min:-100,max:100},y:{min:-100,max:100}},unit:"px",step:1},rotate:{sl:{x:{min:-180,max:180},y:{min:-180,max:180},z:{min:-180,max:180}},unit:"deg",step:1},skew:{sl:{x:{min:-100,max:100},y:{min:-100,max:100}},unit:"deg",step:1}},w=function(e,r,i){var a=Rr({},h),l=a[e];"scale3d"===e&&i<2&&y?(l[0]=r,l[1]=r):l[i]=r,m(a),We(500,(function(){yr("transform",function(e){var t=[];for(var n in e)if(e[n]&&e[n].join("")!==s[n].join(""))if("rotate"===n){var r=[];for(var i in e[n]){var o=0==+i?"X":1==+i?"Y":"Z";+e[n][i]!=+s[n][i]&&r.push("rotate"+o+"("+e[n][i]+")")}t.push(r.join(" "))}else t.push(n+"("+e[n].join(",")+")");return t.join(" ")}(a),o,!0,t,n)}))};return i.a.createElement(i.a.Fragment,null,function(e,t){var n=[],r=function(e){var r=e===t?"cur":"";n.push(i.a.createElement("div",{onClick:function(){return f(e)},className:r,key:e},i.a.createElement("label",null,e)))};for(var o in e)r(o);return i.a.createElement("div",{className:"panelTitles"},n)}(h,c),i.a.createElement("div",{className:"customPanel",id:"transformWidget"},function(e,t){var n=_[e],r=[],o=-1,a=function(a){var s=++o,l=t[e][s];l=l.toString().trim();var u=_[e],c=u.unit,f=u.step,p=0==+s?"x":1==+s?"y":"z",d=i.a.createElement("span",{className:"iW"},i.a.createElement("b",null,p),i.a.createElement("span",{className:e.indexOf("rotate")>-1?"rtn "+p:"icn "+p},i.a.createElement("span",null)));r.push(i.a.createElement("div",{className:"inputWrap",key:a},d,i.a.createElement("div",{className:"inputSlider"},i.a.createElement("input",{type:"range",min:n.sl[a].min,max:n.sl[a].max,step:f,value:parseFloat(l),onChange:function(t){w(e,t.target.value+c,s)}})),i.a.createElement("input",{type:"text",spellCheck:"false",value:l,onChange:function(t){w(e,t.target.value,s)}})))};for(var s in n.sl)a(s);var l="scale3d"===e?i.a.createElement("div",{className:y?"chaining ico lock":"ico lock",id:"chainer",onClick:function(){b(!y)}}):"";return i.a.createElement("div",{id:"transformer",className:e},r,l)}(c,h)),e.children)},$r=function(e){var t=e.app,n=e.wysiCode,o=e.sendVal,a=e.propOptions,s=Object(r.useState)([0,0]),l=E()(s,2),u=l[0],c=l[1];return Object(r.useEffect)((function(){var e=[];e[0]=o.split(" ")[0],e[1]=o.split(" ")[1]?o.split(" ")[1]:0,c(e)}),[o]),i.a.createElement("div",{id:"transformOrigin"},i.a.createElement("div",{className:"sq"},e.children),i.a.createElement("div",null,i.a.createElement("div",null,i.a.createElement("div",{className:"m"},i.a.createElement("label",null,"Top"),i.a.createElement("input",{type:"text",spellCheck:"false",value:u[0],onChange:function(e){var r=[e.target.value,u[1]];c(r),We(500,(function(){yr("transform-origin",r.join(" "),n,!0,t,a)}))}})),i.a.createElement("div",{className:"m"},i.a.createElement("label",null,"Left"),i.a.createElement("input",{type:"text",spellCheck:"false",value:u[1],onChange:function(e){var r=[u[0],e.target.value];c(r),We(500,(function(){yr("transform-origin",r.join(" "),n,!0,t,a)}))}})))))},Wr=n(51),zr=n.n(Wr),Hr=n(52),Vr=n.n(Hr);n(321);function Ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}var qr=function(e){v()(n,e);var t=Ur(n);function n(){var e;return c()(this,n),(e=t.call(this)).handleMouseDown=e.handleMouseDown.bind(h()(e)),e.handleMouseMove=e.handleMouseMove.bind(h()(e)),e.handleMouseUp=e.handleMouseUp.bind(h()(e)),e.state={posStart:0,dragging:!1},e}return p()(n,[{key:"activate",value:function(e){this.setState({posStart:e,dragging:!0}),console.log(this.props.stop.id),this.props.onActivate(this.props.stop.id),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},{key:"deactivate",value:function(){this.setState({dragging:!1}),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}},{key:"componentDidMount",value:function(){var e=this.props.stop.pointX;e&&this.activate(e)}},{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),e.button||this.activate(e.clientX)}},{key:"handleMouseMove",value:function(e){var t=e.clientX,n=e.clientY;if(this.state.dragging){var r=this.props,i=r.limits,o=r.onDeleteColor,s=r.onPosChange,l=r.stop,u=l.id,c=l.pos,f=a.a.findDOMNode(this).getBoundingClientRect().top;if(Math.abs(n-f)>i.drop)return this.deactivate(),void o(u);var p=c-this.state.posStart,d=Math.max(Math.min(p+t,i.max),i.min);this.setState({posStart:d-p}),s({id:u,pos:d})}}},{key:"handleMouseUp",value:function(){this.deactivate()}},{key:"render",value:function(){var e=this.props.stop,t=e.pos,n=e.color,r=e.isActive;return i.a.createElement("div",{className:r?"cs active":"cs",style:{left:t},onMouseDown:this.handleMouseDown},i.a.createElement("div",{style:{backgroundColor:n}}))}}]),n}(i.a.Component);qr.propTypes={stop:gt.a.shape({id:gt.a.number.isRequired,color:gt.a.string.isRequired,pos:gt.a.number.isRequired,isActive:gt.a.bool.isRequired,pointX:gt.a.number}).isRequired,limits:gt.a.shape({min:gt.a.number.isRequired,max:gt.a.number.isRequired,drop:gt.a.number.isRequired}).isRequired,onPosChange:gt.a.func.isRequired,onActivate:gt.a.func.isRequired,onDeleteColor:gt.a.func.isRequired};var Gr=qr;function Xr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}var Yr=function(e){v()(n,e);var t=Xr(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).handleMouseDown=r.handleMouseDown.bind(h()(r)),r}return p()(n,[{key:"handleMouseDown",value:function(e){if(e.preventDefault(),!e.button){var t=e.clientX-e.target.getBoundingClientRect().left;this.props.onAddColor({pos:t,pointX:e.clientX})}}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.stops,r=(e.onAddColor,Vr()(e,["width","stops","onAddColor"])),o={width:t,height:17,position:"relative",cursor:"crosshair"};return i.a.createElement("div",{className:"csh",style:o,onMouseDown:this.handleMouseDown},n.map((function(e){return i.a.createElement(Gr,zr()({key:e.id,stop:e},r))})))}}]),n}(i.a.Component);Yr.propTypes={width:gt.a.number.isRequired,stops:gt.a.arrayOf(gt.a.shape({id:gt.a.number.isRequired,color:gt.a.string.isRequired,pos:gt.a.number.isRequired,isActive:gt.a.bool.isRequired,pointX:gt.a.number}).isRequired).isRequired,limits:gt.a.shape({min:gt.a.number.isRequired,max:gt.a.number.isRequired,drop:gt.a.number.isRequired}).isRequired,onAddColor:gt.a.func.isRequired,onPosChange:gt.a.func.isRequired,onActivate:gt.a.func.isRequired,onDeleteColor:gt.a.func.isRequired};var Kr=Yr,Jr=function(e){var t=e.palette,n=e.width,r=e.height,o=l()(t).sort((function(e,t){return e.pos-t.pos})),a="_"+Math.random().toString(36).substr(2,9),s="url(#".concat(a,")");return i.a.createElement("div",{className:"palette",style:{width:n,height:r}},i.a.createElement("svg",{width:"100%",height:"100%"},i.a.createElement("defs",null,i.a.createElement("linearGradient",{id:a,x1:"0",y1:"0.5",x2:"1",y2:"0.5"}," ",o.map((function(e){return i.a.createElement("stop",{key:e.id,offset:e.pos,style:{stopColor:e.color,stopOpacity:1}})})))),i.a.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:s})))};Jr.propTypes={width:gt.a.number.isRequired,height:gt.a.number.isRequired,palette:gt.a.arrayOf(gt.a.shape({id:gt.a.number.isRequired,color:gt.a.string.isRequired,pos:gt.a.number.isRequired}).isRequired).isRequired};var Zr=Jr,Qr=(n(322),[{value:"#000000",name:"black"},{value:"#808080",name:"gray"},{value:"#C0C0C0",name:"silver"},{value:"#FFFFFF",name:"white"},{value:"#FF0000",name:"red"},{value:"#800000",name:"maroon"},{value:"#FFFF00",name:"yellow"},{value:"#808000",name:"olive"},{value:"#00FF00",name:"lime"},{value:"#008000",name:"green"},{value:"#00FFFF",name:"aqua"},{value:"#008080",name:"teal"},{value:"#0000FF",name:"blue"},{value:"#000080",name:"navy"},{value:"#FF00FF",name:"fuchsia"},{value:"#800080",name:"purple"}]),ei=function(e){var t=e.onSelect,n=e.color;return i.a.createElement("div",{className:"cp"},Qr.map((function(e){return i.a.createElement("div",{onClick:function(){return t(e.value)},key:e.name,title:e.name,style:{backgroundColor:e.value}})})),i.a.createElement("pre",null,"Active color: ",n))};ei.propTypes={color:gt.a.string.isRequired,onSelect:gt.a.func.isRequired};var ti=ei;function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oi=function(e){return{palette:e.map((function(e,t){return ii({id:t+1},e)})),activeId:1,pointX:null}},ai=function(e){v()(n,e);var t=ni(n);function n(e){var r;return c()(this,n),(r=t.call(this,e)).state=ii({},oi(e.palette)),r.handlePosChange=r.handlePosChange.bind(h()(r)),r.handleAddColor=r.handleAddColor.bind(h()(r)),r.handleActivate=r.handleActivate.bind(h()(r)),r.handleDeleteColor=r.handleDeleteColor.bind(h()(r)),r.handleSelectColor=r.handleSelectColor.bind(h()(r)),r}return p()(n,[{key:"notifyChange",value:function(e){this.props.onPaletteChange(function(e){return e.sort((function(e,t){return e.pos-t.pos})).map((function(e){var t=e.pos,n=e.color;return{pos:t.toPrecision(3),color:n}}))}(e))}},{key:"handleActivate",value:function(e){this.setState({activeId:e})}},{key:"handleDeleteColor",value:function(e){if(!(this.state.palette.length<3)){var t=this.state.palette.filter((function(t){return t.id!==e})),n=t.reduce((function(e,t){return t.pos<e.pos?t:e}),t[0]).id;this.setState({palette:t,activeId:n}),this.notifyChange(t)}}},{key:"handlePosChange",value:function(e){var t=this,n=e.id,r=e.pos,i=this.state.palette.map((function(e){return n===e.id?ii(ii({},e),{},{pos:(r+5)/t.width1}):ii({},e)}));this.setState({palette:i}),this.notifyChange(i)}},{key:"handleAddColor",value:function(e){var t=e.pos,n=e.pointX,r=this.activeStop.color,i={id:this.nextId,pos:t/this.width1,color:r},o=[].concat(l()(this.state.palette),[i]);this.setState({palette:o,pointX:n}),this.notifyChange(o)}},{key:"handleSelectColor",value:function(e){var t=this.state,n=t.palette,r=t.activeId;n=n.map((function(t){return r===t.id?ii(ii({},t),{},{color:e}):ii({},t)})),this.setState({palette:n}),this.notifyChange(n)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){for(var t=e.palette,n=this.props.palette,r=Math.min(t.length,n.length),i=0;i<r;i++)if(t[i].pos!==n[i].pos||t[i].color!==n[i].color)return void this.setState(ii({},oi(t)))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=e.drop,o=this.width1-5;return i.a.createElement("div",null,i.a.createElement(Zr,{width:t,height:n,palette:this.state.palette}),i.a.createElement(Kr,{width:t,stops:this.mapStateToStops,limits:{min:-5,max:o,drop:r},onPosChange:this.handlePosChange,onAddColor:this.handleAddColor,onActivate:this.handleActivate,onDeleteColor:this.handleDeleteColor}),this.colorPicker)}},{key:"width1",get:function(){return this.props.width+1}},{key:"nextId",get:function(){return Math.max.apply(Math,l()(this.state.palette.map((function(e){return e.id}))))+1}},{key:"activeStop",get:function(){var e=this;return this.state.palette.find((function(t){return t.id===e.state.activeId}))}},{key:"mapStateToStops",get:function(){var e=this,t=this.state.activeId,n=this.state.pointX;return this.state.palette.map((function(r){return ii(ii({},r),{},{pos:e.width1*r.pos-5,isActive:r.id===t,pointX:n})}))}},{key:"colorPicker",get:function(){var e=this.props.children,t={color:this.activeStop.color,onSelect:this.handleSelectColor};if(!e)return i.a.createElement(ti,t);var n=i.a.Children.only(e);return i.a.cloneElement(n,t)}}]),n}(i.a.Component);ai.propTypes={width:gt.a.number,height:gt.a.number,drop:gt.a.number,palette:gt.a.arrayOf(gt.a.shape({pos:gt.a.number,color:gt.a.string}).isRequired),onPaletteChange:gt.a.func.isRequired},ai.defaultProps={width:400,height:32,drop:50,palette:[{pos:0,color:"#9adafa"},{pos:1,color:"#028080"}]};var si=ai,li=n(132),ui=n.n(li),ci=function(e){var t=e.onSelect,n=Vr()(e,["onSelect"]);return i.a.createElement(xr,zr()({height:100},n,{action:function(e){var n=e.rgb,r="rgba("+n.r+","+n.g+","+n.b+","+n.a+")";return t(r)},paletteAction:function(e){return t(e)}}))},fi=["linear-gradient","radial-gradient"],pi=["to left top","to top","to right top","to left","","to right","to left bottom","to bottom","to right bottom"],di=["farthest-corner at 0% 0%","farthest-corner at 50% 0%","farthest-corner at 100% 0%","farthest-corner at 0% 50%","farthest-corner at 50% 50%","farthest-corner at 100% 50%","farthest-corner at 0% 100%","farthest-corner at 50% 100%","farthest-corner at 100% 100%"],hi=function(e){var t=Object(r.useState)(null),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)([]),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)("linear-gradient"),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(!1),v=E()(m,2),g=v[0],y=v[1],b=ui()(!1,(function(e){Z(u)})),_=E()(b,2),w=_[0],x=_[1],k=Object(r.useState)(!1),C=E()(k,2),S=C[0],O=C[1],A=e.v,j=e.app,P=e.prop,N=e.c,T=e.propOptions,M=e.closePanel,D=Object(r.useState)(!1),L=E()(D,2),F=L[0],I=L[1],R=Object(r.useState)(!1),B=E()(R,2),$=B[0],W=B[1],z=Object(r.useState)(!1),H=E()(z,2),V=H[0],U=H[1],q=Object(r.useState)({}),G=E()(q,2),X=G[0],Y=G[1];Object(r.useEffect)((function(){F||K(!0)})),Object(r.useEffect)((function(){return A!==$&&K(!0),function(){setTimeout((function(){ye(j)}),300)}}),[A]);var K=function(e){var t=document.querySelectorAll(".heroNode[data-prop=background-image] .inputWrap")[0],n=parseInt(window.getComputedStyle(t).getPropertyValue("padding-left")||0),r=parseInt(window.getComputedStyle(t).getPropertyValue("padding-left")||0),i=t.offsetWidth-n-r-20;i=i>330?330:i,console.log(i);var o=function(e){-1===e.indexOf("-gradient")&&(e="linear-gradient(to right,red,blue)");var t="linear-gradient",n={g:[],d:"",r:!1};e.indexOf("repeating-")>-1&&(e=e.replace("repeating-",""),n.r=!0),fi.forEach((function(n){e.indexOf(n)>-1&&(t=n)})),n.t=t;var r,i,o,a,s=e.split(t)[1];s=s.substring(s.indexOf("(")+1,s.lastIndexOf(")")),i=0,o=0,a=[],(r=s).replace(/[^(),]*([)]*)([(]*)(,)?/g,(function(e,t,n,r,s,l){i+=n.length-t.length;var u=s+e.length;return!i&&r&&(a.push(l.substring(o,u-1)),o=u),e})),a.push(r.substring(o));var l=[];(s=a).forEach((function(e){var t=(e=(e=e.trim()).split(" ").join(" ").split(", ").join(",").split(" ,").join(",")).split(" "),r=[];t.forEach((function(e){Le(e)&&r.push(e),j.state.projectVars[e]&&Le(j.state.projectVars[e])&&r.push(e)})),0===r.length?n.d=e:l.push(e)})),n.g=[];var u={};l.forEach((function(e){var t={};e.split(" ").forEach((function(e){if(Le(e))t.color=e;else if(j.state.projectVars[e]&&Le(j.state.projectVars[e])){var n=j.state.projectVars[e];u[n]=e,t.color=n}else t.pos=e})),n.g.push(t)})),Y(u);var c=n.g.length-1;return n.g.forEach((function(e,t){var n=e.pos;if(n||(n="no"),n.indexOf("%")>-1)e.pos=parseInt(n)/100;else{var r=100/c;r*=t,r/=100,e.pos=r}})),n}(A);e&&I(o.g),O(o.r),a(i),c(o.g),x(o.d),h(o.t),W(A)},J=function(){V&&yr(P,V,N,!0,j,T)},Z=function(e){var t=j.state,n=t.currentEl,r=t.projectVars;for(var i in e)e[i].pos=parseFloat(e[i].pos);var o,a,s=(o=(S?"repeating-":"")+d+"("+(w?w+",":""),a=[],u.forEach((function(e){var t=e.pos,n=e.color;n=X[n]?X[n]:n,t=100*parseFloat(t),t=parseInt(t),a.push(n+" "+t+"%")})),o+=a.join(",")+")");ge(j,function(){var e=s;if(e.indexOf("@")>-1)for(var t in r)e=e.split(t).join(r[t]);return n+"{"+P+":"+e+"!important;}"}()),c(e),U(s)};return function(){var t=[];fi.forEach((function(e){var n=e===d?"cur":"",r=e.replace("-gradient","").replace("repeating-","");t.push(i.a.createElement("div",{key:e,className:r+" "+n+" gType",onClick:function(){return function(e){h(e),x(""),Z(u)}(e)}},r))}));var n=[],r=[];d.indexOf("linear-")>-1&&(r=pi),d.indexOf("radial-")>-1&&(r=di),r.forEach((function(e){var t=e===w?"cur":"";n.push(i.a.createElement("div",{"data-type":e,className:t+" gDir",key:e,onClick:function(){return x(e)}},i.a.createElement("div",{className:"ico arr"})))}));var a=S?"active":"",s=i.a.createElement("div",{onClick:function(){return O(!S),void Z(u)},className:"repeater "+a},i.a.createElement("span",null),"Repeat"),l=g?"showPicker":"",c=g?i.a.createElement("div",{className:"gradientColorMask",onClick:function(){return y(!1)}}):"";return o?i.a.createElement(i.a.Fragment,null,e.children,i.a.createElement("div",{className:"gradientMask",onClick:function(){J(),M(!1)}}),i.a.createElement("div",{className:"extraWidget"},c,i.a.createElement("div",{id:"gControls"},i.a.createElement("div",{id:"gDirs"},n),i.a.createElement("div",{id:"gInputs"},i.a.createElement("div",{className:"extraHead"},t),i.a.createElement("div",null,i.a.createElement("div",null,i.a.createElement("input",{type:"text",spellCheck:"false",value:w,onChange:function(e){return x(e.target.value)}})),s))),i.a.createElement("div",{id:"gradientBuilder",className:l,onClick:function(e){e.target.matches(".cs *")&&y(!g)}},i.a.createElement(si,{width:o-2,height:32,palette:F,onPaletteChange:function(e){return Z(e)}},i.a.createElement(ci,{width:o-20,app:j}))),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary",onClick:function(){M(!1)}},"Cancel"),i.a.createElement("div",{className:"btn primary",onClick:function(){J(),M(!1)}},"Submit")))):[]}()};function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gi=function(e){var t=Object(r.useState)({page:1,orderby:"latest",query:"sky",howMany:9}),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)({}),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)(!1),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(null),v=E()(m,2),g=v[0],y=v[1],b=Object(r.useState)(null),_=E()(b,2),w=_[0],x=_[1],k=Object(r.useState)(!1),C=E()(k,2),S=C[0],O=C[1],A="205797f685f288d58f13cfe0755e011d48ff7ac4e39f72366223c80f1f97b858",j=function(e){var t=(e.query?"https://api.unsplash.com/search/photos":"https://api.unsplash.com/photos")+"/?client_id="+A+"&per_page="+e.howMany+"&query="+e.query+"&page="+e.page+"&order_by="+e.orderby;fetch(t).then((function(e){return e.json()})).then((function(e){e=e.results?e.results:e,c(e),h(!1)}))};Object(r.useEffect)((function(){We(300,(function(){return j(o)}))}),[o]);var P=Object(r.useCallback)((function(){var e=F();if(e.length>0){var t=[],n=0;e.forEach((function(r,i){fetch("https://api.unsplash.com/photos/"+r+"/?client_id="+A).then((function(e){return e.json()})).then((function(r){n++,t.push(r),n===e.length&&(c(t),h(!1))}))}))}else c([]),h(!1)}),[]);Object(r.useEffect)((function(){S?P():j(o)}),[S,o,P]);var N,T,M,D=function(e,t){var n=[];if(t)n.push(i.a.createElement("div",{key:1,className:"loader"}));else{var r=function(t){var r=e[t],a=r.id,s=r.urls,l=r.width,u=r.height,c=F().indexOf(a)>-1?"loved":"";n.push(i.a.createElement("div",{onClick:function(){y({urls:s}),x({width:l,height:u})},className:"item",key:a,style:{backgroundImage:"url("+s.thumb+")"}},i.a.createElement("span",{className:"ico eye"}),i.a.createElement("span",{className:c+" love",onClick:function(e){e.stopPropagation(),function(e){var t=F(),n=t.indexOf(e);-1===n?t.push(e):t.splice(n,1),localStorage.setItem("HERO_UNSPLASH_FAVS",JSON.stringify(t)),S?P():j(o)}(a)}},i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("polygon",{points:"20,13.818 21.841,18.118 26.5,18.541 22.979,21.621 24.017,26.182 20,23.785 15.983,26.182 17.021,21.621 13.5,18.541 18.159,18.118 "})))))};for(var a in e)r(a)}return n},L=function(e){h(!0);var t=vi(vi({},o),e);a(t)},F=function(){var e=localStorage.getItem("HERO_UNSPLASH_FAVS");return e=e?JSON.parse(e):[]},I=function(e){var t=F(),n=i.a.createElement("div",{className:"f",onClick:function(){O(!S)}},i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("polygon",{points:"20,13.818 21.841,18.118 26.5,18.541 22.979,21.621 24.017,26.182 20,23.785 15.983,26.182 17.021,21.621 13.5,18.541 18.159,18.118 "})),i.a.createElement("span",null,t.length));return S?i.a.createElement("div",{className:"params"},i.a.createElement("span",{onClick:function(){O(!1)}},"← Back"),n):i.a.createElement("div",{className:"params"},i.a.createElement("div",{className:"s"},i.a.createElement("span",{className:"ico search"}),i.a.createElement("input",{type:"text",spellCheck:"false",value:e.query,onChange:function(e){L({query:e.target.value})}})),i.a.createElement("div",null,i.a.createElement("div",{className:"heroSelect"},i.a.createElement("select",{value:e.orderby,onChange:function(e){return L({orderby:e.target.value})}},i.a.createElement("option",{value:"latest"},"Latest"),i.a.createElement("option",{value:"oldest"},"Oldest"),i.a.createElement("option",{value:"popular"},"Popular")))),n)},R=function(t){var n=[];if(t){var r=w.width,o=w.height,a=r,s=[],l=function(n){var l=t.urls[n].indexOf("&w")>-1&&t.urls[n].split("&w=")[1],u=o;l&&(r=parseInt(l.split("&")[0]),u=parseInt(o*r/a)),s.push(i.a.createElement("li",{onClick:function(){return r=t.urls[n],void yr(e.prop,"url("+r+")",e.c,!0,e.app,e.propOptions);var r},key:n},i.a.createElement("span",null,"("+r+" x "+u+")"),n))};for(var u in t.urls)l(u);n.push(i.a.createElement("div",{key:"zoom",className:"zoom"},i.a.createElement("div",{onClick:function(){return y(!1)},className:"zoomClose"},i.a.createElement("span",{className:"ico close"})),i.a.createElement("img",{alt:"unsplash",src:t.urls.thumb}),i.a.createElement("div",{className:"unsplashSetter"},i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement("h4",null,"Choose Size")),s),i.a.createElement("div",{className:"btn"},"Set Image"))))}return n},B=S?i.a.createElement("div",{id:"unsplashFavs"},R(g),I(o),i.a.createElement("div",{className:"gallery"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},D(u,d)))):i.a.createElement(i.a.Fragment,null,R(g),I(o),i.a.createElement("div",{className:"gallery"},D(u,d)));return i.a.createElement(i.a.Fragment,null,B,i.a.createElement("div",{className:"extraBtns"},(N=i.a.createElement("span",{className:"btn cnt"},o.page),T=o.page>1?i.a.createElement("div",{className:"btn secondary",onClick:function(){var e=o.page-1<=1?1:o.page-1;L({page:e})}},"prev"):"",M=i.a.createElement("div",{className:"btn secondary",onClick:function(){return L({page:o.page+1})}},"next"),i.a.createElement(i.a.Fragment,null,N,T,M))))},yi=function(e){var t=e.c,n=e.app,o=e.prop,a=e.propOptions,s=Object(r.useState)(!1),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)([]),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(!1),v=E()(m,2),g=v[0],y=v[1],b=Object(r.useState)(0),_=E()(b,2),w=_[0],x=_[1],k=Object(r.useState)(!1),C=E()(k,2),S=C[0],O=C[1];Object(r.useEffect)((function(){j()}),[]),Object(r.useEffect)((function(){j()}),[w]),Object(r.useEffect)((function(){P()}),[d]);var A,j=function(){y(!0);var e=window.baseUrl?window.baseUrl:"";fetch(e+"?csshero_get_images=1&load_offset="+w,{method:"GET",credentials:"same-origin",headers:{"Cache-Control":"no-cache"}}).then((function(e){return e.json()})).then((function(e){e.length>1?h(e):x(w-1),y(!1)})).catch((function(e){console.log("Error :( Details: "+e)}))},P=function(){var e=d.map((function(e,t){var n="";return e.original&&(n=e.formats[0].thumbnail?e.formats[0].thumbnail:e.original,n=i.a.createElement("div",{className:"item",style:{backgroundImage:"url("+n+")"},onClick:function(){O(e)},key:t})),n}));return i.a.createElement("div",{className:"loadedImgs gallery"},e)},N=function(e){yr(o,"url("+e+")",t,!0,n,a)},T=u?i.a.createElement("div",{className:"preUploadWrap"},i.a.createElement("span",null,u.name),i.a.createElement("input",{className:"btn primary",type:"submit",name:"submit",value:"Upload Image"})):i.a.createElement("span",{className:"btn secondary dark"},"Upload"),M=i.a.createElement("div",{className:"upForm"},i.a.createElement("form",{onSubmit:function(e){y(!0),e.preventDefault(),u&&ce({action:"csshero_upload_image",newpicture:u},(function(){j(),c(!1)}))},id:"heroUploadImage",encType:"multipart/form-data"},i.a.createElement("input",{type:"file",name:"newpicture",size:"25",onChange:function(e){var t=e.target.files[0];c(t)}}),T)),D=g?i.a.createElement("div",{className:"gallery"},i.a.createElement("div",{className:"loader"})):P();return i.a.createElement("div",{id:"imageUpload"},i.a.createElement("div",{className:"params"},M),D,(A=0===w?"":i.a.createElement("span",{className:"btn",onClick:function(){return x(w-1)}},"Prev"),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("span",{className:"btn cnt"},w+1),A,i.a.createElement("span",{className:"btn",onClick:function(){return x(w+1)}},"Next"))),function(){var e=[];if(S){var t=[],n=S.formats[0]?S.formats[0]:[];for(var r in n.original=S.original,n)-1===r.indexOf("woocommerce")&&-1===r.indexOf("shop")&&function(){var e=n[r],o=r.split("_").join(" "),a=e.substring(e.lastIndexOf("-")+1,e.lastIndexOf(".")),s="",l="";a.indexOf("x")>-1&&(s=a.split("x")[0],l=a.split("x")[1]?a.split("x")[1]:"");var u=s&&l&&r!==s+"x"+l?i.a.createElement("span",null,"("+s+" x "+l+")"):"";t.push(i.a.createElement("li",{onClick:function(){return N(e)},key:r},u,o))}();e.push(i.a.createElement("div",{key:"zoom",className:"zoom"},i.a.createElement("div",{onClick:function(){return O(!1)},className:"zoomClose"},i.a.createElement("span",{className:"ico close"})),i.a.createElement("img",{alt:"uploadedMedia",src:S.original}),i.a.createElement("div",{className:"unsplashSetter"},i.a.createElement("ul",null,t),i.a.createElement("div",{className:"btn"},"Set Image"))))}return e}())},bi=function(e){var t=Object(r.useState)("unsplash"),n=E()(t,2),o=n[0],a=n[1],s=e.app,l=e.c,u=e.prop,c=e.v,f=e.propOptions,p=e.closePanel,d="unsplash"===o?i.a.createElement(gi,{app:s,prop:u,v:c,c:l,propOptions:f}):i.a.createElement(yi,{app:s,prop:u,v:c,c:l,propOptions:f});return i.a.createElement("div",{id:"unsplasher",className:"extraWidget"},i.a.createElement("header",{className:"extraHead"},i.a.createElement("span",{onClick:function(){return a("unsplash")},className:"unsplash"===o?"cur":""},"Unsplash"),i.a.createElement("span",{onClick:function(){return a("media")},className:"media"===o?"cur":"wpOnly"},"Media Library"),i.a.createElement("span",{className:"ico close",onClick:function(){return p(!1)}})),d)},_i={geometric:["//i.imgur.com/XTHJuL1.png","//i.imgur.com/xiz4ORU.png","//i.imgur.com/mDpwxm0.png","//i.imgur.com/lwy6shD.png","//i.imgur.com/bByGF3b.png","//i.imgur.com/AY20rH6.jpg","//i.imgur.com/hr3TBUI.jpg","//i.imgur.com/hw9Esog.jpg"],artistic:["//i.imgur.com/zkdl6q0.png","//i.imgur.com/dIb8Kn2.png","//i.imgur.com/nxejlJ3.png","//i.imgur.com/mojigtK.png","//i.imgur.com/KxQHZrU.jpg","//i.imgur.com/VOnPghD.gif","//i.imgur.com/O9GB9AT.jpg","//i.imgur.com/VRPWNhm.png","//i.imgur.com/TIQaMuA.jpg","//i.imgur.com/bTdRcUq.png","//i.imgur.com/VeAOCJ8.png"],icons:["//i.imgur.com/w50C0y0.png","//i.imgur.com/kxB8uX6.png","//i.imgur.com/J3b5IwD.jpg","//i.imgur.com/2kZBWJC.jpg","//i.imgur.com/V6YtVRM.png","//i.imgur.com/kqjjSAJ.gif"],tridimensional:["//i.imgur.com/Bsn619g.png","//i.imgur.com/BaECdJ3.png","//i.imgur.com/yjG29fI.png","//i.imgur.com/VIRGH7Y.gif","//i.imgur.com/stoKKOR.jpg","//i.imgur.com/YR1lAzZ.png","//i.imgur.com/IsnEDMG.png","//i.imgur.com/PT620Cn.jpg"]},wi={buttons:{".btn-reset()":{def:"&:before,&:after{display:none;}height:auto;text-align:center;text-decoration:none;font-style:normal;text-shadow:none;display:inline-block;font-size:14px;line-height:20px;border:none;font-weight:bold;&:active{position:relative;top:1px;}",des:"helper",hidden:!0},".btn-3d(@color:#4289dc)":{def:".btn-reset(); padding:.7vw 2vw; text-transform:uppercase; border:0 solid darken(@color,10%); background:@color; border-bottom-width:5px; border-radius:5px 5px 7px 7px; color:fade(contrast(@color),70%);",des:"A classic 3d effect button with customisable color"},".btn-traditional(@color:#4289dc)":{def:".btn-reset(); @text:contrast(@color); @shadow:contrast(@text); background:@color; .gradient(to top,@color,darken(@color,10%)); text-shadow:0 1px 0 fade(@shadow,30%); border:1px solid darken(@color,15%); color:fade(@text,70%); padding:.5vw 2vw; border-radius:5px; box-shadow:inset 0 1px 0px fade(lighten(@color,30%),30%);",des:"Web 2.0 button style"},".btn-grad(@color:#4289dc)":{def:".btn-reset(); @c1:spin(@color,120); @c2:darken(@color,60%); @c3:contrast(darken(mix(@color,@c1),30%)); @c4:contrast(@c3);.gradient(45deg, @color 10%,@c1);.transition(); box-shadow:0 20px 30px fade(@c2,30%); border-radius:5px; padding:1.5vw 3vw; color:@c3; text-shadow:0 1px 0px fade(@c4,20%); min-width:200px; &:hover{ box-shadow:0 10px 20px fade(@c2,30%);}",des:"A modern, gradient styled button, choose the starting color he will do the rest"},".btn-pill(@color:#4289dc)":{def:".btn-reset(); background:transparent; border:2px solid @color; border-radius:150px; color:@color; padding: 5px 20px; &:hover{ background:fade(@color,20%);}",des:"A very simple pill button with hover effect"},".rect-button(@color:black)":{def:".btn-reset(); text-transform:uppercase; border: 1px solid @color; padding: 1vw 2vw; color:@color; border-radius:2px; background:transparent; .transition(); &:hover{ background:@color; color:contrast(@color);}",des:"Simple square button with fill on hover effect"}},utils:{".centerVertically()":{def:"display:flex;align-items:center;flex-direction:column;",des:"Vertically centers element's direct childs."},".centerHorizontally()":{def:"display:flex;align-items:center;flex-direction:row;>*{margin:0;}",des:"Horizontally centers element's direct childs."},".gradient(@direction:to top left,@color1:red,@color2:blue)":{def:"background-image:linear-gradient(@direction,@color1,@color2);",des:"Build background gradients in a breeze, supports direction, start and end color",previewStyle:"span{padding:20px;color:white;border-radius:5px;}"},".text_clipper()":{def:"-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;background-image:linear-gradient(to right,red,blue);",des:"Easily Apply gradients or background images to text elements. Use the background-image property to adjust the look :)"},".modernList(@color:#444)":{def:"list-style:none; padding:0; margin:0; border:1px solid @color; border-radius:5px; margin-bottom:10px; > li{ list-style:none; .transition(); &:hover{ background:fade(@color,5%); } padding:10px; border-bottom:1px solid @color; &:last-of-type{ border:none; }}",des:"A simple flat list, should be applied on list items such as ULs and OLs",previewStyle:"span{padding:20px;background:white;border-radius:5px;}"},".clipText(@mode:text)":{def:"color:transparent;background-clip:@mode;-webkit-background-clip:@mode;",hidden:!0},".transition(@time:.2s)":{def:"transition:all @time",hidden:!0},".columns(@count:3,@gap:20px)":{def:"column-count:@count;column-gap:@gap;",des:"Splits any content into columns",previewStyle:"span{padding:20px;background:white;border-radius:5px;}"},".white-card()":{def:"background:white;padding:2vw;color:#333;border-radius:5px;box-shadow:0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);border:none;",des:"A modern card styled box, should be applied on containers"},".sticker(@offset:0)":{def:"position:sticky;top:@offset;",des:"This snippet will stick an element on the top of the page upon scroll."},"._d(@p,@v,@w:1025px)":{def:"@media screen and (min-width:@w){@{p}: @v;}",des:"Desktop Only helper mixin."},".includeFont(@name,@url)":{def:"@font-face{font-family:@name;src: url(@url);}",des:"A helper to include custom fonts",hidden:!0}},shadows:{".drop-shadow-subtle(@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25)":{def:"box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);",des:"Subtle drop shadow effect",previewStyle:"span{background:white;padding:10px;border-radius:2px;}"},".drop-shadow-flat(@x: 0, @y: 0px, @blur: 30px, @spread: 0, @alpha: 0.5)":{def:"box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);",des:"A flat, lighter shadow effect",previewStyle:"span{background:white;padding:10px;border-radius:2px;}"},".inner-shadow(@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25)":{def:"box-shadow: inset @x @y @blur @spread rgba(0, 0, 0, @alpha);",des:"Sets a small shadow inside the selected element",previewStyle:"span{background:white;padding:10px;border-radius:2px;}"}},dividers:{".divider-arrow(@color:#4289dc)":{def:'position:relative; overflow:hidden;padding-bottom:50px; &:after, &:before{content:""; position:absolute;bottom:-400px;left:-50%;width:200%;height:400px;background:@color;transform:rotate(5deg);transform-origin:center top; } &:after{transform:rotate(-5deg);}',des:"An arrow shaped section divider",previewStyle:"span{display:block}padding-bottom:0;"},".divider-diagonal(@color:#4289dc)":{def:'position:relative; overflow:hidden; padding-bottom:150px; &:before{-webkit-backface-visibility: hidden;box-shadow: inset 0 0 30px fade(black,20%);content:"";width:100%;height:50px;position:absolute;bottom:-300px;left:-50%;width:200%;height:400px;background:@color;transform:rotate(5deg);transform-origin:center top;}',des:"A diagonal section divider",previewStyle:"span{display:block}padding-bottom:0;"},".divider-3-dots(@color:#4289dc)":{def:'position:relative; padding-bottom:50px;&:before{display:block;position:absolute;content:"";bottom: 20px;width: 10px;height: 10px;border-radius: 50%;left: 50%;transform: translateX(-50%);background: @color;box-shadow: 20px 0 @color, -20px 0 @color;}',des:"Medium style 3 dots divider",previewStyle:"span{display:block}padding-bottom:0;"},".divider-rounded(@color:#4289dc)":{def:'overflow:hidden; position:relative; padding-bottom:100px; &:after{content:"";position:absolute;bottom:-30px;left:-5%;width:110%;height:130px;background:@color;border-radius:50% 50% 0 0;-webkit-backface-visibility: hidden;box-shadow: inset 0 0 30px fade(black,20%);}',des:"A rounded section divider",previewStyle:"span{display:block}padding-bottom:0;"},".divider-spike(@color:#4289dc,@height:80px)":{def:'padding-bottom:@height;position:relative;&:before,&:after{content:"";position:absolute;bottom:0;width:51%;left:0;height:@height;background:@color;border-radius:0 @height*1.5 0 0;}&:after{left:auto;right:0;border-radius:@height*1.5 0 0 ;}',des:"A spiked divider, @color should be the color of the following section",previewStyle:"span{display:block}padding-bottom:0;"},".divider-curve-right(@color:#4289dc,@height:150px)":{def:'overflow:hidden;position:relative;padding-bottom:@height;&:after{content:"";position:absolute;bottom:0;left:-10%;width:120%;height:@height/1.5;background:@color;border-top-right-radius:1500%}',des:"A right oriented curved divider",previewStyle:"span{display:block}padding-bottom:0;"},".divider-curve-left(@color:#4289dc,@height:150px)":{def:'overflow:hidden;position:relative;padding-bottom:@height;&:after{content:"";position:absolute;bottom:0;left:-10%;width:120%;height:@height/1.5;background:@color;border-top-left-radius:1500%}',des:"A left oriented curved divider",previewStyle:"span{display:block}padding-bottom:0;"}},backgrounds:{".glass-effect(@color:#fff,@opacity:.3,@blur:2px)":{def:"background: rgba(@color,@opacity);box-shadow: 0 8px 32px 0 rgba(#000, 0.2 );backdrop-filter: blur(@blur );-webkit-backdrop-filter: blur( @blur );border: 1px solid rgba( @color, @opacity );",des:"Glassmorphism effect inspired by glassmorphism.com",previewStyle:"span{border-radius:5px;width:80%;margin:25px;margin-left:10%;height:50px;}min-height:100px;"},".mesh-gradient(@bg:red)":{def:"background-color: @bg;background-image:radial-gradient(at 80% 100%, spin(@bg,-80) 0px, transparent 50%),radial-gradient(at 40% 20%, spin(@bg,40) 0px, transparent 50%),radial-gradient(at 80% 0%, spin(@bg,-30) 0px, transparent 50%),radial-gradient(at 0% 50%, lighten(spin(@bg,-40),30) 0px, transparent 120%),radial-gradient(at 80% 50%, spin(@bg,10) 0px, transparent 50%),radial-gradient(at 0% 100%, spin(@bg,-10) 0px, transparent 50%),radial-gradient(at 0% 0%, spin(@bg,40) 0px, transparent 50%)",des:"a nice mesh gradient",previewStyle:"span{background-size:100%}min-height:100px;"},".striped-bg-effect()":{def:'position:relative; z-index:0; overflow:hidden; &:after, &:before{ pointer-events:none; content:""; position:absolute; top:10%; left:0; height:50%; -webkit-backface-visibility:hidden; backface-visibility:hidden; transform:skew(0,-15deg); width:70%; transform-origin:top right; background-color:white; mix-blend-mode:overlay; opacity:.3; .gradient(to right,white,black); z-index:-1; } &:after{ left:30%; height:100%;}',des:"A cool striped background effect",previewStyle:"span{display:block;height:100px;}padding:0;"},".duotonizer(@c1:#ff3300,@c2:blue)":{def:'position:relative; overflow:hidden; z-index:0; &:after, &:before{ pointer-events:none; content:""; position:absolute; top:0; left:0; height:100%; width:100%; background-color:@c1; mix-blend-mode:darken; display:block; z-index:-1; } &:after{ mix-blend-mode:lighten; background-color:@c2;}',des:"Apply on elements with background-image property set to create duo-tone styles. For optimal results @c1 shall be lighter than @c2.",previewStyle:"span{display:block;height:100px;\tbackground-image: url(https://images.unsplash.com/photo-1603756835315-07bf36b17491?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjEwMjAxfQ);background-size:cover;}padding:0;\t"},".colorscroller(@c1:red,@c2:blue)":{def:"background-color:@c1; background-image:linear-gradient(to top,@c1,@c2); background-attachment:fixed;",des:"",previewStyle:"span{display:block;height:150px;}padding:0;height:150px;"}},hover_effects:{".hvr-grow()":{def:"display: inline-block; vertical-align: middle; transform: translateZ(0); backface-visibility: hidden; transition-duration: 0.3s; box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-property: transform; &:active, &:focus, &:hover{ transform: scale(1.1);}",des:"Hover grow effect"},".hvr-shrink()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; &:active, &:focus, &:hover{ transform: scale(0.9);}",des:"Hover shrink effect"},".hvr-pulse()":{def:"@keyframes hvr-pulse{ 25% { transform: scale(1.1); } 75% { transform: scale(0.9); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:focus, &:active, &:hover{ animation-name: hvr-pulse; animation-duration: 1s; animation-timing-function: linear; animation-iteration-count: infinite; }",des:""},".hvr-pulse-grow()":{def:"@keyframes hvr-pulse-grow{ to { transform: scale(1.1); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-pulse-grow; animation-duration: 0.3s; animation-timing-function: linear; animation-iteration-count: infinite; animation-direction: alternate; }"},".hvr-pulse-shrink()":{def:"@keyframes hvr-pulse-shrink{ to { transform: scale(0.9); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-pulse-shrink; animation-duration: 0.3s; animation-timing-function: linear; animation-iteration-count: infinite; animation-direction: alternate; }"},".hvr-push()":{def:"@keyframes hvr-push{ 50% { transform: scale(0.8); } 100% { transform: scale(1); } } vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-push; animation-duration: 0.3s; animation-timing-function: linear; animation-iteration-count: 1; }"},".hvr-pop()":{def:"@keyframes hvr-pop{ 50% { transform: scale(1.2); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-pop; animation-duration: 0.3s; animation-timing-function: linear; animation-iteration-count: 1; }"},".hvr-bounce-in()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.5s; &:hover,&:focus,&:active{ transform: scale(1.2); transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36); }"},".hvr-bounce-out()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.5s; &:hover,&:focus,&:active{ transform: scale(0.8); transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36); }"},".hvr-rotate()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; &:hover,&:focus,&:active { transform: rotate(4deg); }"},".hvr-grow-rotate()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; &:hover,&:focus,&:active{ transform: scale(1.1) rotate(4deg); }"},".hvr-float()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; transition-timing-function: ease-out; &:hover,&:focus,&:active{ transform: translateY(-8px); }"},".hvr-sink()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; transition-timing-function: ease-out; &:hover,&:focus,&:active{ transform: translateY(8px); }"},".hvr-bob()":{def:"@keyframes hvr-bob{ 0% { transform: translateY(-8px); } 50% { transform: translateY(-4px); } 100% { transform: translateY(-8px); } } @keyframes hvr-bob-float { 100% { transform: translateY(-8px); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-bob-float, hvr-bob; animation-duration: .3s, 1.5s; animation-delay: 0s, .3s; animation-timing-function: ease-out, ease-in-out; animation-iteration-count: 1, infinite; animation-fill-mode: forwards; animation-direction: normal, alternate; }"},".hvr-hang()":{def:"@keyframes hvr-hang{ 0% { transform: translateY(8px); } 50% { transform: translateY(4px); } 100% { transform: translateY(8px); } } @keyframes hvr-hang-sink { 100% { transform: translateY(8px); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-hang-sink, hvr-hang; animation-duration: .3s, 1.5s; animation-delay: 0s, .3s; animation-timing-function: ease-out, ease-in-out; animation-iteration-count: 1, infinite; animation-fill-mode: forwards; animation-direction: normal, alternate; }"},".hvr-skew()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; &:hover,&:focus,&:active { transform: skew(-10deg); }"},".hvr-skew-forward()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; transform-origin: 0 100%; &:hover,&:focus,&:active{ transform: skew(-10deg); }"},".hvr-skew-backward()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; transform-origin: 0 100%; &:hover,&:focus,&:active{ transform: skew(10deg); }"},".hvr-wobble-vertical()":{def:"@keyframes hvr-wobble-vertical{ 16.65% { transform: translateY(8px); } 33.3% { transform: translateY(-6px); } 49.95% { transform: translateY(4px); } 66.6% { transform: translateY(-2px); } 83.25% { transform: translateY(1px); } 100% { transform: translateY(0); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-wobble-vertical; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }"},".hvr-wobble-horizontal()":{def:"@keyframes hvr-wobble-horizontal{ 16.65% { transform: translateX(8px); } 33.3% { transform: translateX(-6px); } 49.95% { transform: translateX(4px); } 66.6% { transform: translateX(-2px); } 83.25% { transform: translateX(1px); } 100% { transform: translateX(0); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-wobble-horizontal; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }"},".hvr-wobble-to-bottom-right()":{def:"@keyframes hvr-wobble-to-bottom-right{ 16.65% { transform: translate(8px, 8px); } 33.3% { transform: translate(-6px, -6px); } 49.95% { transform: translate(4px, 4px); } 66.6% { transform: translate(-2px, -2px); } 83.25% { transform: translate(1px, 1px); } 100% { transform: translate(0, 0); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-wobble-to-bottom-right; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }"},".hvr-wobble-to-top-right()":{def:"@keyframes hvr-wobble-to-top-right{ 16.65% { transform: translate(8px, -8px); } 33.3% { transform: translate(-6px, 6px); } 49.95% { transform: translate(4px, -4px); } 66.6% { transform: translate(-2px, 2px); } 83.25% { transform: translate(1px, -1px); } 100% { transform: translate(0, 0); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-wobble-to-top-right; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }"},".hvr-wobble-top()":{def:"@keyframes hvr-wobble-top{ 16.65% { transform: skew(-12deg); } 33.3% { transform: skew(10deg); } 49.95% { transform: skew(-6deg); } 66.6% { transform: skew(4deg); } 83.25% { transform: skew(-2deg); } 100% { transform: skew(0); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transform-origin: 0 100%; &:hover,&:focus,&:active { animation-name: hvr-wobble-top; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }"},".hvr-wobble-bottom()":{def:"@keyframes hvr-wobble-bottom{ 16.65% { transform: skew(-12deg); } 33.3% { transform: skew(10deg); } 49.95% { transform: skew(-6deg); } 66.6% { transform: skew(4deg); } 83.25% { transform: skew(-2deg); } 100% { transform: skew(0); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transform-origin: 100% 0; &:hover,&:focus,&:active{ animation-name: hvr-wobble-bottom; animation-duration: 1s; animation-timing-function: ease-in-out; animation-iteration-count: 1; }"},".hvr-buzz()":{def:"@keyframes hvr-buzz { 50% { transform: translateX(3px) rotate(2deg); } 100% { transform: translateX(-3px) rotate(-2deg); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active{ animation-name: hvr-buzz; animation-duration: 0.15s; animation-timing-function: linear; animation-iteration-count: infinite; }"},".hvr-buzz-out()":{def:"@keyframes hvr-buzz-out { 10% { transform: translateX(3px) rotate(2deg); } 20% { transform: translateX(-3px) rotate(-2deg); } 30% { transform: translateX(3px) rotate(2deg); } 40% { transform: translateX(-3px) rotate(-2deg); } 50% { transform: translateX(2px) rotate(1deg); } 60% { transform: translateX(-2px) rotate(-1deg); } 70% { transform: translateX(2px) rotate(1deg); } 80% { transform: translateX(-2px) rotate(-1deg); } 90% { transform: translateX(1px) rotate(0); } 100% { transform: translateX(-1px) rotate(0); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active { animation-name: hvr-buzz-out; animation-duration: 0.75s; animation-timing-function: linear; animation-iteration-count: 1; }"},".hvr-forward()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; &:hover,&:focus,&:active{ transform: translateX(8px); }"},".hvr-backward()":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: transform; &:hover,&:focus,&:active { transform: translateX(-8px); }"},".hvr-fade(@color:#ff3300)":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); overflow: hidden; transition-duration: 0.3s; transition-property: color, background-color; &:hover,&:focus,&:active { background-color: @color; color:fade(contrast(@color),70%); }"},".hvr-back-pulse(@color:#ff3300)":{def:"@keyframes hvr-back-pulse { 50% { background-color: fade(@color,.75%); } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); overflow: hidden; transition-duration: 0.5s; transition-property: color, background-color; &:hover,&:focus,&:active { animation-name: hvr-back-pulse; animation-duration: 1s; animation-delay: 0.5s; animation-timing-function: linear; animation-iteration-count: infinite; background-color: @color; color:fade(contrast(@color),70%); }"},".hvr-sweep-to-right(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.3s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: @color; transform: scaleX(0); transform-origin: 0 50%; transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scaleX(1); } }'},".hvr-sweep-to-left(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.3s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: @color; transform: scaleX(0); transform-origin: 100% 50%; transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scaleX(1); } }'},".hvr-sweep-to-bottom(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.3s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: @color; transform: scaleY(0); transform-origin: 50% 0; transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scaleY(1); } }'},".hvr-sweep-to-top(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.3s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: @color; transform: scaleY(0); transform-origin: 50% 100%; transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scaleY(1); } }'},".hvr-bounce-to-right(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.5s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: @color; transform: scaleX(0); transform-origin: 0 50%; transition-property: transform; transition-duration: 0.5s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scaleX(1); transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66); } }'},".hvr-bounce-to-left(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.5s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: @color; transform: scaleX(0); transform-origin: 100% 50%; transition-property: transform; transition-duration: 0.5s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scaleX(1); transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66); } }'},".hvr-bounce-to-bottom(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.5s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: @color; transform: scaleY(0); transform-origin: 50% 0; transition-property: transform; transition-duration: 0.5s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scaleY(1); transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66); } }'},".hvr-bounce-to-top(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.5s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: @color; transform: scaleY(0); transform-origin: 50% 100%; transition-property: transform; transition-duration: 0.5s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scaleY(1); transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66); } }'},".hvr-radial-out(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; overflow:hidden; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.5s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: @color; border-radius: 100%; transform: scale(0); transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scale(2); } }'},".hvr-radial-in(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; overflow:hidden; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-property: color; transition-duration: 0.5s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: transparent; border-radius: 100%; transform: scale(1); transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scale(0); background:@color; } }'},".hvr-rectangle-in(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow:hidden; transition-property: color; transition-duration: 0.3s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: transparent; transform: scale(1); transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scale(0); background:@color; } }'},".hvr-rectangle-out(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow:hidden; transition-property: color; transition-duration: 0.3s; &:before{ content:""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: transparent; transform: scale(0); transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { color:fade(contrast(@color),70%); &:before{ transform: scale(1); background:@color; } }'},".hvr-border-fade(@color:#ff3300)":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: box-shadow; box-shadow: inset 0 0 0 4px transparent, 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active { box-shadow: inset 0 0 0 4px @color, 0 0 1px rgba(0, 0, 0, 0); }"},".hvr-trim(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; &:before{ content:""; position: absolute; border: @color solid 4px; top: 4px; left: 4px; right: 4px; bottom: 4px; opacity: 0; transition-duration: 0.3s; transition-property: opacity; } &:hover,&:focus,&:active { &:before{opacity: 1} }'},".hvr-ripple-out(@color:#ff3300)":{def:'@keyframes hvr-ripple-out { 100% { top: -12px; right: -12px; bottom: -12px; left: -12px; opacity: 0; } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; &:before { content:""; position: absolute; border: @color solid 6px; top: 0; right: 0; bottom: 0; left: 0; animation-duration: 1s; } &:hover,&:focus,&:active { &:before{animation-name: hvr-ripple-out;} }'},".hvr-ripple-in(@color:#ff3300)":{def:'@keyframes hvr-ripple-in { 100% { top: 0; right: 0; bottom: 0; left: 0; opacity: 1; } } display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; &:before { content:""; position: absolute; border: @color solid 4px; top: -12px; right: -12px; bottom: -12px; left: -12px; opacity: 0; animation-duration: 1s; } &:hover,&:focus,&:active { &:before{animation-name: hvr-ripple-in;} }'},".hvr-outline-out(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; &:before { content:""; position: absolute; border: @color solid 4px; top: 0; right: 0; bottom: 0; left: 0; transition-duration: 0.3s; transition-property: top, right, bottom, left; } &:hover,&:focus,&:active { &:before{ top: -8px; right: -8px; bottom: -8px; left: -8px; } }'},".hvr-outline-in(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; &:before { content:""; position: absolute; border: @color solid 4px; top: -16px; right: -16px; bottom: -16px; left: -16px; opacity:0; transition-duration: 0.3s; transition-property: top, right, bottom, left,opacity; } &:hover,&:focus,&:active { &:before{ top: -8px; right: -8px; bottom: -8px; left: -8px; opacity:1; } }'},".hvr-underline-from-left(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow: hidden; &:before { content:""; position: absolute; z-index: -1; left: 0; right: 100%; bottom: 0; background: @color; height: 4px; transition-property: right; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { &:before{ right:0; } }'},".hvr-underline-from-center(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow: hidden; &:before { content:""; position: absolute; z-index: -1; left: 51%; right: 51%; bottom: 0; background: @color; height: 4px; transition-property: left, right; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { &:before{ right:0; left:0; } }'},".hvr-underline-from-right(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow: hidden; &:before { content:""; position: absolute; z-index: -1; right:0; left: 100%; bottom: 0; background: @color; height: 4px; transition-property: left; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { &:before{ left:0; } }'},".hvr-reveal(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow: hidden; &:before { content:""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: 0; border-color: @color; border-style: solid; border-width: 0; transition-property: border-width; transition-duration: 0.1s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { &:before{ transform: translateY(0); border-width: 4px; } }'},".hvr-overline-from-left(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow: hidden; &:before { content:""; position: absolute; z-index: -1; left: 0; right: 100%; top: 0; background: @color; height: 4px; transition-property: right; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { &:before{ right:0; } }'},".hvr-overline-from-right(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow: hidden; &:before { content:""; position: absolute; z-index: -1; left: 100%; right: 0; top: 0; background: @color; height: 4px; transition-property: left; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { &:before{ left:0; } }'},".hvr-overline-from-center(@color:#ff3300)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; overflow: hidden; &:before { content:""; position: absolute; z-index: -1; left: 51%; right: 51%; top: 0; background: @color; height: 4px; transition-property: left, right; transition-duration: 0.3s; transition-timing-function: ease-out; } &:hover,&:focus,&:active { &:before{ left:0; right:0; } }'},".hvr-glow(@color:black)":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: box-shadow; &:hover,&:focus,&:active { box-shadow: 0 0 8px fade(@color,60%); }"},".hvr-shadow(@color:black)":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: box-shadow; &:hover,&:focus,&:active { box-shadow: 0 10px 10px -10px fade(@color,60%); }"},".hvr-grow-shadow(@color:black)":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: box-shadow, transform; &:hover,&:focus,&:active { box-shadow: 0 10px 10px -10px fade(@color,60%); transform: scale(1.1); }"},".hvr-float-shadow(@color:black)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; transition-duration: 0.3s; transition-property: transform; &:before{ pointer-events: none; position: absolute; z-index: -1; content:""; top: 100%; left: 5%; height: 10px; width: 90%; opacity: 0; background: radial-gradient(ellipse at center, fade(@color,35%) 0%, rgba(0, 0, 0, 0) 80%); transition-duration: 0.3s; transition-property: transform, opacity; } &:hover,&:focus,&:active { transform: translateY(-5px); &:before{ opacity: 1; transform: translateY(5px); } }'},".hvr-box-shadow-out(@color:black)":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: box-shadow; &:hover,&:focus,&:active { box-shadow: 2px 2px 2px fade(@color,60%); }"},".hvr-box-shadow-in(@color:black)":{def:"display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); transition-duration: 0.3s; transition-property: box-shadow; box-shadow: inset 0 0 0 fade(@color,60%), 0 0 1px rgba(0, 0, 0, 0); &:hover,&:focus,&:active { box-shadow: inset 2px 2px 2px fade(@color,60%), 0 0 1px rgba(0, 0, 0, 0); }"},".hvr-box-shadow-radial(@color:black)":{def:'display: inline-block; vertical-align: middle; transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px rgba(0, 0, 0, 0); position: relative; &:before,&:after{ pointer-events: none; position: absolute; content:""; left: 0; width: 100%; box-sizing: border-box; background-repeat: no-repeat; height: 5px; opacity: 0; transition-duration: 0.3s; transition-property: opacity; } &:before{ bottom: 100%; background: radial-gradient(ellipse at 50% 150%, fade(@color,60%) 0%, rgba(0, 0, 0, 0) 80%); } &:after{ top: 100%; background: radial-gradient(ellipse at 50% -50%, fade(@color,60%) 0%, rgba(0, 0, 0, 0) 80%); } &:hover,&:focus,&:active { &:before,&:after{opacity:1;} }'}},icons:{".icon-fa(@icon:heart,@position:top-center,@size:24px,@color:#eee,@bg:#4289dc,@border:0px,@border-color:#4289dc,@padding:10px,@radius:50px)":{def:'@half-size:@size*.5; @space-size:@size+(@padding)*2+(@border)*2; position:relative; &:before{ content:""; box-sizing:border-box; position:absolute; top:0; left:50%; background:@bg; width:@space-size; height:@space-size; margin-left:-@space-size*.5; border-radius:@radius; border:@border solid @border-color; display:block; } &:after{ mask:url("https://cdn.rawgit.com/encharm/Font-Awesome-SVG-PNG/266b63d5/black/svg/@{icon}.svg"); -webkit-mask:url("https://cdn.rawgit.com/encharm/Font-Awesome-SVG-PNG/266b63d5/black/svg/@{icon}.svg"); -webkit-mask-size:100% 100%; mask-size:100% 100%; content:""; width:@size; height:@size; background:@color; position:absolute; top:@space-size*.5; left:50%; margin-top:-@half-size; margin-left:-@half-size; display:block; } & when(@position = top-center){ padding-top:@space-size*1.2; } & when(@position = left){ padding-left:@space-size*1.2; &:before{ left:0; top:50%; margin:-@space-size*.5 0; } &:after{ top:50%; left:@space-size*.5; margin:-@half-size; } } & when(@position = top-left){ padding-top:@space-size*1.2; &:before{ left:0; margin-left:inherit; } &:after{ left:@space-size*.5; top:@space-size*.5; margin:-@half-size; } }'},".btn-fa(@icon:apple,@position:left,@size:20px,@color:#eee,@bg:#4289dc,@border:0px,@border-color:#4289dc,@padd:15px,@radius:5px)":{def:'position:relative;background-color:@bg;color:@color;border-radius:@radius;text-decoration:none;display:inline-block;padding:@padd;padding-left:@size+@padd*2;border:@border solid @border-color;font-size:@size*.75;&:after{ mask:url("https://cdn.rawgit.com/encharm/Font-Awesome-SVG-PNG/266b63d5/black/svg/@{icon}.svg"); -webkit-mask:url("https://cdn.rawgit.com/encharm/Font-Awesome-SVG-PNG/266b63d5/black/svg/@{icon}.svg"); -webkit-mask-size:100% 100%; mask-size:100% 100%; content:""; width:@size; height:@size; position:absolute;top:50%; left:@padd;margin-top:-@size*.5; display:block;background:@color;}& when(@position = right){ padding-right:@size+@padd*2;padding-left:@padd; &:after{left:auto;right:@padd;}}'}}};for(var xi in _i)for(var ki in wi["backgrounds_"+xi]={},_i[xi])wi["backgrounds_"+xi]["."+xi+"-"+ki+"(@color:#4389dc)"]={def:"background-image:url("+_i[xi][ki]+");background-color:@color;background-blend-mode:overlay;background-position:center;background-repeat:repeat;background-size:auto;",des:"."+xi+"-"+ki+"(@color:#4389dc)",previewStyle:"span{display:block;height:100px;}padding:0;height:100px;"};var Ei=function(e){var t=[];for(var n in e)for(var r in e[n])t.push(r+"{"+e[n][r].def+"}");return t.join(" ")}(wi),Ci=function(e){var t=e.app,n=e.closePanel,o=t.state,a=t.worker,s=o.currentNode,l=Object(r.useState)("red"),u=E()(l,2),c=u[0],f=u[1],p=Object(r.useState)(""),d=E()(p,2),h=d[0],m=d[1],v=Object(r.useState)(!1),g=E()(v,2),y=g[0],b=g[1],_=".mesh-gradient";Object(r.useEffect)((function(){We(200,(function(){return w()}))}),[c]);var w=function(){var e=wi.backgrounds,t=o.projectVars,n="";for(var r in t)n+=r+":"+t[r]+";";var i=n;for(var s in e)s.indexOf(_)>-1&&(i+=s,i+="{"+e[s].def+"} #mesher .meshRender{"+s.split("(")[0]+"("+c+");}");a.postMessage({type:"renderLessSnippet",value:i})};Object(r.useEffect)((function(){var e;(e=s.code).indexOf(_)>-1&&(e=(e=(e=(e=e.split(" ").join("")).split(_+"(")[1]).split(";")[0]).slice(0,-1),f(e)),a.addEventListener("message",(function(e){"renderLessSnippet"===e.data.type&&e.data.render&&m(e.data.render)}),!1)}),[]);var x,k=y?i.a.createElement(_n,{node:document&&document.getElementById("mesher")},i.a.createElement("div",{className:"colorPickerMask",onClick:function(){return b(null)}}),i.a.createElement(xr,{action:function(e){var t=e.rgb,n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";f(n)},color:c,app:t,paletteAction:function(e){return f(e)}})):"";return i.a.createElement("div",{id:"mesher",className:"extraWidget"},i.a.createElement("header",null,i.a.createElement("label",null,"Mesh Gradient"),i.a.createElement("span",{onClick:n,className:"ico close"})),i.a.createElement("style",null,h),i.a.createElement("div",{className:"meshSetter"},i.a.createElement("label",null,"Mesh Tint:"),i.a.createElement("div",{className:"pickerWrap"},i.a.createElement("div",{onClick:function(){return b(!y)},className:"pickerTrigger",style:{backgroundColor:(x=c,h.indexOf("background-color")>-1&&(x=(x=h.split(" ").join("").split("background-color:")[1]).split(";")[0]),x)}})),i.a.createElement("input",{type:"text",value:c,onChange:function(e){return f(e.target.value)}}),k),i.a.createElement("div",{className:"meshRender"}),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary",onClick:function(){return Me(_+"()",t)}},"Remove"),i.a.createElement("div",{className:"btn primary",onClick:function(){s.code.indexOf(_+"(")>-1?Me(_+"()",t,(function(e){Te(_+"()",[c],e)})):Te(_+"()",[c],t)}},"Submit")))},Si=function(e){var t=e.comp,n=e.destination,r=e.closePanel;return n=n||"editor",i.a.createElement(_n,{node:document&&document.getElementById(n)},i.a.createElement("div",{onClick:r,className:"editorOverlayBackdrop"}),i.a.createElement("div",{className:"editorOverlayContents"},t))},Oi=function(e){var t,n,o,a,s,l,u,c,f=Object(r.useState)(null),p=E()(f,2),d=p[0],h=p[1],m=e.app,v=e.wysiCode,g=e.prop,y=e.sendVal,b=e.propOptions;return t="gradient"===d?i.a.createElement(hi,{app:m,prop:g,v:y,c:v,propOptions:b,closePanel:h}):"",n="bgImage"===d?i.a.createElement(bi,{app:m,prop:g,v:y,c:v,propOptions:b,closePanel:h}):"",o="bgMesh"===d?i.a.createElement(Ci,{app:m,prop:g,v:y,c:v,propOptions:b,closePanel:h}):"",a=n?i.a.createElement(Si,{comp:n,closePanel:function(){return h(null)}}):"",s=t?i.a.createElement(Si,{comp:i.a.createElement("div",{id:"gradientWrapper"},t),closePanel:function(){return h(null)}}):"",l=o?i.a.createElement(Si,{comp:o,closePanel:function(){return h(null)}}):"",u=y.indexOf("-gradient")>-1?{backgroundImage:y}:{},c=i.a.createElement("div",{style:u,className:"gradientPrev"}),i.a.createElement(i.a.Fragment,null,e.children,i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary",onClick:function(){return h("gradient")}},c,"Gradient",i.a.createElement("span",{className:"ico arrow-down"})),i.a.createElement("div",{className:" btn secondary",onClick:function(){return h("bgImage")}},"Image",i.a.createElement("span",{className:"ico arrow-down"})),i.a.createElement("div",{className:" btn secondary",onClick:function(){return h("bgMesh")}},"Mesh",i.a.createElement("span",{className:"ico arrow-down"}))),s,a,l)},Ai=n(53),ji=n.n(Ai);function Pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ti=function(e){var t=Object(r.useState)({x:0,y:0,color:"",blur:0,spread:0,inset:!1}),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)(""),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)(!1),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(!1),v=E()(m,2),g=v[0],y=v[1],b=e.app,_=e.prop,w=e.wysiCode,k=e.sendVal,C=e.propOptions,S={w:parseInt(b.state.viewSettings.editorW)/2,h:100},O=function(e){var t=e||o,n=t.x,r=t.y,i=t.color,a=t.blur,s=t.spread,l=t.inset;return n=+n-S.w/2,r=+r-S.h/2,"box-shadow"===_?n+"px "+r+"px "+a+"px "+s+"px "+i+(l?" inset":""):n+"px "+r+"px "+a+"px "+i},A=function(e,t){var n=Ni(Ni({},o),{},{x:t.x,y:t.y});a(n),j()},j=function(e){var t=b.state.currentEl,n=O(e);ge(b,t+"{"+_+":"+n+"!important;}")},P=function(e){var t=e?O(e):O();t&&yr(_,t,w,!0,b,C),setTimeout((function(){ye(b)}),500)},N=function(e,t){t||(t=0);var n=Ni(Ni({},o),{},x()({},e,t));a(n),j(n),We(500,(function(){P(n)}))},T=function(e){if(e.rgb){var t=e.rgb;t="rgba("+t.r+","+t.g+","+t.b+","+t.a+")",N("color",t)}else N("color",e)},M=d?"cur":"",D=d?i.a.createElement(Si,{comp:function(e,t){var n=e.x,r=e.y,o=e.spread,a=e.blur,s=e.color,l=e.inset,u="box-shadow"===_?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"shadowNode c"},i.a.createElement("label",null,"Spread"),i.a.createElement("div",{className:"inputWrap hasSlider"},i.a.createElement("div",{className:"inputSlider"},i.a.createElement("input",{type:"range",min:0,max:100,value:o,onChange:function(e){return N("spread",e.target.value)}})),i.a.createElement("input",{type:"text",spellCheck:"false",value:o,onChange:function(e){N("spread",e.target.value)}}))),i.a.createElement("div",{className:"shadowNode c"},i.a.createElement("label",null,"Position"),i.a.createElement("div",{className:"insetter"},i.a.createElement("div",{className:l?"":"cur",onClick:function(){return N("inset",!1)}},"Outside"),i.a.createElement("div",{className:l?"cur":"",onClick:function(){return N("inset",!0)}},"Inside")))):"",c=g?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"extraMask",onClick:function(){return y(!1)}}),i.a.createElement(xr,{color:s,action:T,app:b,paletteAction:T})):"";return d?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"shadowBuilder extraWidget"},i.a.createElement("span",{className:"ico close",onClick:function(){return h(!1)}}),i.a.createElement("div",{className:"shadowControl"},i.a.createElement("label",null,"Orientation"),i.a.createElement("div",null,i.a.createElement("div",{id:"shadowBound",style:{minWidth:t.w,maxWidth:t.w,height:t.h}},i.a.createElement(ji.a,{position:{x:n,y:r},bounds:"parent",scale:1,onDrag:A,onStop:function(){return P()}},i.a.createElement("div",null))),i.a.createElement("div",{className:"shadowSide"},i.a.createElement("div",{className:"shadowNode"},i.a.createElement("label",null,"x"),i.a.createElement("input",{type:"text",spellCheck:"false",value:n-t.w/2,onChange:function(e){return N("x",+e.target.value+t.w/2)}})),i.a.createElement("div",{className:"shadowNode"},i.a.createElement("label",null,"y"),i.a.createElement("input",{type:"text",spellCheck:"false",value:r-t.h/2,onChange:function(e){return N("y",+e.target.value+t.h/2)}})),i.a.createElement("div",{className:"shadowNode"},i.a.createElement("label",null),i.a.createElement("input",{className:"c",type:"text",spellCheck:"false",value:s,onChange:function(e){N("color",e.target.value)}}),i.a.createElement("div",{className:"pickerWrap"},i.a.createElement("div",{className:"pickerTrigger",onClick:function(){y(!g)},style:{backgroundColor:s}}),c))))),i.a.createElement("div",null,i.a.createElement("div",{className:"shadowNode c"},i.a.createElement("label",null,"Blur"),i.a.createElement("div",{className:"inputWrap hasSlider"},i.a.createElement("div",{className:"inputSlider"},i.a.createElement("input",{type:"range",min:0,max:100,value:a,onChange:function(e){return N("blur",e.target.value)}})),i.a.createElement("input",{type:"text",spellCheck:"false",value:a,onChange:function(e){N("blur",e.target.value)}}))),u)),i.a.createElement("div",{onClick:function(){return h(!1)},className:"extraMask"})):""}(o,S),closePanel:function(){return h(!1)}}):"";return i.a.createElement(i.a.Fragment,null,e.children,i.a.createElement("div",{className:"extraBtns"},"none"!==k?i.a.createElement("div",{className:"btn setToNone secondary",title:"Remove Shadows",onClick:function(){return yr(_,"none",w,!0,b,C)}},i.a.createElement("span",{className:"ico close"})):"",i.a.createElement("div",{className:M+" btn secondary",onClick:function(){d||e.sendVal===u||function(){var e=k.split(" ").length>2?k:"0 5 10px #ff3300",t="#000",n=[],r=!1;(e=(e=(e=e.split(" ").join(" ")).split(", ").join(",")).split(" ,").join(",")).indexOf("inset")>-1&&(e=(e=e.split("inset").join("")).trim()+" inset",r=!0),e.split(" ").forEach((function(e){Le(e)?t=e:n.push(e)}));var i=n[0]?parseInt(n[0]):0,o=n[1]?parseInt(n[1]):0,s=n[2]?parseInt(n[2]):0,l=n[3]?parseInt(n[3]):0;a({x:i=S.w/2+i,y:o=S.h/2+o,color:t,blur:s,spread:l,inset:r}),c(k)}(),h(!d)}},"Make Shadow",i.a.createElement("span",{className:"ico arrow-down"}))),D)},Mi=function(e){var t=e.app,n=e.c,r=e.prop,o=e.name,a=e.idx,s=e.start,l=e.end,u=e.sendVal,c=e.propOptions,f=e.cat,p=function(e,t){return t.split('"').join("").split("'").join("").split(" ").join("")===e.split('"').join("").split("'").join("").split(" ").join("")}(o,u)?"cur":"";return function(e,a,s){var l=e>=a&&e<=s&&!("web-safe-fonts"===f)?i.a.createElement("link",{href:"https://fonts.googleapis.com/css2?family="+o+"&display=swap",rel:"stylesheet"}):"";return i.a.createElement("div",{className:"fontLeaf "+p,onClick:function(){return function(e){yr(r,e,n,!0,t,c)}(o)},style:{height:32}},l,i.a.createElement("span",{style:{fontFamily:o}},o))}(a,s,l)},Di=function(e){var t=Object(r.useState)(0),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)(10),u=E()(s,2),c=u[0],f=u[1],p=Object(r.useState)("unset"),d=E()(p,2),h=d[0],m=d[1],v=Object(r.useState)(!1),g=E()(v,2),y=g[0],b=g[1],_=Object(r.useState)(!1),w=E()(_,2),x=w[0],k=w[1],C=Object(r.useState)(""),S=E()(C,2),O=S[0],A=S[1],j=Object(r.useState)([]),P=E()(j,2),N=P[0],T=P[1],M=e.app,D=e.wysiCode,L=e.prop,F=e.sendVal,I=e.propOptions,R=M.state.customFonts;Object(r.useEffect)((function(){var e=document.querySelectorAll(".fontk .ps")[0];if(e){var t=e.querySelectorAll(".cur")[0];if(t){var n=l()(t.parentElement.children).indexOf(t);e.scrollTo(0,32*n)}}return function(){m("unset")}}),[y]),Object(r.useEffect)((function(){b(!1)}),[M.state.currentEl]);var B=function(e){k(!0),We(200,(function(){var t=parseInt(7.1875),n=parseInt(e.scrollTop/32),r=n+t;a(n),f(r),k(!1)}))},$=function(e){var t=[];for(var n in R)W(R[n].name)&&(e.push({family:R[n].name,category:"Custom Fonts"}),t.push(it(R[n],"CSS")));var r=i.a.createElement("div",{className:"searchWrap"},i.a.createElement("span",{className:"ico search"}),i.a.createElement("input",{placeholder:"search type",type:"text",spellCheck:"false",value:O,onChange:function(t){var n=t.target.value;A(n),n&&n.length>1?We(500,(function(){m(null);var t=[];for(var r in e){var i=e[r];i.family.toLowerCase().indexOf(n.toLowerCase())>-1&&t.push(i)}T(t)})):T([])}})),o=N.length>0?i.a.createElement("div",{key:"src",style:{height:230}},i.a.createElement(ln.a,{options:{wheelPropagation:!1},onScrollY:function(e){return B(e)}},function(e){var t=[];for(var n in e)t.push(i.a.createElement(Mi,{propOptions:I,sendVal:F,app:M,c:D,prop:L,key:n,name:e[n].family,end:3,start:0,idx:1,cat:e[n].category}));return t}(N))):"";return i.a.createElement("div",{className:"srcWrap",key:"srcWrap"},i.a.createElement("div",{className:"fontCat search"},r,o),i.a.createElement("style",null,t))},W=function(e){var t=M.state.storedEdits.all;return(t=(t=(t=(t=t.split(" ").join(" ")).split(" "+e).join(e)).split(e+" ").join(e)).split('"'+e+'"').join("'"+e+"'")).indexOf(".includeFont('"+e+"'")>-1};return i.a.createElement(i.a.Fragment,null,e.children,i.a.createElement("div",{className:"extraBtns fontsTrigger"},i.a.createElement("div",{className:"btn",onClick:function(){return b(!y)}},i.a.createElement("span",{className:"ico arrow-down"}))),function(){var e=M.state.gFonts.items,t=V.concat(e),n=x?i.a.createElement("div",{className:"loader"}):"",r=[$(t)];if(t){var s={},l="web-safe-fonts";t.forEach((function(e,t){if(e){var n=e.category;s[n]||(s[n]=[]);var r=s[n].length;return s[n].push(i.a.createElement(Mi,{propOptions:I,sendVal:F,app:M,c:D,prop:L,key:t,name:e.family,end:c,start:o,idx:r,cat:n}))}})),h!==l&&"unset"===h&&m(l);var u=function(e){var t=h===e?i.a.createElement("div",{className:"fontk",style:{height:230}},i.a.createElement(ln.a,{options:{wheelPropagation:!1},onScrollY:function(e){return B(e)}},s[e])):"",n=h===e?"cur":"",o=e;r.push(i.a.createElement("div",{key:e,className:n+" fontCat"},i.a.createElement("div",{className:e+" fontHead",onClick:function(){m(h===e?null:e),a(0),f(10),T([])}},o,i.a.createElement("span",{className:"ico arrow-down"})),t))};for(var p in s)u(p)}return y?i.a.createElement(Si,{comp:i.a.createElement("div",{className:"fontsWrap"},n,r),closePanel:function(){return b(!1)}}):""}())};function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ii=function(e){var t=e.app,n=e.propOptions,o=e.wysiCode,a=e.sendVal,s=Object(r.useState)(!1),l=E()(s,2),u=l[0],c=l[1],f={blur:0,brightness:0,contrast:0,grayscale:0,"hue-rotate":0,invert:0,opacity:0,saturate:0,sepia:0},p=Object(r.useState)(f),d=E()(p,2),h=d[0],m=d[1],v=function(e,r){var i=Fi(Fi({},h),{},x()({},e,r));y(i)?We(300,(function(){yr("filter",y(i),o,!0,t,n),c(!0)})):u&&(yr("","",o,!0,t,n),c(!1)),m(i)};Object(r.useEffect)((function(){m(function(e){var t=Fi({},f);for(var n in e=e.split(" ").join(" ").split(" (").join("("),f)if(e.indexOf(n+"(")>-1){var r=e.split(n+"(")[1].split(")")[0];t[n]=r}return t}(a))}),[a]);var g={blur:{unit:"px",min:0,max:100},brightness:{unit:"%",min:0,max:100},contrast:{unit:"%",min:0,max:100},grayscale:{unit:"%",min:0,max:100},"hue-rotate":{unit:"deg",min:0,max:360},invert:{unit:"%",min:0,max:100},opacity:{unit:"%",min:0,max:100},saturate:{unit:"%",min:0,max:100},sepia:{unit:"%",min:0,max:100}},y=function(e){var t=[];for(var n in e)0!==parseInt(e[n])&&t.push(n+"("+e[n]+")");return t.join(" ")};return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{id:"filters"},function(){var e=[],t=function(t){e.push(i.a.createElement("div",{key:t},i.a.createElement("div",{className:" inputWrap"},i.a.createElement("span",{className:"ico "+t}),i.a.createElement("label",null,t),i.a.createElement("div",{className:"inputSlider"},i.a.createElement("input",{type:"range",min:g[t].min,max:g[t].max,value:parseInt(h[t]),onChange:function(e){v(t,e.target.value+g[t].unit)}})),i.a.createElement("input",{type:"text",spellCheck:"false",value:h[t],onChange:function(e){v(t,e.target.value)}}))))};for(var n in g)t(n);return e}()),e.children)},Ri=function(e){var t=e.app,n=e.propOptions,o=e.wysiCode,a=e.sendVal,s=t.state.currentEl,l=Object(r.useState)(a),u=E()(l,2),c=u[0],f=u[1],p=Object(r.useState)("px"),d=E()(p,2),h=d[0],m=d[1],v=["top-left","top-right","bottom-right","bottom-left"],g=["all","top-left","top-right","bottom-left","bottom-right"];Object(r.useEffect)((function(){f(a);var e=a.split(" ")[0],t=e.replace(parseFloat(e),"");m(t=t&&" "!==t?t:"px")}),[a]);var y,b=function(e){var t=v.indexOf(e),n=c.split(" ").join(" ").split(" ");return n=!(n=n[t]?parseInt(n[t]):n[t-2]?parseInt(n[t-2]):parseInt(n[0]))||isNaN(n)?0:n},_=function(e,t){var n=[],r=parseFloat(e.target.value)+h;if("all"===t)n=[r,r,r,r];else for(var i in v)"all"!==v[i]&&(v[i]===t?n.push(r):n.push(b(v[i])+h));return n};return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{id:"radiusWrap"},(y=[],g.forEach((function(e){var r="",a={};e.split("-").forEach((function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);r+=t,a["border"+t+"Width"]=2})),a["border"+(r="All"===r?"":r)+"Radius"]=5,y.push(i.a.createElement("div",{className:"rad "+e,key:e},i.a.createElement("div",null,i.a.createElement("span",{className:"cn",style:a}),i.a.createElement("div",{className:"inputWrap"},i.a.createElement("div",{className:"inputSlider"},i.a.createElement("input",{value:b(e),type:"range",min:"0",max:"100",step:"1",onChange:function(n){var r=_(n,e);f(r.join(" "));var i=s+"{border-radius:"+r.join(" ")+"!important;}";ge(t,i,"radiusPrev")},onMouseUp:function(){yr("border-radius",c,o,!0,t,n),setTimeout((function(){ye(t,"radiusPrev")}),600)}})),i.a.createElement("input",{type:"text",spellCheck:"false",value:b(e),onChange:function(r){var i=_(r,e);f(i.join(" ")),yr("border-radius",i.join(" "),o,!0,t,n)}})),i.a.createElement("span",{className:"n"},e))))})),y)),e.children)},Bi=function(e){var t=e.wysiCode,n=e.app,r=".clipText()",o=t.indexOf(r)>-1,a=o?"cur":"";return i.a.createElement("div",{className:a+" textClipper",onClick:function(){o?Me(r,n):Te(r,[],n)}})},$i=function(e){var t=e.prop,n=e.children;return"transform-origin"===t&&(n=i.a.createElement($r,e,n)),"transform"===t&&(n=i.a.createElement(Br,e,n)),"background-image"===t&&(n=i.a.createElement(Oi,e,n)),"box-shadow"===t&&(n=i.a.createElement(Ti,e,n)),"text-shadow"===t&&(n=i.a.createElement(Ti,e,n)),"font-family"===t&&(n=i.a.createElement(Di,e,n)),"filter"===t&&(n=i.a.createElement(Ii,e,n)),"border-radius"===t&&(n=i.a.createElement(Ri,e,n)),"background-clip"===t&&(n=i.a.createElement(Bi,e,n)),n},Wi=function(e){var t=e.wysiCode,n=e.sendVal,r=e.app,o=e.prop,a=e.updater,s=e.propOptions,l=i.a.createElement("span",{className:"reset",onClick:function(){yr("","",t,!0,r,s)}},"Reset"),u=i.a.createElement("span",{className:"isDonly",onClick:function(){var e={isDesktopOnly:!s.isDesktopOnly};a(e),yr(o,n.split("!important").join(""),t,!0,r,e)}},"Desktop Only"),c=i.a.createElement("span",{className:"isImpo",onClick:function(){var e=n.indexOf("!important")>-1?n.split("!important").join(""):n,i={isDesktopOnly:!1,isImportant:!s.isImportant};a(i),yr(o,e,t,!0,r,i)}},"Set !important");return i.a.createElement("div",null,c,u,l)},zi=function(e){var t=e.prop,n=e.label,o=Object(r.useState)(""),a=E()(o,2),s=a[0],l=a[1],u="https://webplatform.github.io/docs/css/properties/"+t+"/",c=s?i.a.createElement("span",{"data-for":t,className:"helper","data-tip":s},"?",i.a.createElement(rn,{delayShow:200,id:t,place:"right",effect:"solid",className:"description",type:"dark"})):"";return i.a.createElement("div",{className:"propLabel",onMouseEnter:function(){fetch(u).then((function(e){return e.text()})).then((function(e){var t=(new DOMParser).parseFromString(e,"text/html").querySelectorAll("#main-content h1 + h2 + p")[0];l(t.innerText)})).catch((function(e){console.log("Failed to fetch page: ",e)}))}},i.a.createElement("label",null,n,c))},Hi=function(e){var t=Object(r.useState)("10px"),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)("3vw"),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)("50px"),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(!1),v=E()(m,2),g=v[0],y=v[1],b=e.app,_=e.propOptions,w=e.val,x=e.prop,k=e.wysiCode,C=e.edited,S=e.closeMe;Object(r.useEffect)((function(){var e,t,n,r=w.substring(w.indexOf("(")+1,w.lastIndexOf(")")).split(",");e=r[0]?r[0].trim():"10px",t=r[1]?r[1].trim():"3vw",n=r[2]?r[2].trim():"50px",a(e),c(t),h(n)}),[w]),Object(r.useEffect)((function(){if(g){var e="clamp("+(o||0)+","+(u||0)+","+(d||0)+")";We(300,(function(){return yr(x,e,k,!0,b,_)}))}else y(!0)}),[o,u,d]);var O=function(e,t,n,r){var i=isNaN(parseFloat(e))?0:parseFloat(e),o=e.replace(i,"").trim(),a=0;(a="px"===o||"%"===o?i+r:(10*i+r)/10)<0&&(a=0),n(a+o)},A=[{l:"Min",a:a,v:o},{l:"Val",a:c,v:u},{l:"Max",a:h,v:d}].map((function(e){return i.a.createElement("div",{key:e.l,className:e.l},i.a.createElement("label",null,e.l),i.a.createElement("input",{type:"text",spellCheck:"false",onChange:function(t){return e.a(t.target.value)},value:e.v}),(t=e.v,e.l,n=e.a,i.a.createElement("div",{className:"inputControls inputBtn"},i.a.createElement("div",{onClick:function(){return O(t,0,n,1)},className:"p"},"+"),i.a.createElement("div",{onClick:function(){return O(t,0,n,-1)},className:"m"},"-"))));var t,n}));return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"clamper",onClick:function(){C&&w.indexOf("clamp")>-1&&yr(x,u,k,!0,b,_),S(!1)}},i.a.createElement("span",{className:"ico clamp"})),i.a.createElement("div",{className:"propClamp"},A))};function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qi=function(e){var t=e.app,n=e.val,r=t.update,o=t.state,a=o.viewSettings,s=o.projectVars,l=!1;n.indexOf("!important")>-1&&(l=!0,n=n.replace("!important",""));var u=[],c=[];return n.split(/([ (),])/).forEach((function(e,t){e&&("("===e&&c[t-1]?c[t-1]+="(":c.push(e))})),c.forEach((function(e,t){if(e)if(e.indexOf("@")>-1)u.push(i.a.createElement("span",{className:"var",title:s[e],onClick:function(){r({viewSettings:Ui(Ui({},a),{},{curPanel:"Variables"})})},key:t},e));else{var n="";e.indexOf("(")>-1&&(n=e.indexOf("rgb")>-1?"col":"ope"),e.indexOf(")")>-1&&(n="clo"),[".",",",";"].indexOf(e)>-1&&(n="dot"),u.push(i.a.createElement("span",{className:n,key:t},e))}})),l&&u.push(i.a.createElement("span",{className:"impo",key:"impo"},"!important")),i.a.createElement("div",{className:"inputMasker"},u)},Gi=function(e){var t=e.prop,n=e.app,o=e.wysiCode,a=e.sendVal,s=e.isEdited,l=e.group,u=e.isFocus,c=e.isImportant,f=e.isDesktopOnly,p=Object(r.useState)({isDesktopOnly:f,isImportant:c}),d=E()(p,2),h=d[0],m=d[1],v=Object(r.useState)(""),g=E()(v,2),y=g[0],b=g[1],_=Object(r.useState)(!1),w=E()(_,2),x=w[0],k=w[1],C=n.state;Object(r.useEffect)((function(){b(a),k(a&&a.indexOf("clamp")>-1)}),[a]);var S=I[l][t].hasSlider?i.a.createElement(br,{val:a,min:I[l][t].sliderMin,max:I[l][t].sliderMax,step:I[l][t].sliderStep||1,wysiCode:o,app:n,propOptions:h,prop:t}):"",O=I[l][t].dropdown?i.a.createElement(_r,{app:n,propOptions:h,val:a,wysiCode:o,prop:t,data:I[l][t].dropdown}):"",A=I[l][t].hasPicker?i.a.createElement(Dr,{val:a,prop:t,wysiCode:o,app:n,propOptions:h}):"",j=s?"edited":"",P=s?i.a.createElement(Wi,{prop:t,wysiCode:o,sendVal:a,updater:m,app:n,propOptions:h}):"",N=I[l][t].alias?I[l][t].alias:t,T=i.a.createElement(Ar,{val:a,wysiCode:o,app:n,propOptions:h,prop:t}),M=I[l][t].clamp&&!x?i.a.createElement("div",{className:"clamper","data-for":"clamp","data-tip":"The clamp() CSS function clamps a value between an upper and lower bound.",onClick:function(){return k(!x)}},i.a.createElement(rn,{class:"description",id:"clamp",delayShow:300,place:"right",effect:"solid",type:"dark"}),i.a.createElement("span",{className:"ico clamp"})):"",D=x?i.a.createElement("div",{className:"inputWrap clampWrap"},T,M,i.a.createElement(Hi,{edited:s,closeMe:k,app:n,propOptions:h,val:a,prop:t,wysiCode:o})):"",L=I[l][t].buttons?i.a.createElement(Lr,{app:n,propOptions:h,val:a,prop:t,wysiCode:o,data:I[l][t].buttons}):"",F=I[l][t].hasNumberControls?i.a.createElement(Fr,{app:n,propOptions:h,prop:t,sendVal:a,wysiCode:o,min:I[l][t].sliderMin,max:I[l][t].sliderMax}):"",R="";a&&a.trim().startsWith("@")&&C.projectVars[a.trim()]&&(R="hasVar");var B=h.isImportant?"isImportant":"",$=h.isDesktopOnly?"dOnly":"",W=x?"showClamp":"",z=I[l][t].hasSlider?"hasSlider":"",H=u?"focused":"",V="display"===t&&a.indexOf("flex")>-1?"flexing":"";return"warning"===t?i.a.createElement("div",{className:"warning"},i.a.createElement("div",{className:"ico"}),I[l][t]):i.a.createElement("div",{"data-prop":t,className:"heroNode "+W+" "+H+" "+j+" "+$+" "+B+" "+z+" "+V},i.a.createElement(zi,{prop:t,label:N}),i.a.createElement($i,{app:n,prop:t,sendVal:a,wysiCode:o,propOptions:h},i.a.createElement("div",{className:"propActions"},P),L,i.a.createElement("div",{className:R+" inputWrap"},T,M,S,i.a.createElement("div",{className:"inputInnerWrap"},i.a.createElement("input",{type:"text",spellCheck:"false",value:y,required:!0,onChange:function(e){var r=e.target.value;b(r),We(1e3,(function(){yr(t,r,o,!1,n,h)}))}}),i.a.createElement(qi,{app:n,val:y})),F,A,O),D))},Xi=function(e){var t=e.data,n=e.app,o=e.prop,a=e.mode,s=e.label,l=n.state,u=l.currentlyClicked,c=l.currentEl,f=t.sendVal,p=t.isDesktopOnly,d=t.isImportant,h=t.wysiCode,m=t.isEdited,v=Object(r.useState)({isDesktopOnly:p,isImportant:d}),g=E()(v,2),y=g[0],b=g[1],_=Object(r.useState)(""),w=E()(_,2),x=w[0],k=w[1];Object(r.useEffect)((function(){var e=f.split(" ")[0],t=f.split(" ")[1]?f.split(" ")[1]:e;k("y"===a||"all"===a?e:t)}),[f]);var C=function(e,t){t&&(e=parseInt(e)+"px");var r=function(e){var t=function(){var e=[];return["top","right","bottom","left"].forEach((function(t){return e.push(window.getComputedStyle(u,null).getPropertyValue(o+"-"+t))})),e}();return"all"===a?e:"y"===a?e+" "+t[1]+" "+e+" "+t[3]:t[0]+" "+e+" "+t[2]+" "+e};k(e);var i=c+"{"+o+":"+r(e)+"!important;}";ge(n,i,"sliderPrev"),We(1e3,(function(){yr(o,r(e),h,!1,n,y),setTimeout((function(){return ye(n,"sliderPrev")}),500)}))},S=i.a.createElement("div",{className:"inputControls inputBtn"},i.a.createElement("div",{className:"p",onClick:function(){C(parseInt(x)+1,!0)}},"+"),i.a.createElement("div",{className:"m",onClick:function(){C(parseInt(x)-1<0?0:parseInt(x)-1,!0)}},"-")),O=i.a.createElement("input",{type:"text",spellCheck:"false",required:"",value:x,onChange:function(e){return C(e.target.value)}}),A=i.a.createElement("div",{className:"inputSlider"},i.a.createElement("input",{type:"range",min:"0",max:"200",step:"1",value:isNaN(parseInt(x))?0:parseInt(x),onChange:function(e){return C(e.target.value,!0)}})),j=m?i.a.createElement(Wi,{prop:o,wysiCode:h,sendVal:f,updater:b,app:n,propOptions:y}):"";return i.a.createElement("div",{"data-prop":o,className:"heroNode hasSlider ".concat(m?"edited":"")},i.a.createElement(zi,{prop:o,label:s}),i.a.createElement("div",{className:"propActions"},j),i.a.createElement("div",{className:"inputWrap"},A,i.a.createElement("div",{className:"inputInnerWrap"},O,i.a.createElement(qi,{app:n,val:x})),S))};function Yi(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ki(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ji=function(e){var t=e.app,n=e.innerNodes,o=t.state,a=o.currentNode,s=Object(r.useState)(!1),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)("individual sides"),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)("individual sides"),v=E()(m,2),g=v[0],y=v[1],b=u?i.a.createElement("div",{onClick:function(){return c(!1)},className:"mask"}):"",_={paddings:{"individual sides":[],vertical:[i.a.createElement(Xi,{currentNode:a,key:"padd-y",mode:"y",prop:"padding",app:t,data:Ze("padding",o,a),label:"Vertical Padding"}),i.a.createElement("div",{key:"mSpacer",className:"spacingsSpacer"})],horizontal:[i.a.createElement(Xi,{currentNode:a,key:"padd-x",mode:"x",prop:"padding",app:t,data:Ze("padding",o,a),label:"Horizontal Padding"}),i.a.createElement("div",{key:"mSpacer",className:"spacingsSpacer"})],global:[i.a.createElement(Xi,{currentNode:a,key:"padd-all",mode:"all",prop:"padding",app:t,data:Ze("padding",o,a),label:"All Paddings"})]},margins:{"individual sides":[],vertical:[i.a.createElement(Xi,{currentNode:a,key:"marg-y",mode:"y",prop:"margin",app:t,data:Ze("margin",o,a),label:"Vertical Margin"}),i.a.createElement("div",{key:"mSpacer",className:"spacingsSpacer"})],horizontal:[i.a.createElement(Xi,{currentNode:a,key:"marg-x",mode:"x",prop:"margin",app:t,data:Ze("margin",o,a),label:"Horizontal Margin"}),i.a.createElement("div",{key:"mSpacer",className:"spacingsSpacer"})],global:[i.a.createElement(Xi,{currentNode:a,key:"marg-all",mode:"all",prop:"margin",app:t,data:Ze("margin",o,a),label:"All Margins"})]}};for(var w in n){var x=n[w],k=x.key;k.startsWith("padding")?(_.paddings["individual sides"].push(x),"padding-top"===k||"padding-bottom"===k?_.paddings.vertical.push(x):_.paddings.horizontal.push(x)):(_.margins["individual sides"].push(x),"margin-top"===k||"margin-bottom"===k?_.margins.vertical.push(x):_.margins.horizontal.push(x))}var C;return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{id:"spacingsWidget",className:(C="","vertical"===d&&(C+=" padd-v"),"vertical"===g&&(C+=" marg-v"),"horizontal"===g&&(C+=" marg-h"),"horizontal"===d&&(C+=" padd-h"),"global"===g&&(C+=" marg-a"),"global"===d&&(C+=" padd-a"),C)},b,function(){for(var e=[],n=["top","right","bottom","left"],r=function(){var r,f=l[s],p=[],d=Yi(n);try{var h=function(){var e,n=r.value,s=Ze(f+"-"+n,o,a),l=s.sendVal,d=s.isDesktopOnly,h=s.isImportant,m=s.wysiCode,v=s.isEdited,g=i.a.createElement("div",{className:"wr"},i.a.createElement(Gi,{prop:u,app:t,wysiCode:m,sendVal:l,isEdited:v,group:"Spacings",isFocus:!1,isImportant:h,isDesktopOnly:d}));p.push(i.a.createElement("div",{key:n,className:n},i.a.createElement("div",{className:"ctrl"},i.a.createElement("span",{className:u===f+"-"+n?"open":"",onClick:function(){return c(f+"-"+n)}},((e=l).indexOf("px")>-1&&(e=e.split("px").join("")),e)),u===f+"-"+n?g:"")))};for(d.s();!(r=d.n()).done;)h()}catch(e){d.e(e)}finally{d.f()}e.push(i.a.createElement("div",{className:f[0],key:f},p))},s=0,l=["padding","margin"];s<l.length;s++)r();return e}()),function(){var e=[],t=function(t){var n=[],r=[],o=0,a=function(e){o++,"paddings"===t&&e===d&&n.push(_[t][e]),"margins"===t&&e===g&&n.push(_[t][e]),r.push(i.a.createElement("div",{key:e,"data-for":t+"-tip-"+o,"data-tip":e,onClick:function(){"paddings"===t&&h(e),"margins"===t&&y(e)},className:"paddings"===t&&e===d||"margins"===t&&e===g?"cur":""},i.a.createElement(rn,{id:t+"-tip-"+o,place:"top",effect:"solid",type:"dark"}),i.a.createElement("span",{"data-mode":e},i.a.createElement("span",{className:"t"}),i.a.createElement("span",{className:"r"}),i.a.createElement("span",{className:"b"}),i.a.createElement("span",{className:"l"}))))};for(var s in _[t])a(s);e.push(i.a.createElement("div",{className:"spacingsBlock",key:t},i.a.createElement("div",{className:"spacingsHead"},i.a.createElement("h5",null,t),i.a.createElement("div",null,r)),n))};for(var n in _)t(n);return e}())},Zi=function(e){var t=Object(r.useState)(null),n=E()(t,2),o=n[0],a=n[1],s=e.app,l=e.structure,u=e.data,c=e.focus,f=s.state,p=Object(r.useState)("panelWrap"),d=E()(p,2),h=d[0],m=d[1];Object(r.useEffect)((function(){m("panelWrap loaded")}),[]);var v=[],g=[],y={},b=[],_=o,w=[],x=[],k=["nodeGroup","flexGroup"],C=function(t){var n=Ze(t,f,u),r=l[t].subGroup,o=i.a.createElement(Gi,{isFocus:c===t,group:e.group,key:t,app:s,prop:t,wysiCode:n.wysiCode,sendVal:n.sendVal,isEdited:n.isEdited,isDesktopOnly:n.isDesktopOnly,isImportant:n.isImportant});if(r){_||(_=r);var p=r===_?"cur":"",d=i.a.createElement("div",{"data-sub":r.toLowerCase(),className:p,onClick:function(){return a(r)},key:r});-1===b.indexOf(r)&&(g.push(d),b.push(r)),y[r]||(y[r]=[]),y[r].push(o)}else"background-repeat"===t?w.push(o):"background-size"===t?(w.push(o),v.push(i.a.createElement("div",{key:"bgGroup",className:"bgGroup nodeGroup"},w))):l[t].flexer?(x.push(o),"flex-direction"===t&&n.sendVal.indexOf("column")>-1&&k.push("col"),"flex-wrap"===t&&n.sendVal.startsWith("wrap")&&k.push("wra"),l[t].lastFlex&&v.push(i.a.createElement("div",{key:"flexGroup",className:k.join(" ")},x))):v.push(o)};for(var S in l)C(S);var O=v.length?v:y[_];g=g.length?i.a.createElement("div",{className:"panelTitles"},g):"";var A="Spacings"===e.group?i.a.createElement(Ji,{app:s,innerNodes:O}):O;return i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:h},g,A),i.a.createElement("div",{className:"goBack btn secondary",onClick:function(){return e.goBack()}},"← Back"))},Qi=function(e){var t=e.app,n=e.data,o=Object(r.useState)([]),a=E()(o,2),s=a[0],l=a[1],u=Object(r.useState)(""),c=E()(u,2),f=c[0],p=c[1],d=Object(r.useState)({}),h=E()(d,2),m=h[0],v=h[1],g=Object(r.useState)(null),y=E()(g,2),b=y[0],_=y[1],w=function(e){l(s.indexOf(e)>-1?[]:[e])};Object(r.useEffect)((function(){if(t.state.forceOpen)for(var e in I)for(var n in I[e])t.state.forceOpen===n&&(l([e]),p(""),_(t.state.forceOpen));setTimeout((function(){_(null),t.update({forceOpen:null})}),2e3)}),[t.state.forceOpen]);var x=function(e){var t=He(e.state.currentNode.code,":");return t="__"+(t=we(t).s).substring(1,t.length-1).replace(/{[^{}]*}/g,"").replace(/\s/g,"__").replace(/;/g,"__")}(t),k=f?i.a.createElement("span",{className:"ico close",onClick:function(){p(""),v({})}}):"",C=function(e){var t={};for(var n in I)for(var r in I[n])"edited"===e?x.indexOf("__"+r+":")>-1&&(t[n]||(t[n]={}),t[n][r]=I[n][r]):r.indexOf(e)>-1&&"warning"!==r&&(t[n]||(t[n]={}),t[n][r]=I[n][r]);return t},S=i.a.createElement("div",{className:"tabHead src"},i.a.createElement("span",{className:"ico search"}),i.a.createElement("input",{type:"text",placeholder:"Search Property",spellCheck:"false",value:f,onChange:function(e){var t=e.target.value.toLowerCase();p(e.target.value),t?We(250,(function(){return v(C(t))})):v({})}}),k,i.a.createElement("span",{"data-tip":"Show edited props only","data-for":"a33",className:"edited"===f?"cur":"",id:"searchEditeds",onClick:function(){p("edited"===f?"":"edited"),v("edited"===f?{}:C("edited"))}},i.a.createElement("span",{className:"ico edit"}),i.a.createElement(rn,{id:"a33",place:"left",effect:"solid",type:"dark"}))),O=f?"":function(e){var r,o=[],a=function(e){var t=0;for(var n in I[e])(x.indexOf("__"+n+":")>-1||x.indexOf("__._d("+n)>-1||x.indexOf("__."+n+"(")>-1)&&t++;var r=t>0?i.a.createElement("span",null,t):"";o.push(i.a.createElement("div",{key:e,className:"tabHead",onClick:function(){return w(e)}},i.a.createElement("span",{className:"svgIco"},r,ar[e]),i.a.createElement("label",null,e)))};for(var s in I)a(s);return e.length>0?(r=e[0],i.a.createElement("div",{className:"panel"},i.a.createElement("div",{className:"tabHead back",onClick:function(){return w(r)}},i.a.createElement("label",null,r),i.a.createElement("span",{className:"svgIco"},ar[r])),i.a.createElement(Zi,{focus:b,goBack:function(){return w(r)},group:r,app:t,structure:I[r],data:n}))):o}(s);return i.a.createElement("div",{id:"wysi"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},S,O,function(){var e=[];if(Object.keys(m).length>0){for(var r in m)e.push(i.a.createElement("div",{key:r,className:"panel searched"},i.a.createElement("div",{className:"tabHead back",onClick:function(){p(""),v({})}},i.a.createElement("label",null,r),i.a.createElement("span",{className:"svgIco"},ar[r])),i.a.createElement(Zi,{key:r,goBack:function(){p(""),v({})},group:r,app:t,structure:m[r],data:n})));e=i.a.createElement("div",{id:"searchedProps"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},e))}return e}()))},eo=function(e){var t=e.app,n=e.showPlaceholder,o=t.state,a=o.errMsg,s=o.hasErr,l=o.errLine,u=o.viewSettings.editorW,c=Object(r.useState)(!1),f=E()(c,2),p=f[0],d=f[1],h=parseInt(u)-20,m=i.a.createElement("div",{"data-for":"noErr","data-tip":"No Errors",className:"erWrap r noErrors"},i.a.createElement("div",{className:"m"},i.a.createElement("span",{className:"ico warn"})),i.a.createElement(rn,{id:"noErr",place:"top",effect:"solid"})),v=l?i.a.createElement("h3",null,"Line "+l):"";return s?i.a.createElement("div",{className:"erWrap r"},i.a.createElement("div",{className:"m",onClick:function(){return d(!p)}},i.a.createElement("span",{className:p?"ico close":"ico warn"})),p?i.a.createElement("div",{style:{width:h},className:"l"},v,a):""):n?m:""};function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ro=function(e){var t=e.app,n=e.renderAction,r=t.state,o=t.update,a=r.viewSettings,s=r.heroFrame,l=r.requiredGfonts,u=a.inspectorAutoRender,c=le(s),f=l.length+(c.split("@font-face").length-1)+(c.split("@import").length-1),p=100-20*f,d="hsl("+(p=p<0?0:p)+",70%,80%)",h="hsl("+p+",70%,20%)",m=f>0?"":"n",v=i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:u?"on j r":"j r",onClick:function(){var e=no(no({},a),{},{inspectorAutoRender:!u});o({viewSettings:e})}},u?"Auto Render ON":"Auto Render OFF"),u?"":i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{"data-tip":"Use CTRL + ENTER to quick render","data-for":"autoren",className:"k r",onClick:n},"Render"),i.a.createElement(rn,{id:"autoren",place:"top",effect:"solid",type:"dark"})));return i.a.createElement("div",{id:"inspectorFooter"},u?"":i.a.createElement("span",null,i.a.createElement("span",{className:"info"},"i"),"Edits will now be commited only upon render, remember to render before saving."),i.a.createElement("div",null,i.a.createElement(eo,{app:t,showPlaceholder:!0}),i.a.createElement("span",{"data-for":"extRes","data-tip":"External resources load",className:"t r "+m},i.a.createElement("span",{style:{backgroundColor:d,color:h}},f),i.a.createElement(rn,{id:"extRes",place:"top",effect:"solid",type:"dark"})),v))},io=(n(326),function(e){var t=e.editor,n=e.showReplace,o=e.toggleReplace,a=e.commitEdits,s=Object(r.useState)(0),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)(""),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(""),v=E()(m,2),g=v[0],y=v[1],b=Object(r.useState)([]),_=E()(b,2),w=_[0],x=_[1],k=Object(r.useState)([]),C=E()(k,2),S=C[0],O=C[1],A=Object(r.useState)(!1),j=E()(A,2),P=j[0],N=j[1],T=!1,M=n?i.a.createElement("div",null,i.a.createElement("input",{id:"mirrorReplace",placeholder:"replace with",type:"text",spellCheck:"false",value:d,onChange:function(e){return h(e.target.value)}}),i.a.createElement("div",{className:"btn",onClick:function(){var e=t.getValue().split(g).join(d);a(e,!0,(function(){return function(){O([]),x([]),y(""),h(""),c(0),w.length>0&&w.forEach((function(e){return e.clear()}));var e=document.querySelectorAll("#inspector .hs"),t=document.querySelectorAll("#inspector .hl");e.forEach((function(e){return e.parentNode.removeChild(e)})),t.forEach((function(e){return e.classList.remove("hl")}))}()}),200)}},"Replace")):"";return i.a.createElement("div",{id:"mirrorSearchReplace"},i.a.createElement("div",null,i.a.createElement("div",{className:"art drop",onClick:function(){return o(!n)}}),i.a.createElement("input",{id:"mirrorSearch",placeholder:"search here",spellCheck:"false",type:"text",value:g,onChange:function(e){var n=e.target.value;y(n),T&&T.clear(),w.length>0&&w.forEach((function(e){return e.clear()})),We(500,(function(){O([]),document.querySelectorAll("#inspector .hs").forEach((function(e){return e.parentNode.removeChild(e)})),n&&function(e){var n,r,i,o=[],a=[],s=[],l=[];for(o=t.getSearchCursor(e),T=t.annotateScrollbar("hs");o.findNext();){r=o.from(),i=o.to();var u=t.markText(r,i,{className:"hl"});a.push(u),s.push({from:{line:o.pos.from.line},to:{line:o.pos.from.line+1}}),-1===l.indexOf(o.pos.from.line)&&l.push(o.pos.from.line),void 0===n&&(n=r)}x(a),c(l.length),O(l),T.update(s),n&&t.scrollIntoView(n)}(n)}))}}),i.a.createElement("div",{className:"art cnt"},u,S.length>0?i.a.createElement("div",null,i.a.createElement("div",{className:"k p",onClick:function(){var e=P&&0!==S.indexOf(P)?S[S.indexOf(P)-1]:S[S.length-1];fe(t,e,(function(){N(e)}))}}),i.a.createElement("div",{className:"k n",onClick:function(){var e=P&&S.indexOf(P)!==S.length-1?S[S.indexOf(P)+1]:S[0];fe(t,e,(function(){N(e)}))}})):"")),M)});n(55),n(327),n(328),n(329),n(330),n(76),n(332),n(118),n(333),n(119),n(334),n(335),n(336),n(120),n(121),n(337);function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var so=null,lo=function(e){var t=e.app,n=t.state,o=t.update,a=n.viewSettings.inspectorAutoRender,s=Object(r.useState)(""),u=E()(s,2),c=u[0],f=u[1],p=Object(r.useState)(!1),d=E()(p,2),h=d[0],m=d[1],v=Object(r.useState)(!1),g=E()(v,2),y=g[0],b=g[1],_=Object(r.useState)(!1),w=E()(_,2),x=w[0],k=w[1],C=Object(r.useState)(""),S=E()(C,2),O=S[0],A=S[1],j=Object(r.useState)(!1),P=E()(j,2),N=P[0],T=P[1],M=Object(r.useRef)(null);M.current=O,Object(r.useEffect)((function(){return function(){a||L(M.current,!0,!1,0)}}),[]),Object(r.useEffect)((function(){M.current&&L(M.current,!0,!1,0)}),[a]),Object(r.useEffect)((function(){F()}),[]),Object(r.useEffect)((function(){h&&(h.state.focused||F())}),[n.storedEdits]);var D=function(e){if(e){var n=t.t.state.errLine;if(document.querySelectorAll("#inspector .errLine").length>0)for(var r=e.lineCount(),i=0;i<=r;i++)e.removeLineClass(i,"wrap","errLine");n&&e.addLineClass&&e.addLineClass(n-1,"wrap","errLine")}};Object(r.useEffect)((function(){D(h)}),[t.t.state.errLine]),Object(r.useEffect)((function(){var e=n.inspectorFoldedLines;h&&(e&&e.length>0&&e.forEach((function(e){h.getLine(e)&&h.foldCode(e,0)})),document.addEventListener("keydown",(function(e){e.ctrlKey&&"Enter"===e.key&&h.state.focused&&L(M.current,!0)})))}),[h]);var L=function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600;if(n){T(!0);var a=t.t.state;clearTimeout(so),so=setTimeout((function(){var t=Ee(e),n=l()(a.mqOrder);for(var i in t)-1===n.indexOf(i)&&n.push(i);o({storedEdits:t,mqOrder:n}),r&&r(),T(!1)}),i)}else A(e);ut(t,"inspector","commit")},F=function(){var e=be(n.storedEdits,n.mqOrder);f(e)},I=function(){b(!0),document.getElementById("mirrorSearch").focus()},R=ao(ao({},z),{},{theme:n.viewSettings.inspectorTheme,lineNumbers:!0,extraKeys:{"Cmd-F":function(){return I()},"Ctrl-F":function(){return I()}},foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],foldOptions:{widget:"..."}}),B=y?"showSearch":"",$=x?"showReplace":"",W=y?i.a.createElement(io,{showReplace:x,editor:h,toggleReplace:function(e){return k(e)},inspectorAutoRender:a,commitEdits:L}):"",H=y?"close":"lens disa",V=N?"committing":"";return i.a.createElement("div",{className:V+" "+B+" "+$,id:"inspector"},W,i.a.createElement("div",{id:"inspectorTopActions"},i.a.createElement("span",{"data-tip":"Search",className:H+" ico",onClick:function(){return b(!y)}},i.a.createElement(rn,{place:"bottom",effect:"solid",type:"dark"})),i.a.createElement("span",{"data-tip":"Toggle Selection on current page",className:n.navigationMode?"disa ico selection":"ico selection",onClick:function(){o({navigationMode:!n.navigationMode})}},i.a.createElement(rn,{place:"bottom",effect:"solid",type:"dark"}))),i.a.createElement(fr.UnControlled,{value:c,options:R,editorDidMount:function(e){return m(e)},onChange:function(e,t,n){L(n,a),D(e)},onGutterClick:function(e){return function(e){for(var t=[],n=e.getDoc().getAllMarks(),r=n.length-1;r>=0;r--)n[r].collapsed&&"range"===n[r].type&&t.push(n[r].find().from.line);return o({inspectorFoldedLines:t}),t}(e)},onKeyUp:function(e,n){t.t.state.viewSettings.inspectorShowHints&&Ge(e,n),A(e.getValue())}}),i.a.createElement(ro,{app:t,renderAction:function(){return L(O,!0)}}))},uo=i.a.createElement("svg",{className:"logo",x:"0px",y:"0px",width:"75px",height:"30px",viewBox:"0 0 75 30"},i.a.createElement("g",null,i.a.createElement("g",null,i.a.createElement("path",{d:"M0,15.565C0,12.217,2.496,10,5.593,10c2.72,0,4.03,1.652,4.463,3.203L7.35,14.087 c-0.167-0.898-0.906-1.507-1.883-1.507c-1.506,0-2.553,1.333-2.553,2.783c0,1.102,0.809,2.058,2.092,2.058 c0.725,0,1.562-0.492,1.883-1.116l2.204,1.478C7.936,19.522,6.122,20,4.854,20C2.189,20,0,18.289,0,15.565z"}),i.a.createElement("path",{d:"M9.219,18.116l1.674-2.087c0.642,0.87,1.953,1.478,3.208,1.478c0.53,0,0.739-0.246,0.739-0.42 c0-0.811-4.449-0.783-4.449-3.608c0-1.681,1.339-3.464,3.989-3.464c1.52,0,3.04,0.551,4.059,1.608l-1.688,2.029 c-0.767-0.797-1.953-1.174-2.831-1.174c-0.362,0-0.572,0.174-0.572,0.391c0,0.768,4.463,0.811,4.463,3.608 c0,2.029-1.534,3.522-3.933,3.522C11.897,20,10.139,19.261,9.219,18.116z"}),i.a.createElement("path",{d:"M17.769,18.116l1.674-2.087c0.642,0.87,1.953,1.478,3.208,1.478c0.53,0,0.739-0.246,0.739-0.42 c0-0.811-4.449-0.783-4.449-3.608c0-1.681,1.339-3.464,3.989-3.464c1.52,0,3.04,0.551,4.059,1.608l-1.688,2.029 c-0.767-0.797-1.953-1.174-2.831-1.174c-0.362,0-0.572,0.174-0.572,0.391c0,0.768,4.463,0.811,4.463,3.608 c0,2.029-1.534,3.522-3.933,3.522C20.447,20,18.689,19.261,17.769,18.116z"})),i.a.createElement("g",null,i.a.createElement("path",{d:"M42.084,19.826l0.781-3.695h-3.333l-0.781,3.695h-2.817l2.05-9.666h2.817l-0.725,3.42h3.333l0.725-3.42 h2.817l-2.05,9.666H42.084z"}),i.a.createElement("path",{d:"M46.408,19.826l2.05-9.666h7.057l-0.544,2.551h-4.24l-0.195,0.957h4.142l-0.544,2.551h-4.142l-0.223,1.058 h4.24l-0.544,2.551L46.408,19.826L46.408,19.826z"}),i.a.createElement("path",{d:"M59.951,19.826l-0.642-3.043h-1.13l-0.642,3.043H54.72l2.05-9.666h4.519c1.688,0,3.124,1.145,3.124,2.927 c0,1.71-1.074,3.029-2.287,3.478l0.921,3.261H59.951z M60.439,14.232c0.613,0,1.06-0.276,1.06-0.826 c0-0.406-0.349-0.695-0.781-0.695h-1.674l-0.321,1.522h1.674L60.439,14.232L60.439,14.232z"}),i.a.createElement("path",{d:"M64.567,15.565c0-3.086,2.357-5.565,5.593-5.565c2.748,0,4.84,1.797,4.84,4.405 c0,3.087-2.343,5.594-5.578,5.594C66.66,20,64.567,18.189,64.567,15.565z M72.085,14.638c0-1.189-0.837-2.058-2.092-2.058 c-1.479,0-2.511,1.305-2.511,2.783c0,1.189,0.837,2.058,2.092,2.058C71.053,17.42,72.085,16.116,72.085,14.638z"})),i.a.createElement("g",{transform:"translate(0, 0)"},i.a.createElement("path",{d:"M35.048,14.068h-2.913l0.812-3.657c0.031-0.141-0.035-0.285-0.159-0.348 c-0.125-0.064-0.275-0.03-0.363,0.081l-4.186,5.281c-0.074,0.093-0.089,0.221-0.04,0.33c0.049,0.109,0.154,0.178,0.27,0.178h2.913 l-0.812,3.657c-0.031,0.141,0.035,0.285,0.159,0.348c0.042,0.022,0.088,0.032,0.132,0.032c0.088,0,0.173-0.039,0.231-0.113 l4.186-5.281c0.074-0.093,0.089-0.221,0.04-0.33C35.269,14.138,35.164,14.068,35.048,14.068z"})))),co=function(e){var t=Object(r.useState)(""),n=E()(t,2),o=n[0],a=n[1],s=e.app,l=e.callBack,u=Object(r.useState)(!0),c=E()(u,2),f=c[0],p=c[1];return i.a.createElement(_n,{node:document&&document.getElementById("editor")},i.a.createElement("div",{className:"editorOverlay",id:"editorOverlay",onClick:function(e){"editorOverlay"===e.target.getAttribute("id")&&l()}},i.a.createElement("div",{className:"extraWidget"},i.a.createElement("h4",null,"Store edits as snippet"),i.a.createElement("p",null,"Need to re-use a piece of code? Store it as snippet and easily control it from a single point."),i.a.createElement("div",{className:"snippetInputWrap"},i.a.createElement("input",{type:"text",spellCheck:"false",placeholder:".snippetName",value:o,onChange:function(e){a(e.target.value)}})),i.a.createElement("div",{className:"snippetSelection"},i.a.createElement("p",null,"Do you want me to replace the current element styles with this snippet as well?"),i.a.createElement("ul",null,i.a.createElement("li",{className:f?"cur":"",onClick:function(){p(!0)}},"Yes"),i.a.createElement("li",{className:f?"":"cur",onClick:function(){p(!1)}},"No"))),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary",onClick:function(){l()}},"Cancel"),i.a.createElement("div",{onClick:function(){var e=ne(o,".");!function(e,t,n,r){var i=e.update,o=e.state;if(/[^a-z\d\-_().]/gi.test(t)||".()"===t)i({heroAlert:{title:"Bad Snippet Name",content:"Sorry, "+t+" is not a valid snippet name, please make sure to choose a proper snippet name and avoid special characters.",type:"error"}});else{var a=o.storedEdits,s=o.currentNode,l=o.currentMq,u=o.currentEl,c=s.code,f=s.before,p=s.after,d=t+c,h=r?f+"\n"+u+"{"+t+";}\n"+p:f+"\n"+u+c+"\n"+p,m=te(te({},a),{},x()({},l,h));m.all=d+"\n"+m.all,i({storedEdits:m,session:Date.now()},(function(){return n()})),ut(e,"snippet","stores snippet")}}(s,e+"()",l,f)},className:"btn primary snippets"},"Store Snippet")))))},fo=["500px","address-book-o","address-book","address-card-o","address-card","adjust","adn","align-center","align-justify","align-left","align-right","amazon","ambulance","american-sign-language-interpreting","anchor","android","angellist","angle-double-down","angle-double-left","angle-double-right","angle-double-up","angle-down","angle-left","angle-right","angle-up","apple","archive","area-chart","arrow-circle-down","arrow-circle-left","arrow-circle-o-down","arrow-circle-o-left","arrow-circle-o-right","arrow-circle-o-up","arrow-circle-right","arrow-circle-up","arrow-down","arrow-left","arrow-right","arrow-up","arrows-alt","arrows-h","arrows-v","arrows","asl-interpreting","assistive-listening-systems","asterisk","at","audio-description","automobile","backward","balance-scale","ban","bandcamp","bank","bar-chart-o","bar-chart","barcode","bars","bath","bathtub","battery-0","battery-1","battery-2","battery-3","battery-4","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","battery","bed","beer","behance-square","behance","bell-o","bell-slash-o","bell-slash","bell","bicycle","binoculars","birthday-cake","bitbucket-square","bitbucket","bitcoin","black-tie","blind","bluetooth-b","bluetooth","bold","bolt","bomb","book","bookmark-o","bookmark","braille","briefcase","btc","bug","building-o","building","bullhorn","bullseye","bus","buysellads","cab","calculator","calendar-check-o","calendar-minus-o","calendar-o","calendar-plus-o","calendar-times-o","calendar","camera-retro","camera","car","caret-down","caret-left","caret-right","caret-square-o-down","caret-square-o-left","caret-square-o-right","caret-square-o-up","caret-up","cart-arrow-down","cart-plus","cc-amex","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","cc","certificate","chain-broken","chain","check-circle-o","check-circle","check-square-o","check-square","check","chevron-circle-down","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-down","chevron-left","chevron-right","chevron-up","child","chrome","circle-o-notch","circle-o","circle-thin","circle","clipboard","clock-o","clone","close","cloud-download","cloud-upload","cloud","cny","code-fork","code","codepen","codiepie","coffee","cog","cogs","columns","comment-o","comment","commenting-o","commenting","comments-o","comments","compass","compress","connectdevelop","contao","copy","copyright","creative-commons","credit-card-alt","credit-card","crop","crosshairs","css3","cube","cubes","cut","cutlery","dashboard","dashcube","database","deaf","deafness","dedent","delicious","desktop","deviantart","diamond","digg","dollar","dot-circle-o","download","dribbble","drivers-license-o","drivers-license","dropbox","drupal","edge","edit","eercast","eject","ellipsis-h","ellipsis-v","empire","envelope-o","envelope-open-o","envelope-open","envelope-square","envelope","envira","eraser","etsy","eur","euro","exchange","exclamation-circle","exclamation-triangle","exclamation","expand","expeditedssl","external-link-square","external-link","eye-slash","eye","eyedropper","fa","facebook-f","facebook-official","facebook-square","facebook","fast-backward","fast-forward","fax","feed","female","fighter-jet","file-archive-o","file-audio-o","file-code-o","file-excel-o","file-image-o","file-movie-o","file-o","file-pdf-o","file-photo-o","file-picture-o","file-powerpoint-o","file-sound-o","file-text-o","file-text","file-video-o","file-word-o","file-zip-o","file","files-o","film","filter","fire-extinguisher","fire","firefox","first-order","flag-checkered","flag-o","flag","flash","flask","flickr","floppy-o","folder-o","folder-open-o","folder-open","folder","font-awesome","font","fonticons","fort-awesome","forumbee","forward","foursquare","free-code-camp","frown-o","futbol-o","gamepad","gavel","gbp","ge","gear","gears","genderless","get-pocket","gg-circle","gg","gift","git-square","git","github-alt","github-square","github","gitlab","gittip","glass","glide-g","glide","globe","google-plus-circle","google-plus-official","google-plus-square","google-plus","google-wallet","google","graduation-cap","gratipay","grav","group","h-square","hacker-news","hand-grab-o","hand-lizard-o","hand-o-down","hand-o-left","hand-o-right","hand-o-up","hand-paper-o","hand-peace-o","hand-pointer-o","hand-rock-o","hand-scissors-o","hand-spock-o","hand-stop-o","handshake-o","hard-of-hearing","hashtag","hdd-o","header","headphones","heart-o","heart","heartbeat","history","home","hospital-o","hotel","hourglass-1","hourglass-2","hourglass-3","hourglass-end","hourglass-half","hourglass-o","hourglass-start","hourglass","houzz","html5","i-cursor","id-badge","id-card-o","id-card","ils","image","imdb","inbox","indent","industry","info-circle","info","inr","instagram","institution","internet-explorer","intersex","ioxhost","italic","joomla","jpy","jsfiddle","key","keyboard-o","krw","language","laptop","lastfm-square","lastfm","leaf","leanpub","legal","lemon-o","level-down","level-up","life-bouy","life-buoy","life-ring","life-saver","lightbulb-o","line-chart","link","linkedin-square","linkedin","linode","linux","list-alt","list-ol","list-ul","list","location-arrow","lock","long-arrow-down","long-arrow-left","long-arrow-right","long-arrow-up","low-vision","magic","magnet","mail-forward","mail-reply-all","mail-reply","male","map-marker","map-o","map-pin","map-signs","map","mars-double","mars-stroke-h","mars-stroke-v","mars-stroke","mars","maxcdn","meanpath","medium","medkit","meetup","meh-o","mercury","microchip","microphone-slash","microphone","minus-circle","minus-square-o","minus-square","minus","mixcloud","mobile-phone","mobile","modx","money","moon-o","mortar-board","motorcycle","mouse-pointer","music","navicon","neuter","newspaper-o","object-group","object-ungroup","odnoklassniki-square","odnoklassniki","opencart","openid","opera","optin-monster","outdent","pagelines","paint-brush","paper-plane-o","paper-plane","paperclip","paragraph","paste","pause-circle-o","pause-circle","pause","paw","paypal","pencil-square-o","pencil-square","pencil","percent","phone-square","phone","photo","picture-o","pie-chart","pied-piper-alt","pied-piper-pp","pied-piper","pinterest-p","pinterest-square","pinterest","plane","play-circle-o","play-circle","play","plug","plus-circle","plus-square-o","plus-square","plus","podcast","power-off","print","product-hunt","puzzle-piece","qq","qrcode","question-circle-o","question-circle","question","quora","quote-left","quote-right","ra","random","ravelry","rebel","recycle","reddit-alien","reddit-square","reddit","refresh","registered","remove","renren","reorder","repeat","reply-all","reply","resistance","retweet","rmb","road","rocket","rotate-left","rotate-right","rouble","rss-square","rss","rub","ruble","rupee","s15","safari","save","scissors","scribd","search-minus","search-plus","search","sellsy","send-o","send","server","share-alt-square","share-alt","share-square-o","share-square","share","shekel","sheqel","shield","ship","shirtsinbulk","shopping-bag","shopping-basket","shopping-cart","shower","sign-in","sign-language","sign-out","signal","signing","simplybuilt","sitemap","skyatlas","skype","slack","sliders","slideshare","smile-o","snapchat-ghost","snapchat-square","snapchat","snowflake-o","soccer-ball-o","sort-alpha-asc","sort-alpha-desc","sort-amount-asc","sort-amount-desc","sort-asc","sort-desc","sort-down","sort-numeric-asc","sort-numeric-desc","sort-up","sort","soundcloud","space-shuttle","spinner","spoon","spotify","square-o","square","stack-exchange","stack-overflow","star-half-empty","star-half-full","star-half-o","star-half","star-o","star","steam-square","steam","step-backward","step-forward","stethoscope","sticky-note-o","sticky-note","stop-circle-o","stop-circle","stop","street-view","strikethrough","stumbleupon-circle","stumbleupon","subscript","subway","suitcase","sun-o","superpowers","superscript","support","table","tablet","tachometer","tag","tags","tasks","taxi","telegram","television","tencent-weibo","terminal","text-height","text-width","th-large","th-list","th","themeisle","thermometer-0","thermometer-1","thermometer-2","thermometer-3","thermometer-4","thermometer-empty","thermometer-full","thermometer-half","thermometer-quarter","thermometer-three-quarters","thermometer","thumb-tack","thumbs-down","thumbs-o-down","thumbs-o-up","thumbs-up","ticket","times-circle-o","times-circle","times-rectangle-o","times-rectangle","times","tint","toggle-down","toggle-left","toggle-off","toggle-on","toggle-right","toggle-up","trademark","train","transgender-alt","transgender","trash-o","trash","tree","trello","tripadvisor","trophy","truck","try","tty","tumblr-square","tumblr","turkish-lira","tv","twitch","twitter-square","twitter","umbrella","underline","undo","universal-access","university","unlink","unlock-alt","unlock","unsorted","upload","usb","usd","user-circle-o","user-circle","user-md","user-o","user-plus","user-secret","user-times","user","users","vcard-o","vcard","venus-double","venus-mars","venus","viacoin","viadeo-square","viadeo","video-camera","vimeo-square","vimeo","vine","vk","volume-control-phone","volume-down","volume-off","volume-up","warning","wechat","weibo","weixin","whatsapp","wheelchair-alt","wheelchair","wifi","wikipedia-w","window-close-o","window-close","window-maximize","window-minimize","window-restore","windows","won","wordpress","wpbeginner","wpexplorer","wpforms","wrench","xing-square","xing","y-combinator-square","y-combinator","yahoo","yc-square","yc","yelp","yen","yoast","youtube-play","youtube-square","youtube"],po=n(338),ho=function(e){var t=e.app,n=t.worker,o=t.state,a=o.projectVars,s=o.storedEdits,u=o.currentEl,c=Object(r.useState)(0),f=E()(c,2),p=f[0],d=f[1],h=Object(r.useState)(0),m=E()(h,2),v=m[0],g=m[1],y=Object(r.useState)(0),b=E()(y,2),_=b[0],w=b[1],x=Object(r.useState)(null),k=E()(x,2),C=k[0],S=k[1],O=Object(r.useState)(""),A=E()(O,2),j=A[0],P=A[1],N=Object(r.useState)(""),T=E()(N,2),M=T[0],D=T[1],L=Object(r.useState)(!1),F=E()(L,2),I=F[0],R=F[1],B=Object(r.useState)(""),$=E()(B,2),W=$[0],z=$[1],H=Object(r.useState)(".btn-fa"),V=E()(H,2),U=V[0],q=V[1],G=Object(r.useState)(""),X=E()(G,2),Y=X[0],K=X[1],J=["icon","position","size","color","bgColor","borderSize","borderColor","padding","radius"],Z=Object(r.useState)(["adjust","left","20px","#fff","#ff3300","0px","#aaa","15px","5px"]),Q=E()(Z,2),ee=Q[0],te=Q[1],ne=function(e,t){var n=J.indexOf(e),r=l()(ee),i=["radius","borderSize","size","padding"].indexOf(e)>-1?"px":"";r[n]=t+i,te(r)};Object(r.useEffect)((function(){var e=Se(t).code;if(e.indexOf(U+"(")>-1){var n=e.split(U+"(")[1];if(n.indexOf(");")>-1){var r=Pe(n=n.split(");")[0]),i=ee;for(var o in r)i[o]=r[o];JSON.stringify(i)!==JSON.stringify(ee)&&te(i)}}}),[s,u]),Object(r.useEffect)((function(){ne("position",ae("position")+" ")}),[U]),Object(r.useEffect)((function(){var e=document.getElementById("addIconsInner");if(e){var t=parseInt(e.offsetWidth/58);w(t),g(5*t)}}),[I]),Object(r.useEffect)((function(){re(),We(500,(function(){Se(t).code.indexOf(U+"(")>-1&&Me(U+"()",t,(function(e){Te(U,ee,e)}))}))}),[ee]);var re=function(){var e="";for(var t in a)e+=t+":"+a[t]+";";var r="",i="";for(var o in wi.icons)o.startsWith(U)&&(r=o,i=wi.icons[o].def);var s=e+" "+r+"{"+i+"} #addIconsPanel .prev > div{"+U+"("+ee+")}";n.postMessage({type:"renderLessSnippet",value:s})};Object(r.useEffect)((function(){n.addEventListener("message",(function(e){"renderLessSnippet"===e.data.type&&K(e.data.render)}),!1)}),[]),Object(r.useEffect)((function(){var e=Se(t).code;[".icon-fa",".btn-fa"].forEach((function(n){e.indexOf(n+"(")>-1&&n!==U&&Me(n+"()",t,(function(e){Te(U,ee,e)}))}))}),[U]);Object(r.useEffect)((function(){z(ae(C))}),[C]);var ie,oe,ae=function(e){var t=ee[J.indexOf(e)];return t=t?t.trim():t},se=I?i.a.createElement("div",{id:"addIconsInner"},i.a.createElement("div",{className:"searchBar"},i.a.createElement("label",null,"Browse"),i.a.createElement("div",{className:"src"},i.a.createElement("span",{className:"ico search"}),i.a.createElement("input",{type:"text",spellCheck:"false",value:M,onChange:function(e){D(e.target.value),We(500,(function(){P(e.target.value)}))}})),i.a.createElement("span",{onClick:function(){return R(!1)},className:"ico close"})),i.a.createElement(ln.a,{options:{wheelPropagation:!1},onScrollY:function(e){return function(e){We(400,(function(){var t=parseInt(e.scrollTop/58)*_,n=t+5*_;d(t),g(n)}))}(e)}},(ie=j?fo.filter((function(e){return e.indexOf(j)>-1})):fo,oe=[],po.forEachOf(ie,(function(e,t,n){var r="heroIconItem-"+t,o=t>=p&&t<v?i.a.createElement("img",{alt:e,src:"https://cdn.rawgit.com/encharm/Font-Awesome-SVG-PNG/266b63d5/black/svg/"+e+".svg"}):"",a=ee.icon===e?"cur":"";oe.push(i.a.createElement("div",{title:e,style:{width:58,height:58},className:"heroIconItem "+r+" "+a,onClick:function(){return ne("icon",e)},key:t},i.a.createElement("div",null,o))),n()})),oe))):"";return i.a.createElement("div",{id:"addIcons"},i.a.createElement("div",{id:"addIconsPanel"},i.a.createElement("div",{className:"modeSwitch"},i.a.createElement("label",null,"Mode"),i.a.createElement("span",{className:".btn-fa"===U?"cur":"",onClick:function(){q(".btn-fa")}},"Button"),i.a.createElement("b",{onClick:function(){q(".icon-fa"===U?".btn-fa":".icon-fa")}}),i.a.createElement("span",{className:".icon-fa"===U?"cur":"",onClick:function(){q(".icon-fa")}},"Icon")),i.a.createElement("style",null,Y),i.a.createElement("div",{className:"prevWrap"},i.a.createElement("label",null,"Preview"),i.a.createElement("div",{className:"prev"},".icon-fa"===U?i.a.createElement("div",null):i.a.createElement("div",null,"Button"))),i.a.createElement("div",{className:"spp"},i.a.createElement("div",{className:"iconChooser"},i.a.createElement("label",null,"Icon"),i.a.createElement("div",{className:I?"act":"",onClick:function(){return R(!I)}},i.a.createElement("img",{alt:ae("icon"),src:"https://cdn.rawgit.com/encharm/Font-Awesome-SVG-PNG/266b63d5/black/svg/"+ae("icon")+".svg"}),i.a.createElement("span",null,ae("icon")),i.a.createElement("span",{className:"ico arrow-down"}))),i.a.createElement("div",{className:"positioner"},i.a.createElement("label",null,"Position"),i.a.createElement("div",{className:"innerPos"},(".btn-fa"===U?["left","right"]:["left","top-left","top-center"]).map((function(e){return i.a.createElement("div",{"data-pos":e,className:ae("position")===e?"cur":"",onClick:function(){return ne("position",e)},key:e},i.a.createElement("div",{className:"ic"}),i.a.createElement("div",{className:"cn"}))}))))),se,i.a.createElement("div",{className:"sizer"},["size","borderSize","padding","radius"].map((function(e){return i.a.createElement("div",{key:e},i.a.createElement("label",null,e),i.a.createElement("div",{className:"inputWrap"},i.a.createElement("div",{className:"inputInnerWrap"},i.a.createElement("input",{spellCheck:"false",value:ae(e),type:"text",onChange:function(t){return ne(e,t.target.value)}})),i.a.createElement("div",{className:"inputControls inputBtn"},i.a.createElement("div",{className:"p",onClick:function(){return ne(e,parseInt(ae(e))+1)}},"+"),i.a.createElement("div",{className:"m",onClick:function(){return ne(e,parseInt(ae(e))-1<=0?0:parseInt(ae(e))-1)}},"-"))))}))),i.a.createElement("div",{className:"lister"},function(){var e=[],n=function(n){var r=J[n],o=ee[n];if(r.indexOf("olor")>-1){var a=i.a.createElement("div",{className:"pickerWrap"},i.a.createElement("div",{"data-cur":C===r?"cur":"",onClick:function(){return S(r)},className:"pickerTrigger",style:{backgroundColor:o}}),C===r?i.a.createElement(_n,{node:document&&document.querySelectorAll("#addIconsPanel .lister")[0]},i.a.createElement("div",{className:"iconsTrigger"},i.a.createElement("div",{className:"colorPickerInnerWrap"},i.a.createElement(xr,{action:function(e){var t=e.rgb,n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";ne(C,n)},color:ae(C),app:t,paletteAction:function(e){return ne(C,e)}}),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary",onClick:function(){S(!1),ne(C,W)}},"Cancel"),i.a.createElement("div",{onClick:function(){return S(!1)},className:"btn primary"},"Submit"))))):"");e.push(i.a.createElement("div",{key:n},i.a.createElement("label",null,r),i.a.createElement("div",{className:"inputWrap"},i.a.createElement("div",{className:"inputInnerWrap"},i.a.createElement("input",{type:"text",spellCheck:"false",value:o,onChange:function(e){return ne(r,e.target.value)}})),a)))}};for(var r in ee)n(r);return e}()),i.a.createElement("div",{className:"extraBtns"},function(){var e=Se(t).code.indexOf(U+"(")>-1,n=e?i.a.createElement("span",{className:"btn primary",onClick:function(){Me(U+"()",t,(function(e){Te(U,ee,e)}))}},"Update"):i.a.createElement("span",{className:"btn primary",onClick:function(){Te(U,ee,t)}},"Apply"),r=e?i.a.createElement("span",{className:"btn secondary",onClick:function(){return Me(U+"()",t)}},"Remove"):"",o=i.a.createElement(i.a.Fragment,null,r,n);return t.state.currentEl?o:""}())))};function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var vo=function(e){var t=e.app,n=t.worker,o=t.state,a=t.update,s=o.snippetPreviewStyles,u=Object(r.useState)(""),c=E()(u,2),f=c[0],p=c[1],d=Object(r.useState)(""),h=E()(d,2),m=h[0],v=h[1],g=Object(r.useState)(!1),y=E()(g,2),b=y[0],_=y[1],w=Object(r.useState)([]),k=E()(w,2),C=k[0],S=k[1],O=Object(r.useState)(!1),A=E()(O,2),j=A[0],P=A[1];Object(r.useEffect)((function(){S([]),_(!1),P(!1)}),[f]);var N=function(e,t){var n=l()(C);n[e]=t,JSON.stringify(C)!==JSON.stringify(n)&&S(n)},T=function(e,n,r){var i=!0;r&&r.map((function(e){return n[e]||(i=!1),!0})),i?(Te(e,n,t),_(!1),S([])):alert("please set parameters")};return i.a.createElement("div",{id:"snippets"},i.a.createElement("div",{className:"nodeDesc"},i.a.createElement("p",null,"Snippets, or 'LESSCSS Classes' are stored sets of edits for you to store and re-apply on the fly."),i.a.createElement("p",null,"Find out more ",i.a.createElement("a",{href:"https://www.csshero.org/knowledge-base/plugin-v3/feature-highlight-videos/snippets-copy-and-paste-any-style-on-your-wordpress-site/",target:"_blank",rel:"noopener noreferrer"},"here"),".")),i.a.createElement("style",null,s),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},wi),r=o.flatSnippets,s=He(Se(t).code,";"),l=je(o.storedEdits.all),u=l.customSnippets_withParams,c=l.customSnippets;if((c=c.concat(u)).length>0)for(var d in e.custom={},c){var h=c[d].slice(0,-1),g=Se(t,h,"all").code;e.custom[h]={def:g},r+=h+g}var y=r,w=[],k=function(n){var r=n.split("_").join(" "),l=n===f?"cur":"";if("icons"!==n){var u=0,c=[],d=[],h=function(r){var l=s.indexOf(r.split("(")[0])>-1?"active":"";u++;var p=[],h=r.split("(")[1],m=h.split("@").length-h.split(":").length;if(m>0)for(var v=0;v<m;v++)p.push("auto");var g=e[n][r].previewStyle,w=g||"";if(y+="#heroWrapper #sn-"+n+"-"+u+" .snippetPrev{span{"+r.split("(")[0]+"("+p.join(",")+");}"+w+"}",l&&d.push(r),n===f){var x=b!==r||l?"":i.a.createElement("div",null,function(e){var n=e.substring(e.indexOf("(")+1,e.lastIndexOf(")"));n=Pe(n=n.split(";").join(","));var r=[],o=[];return n.forEach((function(n,a){var s=n.split(":")[0],l=n.split(":")[1]?n.split(":")[1]:"",u=l?"":"required";u&&o.push(a),C[a]||N(a,l);var c=e+"_"+s,f=j===c?i.a.createElement("div",{className:"snippetsPicker"},i.a.createElement(xr,{color:C[a]?C[a]:l,action:function(e){var t=e.rgb,n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";N(a,n)},app:t,paletteAction:function(e){return N(a,e)}}),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary",onClick:function(){return P(!1)}},"Cancel"),i.a.createElement("div",{className:"btn",onClick:function(){return P(!1)}},"Submit"))):"",p=C[a]&&Le(C[a])?i.a.createElement("div",{className:"pickerWrap"},f,i.a.createElement("div",{onClick:function(){P(j!==c&&c)},className:"pickerTrigger",style:{backgroundColor:C[a]}})):"";r.push(i.a.createElement("div",{className:"paramItem "+u,key:a},i.a.createElement("span",null,s),i.a.createElement("div",{className:"inputWrap"},i.a.createElement("input",{type:"text",spellCheck:"false",onChange:function(e){var t=e.target.value?e.target.value:" ";N(a,t)},value:C[a]}),p)))})),i.a.createElement("div",null,r,i.a.createElement("div",{className:"extraBtns"},i.a.createElement("span",{className:"btn secondary",onClick:function(){_(!1),S([])}},"Cancel"),i.a.createElement("span",{className:"btn snippets",onClick:function(){return T(e,C,o)}},"Apply")))}(r)),k=r.indexOf("@")>-1?i.a.createElement("span",{className:"btn snippets secondary",onClick:function(){_(r)}},"Set Params..."):i.a.createElement("span",{className:"btn snippets primary",onClick:function(){return T(r,[])}},"Apply"),E=b!==r||l?k:"",O=l?i.a.createElement("span",{className:"btn cancel",onClick:function(){return Me(r,t)}},"Remove"):E,A=i.a.createElement("span",{className:"leftie",onClick:function(){var e="";for(var t in wi)for(var n in wi[t])n===r&&(e=wi[t][n].def);a({heroAlert:{title:"Snippet Contents",content:i.a.createElement("pre",{className:"snippetCodePrev"},r+"{\n\t"+e.split(";").join(";\n\t")+"}"),type:"error"}})}},"Show Code"),M=i.a.createElement("span",{className:"delete leftie",onClick:function(){!function(e,t){var n=t.state,r=t.update,i=te({},n.storedEdits),o=!0,a={};for(var s in i){var l=i[s].trim();(l=He(l,"{")).split(e.split("(")[0]+"(").length>2&&(o=!1);var u=l.indexOf(e+"{")+(e+"{").length,c=_e(l,u)+1;l=l.slice(0,l.indexOf(e+"{"))+l.slice(c),a[s]=l}r(o?{heroAlert:{title:"Delete snippet",content:"Are you sure to delete "+e+" from your project?",type:"confirm",callBack:function(){r({storedEdits:a},(function(e){Ne(te(te({},t),{},{state:e}))}))}}}:{heroAlert:{title:"Snippet is in use",content:"Sorry, looks like "+e+" is in use.",type:"error"}})}(r,t)}},"Delete"),D="custom"===n?i.a.createElement("span",{className:"edit",onClick:function(){return Ce(r,t)}},"Edit"):"",L=o.currentEl?i.a.createElement("div",{className:"snippetActions"},"custom"===n?M:A,D,O,x):"",F=b===r?i.a.createElement("div",{className:"snippetsMask"}):"";if(!e[n][r].hidden){var I=b===r?"settingParams":"",R=e[n][r].des?i.a.createElement("div",{className:"snippetDesc"},i.a.createElement("p",null,e[n][r].des)):"";c.push(i.a.createElement("div",{key:r},F,i.a.createElement("div",{id:"sn-"+n+"-"+u,className:l+" snippetEl "+I},i.a.createElement("div",{className:"snippetPrev"},i.a.createElement("span",null,r.split("(")[0]+"()")),i.a.createElement("div",{className:"snippetMeta"},R,L))))}}};for(var m in e[n])h(m);var v=n.split("_").join(" "),g=d.length>0?i.a.createElement("span",{className:"svgIco"},i.a.createElement("span",null,d.length)):"";w.push(i.a.createElement("div",{"data-group":n,className:l+" snippetGroup",key:n},i.a.createElement("div",{className:"tabHead",onClick:function(){p(n===f?"":n)}},i.a.createElement("label",null,v),g),i.a.createElement("div",{className:"snippetsConts"},c)))}else{var x=n===f?i.a.createElement(ho,{app:t}):"";w.push(i.a.createElement("div",{"data-group":n,className:l+" snippetGroup",key:n},i.a.createElement("div",{className:"tabHead",onClick:function(){p(n===f?"":n)}},i.a.createElement("label",null,r)),i.a.createElement("div",{className:"snippetsConts"},x)))}};for(var E in e)k(E);return function(e){var t="._d(){}";for(var r in o.projectVars)t+=r+":"+o.projectVars[r]+";";(t+=e)!==m&&(v(t),n.postMessage({type:"snippetsLess",value:t}))}(y),w}()))};function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bo=function(e){var t,n=Object(r.useState)(!1),o=E()(n,2),a=o[0],s=o[1],l=e.prop,u=e.opts,c=e.cl,f=e.label,p=e.app,d=p.state,h=p.update,m=d.animatedEls,v=d.currentEl,g=(null==m||null===(t=m[v])||void 0===t?void 0:t[l])?m[v][l]:"none",y="none"!==g?"applied":"";-1===u.indexOf("none")&&u.unshift("none");var b=u.map((function(e){return i.a.createElement("li",{className:g===e?"cur":"",key:e,onClick:function(){return function(e,t){s(!1);var n=m[v]?m[v]:{},r=yo(yo({},m),{},x()({},v,yo(yo({},n),{},x()({},e,t))));"none"===t&&r[v][e]&&delete r[v][e],0===Object.keys(r[v]).length&&delete r[v],h({animatedEls:r,session:Date.now()})}(l,e)}},e)})),_=a?i.a.createElement("ul",{className:"inputDrop"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},b)):"";return i.a.createElement("div",{className:c+" "+y+" heroNode animNode"},i.a.createElement("label",null,f),i.a.createElement("div",{className:"inputWrap"},i.a.createElement("div",{className:"inputInnerWrap"},i.a.createElement("div",{className:"inputMask",onClick:function(){return s(!a)}}),i.a.createElement("input",{type:"text",value:g,onChange:function(){return console.log("non succede mai nulla qui...")}})),i.a.createElement("div",{className:"inputDD inputBtn",onClick:function(){return s(!a)}},i.a.createElement("div",{className:"toggle ico arrow-down"})),_))},_o=function(e){var t=e.app,n=t.state,r=!n.animatedEls[n.currentEl],o=[];for(var a in R){var s=R[a],l="data-aos"===a?"On Reveal Effect":a.replace("data-aos-",""),u=["offset","delay","duration","once"].indexOf(l)>-1?"smaller":"",c=i.a.createElement(bo,{prop:a,app:t,opts:s,cl:u,label:l,key:l});r?"data-aos"===a&&o.push(c):o.push(c)}return i.a.createElement(i.a.Fragment,null,i.a.createElement("p",{key:"desc",className:"nodeDesc"},"Easily apply on scroll animations to the currently selected element. Animations are triggered when the user scrolls the page and the current element reaches the viewport."),i.a.createElement("div",{id:"animsWrap"},o))},wo=function(){return i.a.createElement("div",{id:"splash"},i.a.createElement("h2",null,"Welcome to CSS Hero v5"),i.a.createElement("p",null,"Click or right-click an ",i.a.createElement("span",null,"element")," on the page to start editing your theme"),i.a.createElement("hr",null),i.a.createElement("p",null,"Need some help getting started?"),i.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.csshero.org/knowledge-base/plugin-v3/"},"Documentation →"))},xo=function(e){var t=e.app,n=t.state,o=Object(r.useState)(!1),a=E()(o,2),s=a[0],l=a[1],u=Object(r.useState)([]),c=E()(u,2),f=c[0],p=c[1];Object(r.useEffect)((function(){var e=je(n.storedEdits.all),t=e.customSnippets_withParams,r=e.customSnippets;p(r.concat(t))}),[n.storedEdits]),Object(r.useEffect)((function(){l(!1)}),[n.currentEl,f]);var d=function(e){return e+Se(t,e,"all").code},h=f.length>0?"ico download":"ico download disa",m=s?"":i.a.createElement(rn,{place:"top",effect:"solid",type:"dark"}),v=s?i.a.createElement(i.a.Fragment,null,i.a.createElement(_n,{node:document&&document.getElementById("codeEditorWrap")},i.a.createElement("div",{id:"quickSnippetsLoader"},i.a.createElement("div",{className:"ico arrow-down"}),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"head"},i.a.createElement("label",null,"Custom Snippets"),i.a.createElement("span",{className:"ico close"})),f.map((function(e,n){var r=e.slice(0,-1),o=r;e=e.split("(")[0],r=i.a.createElement("span",null,e,i.a.createElement("b",null,r.replace(e,"")));var a=[i.a.createElement("span",{key:"edit",onClick:function(e){e.stopPropagation(),Ce(o,t)},className:"ico edit"})],s=Se(t).code.indexOf(e+"(")>-1;s?a.push(i.a.createElement("span",{key:"close",onClick:function(n){n.stopPropagation(),Me(e+"()",t)},className:"ico remo add"})):a.push(i.a.createElement("span",{key:"add",onClick:function(n){n.stopPropagation(),Te(e+"()",[""],t)},className:"ico add"}));var l=s?"k act":"k";return i.a.createElement("div",{title:d(o),className:l,key:n},r,i.a.createElement("div",{className:"icons"},a))}))))),i.a.createElement(_n,{node:document&&document.getElementById("wysiChooser")},i.a.createElement("div",{className:"extraMask editorMask qs"}))):"";return i.a.createElement("span",{id:"quickSnippets","data-tip":"Load Snippets",className:h,onClick:function(){l(!s)}},m,v)};function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Co=function(e){var t=Object(r.useState)(!1),n=E()(t,2),o=n[0],a=n[1],s=e.app,l=e.data,u=s.state,c=s.update,f=u.viewSettings,p=u.currentEl,d=u.heroFrame,h=f.showTab,m=Object(r.useState)(""),v=E()(m,2),g=v[0],y=v[1];Object(r.useEffect)((function(){y("loading"),setTimeout((function(){return y("")}),500)}),[p]);var b,_,w,k,C;return i.a.createElement("div",{className:g+" editorLoader"},(b=f.showWysiCode?i.a.createElement(mr,{app:s,data:l}):"",_=o?i.a.createElement(co,{app:s,callBack:function(){a(!1)}}):"",w=f.showWysiCode?"":"hideCodeEditor",k="{}"!==u.currentNode.code?i.a.createElement("span",{className:"ico store-snippet","data-tip":"Store as Snippet",onClick:function(){a(!o)}},i.a.createElement(rn,{place:"top",effect:"solid",type:"dark"})):i.a.createElement("span",{"data-tip":"Store as Snippet",className:"ico store-snippet disa"},i.a.createElement(rn,{place:"top",effect:"solid",type:"dark"})),C="wysi"===u.viewSettings.mode?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{id:"wysiWrap",className:w},_,i.a.createElement(eo,{app:s}),i.a.createElement("div",{id:"wysiChooser"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},function(){var e=u.editingSnippet?{properties:{c:i.a.createElement(Qi,{app:s,data:l}),d:i.a.createElement("span",null,"Browse and Edit")}}:{properties:{c:i.a.createElement(Qi,{app:s,data:l}),d:i.a.createElement("span",null,"Browse and Edit")},snippets:{c:i.a.createElement(vo,{app:s}),d:i.a.createElement("span",null,"LESSCSS Classes")},animations:{c:i.a.createElement(_o,{app:s}),d:i.a.createElement("span",null,"On Scroll (AOS)")}},t=[],n=function(n){var r=h===n?e[n].c:"",o=h===n?"cur":"",a=Object.keys(e).length===t.length+1?"last":"",s="animations"===n?"wpOnly":"";t.push(i.a.createElement("div",{className:s+" "+o+" "+n+" tabWrap "+a,key:n},i.a.createElement("div",{className:o+" tabHead top",onClick:function(){var e=h===n?"":n,t=Eo(Eo({},f),{},{showTab:e});c({viewSettings:t,session:Date.now()})}},i.a.createElement("label",null,n),e[n].d),r))};for(var r in e)n(r);return t}())),i.a.createElement("div",{id:"codeEditorWrap"},i.a.createElement("div",{id:"codeEditorSwitch"},i.a.createElement("span",{className:"toggler",onClick:function(){return c((function(e){return{viewSettings:Eo(Eo({},e.viewSettings),{},{showWysiCode:!u.viewSettings.showWysiCode}),session:Date.now()}}))}},i.a.createElement("span",{className:"ico arrow-down"}),"Code Editor"),k,i.a.createElement(xo,{app:s}),i.a.createElement("span",{"data-for":"clear","data-tip":"Clear Edits",className:"ico trash",onClick:function(){return function(e){var t=e.update,n=e.state,r=n.currentNode,i=n.currentMq,o=n.storedEdits,a=te(te({},r),{},{code:""}),s=(r.before+r.after).trim();t({currentNodeCode:a,storedEdits:te(te({},o),{},x()({},i,s)),session:Date.now()})}(s)}},i.a.createElement(rn,{id:"clear",place:"top",effect:"solid",type:"dark"})),i.a.createElement("span",{"data-for":"exit","data-tip":"Exit editing snippet mode",className:"btn exitEditingSnippet",onClick:function(){c({currentEl:null})}},"Done"),i.a.createElement(rn,{id:"exit",place:"top",effect:"solid",type:"dark"})),b))):i.a.createElement(lo,{app:s}),i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{id:"editorSwitch",className:u.viewSettings.mode},i.a.createElement("span",{className:"wysi",onClick:function(){c((function(e){return{viewSettings:Eo(Eo({},e.viewSettings),{},{mode:"wysi"}),navigationMode:!1,session:Date.now()}}))}},uo),i.a.createElement("span",{className:"insp",onClick:function(){var e={viewSettings:Eo(Eo({},f),{},{mode:"insp"}),session:Date.now()};p||(e.currentEl="body",e.currentElDesc="body",e.currentElContexts=Y(s,"body")),c(e)}},"Inspector")),d&&p?C:i.a.createElement(wo,null))))};function So(e){return(So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ao(){return(Ao=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oo(e,t,n[t])}))}return e}function Po(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function No(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var To=No(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Mo=No(/Edge/i),Do=No(/firefox/i),Lo=No(/safari/i)&&!No(/chrome/i)&&!No(/android/i),Fo=No(/iP(ad|od|hone)/i),Io=No(/chrome/i)&&No(/android/i),Ro={capture:!1,passive:!1};function Bo(e,t,n){e.addEventListener(t,n,!To&&Ro)}function $o(e,t,n){e.removeEventListener(t,n,!To&&Ro)}function Wo(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function zo(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ho(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Wo(e,t):Wo(e,t))||r&&e===n)return e;if(e===n)break}while(e=zo(e))}return null}var Vo,Uo=/\s+/g;function qo(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Uo," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Uo," ")}}function Go(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function Xo(e,t){var n="";if("string"==typeof e)n=e;else do{var r=Go(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return i&&new i(n)}function Yo(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Ko(){return To?document.documentElement:document.scrollingElement}function Jo(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,l,u,c,f;if(e!==window&&e!==Ko()?(a=(o=e.getBoundingClientRect()).top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!To))do{if(i&&i.getBoundingClientRect&&("none"!==Go(i,"transform")||n&&"static"!==Go(i,"position"))){var p=i.getBoundingClientRect();a-=p.top+parseInt(Go(i,"border-top-width")),s-=p.left+parseInt(Go(i,"border-left-width")),l=a+o.height,u=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var d=Xo(i||e),h=d&&d.a,m=d&&d.d;d&&(l=(a/=m)+(c/=m),u=(s/=h)+(f/=h))}return{top:a,left:s,bottom:l,right:u,width:f,height:c}}}function Zo(e,t,n){for(var r=ra(e,!0),i=Jo(e)[t];r;){var o=Jo(r)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return r;if(r===Ko())break;r=ra(r,!1)}return!1}function Qo(e,t,n){for(var r=0,i=0,o=e.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==as.ghost&&o[i]!==as.dragged&&Ho(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function ea(e,t){for(var n=e.lastElementChild;n&&(n===as.ghost||"none"===Go(n,"display")||t&&!Wo(n,t));)n=n.previousElementSibling;return n||null}function ta(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===as.clone||t&&!Wo(e,t)||n++;return n}function na(e){var t=0,n=0,r=Ko();if(e)do{var i=Xo(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function ra(e,t){if(!e||!e.getBoundingClientRect)return Ko();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Go(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Ko();if(r||t)return n;r=!0}}}while(n=n.parentNode);return Ko()}function ia(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function oa(e,t){return function(){if(!Vo){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),Vo=setTimeout((function(){Vo=void 0}),t)}}}function aa(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function sa(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var la="Sortable"+(new Date).getTime();function ua(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Go(e,"display")&&e!==as.ghost){t.push({target:e,rect:Jo(e)});var n=jo({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=Xo(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=Jo(n),l=n.prevFromRect,u=n.prevToRect,c=e.rect,f=Xo(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&ia(l,s)&&!ia(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(c,l,u,r.options)),ia(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){Go(e,"transition",""),Go(e,"transform","");var i=Xo(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,Go(e,"transform","translate3d("+s+"px,"+l+"px,0)"),function(e){e.offsetWidth}(e),Go(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),Go(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Go(e,"transition",""),Go(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var ca=[],fa={initializeByDefault:!0},pa={mount:function(e){for(var t in fa)fa.hasOwnProperty(t)&&!(t in e)&&(e[t]=fa[t]);ca.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ca.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](jo({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](jo({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ca.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,Ao(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);void 0!==o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return ca.forEach((function(r){"function"==typeof r.eventProperties&&Ao(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ca.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function da(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,p=e.originalEvent,d=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[la]){var m,v=t.options,g="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||To||Mo?(m=document.createEvent("Event")).initEvent(r,!0,!0):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=s||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=f,m.originalEvent=p,m.pullMode=d?d.lastPutMode:void 0;var y=jo({},h,pa.getEventProperties(r,t));for(var b in y)m[b]=y[b];n&&n.dispatchEvent(m),v[g]&&v[g].call(t,m)}}var ha=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=Po(n,["evt"]);pa.pluginEvent.bind(as)(e,t,jo({dragEl:va,parentEl:ga,ghostEl:ya,rootEl:ba,nextEl:_a,lastDownEl:wa,cloneEl:xa,cloneHidden:ka,dragStarted:Fa,putSortable:ja,activeSortable:as.active,originalEvent:r,oldIndex:Ea,oldDraggableIndex:Sa,newIndex:Ca,newDraggableIndex:Oa,hideGhostForTarget:ns,unhideGhostForTarget:rs,cloneNowHidden:function(){ka=!0},cloneNowShown:function(){ka=!1},dispatchSortableEvent:function(e){ma({sortable:t,name:e,originalEvent:r})}},i))};function ma(e){da(jo({putSortable:ja,cloneEl:xa,targetEl:va,rootEl:ba,oldIndex:Ea,oldDraggableIndex:Sa,newIndex:Ca,newDraggableIndex:Oa},e))}var va,ga,ya,ba,_a,wa,xa,ka,Ea,Ca,Sa,Oa,Aa,ja,Pa,Na,Ta,Ma,Da,La,Fa,Ia,Ra,Ba,$a,Wa=!1,za=!1,Ha=[],Va=!1,Ua=!1,qa=[],Ga=!1,Xa=[],Ya="undefined"!=typeof document,Ka=Fo,Ja=Mo||To?"cssFloat":"float",Za=Ya&&!Io&&!Fo&&"draggable"in document.createElement("div"),Qa=function(){if(Ya){if(To)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),es=function(e,t){var n=Go(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Qo(e,0,t),o=Qo(e,1,t),a=i&&Go(i),s=o&&Go(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Jo(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Jo(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Ja]||o&&"none"===n[Ja]&&l+u>r)?"vertical":"horizontal"},ts=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==So(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},ns=function(){!Qa&&ya&&Go(ya,"display","none")},rs=function(){!Qa&&ya&&Go(ya,"display","")};Ya&&document.addEventListener("click",(function(e){if(za)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),za=!1,!1}),!0);var is=function(e){if(va){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,o=e.clientY,Ha.some((function(e){if(!ea(e)){var t=Jo(e),n=e[la].options.emptyInsertThreshold,r=i>=t.left-n&&i<=t.right+n,s=o>=t.top-n&&o<=t.bottom+n;return n&&r&&s?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[la]._onDragOver(n)}}var i,o,a},os=function(e){va&&va.parentNode[la]._isOutsideThisEl(e.target)};function as(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ao({},t),e[la]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return es(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==as.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in pa.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in ts(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Za,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Bo(e,"pointerdown",this._onTapStart):(Bo(e,"mousedown",this._onTapStart),Bo(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Bo(e,"dragover",this),Bo(e,"dragenter",this)),Ha.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ao(this,ua())}function ss(e,t,n,r,i,o,a,s){var l,u,c=e[la],f=c.options.onMove;return!window.CustomEvent||To||Mo?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||Jo(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),f&&(u=f.call(c,l,a)),u}function ls(e){e.draggable=!1}function us(){Ga=!1}function cs(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function fs(e){return setTimeout(e,0)}function ps(e){return clearTimeout(e)}as.prototype={constructor:as,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ia=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,va):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(function(e){Xa.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Xa.push(r)}}(n),!va&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled||l.isContentEditable||(s=Ho(s,r.draggable,n,!1))&&s.animated||wa===s)){if(Ea=ta(s),Sa=ta(s,r.draggable),"function"==typeof u){if(u.call(this,e,s,this))return ma({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),ha("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=Ho(l,r.trim(),n,!1))return ma({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),ha("filter",t,{evt:e}),!0}))))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!Ho(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!va&&n.parentNode===o){var l=Jo(n);if(ba=o,ga=(va=n).parentNode,_a=va.nextSibling,wa=n,Aa=a.group,as.dragged=va,Pa={target:va,clientX:(t||e).clientX,clientY:(t||e).clientY},Da=Pa.clientX-l.left,La=Pa.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,va.style["will-change"]="all",r=function(){ha("delayEnded",i,{evt:e}),as.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!Do&&i.nativeDraggable&&(va.draggable=!0),i._triggerDragStart(e,t),ma({sortable:i,name:"choose",originalEvent:e}),qo(va,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Yo(va,e.trim(),ls)})),Bo(s,"dragover",is),Bo(s,"mousemove",is),Bo(s,"touchmove",is),Bo(s,"mouseup",i._onDrop),Bo(s,"touchend",i._onDrop),Bo(s,"touchcancel",i._onDrop),Do&&this.nativeDraggable&&(this.options.touchStartThreshold=4,va.draggable=!0),ha("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Mo||To))r();else{if(as.eventCanceled)return void this._onDrop();Bo(s,"mouseup",i._disableDelayedDrag),Bo(s,"touchend",i._disableDelayedDrag),Bo(s,"touchcancel",i._disableDelayedDrag),Bo(s,"mousemove",i._delayedDragTouchMoveHandler),Bo(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&Bo(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){va&&ls(va),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;$o(e,"mouseup",this._disableDelayedDrag),$o(e,"touchend",this._disableDelayedDrag),$o(e,"touchcancel",this._disableDelayedDrag),$o(e,"mousemove",this._delayedDragTouchMoveHandler),$o(e,"touchmove",this._delayedDragTouchMoveHandler),$o(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Bo(document,"pointermove",this._onTouchMove):Bo(document,t?"touchmove":"mousemove",this._onTouchMove):(Bo(va,"dragend",this),Bo(ba,"dragstart",this._onDragStart));try{document.selection?fs((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Wa=!1,ba&&va){ha("dragStarted",this,{evt:t}),this.nativeDraggable&&Bo(document,"dragover",os);var n=this.options;!e&&qo(va,n.dragClass,!1),qo(va,n.ghostClass,!0),as.active=this,e&&this._appendGhost(),ma({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Na){this._lastX=Na.clientX,this._lastY=Na.clientY,ns();for(var e=document.elementFromPoint(Na.clientX,Na.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Na.clientX,Na.clientY))!==t;)t=e;if(va.parentNode[la]._isOutsideThisEl(e),t)do{if(t[la]){if(t[la]._onDragOver({clientX:Na.clientX,clientY:Na.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);rs()}},_onTouchMove:function(e){if(Pa){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=ya&&Xo(ya),a=ya&&o&&o.a,s=ya&&o&&o.d,l=Ka&&$a&&na($a),u=(i.clientX-Pa.clientX+r.x)/(a||1)+(l?l[0]-qa[0]:0)/(a||1),c=(i.clientY-Pa.clientY+r.y)/(s||1)+(l?l[1]-qa[1]:0)/(s||1);if(!as.active&&!Wa){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ya){o?(o.e+=u-(Ta||0),o.f+=c-(Ma||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Go(ya,"webkitTransform",f),Go(ya,"mozTransform",f),Go(ya,"msTransform",f),Go(ya,"transform",f),Ta=u,Ma=c,Na=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ya){var e=this.options.fallbackOnBody?document.body:ba,t=Jo(va,!0,Ka,!0,e),n=this.options;if(Ka){for($a=e;"static"===Go($a,"position")&&"none"===Go($a,"transform")&&$a!==document;)$a=$a.parentNode;$a!==document.body&&$a!==document.documentElement?($a===document&&($a=Ko()),t.top+=$a.scrollTop,t.left+=$a.scrollLeft):$a=Ko(),qa=na($a)}qo(ya=va.cloneNode(!0),n.ghostClass,!1),qo(ya,n.fallbackClass,!0),qo(ya,n.dragClass,!0),Go(ya,"transition",""),Go(ya,"transform",""),Go(ya,"box-sizing","border-box"),Go(ya,"margin",0),Go(ya,"top",t.top),Go(ya,"left",t.left),Go(ya,"width",t.width),Go(ya,"height",t.height),Go(ya,"opacity","0.8"),Go(ya,"position",Ka?"absolute":"fixed"),Go(ya,"zIndex","100000"),Go(ya,"pointerEvents","none"),as.ghost=ya,e.appendChild(ya),Go(ya,"transform-origin",Da/parseInt(ya.style.width)*100+"% "+La/parseInt(ya.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;ha("dragStart",this,{evt:e}),as.eventCanceled?this._onDrop():(ha("setupClone",this),as.eventCanceled||((xa=sa(va)).draggable=!1,xa.style["will-change"]="",this._hideClone(),qo(xa,this.options.chosenClass,!1),as.clone=xa),n.cloneId=fs((function(){ha("clone",n),as.eventCanceled||(n.options.removeCloneOnHide||ba.insertBefore(xa,va),n._hideClone(),ma({sortable:n,name:"clone"}))})),!t&&qo(va,i.dragClass,!0),t?(za=!0,n._loopId=setInterval(n._emulateDragOver,50)):($o(document,"mouseup",n._onDrop),$o(document,"touchend",n._onDrop),$o(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,va)),Bo(document,"drop",n),Go(va,"transform","translateZ(0)")),Wa=!0,n._dragStartId=fs(n._dragStarted.bind(n,t,e)),Bo(document,"selectstart",n),Fa=!0,Lo&&Go(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,a=e.target,s=this.options,l=s.group,u=as.active,c=Aa===l,f=s.sort,p=ja||u,d=this,h=!1;if(!Ga){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Ho(a,s.draggable,o,!0),A("dragOver"),as.eventCanceled)return h;if(va.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||d._ignoreWhileAnimating===a)return P(!1);if(za=!1,u&&!s.disabled&&(c?f||(r=!ba.contains(va)):ja===this||(this.lastPutMode=Aa.checkPull(this,u,va,e))&&l.checkPut(this,u,va,e))){if(i="vertical"===this._getDirection(e,a),t=Jo(va),A("dragOverValid"),as.eventCanceled)return h;if(r)return ga=ba,j(),this._hideClone(),A("revert"),as.eventCanceled||(_a?ba.insertBefore(va,_a):ba.appendChild(va)),P(!0);var m=ea(o,s.draggable);if(!m||function(e,t,n){var r=Jo(ea(n.el,n.options.draggable));return t?e.clientX>r.right+10||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+10}(e,i,this)&&!m.animated){if(m===va)return P(!1);if(m&&o===e.target&&(a=m),a&&(n=Jo(a)),!1!==ss(ba,o,va,t,a,n,e,!!a))return j(),o.appendChild(va),ga=o,N(),P(!0)}else if(a.parentNode===o){n=Jo(a);var v,g,y,b=va.parentNode!==o,_=!function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2}(va.animated&&va.toRect||t,a.animated&&a.toRect||n,i),w=i?"top":"left",x=Zo(a,"top","top")||Zo(va,"top","top"),k=x?x.scrollTop:void 0;if(Ia!==a&&(g=n[w],Va=!1,Ua=!_&&s.invertSwap||b),0!==(v=function(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,p=!1;if(!a)if(s&&Ba<u*i){if(!Va&&(1===Ra?l>c+u*o/2:l<f-u*o/2)&&(Va=!0),Va)p=!0;else if(1===Ra?l<c+Ba:l>f-Ba)return-Ra}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return function(e){return ta(va)<ta(e)?1:-1}(t);if((p=p||a)&&(l<c+u*o/2||l>f-u*o/2))return l>c+u/2?1:-1;return 0}(e,a,n,i,_?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ua,Ia===a))){var E=ta(va);do{E-=v,y=ga.children[E]}while(y&&("none"===Go(y,"display")||y===ya))}if(0===v||y===a)return P(!1);Ia=a,Ra=v;var C=a.nextElementSibling,S=!1,O=ss(ba,o,va,t,a,n,e,S=1===v);if(!1!==O)return 1!==O&&-1!==O||(S=1===O),Ga=!0,setTimeout(us,30),j(),S&&!C?o.appendChild(va):a.parentNode.insertBefore(va,S?C:a),x&&aa(x,0,k-x.scrollTop),ga=va.parentNode,void 0===g||Ua||(Ba=Math.abs(g-Jo(a)[w])),N(),P(!0)}if(o.contains(va))return P(!1)}return!1}function A(s,l){ha(s,d,jo({evt:e,isOwner:c,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:p,target:a,completed:P,onMove:function(n,r){return ss(ba,o,va,t,n,Jo(n),e,r)},changed:N},l))}function j(){A("dragOverAnimationCapture"),d.captureAnimationState(),d!==p&&p.captureAnimationState()}function P(t){return A("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(d),d!==p&&(qo(va,ja?ja.options.ghostClass:u.options.ghostClass,!1),qo(va,s.ghostClass,!0)),ja!==d&&d!==as.active?ja=d:d===as.active&&ja&&(ja=null),p===d&&(d._ignoreWhileAnimating=a),d.animateAll((function(){A("dragOverAnimationComplete"),d._ignoreWhileAnimating=null})),d!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===va&&!va.animated||a===o&&!a.animated)&&(Ia=null),s.dragoverBubble||e.rootEl||a===document||(va.parentNode[la]._isOutsideThisEl(e.target),!t&&is(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function N(){Ca=ta(va),Oa=ta(va,s.draggable),ma({sortable:d,name:"change",toEl:o,newIndex:Ca,newDraggableIndex:Oa,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){$o(document,"mousemove",this._onTouchMove),$o(document,"touchmove",this._onTouchMove),$o(document,"pointermove",this._onTouchMove),$o(document,"dragover",is),$o(document,"mousemove",is),$o(document,"touchmove",is)},_offUpEvents:function(){var e=this.el.ownerDocument;$o(e,"mouseup",this._onDrop),$o(e,"touchend",this._onDrop),$o(e,"pointerup",this._onDrop),$o(e,"touchcancel",this._onDrop),$o(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Ca=ta(va),Oa=ta(va,n.draggable),ha("drop",this,{evt:e}),ga=va&&va.parentNode,Ca=ta(va),Oa=ta(va,n.draggable),as.eventCanceled||(Wa=!1,Ua=!1,Va=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ps(this.cloneId),ps(this._dragStartId),this.nativeDraggable&&($o(document,"drop",this),$o(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Lo&&Go(document.body,"user-select",""),e&&(Fa&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ya&&ya.parentNode&&ya.parentNode.removeChild(ya),(ba===ga||ja&&"clone"!==ja.lastPutMode)&&xa&&xa.parentNode&&xa.parentNode.removeChild(xa),va&&(this.nativeDraggable&&$o(va,"dragend",this),ls(va),va.style["will-change"]="",Fa&&!Wa&&qo(va,ja?ja.options.ghostClass:this.options.ghostClass,!1),qo(va,this.options.chosenClass,!1),ma({sortable:this,name:"unchoose",toEl:ga,newIndex:null,newDraggableIndex:null,originalEvent:e}),ba!==ga?(Ca>=0&&(ma({rootEl:ga,name:"add",toEl:ga,fromEl:ba,originalEvent:e}),ma({sortable:this,name:"remove",toEl:ga,originalEvent:e}),ma({rootEl:ga,name:"sort",toEl:ga,fromEl:ba,originalEvent:e}),ma({sortable:this,name:"sort",toEl:ga,originalEvent:e})),ja&&ja.save()):Ca!==Ea&&Ca>=0&&(ma({sortable:this,name:"update",toEl:ga,originalEvent:e}),ma({sortable:this,name:"sort",toEl:ga,originalEvent:e})),as.active&&(null!=Ca&&-1!==Ca||(Ca=Ea,Oa=Sa),ma({sortable:this,name:"end",toEl:ga,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ha("nulling",this),ba=va=ga=ya=_a=xa=wa=ka=Pa=Na=Fa=Ca=Oa=Ea=Sa=Ia=Ra=ja=Aa=as.dragged=as.ghost=as.clone=as.active=null,Xa.forEach((function(e){e.checked=!0})),Xa.length=Ta=Ma=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":va&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)Ho(e=n[r],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||cs(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];Ho(i,this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Ho(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=pa.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&ts(n)},destroy:function(){ha("destroy",this);var e=this.el;e[la]=null,$o(e,"mousedown",this._onTapStart),$o(e,"touchstart",this._onTapStart),$o(e,"pointerdown",this._onTapStart),this.nativeDraggable&&($o(e,"dragover",this),$o(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),Ha.splice(Ha.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ka){if(ha("hideClone",this),as.eventCanceled)return;Go(xa,"display","none"),this.options.removeCloneOnHide&&xa.parentNode&&xa.parentNode.removeChild(xa),ka=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ka){if(ha("showClone",this),as.eventCanceled)return;ba.contains(va)&&!this.options.group.revertClone?ba.insertBefore(xa,va):_a?ba.insertBefore(xa,_a):ba.appendChild(xa),this.options.group.revertClone&&this.animate(va,xa),Go(xa,"display",""),ka=!1}}else this._hideClone()}},Ya&&Bo(document,"touchmove",(function(e){(as.active||Wa)&&e.cancelable&&e.preventDefault()})),as.utils={on:Bo,off:$o,css:Go,find:Yo,is:function(e,t){return!!Ho(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:oa,closest:Ho,toggleClass:qo,clone:sa,index:ta,nextTick:fs,cancelNextTick:ps,detectDirection:es,getChild:Qo},as.get=function(e){return e[la]},as.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(as.utils=jo({},as.utils,e.utils)),pa.mount(e)}))},as.create=function(e,t){return new as(e,t)},as.version="1.10.1";var ds,hs,ms,vs,gs,ys,bs=[],_s=!1;function ws(){bs.forEach((function(e){clearInterval(e.pid)})),bs=[]}function xs(){clearInterval(ys)}var ks=oa((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=Ko(),c=!1;hs!==n&&(hs=n,ws(),ds=t.scroll,i=t.scrollFn,!0===ds&&(ds=ra(n,!0)));var f=0,p=ds;do{var d=p,h=Jo(d),m=h.top,v=h.bottom,g=h.left,y=h.right,b=h.width,_=h.height,w=void 0,x=void 0,k=d.scrollWidth,E=d.scrollHeight,C=Go(d),S=d.scrollLeft,O=d.scrollTop;d===u?(w=b<k&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),x=_<E&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(w=b<k&&("auto"===C.overflowX||"scroll"===C.overflowX),x=_<E&&("auto"===C.overflowY||"scroll"===C.overflowY));var A=w&&(Math.abs(y-o)<=s&&S+b<k)-(Math.abs(g-o)<=s&&!!S),j=x&&(Math.abs(v-a)<=s&&O+_<E)-(Math.abs(m-a)<=s&&!!O);if(!bs[f])for(var P=0;P<=f;P++)bs[P]||(bs[P]={});bs[f].vx==A&&bs[f].vy==j&&bs[f].el===d||(bs[f].el=d,bs[f].vx=A,bs[f].vy=j,clearInterval(bs[f].pid),0==A&&0==j||(c=!0,bs[f].pid=setInterval(function(){r&&0===this.layer&&as.active._onTouchMove(gs);var t=bs[this.layer].vy?bs[this.layer].vy*l:0,n=bs[this.layer].vx?bs[this.layer].vx*l:0;"function"==typeof i&&"continue"!==i.call(as.dragged.parentNode[la],n,t,e,gs,bs[this.layer].el)||aa(bs[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&p!==u&&(p=ra(p,!1)));_s=c}}),30),Es=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Cs(){}function Ss(){}Cs.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Qo(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Es},Ao(Cs,{pluginName:"revertOnSpill"}),Ss.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Es},Ao(Ss,{pluginName:"removeOnSpill"});as.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?Bo(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Bo(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Bo(document,"touchmove",this._handleFallbackAutoScroll):Bo(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?$o(document,"dragover",this._handleAutoScroll):($o(document,"pointermove",this._handleFallbackAutoScroll),$o(document,"touchmove",this._handleFallbackAutoScroll),$o(document,"mousemove",this._handleFallbackAutoScroll)),xs(),ws(),clearTimeout(Vo),Vo=void 0},nulling:function(){gs=hs=ds=_s=ys=ms=vs=null,bs.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(gs=e,t||Mo||To||Lo){ks(e,this.options,o,t);var a=ra(o,!0);!_s||ys&&r===ms&&i===vs||(ys&&xs(),ys=setInterval((function(){var o=ra(document.elementFromPoint(r,i),!0);o!==a&&(a=o,ws()),ks(e,n.options,o,t)}),10),ms=r,vs=i)}else{if(!this.options.bubbleScroll||ra(o,!0)===Ko())return void ws();ks(e,this.options,ra(o,!1),!1)}}},Ao(e,{pluginName:"scroll",initializeByDefault:!0})}),as.mount(Ss,Cs);var Os=as,As=n(78),js=n.n(As);var Ps=function(e,t){if(!e)throw new Error("Invariant failed")},Ns=function(e,t){return(Ns=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var Ts=function(){return(Ts=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ms(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ds(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ms(arguments[t]));return e}function Ls(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function Fs(e){e.forEach((function(e){return Ls(e.element)}))}function Is(e){e.forEach((function(e){var t,n,r,i;t=e.parentElement,n=e.element,r=e.oldIndex,i=t.children[r]||null,t.insertBefore(n,i)}))}function Rs(e,t){var n=Ws(e),r={parentElement:e.from},i=[];switch(n){case"normal":i=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":i=[Ts({element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex},r),Ts({element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex},r)];break;case"multidrag":i=e.oldIndicies.map((function(t,n){return Ts({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index},r)}))}return function(e,t){return e.map((function(e){return Ts(Ts({},e),{item:t[e.oldIndex]})})).sort((function(e,t){return e.oldIndex-t.oldIndex}))}(i,t)}function Bs(e,t){var n=Ds(t);return e.concat().reverse().forEach((function(e){return n.splice(e.oldIndex,1)})),n}function $s(e,t){var n=Ds(t);return e.forEach((function(e){return n.splice(e.newIndex,0,e.item)})),n}function Ws(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}function zs(e){e.list,e.setList,e.children,e.tag,e.style,e.className,e.clone,e.onAdd,e.onChange,e.onChoose,e.onClone,e.onEnd,e.onFilter,e.onRemove,e.onSort,e.onStart,e.onUnchoose,e.onUpdate,e.onMove,e.onSpill,e.onSelect,e.onDeselect;return function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["list","setList","children","tag","style","className","clone","onAdd","onChange","onChoose","onClone","onEnd","onFilter","onRemove","onSort","onStart","onUnchoose","onUpdate","onMove","onSpill","onSelect","onDeselect"])}var Hs={dragging:null},Vs=function(e){function t(t){var n=e.call(this,t)||this;n.ref=Object(r.createRef)();var i=Ds(t.list).map((function(e){return Ts(Ts({},e),{chosen:!1,selected:!1})}));return t.setList(i,n.sortable,Hs),Ps(!t.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n '),n}return function(e,t){function n(){this.constructor=e}Ns(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){if(null!==this.ref.current){var e=this.makeOptions();Os.create(this.ref.current,e)}},t.prototype.render=function(){var e=this.props,t=e.tag,n={style:e.style,className:e.className,id:e.id},i=t&&null!==t?t:"div";return Object(r.createElement)(i,Ts({ref:this.ref},n),this.getChildren())},t.prototype.getChildren=function(){var e=this.props,t=e.children,n=e.dataIdAttr,i=e.selectedClass,o=void 0===i?"sortable-selected":i,a=e.chosenClass,s=void 0===a?"sortable-chosen":a,l=(e.dragClass,e.fallbackClass,e.ghostClass,e.swapClass,e.filter),u=void 0===l?"sortable-filter":l,c=e.list;if(!t||null==t)return null;var f=n||"data-id";return r.Children.map(t,(function(e,t){var n,i,a,l=c[t],p=e.props.className,d="string"==typeof u&&((n={})[u.replace(".","")]=!!l.filtered,n),h=js()(p,Ts(((i={})[o]=l.selected,i[s]=l.chosen,i),d));return Object(r.cloneElement)(e,((a={})[f]=e.key,a.className=h,a))}))},Object.defineProperty(t.prototype,"sortable",{get:function(){var e=this.ref.current;if(null===e)return null;var t=Object.keys(e).find((function(e){return e.includes("Sortable")}));return t?e[t]:null},enumerable:!0,configurable:!0}),t.prototype.makeOptions=function(){var e=this,t=zs(this.props);["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((function(n){return t[n]=e.prepareOnHandlerPropAndDOM(n)})),["onChange","onClone","onFilter","onSort"].forEach((function(n){return t[n]=e.prepareOnHandlerProp(n)}));return Ts(Ts({},t),{onMove:function(t,n){var r=e.props.onMove,i=t.willInsertAfter||-1;if(!r)return i;var o=r(t,n,e.sortable,Hs);return void 0!==o&&o}})},t.prototype.prepareOnHandlerPropAndDOM=function(e){var t=this;return function(n){t.callOnHandlerProp(n,e),t[e](n)}},t.prototype.prepareOnHandlerProp=function(e){var t=this;return function(n){t.callOnHandlerProp(n,e)}},t.prototype.callOnHandlerProp=function(e,t){var n=this.props[t];n&&n(e,this.sortable,Hs)},t.prototype.onAdd=function(e){var t=this.props,n=t.list,r=t.setList,i=Rs(e,Ds(Hs.dragging.props.list));Fs(i),r($s(i,n),this.sortable,Hs)},t.prototype.onRemove=function(e){var t=this,n=this.props,r=n.list,i=n.setList,o=Ws(e),a=Rs(e,r);Is(a);var s=Ds(r);if("clone"!==e.pullMode)s=Bs(a,s);else{var l=a;switch(o){case"multidrag":l=a.map((function(t,n){return Ts(Ts({},t),{element:e.clones[n]})}));break;case"normal":l=a.map((function(t,n){return Ts(Ts({},t),{element:e.clone})}));break;case"swap":default:Ps(!0,'mode "'+o+'" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "'+o+'" plugin')}Fs(l),a.forEach((function(n){var r=n.oldIndex,i=t.props.clone(n.item,e);s.splice(r,1,i)}))}i(s=s.map((function(e){return Ts(Ts({},e),{selected:!1})})),this.sortable,Hs)},t.prototype.onUpdate=function(e){var t=this.props,n=t.list,r=t.setList,i=Rs(e,n);return Fs(i),Is(i),r(function(e,t){return $s(e,Bs(e,t))}(i,n),this.sortable,Hs)},t.prototype.onStart=function(e){Hs.dragging=this},t.prototype.onEnd=function(e){Hs.dragging=null},t.prototype.onChoose=function(e){var t=this.props,n=t.list,r=t.setList,i=Ds(n);i[e.oldIndex].chosen=!0,r(i,this.sortable,Hs)},t.prototype.onUnchoose=function(e){var t=this.props,n=t.list,r=t.setList,i=Ds(n);i[e.oldIndex].chosen=!1,r(i,this.sortable,Hs)},t.prototype.onSpill=function(e){var t=this.props,n=t.removeOnSpill,r=t.revertOnSpill;n&&!r&&Ls(e.item)},t.prototype.onSelect=function(e){var t=this.props,n=t.list,r=t.setList,i=Ds(n).map((function(e){return Ts(Ts({},e),{selected:!1})}));e.newIndicies.forEach((function(t){var n=t.index;if(-1===n)return console.log('"'+e.type+'" had indice of "'+t.index+"\", which is probably -1 and doesn't usually happen here."),void console.log(e);i[n].selected=!0})),r(i,this.sortable,Hs)},t.prototype.onDeselect=function(e){var t=this.props,n=t.list,r=t.setList,i=Ds(n).map((function(e){return Ts(Ts({},e),{selected:!1})}));e.newIndicies.forEach((function(e){var t=e.index;-1!==t&&(i[t].selected=!0)})),r(i,this.sortable,Hs)},t.defaultProps={clone:function(e){return e}},t}(r.Component);function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gs=function(e){var t=Object(r.useState)({min:"",max:""}),n=E()(t,2),o=n[0],a=n[1],s=e.app,u=e.closer,c=s.state,f=s.update;return i.a.createElement("div",{id:"addMq"},i.a.createElement("p",null,"Leave blank if you want to provide just one breakpoint either min or max"),i.a.createElement("div",{className:"c"},i.a.createElement("div",null,i.a.createElement("label",null,"Min Width"),i.a.createElement("input",{type:"text",spellCheck:"false",value:o.min,onChange:function(e){a(qs(qs({},o),{},{min:e.target.value}))}})),i.a.createElement("div",null,i.a.createElement("label",null,"Max Width"),i.a.createElement("input",{type:"text",spellCheck:"false",value:o.max,onChange:function(e){a(qs(qs({},o),{},{max:e.target.value}))}}))),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("span",{onClick:function(){return u(!1)},className:"btn secondary"},"Cancel"),i.a.createElement("span",{onClick:function(){!function(){var e=o.min,t=o.max,n="@media screen "+(e=e&&!isNaN(parseInt(e))?" and (min-width: "+parseInt(e)+"px)":"")+" "+(t=t&&!isNaN(parseInt(t))?" and (max-width: "+parseInt(t)+"px)":"");(e||t)&&-1===c.mqOrder.indexOf(n)&&(De(n,s),a({min:"",max:""}),f({mqOrder:[].concat(l()(c.mqOrder),[n])}))}(),u(!1),ut(s,"adds-mq","creates new mq: min("+o.min+") max ("+o.max+")")},className:"btn primary"},"Submit")))};function Xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xs(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ks=function(e){var t=Object(r.useState)(!1),n=E()(t,2),o=n[0],a=n[1],s=e.height,l=e.width,u=e.label,c=e.title,f=e.triggerClass,p={height:s=s||500,width:l=l||500};p=Ys(Ys({},p),{},{marginLeft:parseInt(l)/2*-1});var d=o?i.a.createElement(_n,{node:document&&document.getElementById("heroWrapper")},i.a.createElement("div",{id:"modalDrop",onClick:function(){return a(!1)}},i.a.createElement("div",{id:"modalContent","data-trigger":f,style:p,onClick:function(e){return e.stopPropagation()}},i.a.createElement("header",null,c,i.a.createElement("span",{onClick:function(){return a(!1)},className:"ico close"})),e.children))):"";return i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:f+" modalTrigger",onClick:function(){return a(!0)}}),u,d)};function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Js(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qs=function(e){var t=e.mq,n=e.app,o=e.closer,a=n.state,s=n.update,u=Object(r.useState)(!1),c=E()(u,2),f=c[0],p=c[1],d=[],h=function(e){var n=a.mqOrder[e],r=f===n?"cur":"";n!==t&&d.push(i.a.createElement("div",{key:n,className:r+" mel",onClick:function(e){e.stopPropagation(),p(n)}},n))};for(var m in a.mqOrder)h(m);var v=f?"":"cur";return i.a.createElement("div",{className:"deleter"},i.a.createElement("h4",null,"Delete Media Query"),i.a.createElement("p",null,"Do you want to send this Media Query contents to some other MQ?"),d,i.a.createElement("div",{onClick:function(e){e.stopPropagation(),p(!1)},className:"mel "+v},"No, just delete it"),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("span",{className:"btn secondary",onClick:function(e){e.stopPropagation(),o(!1)}},"Cancel"),i.a.createElement("span",{onClick:function(e){e.stopPropagation();var n=Zs({},a.storedEdits),r=l()(a.mqOrder),i=r.indexOf(t);if(i>-1&&r.splice(i,1),f){var o=n[f]||"";o+=n[t],n[f]=o}delete n[t],s({storedEdits:n,session:Date.now(),mqOrder:r,currentMq:"all"})},className:"btn danger"},"Delete")))},el=function(e){var t=e.mq,n=e.app,o=e.closer,a=n.update,s=n.state,u=function(e){var n="",r=t.split(" ").join(" ").split(" :").join(":").split(": ").join(":");return t.indexOf(e+"-width:")>-1&&(n=(n=(n=r.split(e+"-width:")[1]).split(")")[0]).trim()),n},c=Object(r.useState)(u("min")),f=E()(c,2),p=f[0],d=f[1],h=Object(r.useState)(u("max")),m=E()(h,2),v=m[0],g=m[1];return i.a.createElement("div",{className:"editer",onClick:function(e){return e.stopPropagation()}},i.a.createElement("h4",null,"Edit Media Query"),i.a.createElement("p",null,"Update media query values, leave blank if you want to provide just one breakpoint either min or max."),i.a.createElement("div",{className:"c",onClick:function(e){return e.stopPropagation()}},i.a.createElement("div",null,i.a.createElement("label",null,"Min Width:"),i.a.createElement("input",{type:"text",spellCheck:"false",onClick:function(e){return e.stopPropagation()},value:p,onChange:function(e){return d(e.target.value)}})),i.a.createElement("div",null,i.a.createElement("label",null,"Max Width:"),i.a.createElement("input",{type:"text",spellCheck:"false",onClick:function(e){return e.stopPropagation()},value:v,onChange:function(e){return g(e.target.value)}}))),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("span",{className:"btn secondary",onClick:function(e){e.stopPropagation(),o(!0)}},"Cancel"),i.a.createElement("span",{className:"btn primary",onClick:function(e){e.stopPropagation(),function(){var e=s.storedEdits,n=s.mqOrder,r="@media screen ",i=parseInt(p)>0&&parseInt(p)+"px",u=parseInt(v)>0&&parseInt(v)+"px";if(i||u){i&&(r+="and (min-width:"+i+")"),u&&(r+="and (max-width:"+u+")");var c=e[t],f=Zs({},e),d=l()(n);d[d.indexOf(t)]=r,delete f[t],c&&(f[r]=c),a({mqOrder:d,storedEdits:f,currentMq:"all",session:Date.now()}),o(!0)}else alert("Hrrrr, something wrong happened")}()}},"Submit")))},tl=function(e){var t=Object(r.useState)(!1),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)(!1),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)(!1),p=E()(f,2),d=p[0],h=p[1],m=e.app,v=m.state,g=m.update;return function(){var e=v.mqOrder,t=v.currentEl,n=e;n=n.map((function(e,t){return{idx:t,name:e}}));var r=i.a.createElement("div",{className:"mqHandle"}),s=function(e){var s=[];return n.forEach((function(n,l){var f=l<4?"bottom":"top",p=v.currentMq===n.name?"cur":"",d="";v.storedEdits[n.name]&&(d=Ue(t,{thisMq:v.storedEdits[n.name]})?"hasEdits":"");var h=W[n.name]?W[n.name]:n.name,g=W[n.name]?"builtIn":"custom",y=h,b=n.name!==y&&"all"!==n.name?i.a.createElement("span",{className:"def"},n.name):"";h=e?i.a.createElement("div",{className:"desc"},i.a.createElement("span",{className:"des"},y),b):i.a.createElement(rn,{place:"bottom",effect:"solid",id:"mq-"+l});var _=u===n.name?i.a.createElement(el,{mq:n.name,app:m,closer:c}):"",w=o===n.name?"cur":"",x=u===n.name?"cur":"",k=o===n.name?i.a.createElement(Qs,{mq:n.name,app:m,closer:a}):"",E=W[n.name]?"":i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:w+" delMq ico trash",onClick:function(e){e.stopPropagation(),c(!1),n.name===o?a(!1):a(n.name)}},i.a.createElement("span",{className:"ico arrow-down"})),k),C="custom"===g?"Custom":y.split(" ")[0],S=W[n.name]?"":i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:x+" ico edit mqEd",onClick:function(e){e.stopPropagation(),a(!1),n.name===u?c(!1):c(n.name)}},i.a.createElement("span",{className:"ico arrow-down"})),_);s.push(i.a.createElement("div",{"data-name":y,"data-pos":f,key:n.idx,className:"mqEl ico topBarIcon "+p+" "+d+" "+g},ar["mq-"+C],r,i.a.createElement("div",{"data-for":"mq-"+l,"data-tip":y,className:"mqIn",onClick:function(){De(n.name,m)}},i.a.createElement("div",{className:"mqActs"},E,S),h)))})),s},l=d?i.a.createElement(Gs,{closer:h,app:m}):"",f=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{id:"mqDraggerWrap"},i.a.createElement("div",null,i.a.createElement("p",null,"Manage Media Queries from here, drag to re-order priority, bottom media queries have higher priority.")),i.a.createElement("div",{id:"mqDragger"},i.a.createElement(Vs,{animation:200,list:n,distance:1,handle:".mqHandle",setList:function(e){var t=Zs(Zs({},v.viewSettings),{},{mode:"wysi"}),n=e.map((function(e){return e.name}));return g({viewSettings:t,mqOrder:n,session:Date.now()})}},s(!0)),i.a.createElement("div",{className:"sider"},i.a.createElement("span",null,"- Priority +")))),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:d?"cur btn primary":"btn primary",onClick:function(){return h(!d)}},"Add New Media Query"),l));return i.a.createElement("div",{id:"mqPrevs"},s(),i.a.createElement(_n,{node:document&&document.getElementById("mQsettsPortal")},i.a.createElement(Ks,{triggerClass:"none",height:"auto",width:800,title:i.a.createElement("span",null,"Manage Media Queries"),label:i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"ico mqs"}),"Media Query Settings")},i.a.createElement("div",{id:"mqSettings"},f))))}()},nl=function(e){var t=e.app,n=e.historyAction,r=t.state,o=t.update,a=function(e){var n=r.historyCurStep,i=Ie().slice(0).reverse();if(i[e=(e=n+e)>=0?e:0]){Re();var a=he(JSON.parse(i[e].data),t),s=a.ob,l=a.needsRefresh;s.historyCurStep=e,o(s,(function(){l&&at(t)})),ut(t,"history","undo-redo")}};return i.a.createElement("div",{id:"undoRedo"},i.a.createElement("span",{className:"topBarIcon h ico undo","data-tip":"Undo",onClick:function(){return a(1)}},i.a.createElement(rn,{place:"bottom",effect:"solid"})),i.a.createElement("span",{className:"topBarIcon h ico redo","data-tip":"Redo",onClick:function(){return a(-1)}},i.a.createElement(rn,{place:"bottom",effect:"solid"})),i.a.createElement("span",{className:"topBarIcon ico histo","data-tip":"History",onClick:n},i.a.createElement(rn,{place:"bottom",effect:"solid"})))},rl=function(e){var t=e.app,n=t.update,r=t.state.navigationMode;return i.a.createElement("li",{className:r?"isToggle cur":"isToggle",onClick:function(){r||ut(t,"frame","navigation-mode"),n({navigationMode:!r,currentlyHovered:null})}},i.a.createElement("span",{className:"a"},"Edit"),i.a.createElement("span",{className:"b"}),i.a.createElement("span",{className:"c"},"Navigate"))};function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?il(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var al=function(e){var t,n=e.app,o=e.onlyCount,a=n.update,s=n.state,u=s.heroFrame,c=s.storedEdits,f=st((t=u,Array.from(t.document.styleSheets).filter((function(e){return null===e.href||e.href.startsWith(window.location.origin)})).reduce((function(e,t){return[].concat(l()(e),l()(Array.from(t.cssRules).reduce((function(e,t){return":root"===t.selectorText?[].concat(l()(e),l()(Array.from(t.style).filter((function(e){return e.startsWith("--")})))):e}),[])))}),[]))).sort(),p=Object(r.useState)([]),d=E()(p,2),h=d[0],m=d[1],v=Object(r.useState)(""),g=E()(v,2),y=g[0],b=g[1],_=Object(r.useState)(!1),w=E()(_,2),x=w[0],k=w[1],C=function(){var e=h[0],t=e.n,r=e.v,i=Se(n,":root","all"),o=i.before,s=i.code,l=i.after,u=s.trim();if(u=He(u=(u=u.replace("{","")).slice(0,-1),":"),u=He(u,"{"),u=He(u,";"),(u=He(u,"}")).indexOf(t+":")>-1){var f=u.split(t+":");u=f[0]+t+":"+r+";"+f[1].split(";")[1]+";"}else u+=t+":"+r+";";var p=o+":root{\n"+(u=u.split(";").join(";\n"))+"\n}"+l,d=ol(ol({},c),{},{all:p});a({storedEdits:d},(function(e){Ne(ol(ol({},n),{},{state:e}))})),m([])},S=function(e){var t=e.rgb,n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")",r=l()(h);r[0].v=n,m(r)},O=[];if(o)O.push(f.length);else if(f.length>0){f.forEach((function(e,t){var r,o=(r=e,getComputedStyle(u.document.documentElement).getPropertyValue(r)),a=e.toLowerCase().indexOf(y)>-1,s=o.toLowerCase().indexOf(y)>-1;if(!y||y&&(a||s)){var c=Le(o)?i.a.createElement("div",{className:"pickerWrap"},i.a.createElement("div",{className:"pickerTrigger",style:{backgroundColor:o}})):"",f=h.length>0&&h[0].n===e?i.a.createElement("div",{className:"varWrap open"}," ",function(){var e=h[0],t=e.n,r=e.v,o=x===t?i.a.createElement("div",{className:"varPicker"},i.a.createElement(xr,{action:S,color:r,app:n,paletteAction:S}),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary",onClick:function(){return k(!1)}},"Cancel"),i.a.createElement("div",{className:"btn",onClick:C},"Submit"))):"",a=Le(r)?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"pickerWrap",onClick:function(){return k(t)}},i.a.createElement("div",{className:"pickerTrigger",style:{backgroundColor:r}}),o)):"";return i.a.createElement("div",{className:"secondaryExtraBox"},i.a.createElement("div",{className:"l"},i.a.createElement("label",null,"Name"),i.a.createElement("input",{type:"text",spellCheck:"false",readOnly:!0,value:t})),i.a.createElement("div",{className:"l"},i.a.createElement("label",null,"Value"),i.a.createElement("input",{type:"text",spellCheck:"false",value:r,onChange:function(e){var t=l()(h);t[0].v=e.target.value,m(t)}}),a),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary dark",onClick:function(){m([])}},"Cancel"),i.a.createElement("div",{className:"btn primary vars",onClick:C},"Update")))}()):i.a.createElement("div",{className:"varWrap"},i.a.createElement("div",{className:"var"},i.a.createElement("div",{className:"v"},e),i.a.createElement("div",{className:"c"},c,o),i.a.createElement("div",{className:"i",onClick:function(){m([{n:e,v:o}])}},i.a.createElement("span",{className:"ico edit"}))));O.push(i.a.createElement("div",{key:t,title:e+":"+o,className:"varEl"},f))}}))}return o?O:i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"secondaryHead"},i.a.createElement("p",null,i.a.createElement("a",{href:"https://www.w3schools.com/css/css3_variables.asp",target:"_blank",rel:"noopener noreferrer"},"CSS variables")," have access to the DOM, which means that you can create variables with local or global scope. Many modern themes support CSS variables, you can get an overview of them from here.")),i.a.createElement("div",{id:"searcher"},i.a.createElement("span",{className:"ico search"}),i.a.createElement("input",{spellCheck:"false",placeholder:"search",type:"text",value:y,onChange:function(e){return b(e.target.value)}})),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"secondaryContents"},i.a.createElement("div",{id:"varsWrap"},O))))};function sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sl(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ul=function(e){var t=Object(r.useState)(""),n=E()(t,2),o=n[0],a=n[1],s=e.app,l=s.state,u=s.update,c=l.projectVars,f=Object(r.useState)(""),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(""),v=E()(m,2),g=v[0],y=v[1],b=Object(r.useState)(!1),_=E()(b,2),w=_[0],x=_[1],k=Object(r.useState)(!1),C=E()(k,2),S=C[0],O=C[1],A=i.a.createElement("div",{className:"tabHead tabbed"},i.a.createElement("label",{className:S?"":"cur",onClick:function(){return O(!1)}},"LESS Variables"),i.a.createElement("label",{className:S?"cur":"",onClick:function(){return O(!0)}},"CSS Variables ",i.a.createElement("b",null,i.a.createElement(al,{app:s,onlyCount:!0}))),i.a.createElement("span",{onClick:function(){u((function(e){return{viewSettings:ll(ll({},e.viewSettings),{},{curPanel:!1})}}))},className:"ico close"})),j=function(){var e=w?i.a.createElement("div",{className:"secondaryExtraBox addVar"},i.a.createElement("header",null,"Add Variable",i.a.createElement("span",{className:"ico close",onClick:function(){return x(!1)}})),i.a.createElement("div",{className:"l"},i.a.createElement("label",null,"Name"),i.a.createElement("input",{type:"text",spellCheck:"false",placeholder:"@varName",value:d,onChange:function(e){return h(e.target.value)}})),i.a.createElement("div",{className:"l"},i.a.createElement("label",null,"Value"),i.a.createElement("input",{type:"text",spellCheck:"false",placeholder:"value",value:g,onChange:function(e){return y(e.target.value)}})),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary dark",onClick:function(){return x(!1)}},"Cancel"),i.a.createElement("div",{className:"btn primary vars",onClick:function(){var e=ne(d,"@"),t=ll({},l.storedEdits);"@"!==e&&g&&!c[e]?(t.all=e+":"+g+";\n"+t.all,u({storedEdits:t,session:Date.now()}),y(""),h(""),x(!1),ut(s,"variables","creates new variable")):c[e]?u({heroAlert:{title:"Variable name already assigned",content:"Sorry, seems "+e+" name has already been assigned to another variable.",type:"error"}}):u({heroAlert:{title:"Missing parameters",content:"Please set variable name and value",type:"error"}})}},"Create Var"))):"";return i.a.createElement(i.a.Fragment,null,e,i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{onClick:function(){return x(!w)},className:"btn primary vars"},"Add Var")))},P="Variables can help you controlling commonly used values and make your code easier to maintain by giving you a way to manage those values from a single location",N=0===Object.keys(c).length?i.a.createElement("div",{className:"sideSplash"},i.a.createElement("p",null,P),j()):i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"secondaryHead"},i.a.createElement("p",null,P),j()),i.a.createElement("div",{id:"searcher"},i.a.createElement("span",{className:"ico search"}),i.a.createElement("input",{spellCheck:"false",placeholder:"search",type:"text",value:o,onChange:function(e){return a(e.target.value)}})),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"secondaryContents"},i.a.createElement("div",{id:"varsWrap"},function(e){var t=e,n=[];for(var r in t)n.push({name:r,val:t[r]});n.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}));for(var a=[],l=0,u=n;l<u.length;l++){var c=u[l],f=c.val,p=c.name;if(o)(p+" "+f).toLowerCase().indexOf(o)>-1&&a.push(i.a.createElement(Cr,{key:p,name:p,val:f,app:s}));else a.push(i.a.createElement(Cr,{key:p,name:p,val:f,app:s}))}return a}(c))))),T=S?i.a.createElement(al,{app:s}):i.a.createElement(i.a.Fragment,null,N);return i.a.createElement(i.a.Fragment,null,A,T)};function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pl=n(37).css,dl=n(339),hl=function(e){var t=e.cur,n=e.nex,o=e.idx,a=e.closeAction,s=document.querySelectorAll("#historyWrap .historyEl")[o],l=s?s.getBoundingClientRect().top:0;Object(r.useEffect)((function(){var e=document.querySelectorAll("#codeDiff pre .ps")[0];e&&(e.scrollTop=0),setTimeout((function(){var t=e.querySelectorAll(".added,.removed")[0],n=e&&t?t.getBoundingClientRect().top-e.getBoundingClientRect().top:0;e&&(e.scrollTop=n)}),100)}));var u,c,f,p,d,h,m,v;return i.a.createElement(_n,{node:document&&document.getElementById("heroWrapper")},i.a.createElement("div",{onClick:function(){return a(-1)},id:"codeDiff"},i.a.createElement("pre",{onClick:function(e){e.stopPropagation()},style:{top:l}},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},(u=t.curData,c=t.curOrder,f=n.nexData,p=n.nexOrder,d=pl(be(u,c)),h=pl(be(f,p)),m=dl.diffLines(h,d),v=[],m.forEach((function(e,t){var n=e.value,r=e.added,o=e.removed,a=r?"added":o?"removed":"normal";v.push(i.a.createElement("span",{key:t,className:a},n))})),v)))))},ml=function(e){var t=e.app,n=e.head,o=t.state,a=t.update,s=o.viewSettings,l=o.historyCurStep,u=o.appSession,c=Object(r.useState)(-1),f=E()(c,2),p=f[0],d=f[1],h=Ie().slice(0).reverse(),m=Object(r.useState)(!1),v=E()(m,2),g=v[0],y=v[1];return i.a.createElement(i.a.Fragment,null,n,i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"secondaryContents"},i.a.createElement("div",{id:"historyWrap"},p>-1?function(){var e={};if(h.length>1){var t=h[p],n=h[p+1];t.data=JSON.parse(t.data),n.data=JSON.parse(n.data);var r=t.data.mqOrder?t.data.mqOrder:o.mqOrder,a=n.data.mqOrder?n.data.mqOrder:o.mqOrder,s=t.data.storedEdits,l=n.data.storedEdits;e.nex={nexData:l,nexOrder:a},e.cur={curData:s,curOrder:r}}return e.nex?i.a.createElement(hl,{closeAction:d,idx:p,cur:e.cur,nex:e.nex}):""}():"",i.a.createElement("div",null,h.map((function(e,n){var r=e.time,o=l===n?"cur":"",s=n!==h.length-1?i.a.createElement("span",{className:"loadDiff","data-tip":"Code Diff","data-for":"tip-"+n,onClick:function(e){e.stopPropagation(),d(p===n?-1:n),p!==n&&ut(t,"history","shows Diff")}},p===n?i.a.createElement("span",{className:"ico close"}):i.a.createElement("span",{className:"ico eye"}),i.a.createElement(rn,{place:"left",effect:"solid",id:"tip-"+n})):"",u=ze(r);return i.a.createElement("div",{className:"historyEl "+o,onClick:function(){Re();var r=he(JSON.parse(e.data),t),i=r.ob,o=r.needsRefresh;i.historyCurStep=n,a(i,(function(){o&&at(t)})),ut(t,"history","loads history step")},key:n},s,u)}))),function(){var e=localStorage.getItem("CSSHEROLASTWORKING");e=!!e&&JSON.parse(e);var n=[],r=Fe();if(e=!!e[r]&&e[r]){var o=function(r){u!==parseInt(r)&&n.unshift(i.a.createElement("div",{className:"recoveryItem",key:r},i.a.createElement("span",null,ze(r)),i.a.createElement("b",{onClick:function(){var n=fl(fl({},s),{},{mode:"wysi"}),i=fl(fl({},he(e[r],t).ob),{},{viewSettings:n});a(i,(function(){at(t)})),ut(t,"history","from recovery")}},"Activate")))};for(var l in e)o(l)}return n.length>0?i.a.createElement(_n,{node:document&&document.getElementById("secondaryPanel")},i.a.createElement("div",{className:"recovery"},i.a.createElement("div",{onClick:function(){return y(!g)},className:"head"},i.a.createElement("span",null,"Recovery")),g?i.a.createElement("div",{className:"cnts"},i.a.createElement("div",{className:"intro"},i.a.createElement("p",null,"Reload previous session edits from here."),i.a.createElement("div",null,i.a.createElement("span",{onClick:function(){return a({heroAlert:{title:"Clear recovery history?",content:"Sure you want to delete all recovery history? You can't undo this.",type:"confirm",callBack:function(){localStorage.removeItem("CSSHEROLASTWORKING")}}})}},"Clear"))),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},n)):"")):""}()))))},vl=function(e){var t=Object(r.useState)([]),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)(!1),l=E()(s,2),u=l[0],c=l[1],f=Object(r.useState)(""),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(!1),v=E()(m,2),g=v[0],y=v[1],b=Object(r.useState)(!0),_=E()(b,2),w=_[0],x=_[1],k=e.app,C=e.head,S=k.update,O=k.state,A=function(){h(""),c(!1)},j=function(e){S({heroAlert:{title:"Delete Checkpoint",content:"Are you sure you want to delete this Checkpoint?",type:"confirm",callBack:function(){x(!0),ce({action:"csshero_do_action",csshero_action:"delete_snapshot",step_id:e},(function(){P(),x(!1)}))}}})},P=function(){ce({action:"csshero_do_action",csshero_action:"list_saved_snapshots"},(function(e){e=e?JSON.parse(e):{};var t=[],n=function(n){var r=ze(e[n].step_name.split("___")[1]),o=e[n].step_name.split("___")[0],a=e[n].step_id;t.push(i.a.createElement("div",{className:"snapshot",key:n},i.a.createElement("div",{className:"snapshotHead"},i.a.createElement("b",null,o),i.a.createElement("span",null,r)),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("span",{className:"l",onClick:function(){return j(a)}},"Delete"),i.a.createElement("span",{className:"btn dark",onClick:function(){return function(e){x(!0),ce({action:"csshero_do_action",csshero_action:"get_snapshot",step_id:e},(function(e){var t=he(JSON.parse(e),k),n=t.ob,r=t.needsRefresh;S(n),x(!1),r&&at(k),ut(k,"checkpoints","loads checkpoint")}))}(a)}},"Activate"))))};for(var r in e)n(r);a(t),y(!0),x(!1)}))};Object(r.useEffect)((function(){g||P()}));var N=w?i.a.createElement("div",{className:"loader"}):"";return i.a.createElement(i.a.Fragment,null,C,i.a.createElement("div",{className:"secondaryHead"},i.a.createElement("p",null,"Checkpoints are stored copies of your work which you can save for further usage without publishing them to your live website.",i.a.createElement("br",null),"A Checkpoint includes all your edits applied at the moment you save it."),u?i.a.createElement("div",{className:"sideExtra"},i.a.createElement("div",null,i.a.createElement("label",null,"Save Checkpoint"),i.a.createElement("div",{className:"ico close",onClick:A}),i.a.createElement("input",{placeholder:"New Checkpoint",value:d,type:"text",spellCheck:"false",onChange:function(e){return h(e.target.value)}}),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary dark",onClick:A},"Cancel"),i.a.createElement("div",{className:"btn",onClick:function(){return function(){x(!0);var e=d+"___"+Date.now(),t=ue(O);ce({action:"csshero_save_preset","csshero-livearray-saving-field":JSON.stringify(t),csshero_preset_name:e},(function(){x(!1),c(!1),h(""),P(),ut(k,"checkpoints","stores new checkpoint")}))}()}},"Save")))):"",i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn",onClick:function(){return c(!u)}},"Add New"))),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"secondaryContents"},i.a.createElement("div",{className:"snapshotsList"},N,o))))};function gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bl(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wl=function(e){var t=e.els,n=e.searchParam,r=e.mq,o=e.app,a=e.showAvailable,s=e.printContents,l=e.openTab,u=o.state,c=o.emitChange,f=o.update,p=u.heroFrame,d=u.videoBgs,h=u.currentEl,m=u.storedEdits,v=function(e){return e&&-1===e.indexOf("@")&&-1===e.indexOf("()")},g=function(e){var t=!0,n=je(m.all);for(var r in n){var i,o=bl(n[r]);try{for(o.s();!(i=o.n()).done;){var a=i.value;a=a.split("(")[0]+"(",e.split("(")[0]+"("===a&&(t=!1)}}catch(e){o.e(e)}finally{o.f()}}return t},y=function(e,t){if(v(e)&&g(e)){var s=Ve(h)===Ve(e)?"cur":"",l=!1,m=e,y="normal",b=function(e){for(var t=e,n="",r="",i=0,o=[":hover",":active",":focus",":visited"];i<o.length;i++){var a=o[i];e.indexOf(":"+a)>-1?(t=t.split(":"+a).join(""),n=":"+a):e.indexOf(a)>-1&&(t=t.split(a).join(""),n=a)}for(var s=0,l=[":after",":before"];s<l.length;s++){var u=l[s];e.indexOf(":"+u)>-1?(t=t.split(":"+u).join(""),r=":"+u):e.indexOf(u)>-1&&(t=t.split(u).join(""),r=u)}return(n.indexOf(":after")>-1||n.indexOf(":before")>-1)&&(r=n,n=""),{cleanSelector:t=Ve(t),pseudo:r,status:n}}(e),_=b.pseudo,w=b.cleanSelector,x=b.status;try{l=p.document.querySelectorAll(w)}catch(e){}if(l&&l[0])if(l.forEach((function(e){e.hasAttribute("heroprocessed")||ir(e)})),m=(l=l[0]).getAttribute("editablesuggestion")&&l.getAttribute("editablesuggestion")!==l.getAttribute("editableclass")?l.getAttribute("editablesuggestion"):m,w===ie(l))y="only-this";else{var k=!!l.hasAttribute("editableclass")&&l.getAttribute("editableclass").split(" | ")[0];if(k){var E=Y(o,k);for(var C in E)w===E[C].s&&(y=C)}}m=_?m.split(_).join(""):m,m=(m=x?m.split(x).join(""):m).indexOf(" | ")>-1?m.split(" | ")[0]:m,m=l&&0!==l.length&&l.getAttribute("custom_editableclass")&&l.getAttribute("custom_editableclass").indexOf(e)>-1?e:m;var S="normal"===y?"ctx":"only-this"===y?"only-this":y+"-ctx",O=x?i.a.createElement("span",{className:"status"},x):"",A=_?i.a.createElement("span",{className:"pseudo"},_):"",j=d[e]?i.a.createElement("span",{className:"video"},"Video"):"",P=i.a.createElement("div",{className:s+" browserEl",onMouseEnter:function(){We(300,(function(){return f({currentlyHovered:w})}))},onMouseLeave:function(){f({currentlyHovered:null})},onClick:function(){var t=Y(o,w);t["only-this"]={s:ie(l),d:"only-this"};var n=y,i=yl(yl({},u.viewSettings),{},{showTab:"properties",mode:"wysi"});for(var a in t)delete t[a].states;c({currentEl:e,session:e,currentElDesc:e,currentlyRightClicked:null,currentElContexts:t,currentElContext:n,viewSettings:i,currentMq:r})},key:t},i.a.createElement("div",{className:"i"},i.a.createElement("span",{className:"ico "+S})),i.a.createElement("div",{className:"c"},i.a.createElement("span",{className:"w"},m),A,O,j)),N="";if("page"===a&&(P=0!==l.length||e.startsWith(":")?P:""),"current"===a)try{var T=p.document.querySelectorAll("[heroclicked]")[0];P=(T=T.matches(h)?T:p.document.querySelectorAll(h)[0]).matches(e)||T.matches(e+" *")?P:""}catch(e){}if(n)(w+x+_+" "+m).toLowerCase().indexOf(n.toLowerCase())>-1&&(N=P);else N=P;return N}},b=W[r]?W[r]:r,_=[],w=0;s&&t.forEach((function(e,t){if(v(e)&&g(e)){var n=y(e,t);n&&_.push(n),w++}}));var x="";return(n||"none"!==a)&&(x=i.a.createElement("u",null,_.length," /")),i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"label",onClick:function(){return l(r)}},i.a.createElement("span",{className:"ico arrow-down"}),b,i.a.createElement("b",null,x,w)),i.a.createElement("div",{className:"cnts",key:r},_))},xl=function(e){var t=e.app,n=e.head,o=t.state,a=o.allEdits,s=o.currentMq,u=o.mqOrder,c=Object(r.useState)(""),f=E()(c,2),p=f[0],d=f[1],h=Object(r.useState)([s]),m=E()(h,2),v=m[0],g=m[1],y=Object(r.useState)(!1),b=E()(y,2),_=b[0],w=b[1],x=Object(r.useState)("none"),k=E()(x,2),C=k[0],S=k[1],O=Object(r.useState)(!1),A=E()(O,2),j=A[0],P=A[1],N=function(e){var t=l()(v);t.indexOf(e)>-1?t.splice(t.indexOf(e),1):t.push(e),g(t)};Object(r.useEffect)((function(){for(var e in a)a[e].length>0&&w(!0)}),[a]);var T=_?i.a.createElement(i.a.Fragment,null,n,i.a.createElement("div",{className:"secondaryHead"},i.a.createElement("p",null,"A list of all your current edits organized by media query.")),i.a.createElement("div",{id:"searcher"},i.a.createElement("span",{className:"ico search"}),i.a.createElement("input",{placeholder:"search",type:"text",value:p,onChange:function(e){return d(e.target.value)}}),function(){var e="none"!==C?i.a.createElement("span",null,"1"):"",t={none:"none",page:"In this page",current:"Affecting current element"},n=[];if(j){var r=function(e){n.push(i.a.createElement("li",{className:C.toString()===e?"cur":"",key:e,onClick:function(){return S(e)}},t[e]))};for(var o in t)r(o)}return i.a.createElement("div",{id:"SBFilter"},i.a.createElement("b",null,"Filter"),i.a.createElement("span",{onClick:function(){P(!j)},className:j?"ico close":"ico filters"},e),i.a.createElement("ul",null,n))}())):n,M=_?i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"secondaryContents"},i.a.createElement("div",{id:"editsBrowser"},function(){var e,n=[],r=bl(u);try{for(r.s();!(e=r.n()).done;){var o=e.value,l=i.a.createElement(wl,{els:a[o],mq:o,searchParam:p,app:t,showAvailable:C,printContents:v.indexOf(o)>-1,openTab:N}),c=v.indexOf(o)>-1?"openMq":"",f=s===o?"currentMq "+c:c;a[o]&&a[o].length>0&&n.push(i.a.createElement("div",{key:o,className:f},l))}}catch(e){r.e(e)}finally{r.f()}return n}()))):i.a.createElement("div",{className:"sideSplash"},i.a.createElement("p",null,"Looks like you have no edits yet, go on and make it beautiful!"));return i.a.createElement(i.a.Fragment,null,T,M)};function kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kl(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cl(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Sl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sl(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ol={dark:["3024-night","ayu-dark","ayu-mirage","base16-dark","bespin","blackboard","cobalt","colorforth","darcula","dracula","duotone-dark","erlang-dark","gruvbox-dark","hopscotch","icecoder","isotope","lesser-dark","lucario","material","material-darker","material-palenight","material-ocean","mbo","monokai","moxer","night","nord","oceanic-next","panda-syntax","paraiso-dark","pastel-on-dark","railscasts","rubyblue","seti","shadowfox","the-matrix","tomorrow-night-bright","tomorrow-night-eighties","twilight","vibrant-ink","xq-dark","yonce","zenburn"],light:["3024-day","base16-light","duotone-light","eclipse","elegant","idea","mdn-like","neat","neo","paraiso-light","ttcn","xq-light","yeti"]};for(var Al in Ol){var jl,Pl=Cl(Ol[Al]);try{for(Pl.s();!(jl=Pl.n()).done;){var Nl=jl.value;n(340)("./".concat(Nl,".css"))}}catch(e){Pl.e(e)}finally{Pl.f()}}var Tl=function(e){var t=e.app,n=t.update,o=t.state,a=Object(r.useState)(!1),s=E()(a,2),l=s[0],u=s[1],c=l?i.a.createElement("ul",{className:"inputDrop"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},function(){var e=[];for(var r in Ol){e.push(i.a.createElement("li",{key:r,className:"itm t"},r)),"dark"===r&&-1===Ol[r].indexOf("csshero-theme")&&Ol[r].unshift("csshero-theme");var a,s=Cl(Ol[r]);try{var l=function(){var r=a.value,s=r===o.viewSettings.inspectorTheme?"cur":"";e.push(i.a.createElement("li",{className:"itm "+s,onClick:function(){return e=r,i=El(El({},o.viewSettings),{},{inspectorTheme:e,showWysiCode:!0}),n({viewSettings:i,session:Date.now()}),void ut(t,"preferences","CODE Theme: "+e);var e,i},key:r},r))};for(s.s();!(a=s.n()).done;)l()}catch(e){s.e(e)}finally{s.f()}}return e}())):"";return i.a.createElement("div",{className:"inputWrap"},i.a.createElement("div",{className:"inputInnerWrap"},i.a.createElement("input",{type:"text",spellCheck:"false",value:o.viewSettings.inspectorTheme,onChange:function(){u(!0)}})),i.a.createElement("div",{className:"inputDD inputBtn",onClick:function(){return u(!l)}},i.a.createElement("div",{className:" toggle ico arrow-down"})),c)};function Ml(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dl(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ll(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Il=function(e){var t=e.app,n=t.update,o=t.state,a=o.heroFrame,s=Object(r.useState)(!1),l=E()(s,2),u=l[0],c=l[1],f={light:["light","pure","flake"],dark:["dark","mocha","mimetic","tokio","remedy"]},p=u?i.a.createElement("ul",{className:"inputDrop"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},function(){var e=[];for(var r in f){var s=[];s.push(i.a.createElement("li",{className:"itm t",key:"tit"+r},r));var l,u=Ml(f[r]);try{var c=function(){var e=l.value,r=e===o.viewSettings.appTheme?"cur":"";s.push(i.a.createElement("li",{className:"itm "+r,onClick:function(){var r,i;r=e,i=Fl(Fl({},o.viewSettings),{},{appTheme:r,showWysiCode:!0}),n({viewSettings:i,session:Date.now()}),We(500,(function(){return lt(a)})),ut(t,"preferences","APP Theme: "+r)},key:e},e))};for(u.s();!(l=u.n()).done;)c()}catch(e){u.e(e)}finally{u.f()}e.push(s)}return e}())):"";return i.a.createElement("div",{className:"inputWrap"},i.a.createElement("div",{className:"inputInnerWrap"},i.a.createElement("input",{type:"text",spellCheck:"false",value:o.viewSettings.appTheme,onChange:function(){c(!0)}})),i.a.createElement("div",{className:"inputDD inputBtn",onClick:function(){return c(!u)}},i.a.createElement("div",{className:" toggle ico arrow-down"})),p)};function Rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rl(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $l=function(e){var t,n,r=e.app,o=e.head,a=r.state,s=r.update,l=a.viewSettings,u=function(e){var t=Bl(Bl({},l),{},{inspectorShowHints:e});s({viewSettings:t,session:Date.now()})},c=function(e){e=parseInt(e);var t=10*parseFloat(l.inspectorLineHeight)+e;t/=10;var n=Bl(Bl({},l),{},{inspectorLineHeight:t});s({viewSettings:n}),ut(r,"preferences","CODE line height to "+t)},f=function(e){var t=l.inspectorFontSize,n=Bl(Bl({},l),{},{inspectorFontSize:t+e});s({viewSettings:n}),ut(r,"preferences","CODE text size to "+(t+e))};return i.a.createElement(i.a.Fragment,null,o,i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"secondaryContents"},i.a.createElement("ul",{id:"prefs"},i.a.createElement("li",null,i.a.createElement("ul",null,i.a.createElement("li",{className:"tt"},i.a.createElement("h3",null,"Editor")),i.a.createElement("li",null,i.a.createElement("label",null,"Editor Theme"),i.a.createElement(Il,{app:r})),i.a.createElement("li",null,i.a.createElement("label",null,"Editor Pos"),i.a.createElement("div",{className:"propButtons"},i.a.createElement("div",{className:l.detached?"":"cur",onClick:function(){s((function(e){return{viewSettings:Bl(Bl({},e.viewSettings),{},{detached:!1})}})),ut(r,"preferences","sets editor fixed left")}},"Stick left"),i.a.createElement("div",{className:l.detached?"cur":"",onClick:function(){s((function(e){return{viewSettings:Bl(Bl({},e.viewSettings),{},{detached:!0})}})),ut(r,"preferences","sets editor floating")}},"Floating"))),i.a.createElement("li",null,i.a.createElement("label",null,"Editor Size"),function(){var e={XS:"290px",S:"315px",M:"350px",L:"430px",XL:"500px",XXL:"50vw"},t=[],n=function(n){var o=l.editorW===e[n]?"cur":"";t.push(i.a.createElement("div",{className:o,key:n,onClick:function(){var t=Bl(Bl({},l),{},{editorW:e[n]});s({viewSettings:t}),ut(r,"preferences","editorW "+n)}},n))};for(var o in e)n(o);return i.a.createElement("div",{className:"propButtons"},t)}()),i.a.createElement("li",{className:"small"},i.a.createElement("label",null,"Font Size"),(t=l.interfaceFontSize,n=function(e){(!(e=parseInt(e))||e<9)&&(e=9),e>20&&(e=20);var t=Bl(Bl({},l),{},{interfaceFontSize:e});s({viewSettings:t}),ut(r,"preferences","EDITOR font size to "+e)},i.a.createElement("div",{className:"inputWrap"},i.a.createElement("div",{className:"inputInnerWrap"},i.a.createElement("input",{type:"text",value:t,readOnly:!0})),i.a.createElement("div",{className:"inputControls inputBtn"},i.a.createElement("div",{className:"p",onClick:function(){return n(t+1)}},"+"),i.a.createElement("div",{className:"m",onClick:function(){return n(t-1)}},"-"))))))),i.a.createElement("li",null,i.a.createElement("ul",null,i.a.createElement("li",{className:"tt"},i.a.createElement("h3",null,"Code")),i.a.createElement("li",{className:"small"},i.a.createElement("label",null,"Font Size"),i.a.createElement("div",{className:"inputWrap"},i.a.createElement("div",{className:"inputInnerWrap"},i.a.createElement("input",{type:"text",value:l.inspectorFontSize,onChange:function(e){var t=parseInt(e.target.value);t=isNaN(t)?13:t;var n=Bl(Bl({},l),{},{inspectorFontSize:t});s({viewSettings:n})}})),i.a.createElement("div",{className:"inputControls inputBtn"},i.a.createElement("div",{className:"p",onClick:function(){return f(1)}},"+"),i.a.createElement("div",{className:"m",onClick:function(){return f(-1)}},"-")))),i.a.createElement("li",{className:"small"},i.a.createElement("label",null,"Line Height"),i.a.createElement("div",{className:"inputWrap"},i.a.createElement("div",{className:"inputInnerWrap"},i.a.createElement("input",{type:"text",value:l.inspectorLineHeight,onChange:function(e){var t=e.target.value;t=t||1.3;var n=Bl(Bl({},l),{},{inspectorLineHeight:t});s({viewSettings:n})}})),i.a.createElement("div",{className:"inputControls inputBtn"},i.a.createElement("div",{className:"p",onClick:function(){return c(1)}},"+"),i.a.createElement("div",{className:"m",onClick:function(){return c(-1)}},"-")))),i.a.createElement("li",null,i.a.createElement("label",null,"Hints"),i.a.createElement("div",{className:"propButtons"},i.a.createElement("div",{className:l.inspectorShowHints?"cur":"",onClick:function(){return u(!0)}},"Enabled"),i.a.createElement("div",{className:l.inspectorShowHints?"":"cur",onClick:function(){return u(!1)}},"Disabled"))),i.a.createElement("li",null,i.a.createElement("label",null,"Code Theme"),i.a.createElement(Tl,{app:r})))),i.a.createElement("li",null,i.a.createElement("ul",null,i.a.createElement("li",{className:"reset"},i.a.createElement("span",{onClick:function(){s({viewSettings:Bl(Bl({},L),{},{curPanel:"Preferences"})}),ut(r,"preferences","resets to default")}},"Reset to default"))))))))};function Wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wl(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hl=function(e){var t=e.app,n=e.callBack,o=t.state,a=t.update,s=o.customFonts,l=Object(r.useState)(!1),u=E()(l,2),c=u[0],f=u[1],p=Object(r.useState)(!1),d=E()(p,2),h=d[0],m=d[1],v=c?i.a.createElement("div",{className:"preUploadWrap"},i.a.createElement("label",null,"Name:"),i.a.createElement("input",{value:h,onChange:function(e){return m(e.target.value?e.target.value:"Font Name")}}),i.a.createElement("input",{className:"btn primary",type:"submit",name:"submit",value:"Upload Font"})):"",g=i.a.createElement("div",{className:"fontForm"},i.a.createElement("form",{onSubmit:function(e){e.preventDefault(),c&&ce({action:"csshero_upload_font",newfont:c},(function(e){var t=!1;try{t=JSON.parse(e)}catch(t){a({heroAlert:{title:"Ouch :(",content:t.message+"\n\n"+e,type:"error"}})}if(t){t.name=h;var r=t.id,i=zl(zl({},s),{},x()({},r,t));a({customFonts:i}),n(t)}f(!1),m(!1),n(!1)}))},id:"heroUploadImage",encType:"multipart/form-data"},i.a.createElement("input",{type:"file",name:"newfont",size:"25",onChange:function(e){var t=e.target.files[0];f(t);var n,r=(n=t.name).indexOf(".")>-1?n.split(".")[0]:"Font Name";m(r)},accept:".ttf,.otf,.woff"}),v));return i.a.createElement("div",null,g)},Vl=function(e){var t=e.app,n=e.head,o=t.state,a=t.update,s=o.customFonts,u=o.storedEdits,c=Object(r.useState)(!1),f=E()(c,2),p=f[0],d=f[1],h=Object(r.useState)([]),m=E()(h,2),v=m[0],g=m[1],y=function(e,t){var n=e.name,r=e.url,i=zl({},t.storedEdits);for(var o in i){var s=i[o];s=(s=s.split(" ").join(" ").split(".includeFont( ").join(".includeFont(").split("' ,").join("',").split(", '").join(",'").split(") ;").join(");")).split(".includeFont('"+n+"','"+r+"');").join(""),i[o]=s}a({storedEdits:i,session:Date.now()})},b=function(e,t){var n=e.id;a({heroAlert:{title:"Delete Font",content:"Are you sure to delete this font?",type:"confirm",callBack:function(){var r=zl({},s);delete r[n],a({customFonts:r},(function(n){t&&y(e,n)}))}}})},_=function(e){var t=l()(v);t.indexOf(e)>-1?t.splice(t.indexOf(e),1):t.push(e),g(t)};return i.a.createElement(i.a.Fragment,null,n,p?i.a.createElement("div",{className:"secondaryExtraBox addVar"},i.a.createElement("header",null,"Upload Font",i.a.createElement("span",{className:"ico close",onClick:function(){return d(!p)}})),i.a.createElement(Hl,{app:t,callBack:function(e){if(d(!1),e){var n=e.name,r=e.id;a({heroAlert:{title:"Use in project?",content:"Do you want me to add "+n+" to your project?",type:"confirm",callBack:function(){_(r),ot(e,t),ut(t,"custom-fonts","uploads font: "+n)}}})}}})):"",i.a.createElement("div",{className:"secondaryHead"},i.a.createElement("p",null,"Upload custom fonts from here, supported formats: .ttf, otf, woff."),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn",onClick:function(){return d(!p)}},"Add New"))),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"secondaryContents",id:"customFontsWrap"},i.a.createElement("div",{className:"customFontsList"},function(){var e=[],n=[],r=function(r){var a=s[r],l=a.url,c=a.name,f="";for(var p in u)u[p].indexOf(l)>-1&&(f="inUse");var d=f?i.a.createElement("div",{className:"extraBtns"},i.a.createElement("span",{className:"del",onClick:function(){return b(a,f)}},"Delete Font"),i.a.createElement("div",{className:"btn delete",onClick:function(){return y(a,o)}},"Remove from project")):i.a.createElement("div",{className:"extraBtns"},i.a.createElement("span",{className:"del",onClick:function(){return b(a,f)}},"Delete Font"),i.a.createElement("div",{className:"btn primary",onClick:function(){return ot(a,t)}},"Use in project")),h=v.indexOf(r)>-1?i.a.createElement("div",{className:f+" heroFontPreview hf-"+r,key:r},i.a.createElement("div",{className:"openFont"},i.a.createElement("header",null,i.a.createElement("label",null,c),i.a.createElement("span",{onClick:function(){return _(r)},className:"ico close"})),i.a.createElement("div",{className:"k fontPrev"},c),i.a.createElement("div",{className:"hfFooter"},i.a.createElement("input",{readOnly:!0,value:"font-family:"+c+";",spellCheck:"false"})),d)):i.a.createElement("div",{onClick:function(){return _(r)},className:f+" heroFontPreview hf-"+r,key:r},i.a.createElement("div",{className:"fontIcon k"},i.a.createElement("b",null),"Aa"),i.a.createElement("div",{className:"fontName"},c));e.push(it(a,"CSS")+"\n.heroFontPreview.hf-"+r+" .k{font-family:"+c+";}"),n.push(h)};for(var a in s)r(a);return i.a.createElement(i.a.Fragment,null,i.a.createElement("style",null,e),n)}()))))};function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gl=function(e){var t=e.app,n=t.state,r=t.update,o={Variables:ul,History:ml,CheckPoints:vl,EditsBrowser:xl,Preferences:$l,CustomFonts:Vl};return i.a.createElement("div",{id:"secondaryPanel"},i.a.createElement("div",{id:"secondaryContents","data-side":e.show},function(e){var a=[];if(n.viewSettings.curPanel&&e&&o[e]){var s=o[e],l=i.a.createElement("div",{className:"tabHead"},i.a.createElement("label",null,e),i.a.createElement("span",{onClick:function(){r((function(e){return{viewSettings:ql(ql({},e.viewSettings),{},{curPanel:!1})}}))},className:"ico close"}));a.push(i.a.createElement(s,{app:t,head:l,key:e}))}return a}(e.show)))},Xl=function(e){var t=e.app,n=t.state,r=t.update,o=n.heroFrame,a=n.showHovers,s="hoverPreview",l=function(){var e=P()(S.a.mark((function e(){var t,n,r,i,a,l,u,c,f;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r in t=[],n=ae())i=n[r].el,a=n[r].ps,i.indexOf(":hover")>-1&&(l=a.replace(":hover",""),t.push(l));(u=document.createElement("style")).id=s,c=(c=t.join("\n")).split(";").join("!important;"),f=document.createTextNode(c),u.appendChild(f),o.document.getElementsByTagName("head")[0].appendChild(u);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=a?"cur":"";return i.a.createElement("li",{className:u,onClick:function(){a?(ye(t,s),r({showHovers:!1})):(l(),r({showHovers:!0}),ut(t,"interface","views hovers"))}},i.a.createElement("span",{className:"showHovers ico"}),"Show Hovers")};function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jl=function(e){var t=e.app,n=t.update,r=t.state,o=r.viewSettings,a=r.heroFrame,s=o.curPanel,l=r.showExpandedBottomBar,u=function(e){var t=o.curPanel===e?null:e;n((function(e){return{viewSettings:Kl(Kl({},e.viewSettings),{},{curPanel:t})}}))};return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{id:"topBar"},i.a.createElement(tl,{app:t}),i.a.createElement(rl,{app:t}),i.a.createElement("div",{className:"spacer"}),i.a.createElement(nl,{historyAction:function(){return u("History")},app:t}),i.a.createElement("ul",{className:"topNav"},i.a.createElement("li",{className:"spacer"}),i.a.createElement("li",{className:"hasdd"},"Project",i.a.createElement("span",{className:"ico arrow-down"}),i.a.createElement("ul",null,i.a.createElement("li",{onClick:function(){return u("Variables")}},i.a.createElement("span",{className:"ico var"}),"Variables"),i.a.createElement("li",{onClick:function(){return u("EditsBrowser")}},i.a.createElement("span",{className:"ico EditsBrowser"}),"Edits Browser"),i.a.createElement("li",{id:"mQsettsPortal"}),i.a.createElement("li",{className:"wpOnly",onClick:function(){return u("CheckPoints")}},i.a.createElement("span",{className:"ico CheckPoints"}),"CheckPoints"),i.a.createElement("li",{className:"wpOnly",onClick:function(){return u("CustomFonts")}},i.a.createElement("span",{className:"ico CustomFonts"}),"Custom Fonts"),i.a.createElement("li",{className:"r",onClick:function(){return function(e,t){(0,e.update)({heroAlert:{title:"Reset all edits?",content:"Are you sure you want to reset all current edits?",type:"confirm",callBack:function(){return Xe(e,t)}}})}(t)}},i.a.createElement("span",{className:"ico trash"}),"Reset Edits"))),i.a.createElement("li",{className:"hasdd"},"Tools",i.a.createElement("span",{className:"ico arrow-down"}),i.a.createElement("ul",null,function(){var e=[],t={"HTML Inspector":{action:"pageInspector",icon:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("path",{d:"M25.617,19.835h-1.726v-2.018l1.438-1.459c0.15-0.152,0.15-0.398,0-0.549l-0.248-0.252c-0.15-0.152-0.392-0.152-0.542,0 l-1.438,1.459H16.9l-1.438-1.459c-0.15-0.152-0.392-0.152-0.542,0l-0.248,0.252c-0.15,0.152-0.15,0.398,0,0.549l1.438,1.459v2.018 h-1.726c-0.212,0-0.383,0.174-0.383,0.389v0.356c0,0.214,0.171,0.389,0.383,0.389h1.726v0.413c0,0.592,0.151,1.15,0.416,1.645 l-1.607,1.63c-0.15,0.152-0.15,0.398,0,0.549l0.248,0.252c0.15,0.152,0.392,0.152,0.542,0l1.505-1.526 c0.584,0.562,0.918,0.948,1.785,1.065v-4.583c0-0.214,0.171-0.389,0.383-0.389h1.234c0.212,0,0.383,0.175,0.383,0.389v4.583 c0.868-0.117,1.202-0.503,1.785-1.065l1.505,1.526c0.15,0.152,0.392,0.152,0.542,0l0.248-0.252c0.15-0.152,0.15-0.398,0-0.549 l-1.607-1.63c0.267-0.494,0.416-1.053,0.416-1.645v-0.413h1.726c0.212,0,0.383-0.175,0.383-0.389v-0.356 C26.001,20.008,25.829,19.835,25.617,19.835z"}),i.a.createElement("path",{d:"M22.396,16c0.008-0.074,0.012-0.148,0.012-0.224c0-1.249-1.077-2.261-2.408-2.261c-1.33,0-2.408,1.012-2.408,2.261 c0,0.075,0.004,0.151,0.012,0.224L22.396,16z"}))},"Javascript Editor":{action:"JSEditor",icon:i.a.createElement(i.a.Fragment,null,"JS")},"Video Backgrounds":{action:"VideoBgs",icon:i.a.createElement("svg",{x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 40 40"},i.a.createElement("path",{d:"M27,17l-2,1.887V17c0-0.552-0.492-1-1.1-1h-8.8c-0.607,0-1.1,0.448-1.1,1v6c0,0.552,0.492,1,1.1,1h8.8 c0.607,0,1.1-0.448,1.1-1v-1.887L27,23h1v-6H27z"}))}},r=function(r){e.push(i.a.createElement("li",{className:"bbLi",onClick:function(){return n({showExpandedBottomBar:l!==t[r].action&&t[r].action})},key:r},i.a.createElement("div",{className:"bbIcon"},t[r].icon),r))};for(var o in t)r(o);return e}(),function(){if(a&&window.baseUrl){var e=a.location.href.indexOf("&csshero_style_wp_login_page=1")>-1,t=a.location.href.split("&csshero_style_wp_login_page=1&csshero_editing=1").join(""),r=rt(window.baseUrl,"rand=123&csshero_style_wp_login_page=1&csshero_editing=1");return e?i.a.createElement("li",{onClick:function(){n({frameIsLoading:!0}),a.location.href=t}},i.a.createElement("span",{className:"ico loginPage"}),"Back to home"):i.a.createElement("li",{className:"wpOnly",onClick:function(){n({frameIsLoading:!0}),a.location.href=r}},i.a.createElement("span",{className:"ico loginPage"}),"Style login page")}}(),function(){if(a){var e=a.location.href.indexOf("csshero_view_as_unlogged=1")>-1,r=rt(a.location.href,"rand=123&csshero_view_as_unlogged=1&csshero_editing=1"),o=a.location.href.split("&csshero_view_as_unlogged=1&csshero_editing=1").join("");return o=rt(o,"rand=123&csshero_editing=1"),e?i.a.createElement("li",{className:"cur",onClick:function(){return a.location.href=o},"data-for":"UNLO"},i.a.createElement("span",{className:"ico loggedIn"}),"View as logged-in"):i.a.createElement("li",{className:"wpOnly",onClick:function(){n({frameIsLoading:!0}),a.location.href=r,ut(t,"frame","views as loggedout")}},i.a.createElement("span",{className:"ico loggedOut"}),"View as logged-out")}}(),a?i.a.createElement(Xl,{app:t}):"",i.a.createElement("li",null,i.a.createElement("span",{className:"ico docs"}),i.a.createElement("a",{href:"https://www.csshero.org/knowledge-base/plugin-v3/",target:"_blank",rel:"noopener noreferrer"},"Documentation")))),i.a.createElement("li",{className:"spacer"}),i.a.createElement("li",{className:"quitter",onClick:function(){if(window.confirm("Want to quit?")){var e=Math.floor(1e3*Math.random()+1);window.location.href=window.baseUrl+"?csshero_action=shutdown&rand="+e}}},i.a.createElement("span",{className:"ico quit"})))),i.a.createElement(Gl,{app:t,show:s}))};function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eu=function(e){var t=e.app,n=t.state,o=Object(r.useState)("LESS"),a=E()(o,2),s=a[0],l=a[1],u=Ql(Ql({},z),{},{readOnly:!0,theme:"csshero-theme",lineNumbers:!0}),c="JS"===s?Ql(Ql({},u),{},{mode:"javascript"}):u,f=function(e){var r="",i=n.heroFrame.document.getElementById("heroStyle"),o=i?i.innerHTML:"";if("CSS"===e&&(r=o),"MINIFIED"===e&&(r=o.split("\n").join("").split("\t").join("").split(" ").join(" ").split(" {").join("{").split("{ ").join("{").split(" }").join("}").split("} ").join("}").split(" ;").join(";").split("; ").join(";").split(" :").join(":").split(": ").join(":").split(" ,").join(",").split(", ").join(",")),"LESS"===e){var a={},s=be(n.storedEdits,n.mqOrder),l=Oe(t).ret;for(var u in wi)for(var c in wi[u]){var f=c.split("(")[0];if(s.indexOf(f)>-1)for(var p in a[c]=wi[u][c].def,wi)for(var d in wi[p]){var h=d.split("(")[0];wi[u][c].def.indexOf(h)>-1&&!a[d]&&(a[d]=wi[p][d].def)}}var m="";for(var v in a)m+=v+"{"+a[v]+"}";r=(r=l+"\n"+m+"\n"+s).trim()}return"JS"===e&&(r=n.storedJS.all),r},p=n.heroFrame?i.a.createElement("div",{id:"heroExporter"},i.a.createElement("div",null,i.a.createElement("div",{className:"l"},["LESS","CSS","MINIFIED","JS"].map((function(e){return i.a.createElement("div",{className:s===e?"cur":"",key:e,onClick:function(){return l(e)}},e)}))),i.a.createElement("div",null,i.a.createElement(fr.UnControlled,{options:c,value:f(s)}))),i.a.createElement("span",{onClick:function(){return function(e){var t=document.createElement("textarea");t.innerHTML=e,document.body.appendChild(t),t.select();var n=document.execCommand("copy");return document.body.removeChild(t),alert("Copied to clipboard!"),n}(f(s))},className:"exp"},"Copy "+s)):"",d=ar.Export;return i.a.createElement(Ks,{triggerClass:"",width:870,label:d,title:i.a.createElement("span",null,"Export Code")},p)};function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ru(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return iu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function iu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ou=function(e){var t=e.app,n=t.update,o=t.state,a=o.viewSettings,s=o.heroFrame,u=o.videoBgs,c=a.siteBrowserScale,f=Object(r.useState)([]),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(!1),v=E()(m,2),g=v[0],y=v[1],b=Object(r.useState)(""),_=E()(b,2),w=_[0],x=_[1],k=Object(r.useState)(3),C=E()(k,2),S=C[0],O=C[1],A=[100,75,60,50,20,10],j=le(s),P=s.location.href,N="http://localhost:3000/page.html",T={Pages:{"Page 1":N,"Page 2":N,"Page 3":N},Randoms:{"Random 1":N,"Random 2":N,"Random 3":N},Products:{"Product 1":N,"Product 2":N,"Product 3":N},Posts:{"Post 1":N,"Post 2":N,"Post 3":N,"Post 4":N,"Post 5":N,"Post 6":N,"Post 7":N}};Object(r.useEffect)((function(){var e,t=ru(d);try{for(t.s();!(e=t.n()).done;){var n=e.value;F(n)}}catch(e){t.e(e)}finally{t.f()}}),[d]);var M=function(){if(s){var e=nu({},a);e.showSiteBrowser=!a.showSiteBrowser,y(!0),ut(t,"Site Browser","loads site browser"),n({viewSettings:e})}},D=function(e){var t=A.indexOf(c)+e;if(A[t]){var r=nu(nu({},a),{},{siteBrowserScale:A[t]});n({viewSettings:r})}},L=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"wpOnly","data-for":"SBTriggerTip","data-tip":"Site Browser",onClick:M},i.a.createElement("span",{className:"ico sb"}),i.a.createElement(rn,{place:"top",effect:"solid",id:"SBTriggerTip"}))),F=function(e){var t=window.frames[e],n=t.document.getElementById("sbHeroStyle");n&&n.remove();var r=document.createElement("style");r.id="sbHeroStyle",t.document.getElementsByTagName("head")[0].appendChild(r),t.document.getElementById("sbHeroStyle").innerHTML=j,t.document.querySelectorAll(".heroVideoBg").forEach((function(e){return e.remove()})),function(e){if("function"==typeof e.placeVidElementInner)for(var t in u){var n=u[t],r=n.url,i=n.pos,o=n.customizations,a=n.thumbnail;e.placeVidElementInner(t,{url:r,pos:i,customizations:o,thumbnail:a},e,!0)}}(t)},I=function(){var e=[],t=0,r=function(){var e=document.getElementById("cssheroSBlist"),t=e?{}:T;if(e&&e.value.trim())try{t=JSON.parse(e.value.trim())}catch(e){console.log(e)}return t}();for(var o in r){t++;var a=[],u=0,c=0;for(var f in r[o])++u<=S?function(){var e="sbFrame-ID-"+t+"-"+u,c=d.indexOf(e)>-1?"loaded sbCard":"sbCard",p=rt(r[o][f],"csshero_editing");c+=(P===p?" cur":"")+(w===e?" prev":""),a.push(i.a.createElement("div",{className:c,key:e},i.a.createElement("span",{className:"ico close",onClick:function(){return x("")}}),i.a.createElement("div",{className:"mask"},i.a.createElement("span",{onClick:function(){n({frameIsLoading:!0}),s.location=p,M(),x("")}},"Load"),i.a.createElement("span",{className:"sec",onClick:function(){return x(e)}},"Preview")),i.a.createElement("div",{className:"fw"},i.a.createElement("div",{className:"fwHead"},i.a.createElement("span",null,f)),i.a.createElement("div",{className:"fwBar"},i.a.createElement("div",null,i.a.createElement("span",null,p.split("?csshero_editing").join("").split("&csshero_editing").join(""))),i.a.createElement("span",{onClick:function(){n({frameIsLoading:!0}),s.location=p,M(),x("")}},"Load")),i.a.createElement("div",{className:"loader"}),i.a.createElement("iframe",{loading:"lazy",name:e,onLoad:function(){var t=l()(d);t.push(e),h(t)},id:e,title:f,src:p})),i.a.createElement("div",{className:"mt"},i.a.createElement("h4",null,f))))}():c++;c>0&&a.push(i.a.createElement("div",{className:"hasMore",key:"hasMore"},i.a.createElement("span",{onClick:function(){return O(999)}},"And ",c," more"))),e.push(i.a.createElement("div",{className:"sbCol",key:t},i.a.createElement("h3",null,o),i.a.createElement("div",null,a)))}return e};return i.a.createElement(i.a.Fragment,null,L,g?i.a.createElement(_n,{node:document&&document.getElementById("heroWrapper")},i.a.createElement("div",{id:"siteBrowser","data-scale":"s-"+c,className:a.showSiteBrowser?"":"hidden"},i.a.createElement("div",null,i.a.createElement("div",{id:"SBScales"},i.a.createElement("div",{className:"v",onClick:function(){return D(-1)}},"-"),A.map((function(e){return i.a.createElement("div",{className:e===c?"cur":"",onClick:function(){var t=nu(nu({},a),{},{siteBrowserScale:e});n({viewSettings:t})},key:e})})),i.a.createElement("div",{className:"v",onClick:function(){return D(1)}},"+")),i.a.createElement("div",{className:"close ico",onClick:M}),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},I())))):"")},au=n(404),su=function(e){var t=Object(r.useState)(!1),n=E()(t,2),o=n[0],a=n[1],s=e.app,l=s.state,u=s.emitChange,c=l.heroFrame;Object(r.useEffect)((function(){c&&c.document.addEventListener("peerStatusChange",(function(e){e&&setTimeout((function(){return u({})}),1e3),a(e)}))}),[c]);var f=rt(window.baseUrl,"csshero_hotreload&csshero_editing"),p=i.a.createElement("div",{id:"QRWrap"},i.a.createElement("h4",null,"Mobile Preview"),i.a.createElement("p",null,"Scan this QR Code with your mobile device to live preview edits on device.",i.a.createElement("br",null),"Alternatively preview edits in a ",i.a.createElement("a",{href:f,rel:"noopener noreferrer",target:"_blank"},"new tab"),"."),i.a.createElement("div",null,i.a.createElement(au,{size:220,value:f})));return i.a.createElement("div",{"data-tip":"Mobile View","data-for":"hotReaload",className:o?"hotReloadTrigger cur":"hotReloadTrigger wpOnly"},i.a.createElement("span",{className:"ico qr"}),p)};function lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lu(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cu=function(e){var t=e.app,n=t.state,o=t.update,a=n.hasErr,s=n.heroFrame,l=n.session,u=n.frameSession,c=n.hasJSErr,f=n.viewSettings,p=Object(r.useState)("Save"),d=E()(p,2),h=d[0],m=d[1],v=Object(r.useState)(!1),g=E()(v,2),y=g[0],b=g[1],_=Object(r.useState)(""),w=E()(_,2),x=w[0],k=w[1],C=s?i.a.createElement(ou,{app:t}):"";Object(r.useEffect)((function(){var t=JSON.stringify(ue(e.app.state));k(t!==y?"shouldSave":"")}),[u,l,h]);var S;return i.a.createElement("div",{id:"saveActions"},i.a.createElement("div",{className:"spacer"}),i.a.createElement(su,{app:t}),C,i.a.createElement("div",{className:"Preferences"===f.curPanel?"cur":"","data-for":"prefsTip","data-tip":"Preferences",onClick:function(){return e="Preferences",t=f.curPanel===e?null:e,void o((function(e){return{viewSettings:uu(uu({},e.viewSettings),{},{curPanel:t})}}));var e,t}},i.a.createElement("span",{className:"ico cog"}),i.a.createElement(rn,{id:"prefsTip",place:"top",effect:"solid"})),i.a.createElement("div",{"data-for":"exporter","data-tip":"Export"},i.a.createElement(eu,{app:e.app}),i.a.createElement(rn,{id:"exporter",place:"top",effect:"solid"})),i.a.createElement("div",{className:"spacer"}),i.a.createElement("div",{onClick:function(){var e=he(y?JSON.parse(y):de(),t),n=e.ob,r=e.needsRefresh;o({heroAlert:{title:"Cancel Edits?",content:"Do you want me to cancel all edits until last save?",type:"confirm",callBack:function(){o(n,(function(){r&&at(t)}))}}})},className:"cancel"},"Cancel"),i.a.createElement("div",{className:(S="save",a||c?(a&&(S+=" err"),c&&(S+=" errJS")):S="Saved!"===h||"Saving..."===h?"save saving":"Error"===h?"err save":"save",S+" "+x),onClick:function(){var t=le(s),n=ue(e.app.state);"function"==typeof window.heroCustomSaveAction?window.heroCustomSaveAction({staticCSS:t,toBeSavedObj:n}):(m("Saving..."),ce({action:"csshero_save_state","csshero-livearray-saving-field":JSON.stringify(n),"csshero-css-saving-field":t,"csshero-log-field":JSON.stringify(e.app.state.actionLog)},(function(e){console.log("Response: "+e),m("Saved!"),b(JSON.stringify(n)),setTimeout((function(){return m("Save")}),1e3)})))}},a||c?"Error":h))},fu=function(e){var t=e.selector,n=e.heroFrame,o=e.action,a=Object(r.useState)([]),s=E()(a,2),l=s[0],u=s[1],c=Object(r.useState)([]),f=E()(c,2),p=f[0],d=f[1],h=Object(r.useState)(!1),m=E()(h,2),v=m[0],g=m[1],y=Object(r.useState)(!0),b=E()(y,2),_=b[0],w=b[1],x=function(e){var t=[];if(e&&qe(e))try{t=n.document.querySelectorAll(e)}catch(e){}return t};Object(r.useEffect)((function(){var e=x("body *"),t=[];e.forEach((function(e){var n=e.getAttribute("id");n&&-1===t.indexOf("#"+n)&&t.push("#"+n),e.classList.length>0&&e.classList.forEach((function(e){-1===t.indexOf("."+e)&&t.push("."+e)})),-1===t.indexOf(e.tagName.toLowerCase())&&t.push(e.tagName.toLowerCase())})),u(t)}),[]),Object(r.useEffect)((function(){var e=t.split(" ").join(" "),n=(e=e.split(" "))[e.length-1];e.pop();var r=e.join(" ")||"",i=[];l.forEach((function(e){e.startsWith(n)?x(r+" "+e).length>0&&i.push(r+" "+e):x(t+e).length>0&&i.push(t+e)})),d(i)}),[t]);var k=p.length>0?p.map((function(e,t){var n=e.split(" ").join(" ");return i.a.createElement("div",{key:t,className:"l",onClick:function(){o(n,!0),w(!1)},onMouseEnter:function(){g(n)},onMouseLeave:function(){g(!1)}},e)})):"";k=k?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"tog",onClick:function(){return w(!_)}},i.a.createElement("span",{className:"ico arrow-down"})),i.a.createElement("div",{id:"addSelectorHelpers"},_?i.a.createElement(ln.a,{options:{wheelPropagation:!1}},k):"")):i.a.createElement("div",{className:"tog disa"},i.a.createElement("div",{className:"ico arrow-down"}));var C=v?i.a.createElement(wn,{heroFrame:n,selector:v}):"";return i.a.createElement(i.a.Fragment,null,C,k)};function pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hu=function(e){var t=Object(r.useState)(""),n=E()(t,2),o=n[0],a=n[1],s=Object(r.useState)(0),l=E()(s,2),u=l[0],c=l[1],f=e.app,p=e.closeMe,d=f.state.heroFrame;Object(r.useEffect)((function(){if(d){var e=0;try{e=d.document.querySelectorAll(o).length}catch(e){}c(e)}}),[o]);var h=function(){f.update({currentElContext:"normal"},(function(e){var t=du(du({},f),{},{state:e});se(o,t),p(),a("")})),ut(f,"selector","creates new")};return i.a.createElement("div",{className:"adder"},i.a.createElement("label",null,"Add Selector"),i.a.createElement("div",{className:"lem"},i.a.createElement("input",{autoFocus:!0,type:"text",placeholder:"CSS Selector",value:o,onChange:function(e){a(e.target.value)},spellCheck:!1,onKeyUp:function(e){13===e.keyCode?h():27===e.keyCode?p():e.target.value}}),i.a.createElement("span",{className:"cnt"},u),i.a.createElement(fu,{action:a,heroFrame:d,selector:o})),i.a.createElement("div",{className:"bottom"},i.a.createElement("div",{className:"btn secondary",onClick:p},"Cancel"),i.a.createElement("div",{className:"btn primary",onClick:h},"Submit")),i.a.createElement(wn,{heroFrame:d,selector:o}))};function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gu=function(e){var t,n=e.app,r=n.state,o=n.update,a=r.viewSettings;return i.a.createElement("div",{className:"resizers"},(t="65vh"===a.pageInspectorH?"iscur":"",i.a.createElement("div",{className:t+" enl",onClick:function(){var e="357px"===a.pageInspectorH?"65vh":"357px",t=vu(vu({},a),{},{pageInspectorH:e});o({viewSettings:t})}},i.a.createElement("span",{className:"ico arrow-down"}),i.a.createElement("span",{className:"ico arrow-down"}))))};n(410),n(411);function yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yu(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _u=n(37).css,wu=function(e){var t=e.frame,n=e.viewSettings,o=e.app,a=o.update,s=o.state,u=n.inspectorTheme,c=Object(r.useState)([]),f=E()(c,2),p=f[0],d=f[1],h=Object(r.useState)(!1),m=E()(h,2),v=m[0],g=m[1],y=Object(r.useState)(!1),b=E()(y,2),_=b[0],w=b[1],x=Object(r.useState)([]),k=E()(x,2),C=k[0],O=k[1],A=Object(r.useState)(""),j=E()(A,2),N=j[0],T=j[1],M=Object(r.useState)(!1),D=E()(M,2),L=D[0],F=D[1],I=Object(r.useState)(!1),R=E()(I,2),B=R[0],$=R[1],W=bu(bu({},z),{},{theme:u,readOnly:!0,scrollbarStyle:"null",matchBrackets:!1,colorpicker:{mode:"edit"}}),H=s.currentlyClicked,V=function(){var e=[];if(t){var n={direct:{},inherited:{}},r=ae();if(r.sort((function(e,t){return t.ref-e.ref})),H)!function(){var t=function(e,t){e=e.split(",");var n=t?" *":"";return e.filter((function(e){return H.matches(e+n)}))[0]};for(var u in r.forEach((function(e){var t=e.el,r=e.ps,i=e.ref,o=e.mq;if(!N||r.toLowerCase().indexOf(N.toLowerCase())>-1){!function(e,t){var n=!1;if(-1===t.indexOf(":"))try{e.matches(t)&&(n=!0)}catch(e){}else{var r=t.split(":")[0];if(r)try{e.matches(r)&&(n=!0)}catch(e){}}return n}(H,t)?-1===t.indexOf(":")&&H.matches(t+" *")&&(_||N)&&(n.inherited[o]||(n.inherited[o]=[]),n.inherited[o].push({el:t,ps:r,ref:i})):(n.direct[o]||(n.direct[o]=[]),n.direct[o].push({el:t,ps:r,ref:i}))}})),n){var c=_?"open":"";"inherited"===u&&e.push(i.a.createElement("span",{className:c+" cm-atom title inhe",key:u,onClick:function(){return w(!_)}},u));var f=function(r){var c="inherited"===u,f=n[u][r].sort((function(e,n){return parseInt(jn(t(n.el,c)).join(""))-parseInt(jn(t(e.el,c)).join(""))})).map((function(e,t){return i.a.createElement("div",{className:"wuf","data-mq":r,"data-el":e.el,key:t},i.a.createElement(fr.UnControlled,{editorDidMount:function(e){setTimeout((function(){return e.refresh()}),10),q()},value:_u(e.ps),options:W}))}));e.push(i.a.createElement("div",{className:u+" node",key:u+"-"+r},i.a.createElement("span",{onClick:function(){var e="all"===r?r:"@media "+r;-1===s.mqOrder.indexOf(e)?a({heroAlert:{title:"Add new Media Query?",content:"Do you want me to add a new Media Query ("+e+") to your project?",type:"confirm",callBack:function(){var t=l()(s.mqOrder);t.push(e),a({mqOrder:t},(function(){De(e,o)}))}}}):De(e,o)},className:"cm-atom title"},r),f))};for(var p in n[u])f(p)}}();else if(s.currentEl&&(s.currentEl.indexOf(":before")>-1||s.currentEl.indexOf(":after")>-1))(function(e,t,n){var r=[];e=e.split("::").join(":");var i=!1;e.indexOf(":before")>-1&&(i=":before",e=e.replace(":before","")),e.indexOf(":after")>-1&&(i=":after",e=e.replace(":after",""));var o=!1;try{o=n.document.querySelectorAll(e)[0]}catch(e){}return o&&t.filter((function(e){return e.el.indexOf(i)>-1})).forEach((function(e){var t=e.el.split("::").join(":");e.el=t,e.ps=e.ps.split("::").join(":");try{o.matches(t.replace(i,""))&&r.push(e)}catch(e){}})),r})(s.currentEl,r,t).forEach((function(t,n){e.push(i.a.createElement("div",{className:"pseudo node "+n,key:"pseudoNode-"+n},i.a.createElement("div",{className:"wuf","data-mq":t.mq,"data-el":t.el},i.a.createElement(fr.UnControlled,{editorDidMount:function(e){setTimeout((function(){return e.refresh()}),10),q()},value:_u(t.ps),options:W}))))}))}return e},U=function(){var e=P()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){return V()})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){We(600,(function(){var e;(e=document.querySelectorAll("#CSSInspector .ps")[0]).addEventListener("wheel",(function(){e.classList.add("scrolling"),We(600,(function(){return e.classList.remove("scrolling")}))})),l()(document.querySelectorAll("#CSSInspector .wuf")).forEach((function(e){var t=l()(e.querySelectorAll(".CodeMirror-line")),n=e.getAttribute("data-el");t.some((function(e){return e.classList.add("sendToEdit"),e.addEventListener("click",(function(){return se(n,o)})),!!e.textContent.includes("{")}))}))}))};Object(r.useEffect)((function(){var e;e=C.map((function(e){var t=e.split("|*|*|"),n="all"===t[0]?"":"@media "+t[0]+"{";return n+t[1]+"{"+t[2]+":unset;}"+(n?"}":"")})),ye(o,"heroCSSUnsetter"),ge(o,e.join(" "),"heroCSSUnsetter")}),[C]),Object(r.useEffect)((function(){return function(){O([])}}),[]),Object(r.useEffect)((function(){O([]),g(!0),setTimeout((function(){U().then((function(e){g(!1),d(e)}))}),150)}),[s.currentEl,s.mqOrder]),Object(r.useEffect)((function(){U().then((function(e){g(!1),d(e)}))}),[_,n.inspectorTheme]),Object(r.useEffect)((function(){We(500,(function(){U().then((function(e){g(!1),d(e)}))}))}),[N]),Object(r.useEffect)((function(){document.querySelectorAll("#CSSInspector .ps")[0].scroll(0,0)}),[L]);var G=L?"":i.a.createElement("div",{id:"AddSelectorTrigger",onClick:function(){F(!L)}},"Add +");return i.a.createElement("div",{id:"CSSInspector",className:"CodeMirror cm-s-"+u},i.a.createElement("div",{className:"treeActions"},i.a.createElement("div",{className:B?"src open":"src"},i.a.createElement("span",{className:B?"ico close":"ico search",onClick:function(){return $(!B)}}),B?i.a.createElement("input",{type:"text",spellCheck:!1,value:N,onChange:function(e){return T(e.target.value)}}):""),i.a.createElement(gu,{app:o}),i.a.createElement("div",{className:"ico close bbClose",onClick:function(){return a({showExpandedBottomBar:!1})}})),i.a.createElement("div",{className:v?"loader loading":"loader"}),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},L?i.a.createElement("div",{id:"AddSelector"},i.a.createElement(hu,{app:o,closeMe:function(){return F(!1)}})):"",p),G)};function xu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ku(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ku(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ku(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Eu=function e(t){var n=t.heroFrame,o=t.app,a=t.curEl,s=t.searchVal,l=t.obj,u=t.editsOb,c=Object(r.useState)(!1),f=E()(c,2),p=f[0],d=f[1],h=l.tagName.toLowerCase(),m=[],v=[],g="";if(l.hasChildNodes())for(var y=l.firstChild,b=0;y;)b++,1===y.nodeType&&"SCRIPT"!==y.nodeName&&(p||v.push(i.a.createElement(e,{searchVal:s,curEl:a,app:o,editsOb:u,key:b,heroFrame:n,obj:y}))),y=y.nextSibling;var _=[];if(l.hasAttributes()){var w=l.attributes;g+="<"+l.tagName;for(var x=w.length-1;x>=0;x--){var k=w[x].name,C=Math.floor(1e6*Math.random()),S=w[x].value.split(" ");if(-1===T.indexOf(k)){g+=" "+k+'="';var O,A=[],j=xu(S);try{for(j.s();!(O=j.n()).done;){var P=O.value;C++,-1===N.indexOf(P)&&("class"===k||"id"===k?A.push(i.a.createElement("span",{className:"cm-atom k c",key:C},P)):A.push(i.a.createElement("span",{className:"cm-atom k",key:C},P)),g+=" "+P)}}catch(e){j.e(e)}finally{j.f()}A.length>0&&_.push(i.a.createElement("span",{key:k,className:"attr"},i.a.createElement("span",{className:"cm-number"},k+"="),'"',A,'"')),g+='"'}}g+=">"}var M="";l.childNodes[0]&&(M=l.childNodes[0].nodeValue&&l.childNodes[0].nodeValue.trim()?i.a.createElement("span",{className:"cm-property p"},l.childNodes[0].nodeValue):"",g+=l.childNodes[0].nodeValue?l.childNodes[0].nodeValue.trim():""),g=(g+="</"+l.tagName+">").toLowerCase().split('" ').join('"');var D=p||"none"===window.getComputedStyle(l,":before").getPropertyValue("content")?"":i.a.createElement("span",{className:"cm-tag pse",onClick:function(){se(l.getAttribute("editableclass").split(" | ")[0]+":before",o)}},"::before"),L=p||"none"===window.getComputedStyle(l,":after").getPropertyValue("content")?"":i.a.createElement("span",{className:"cm-tag pse",onClick:function(){se(l.getAttribute("editableclass").split(" | ")[0]+":after",o)}},"::after");M=p?i.a.createElement("span",{className:"p closed"},i.a.createElement("span",{onClick:function(){return d(!1)}})):M;var F=p?"isClosed":"",I="";try{!s&&a&&l.matches(a)&&(I="cur")}catch(e){}var R=function(e){e.getAttribute("editableclass")&&se(e,o)},B=s&&g.indexOf(s)>-1?"found":"";return m.push(i.a.createElement("ul",{key:h,className:"CodeMirror cm-s-"+o.state.viewSettings.inspectorTheme},i.a.createElement("li",null,i.a.createElement("div",{className:B+" "+I+" "+F+" treeItem",onMouseMove:function(e){e.stopPropagation(),l.dispatchEvent(new Event("mousemove")),o.update({currentlyHovered:l})}},i.a.createElement("div",{className:"t start",onContextMenu:function(e){},onClick:function(){return R(l)}},i.a.createElement("span",{className:"tog",onClick:function(e){e.stopPropagation(),d(!p)}},i.a.createElement("span",{className:"ico arrow-down"})),i.a.createElement("span",{className:"i"},i.a.createElement("span",{className:"cm-tag"},"<"+h),_,i.a.createElement("span",{className:"cm-tag"},">"))),D,M,L,v,i.a.createElement("div",{className:"t end",onClick:function(){return R(l)}},i.a.createElement("span",{className:"cm-tag"},"</"+h+">")))))),m},Cu=function(e){var t=e.app,n=e.startEl,o=t.state,a=o.heroFrame,s=o.allEdits,u=o.currentMq,c=o.currentEl,f=o.viewSettings,p=o.currentlyClicked,d=Object(r.useState)(""),h=E()(d,2),m=h[0],v=h[1],g=Object(r.useState)(!1),y=E()(g,2),b=y[0],_=y[1],w=Object(r.useState)(0),x=E()(w,2),k=x[0],C=x[1],O=Object(r.useState)(0),A=E()(O,2),j=A[0],N=A[1];Object(r.useEffect)((function(){var e=[];try{e=c?a.document.querySelectorAll(c):[]}catch(e){}var t=p,n=l()(e).indexOf(t);N(n),v("")}),[c,p,a.document]),Object(r.useEffect)((function(){ut(t,"page-inspector","loads page inspector")}),[]),Object(r.useEffect)((function(){M()}),[c,f.inspectorTheme,j]);var T,M=function(){L().then((function(e){_(e);var t=document.getElementById("bottomBar");t&&!t.matches(":hover")&&D(j)}))},D=function(e){var t=document.querySelectorAll("#HTMLTreeIn .ps")[0],n=document.querySelectorAll(".treeItem.cur");C(n.length),t&&n.length>0&&n[e]&&n[e]&&n[e].scrollIntoView()},L=function(){var e=P()(S.a.mark((function e(){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){return F()})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var e,r=[],o=n||"body",l=0,f=xu(o?a.document.querySelectorAll(o):[]);try{for(f.s();!(e=f.n()).done;){var p=e.value;l++,r.push(i.a.createElement(Eu,{searchVal:m,curEl:c,app:t,key:l,heroFrame:a,obj:p,editsOb:s[u]}))}}catch(e){f.e(e)}finally{f.f()}return i.a.createElement(ln.a,{options:{wheelPropagation:!1}},r)};return i.a.createElement("div",{id:"htmlTree"},i.a.createElement("div",{className:"treeIn"},i.a.createElement("div",{id:"HTMLTreeIn"},i.a.createElement("div",{className:"treeActions"},i.a.createElement("div",{className:"tit"},i.a.createElement("label",null,"Inspect HTML")),i.a.createElement("div",{className:"src"},(T=k<2?i.a.createElement("span",null,k):i.a.createElement(i.a.Fragment,null,i.a.createElement("span",null,j+1+"/"+k),i.a.createElement("div",null,i.a.createElement("span",{className:"aro",onClick:function(){var e=j-1<0?k-1:j-1;N(e),D(e)}}),i.a.createElement("span",{className:"aro d",onClick:function(){var e=j+1>=k?0:j+1;N(e),D(e)}}))),i.a.createElement("div",{className:"srcnt"},T)))),b),i.a.createElement(wu,{app:t,frame:a,viewSettings:f})))},Su=function(e){var t=e.code,n=e.setter,o=Object(r.useState)(!1),a=E()(o,2),s=a[0],l=a[1],u=Object(r.useState)(""),c=E()(u,2),f=c[0],p=c[1],d=Object(r.useState)([]),h=E()(d,2),m=h[0],v=h[1],g=Object(r.useState)([]),y=E()(g,2),b=y[0],_=y[1],w=Object(r.useState)([]),x=E()(w,2),k=x[0],C=x[1],O=Object(r.useState)(""),A=E()(O,2),j=A[0],N=A[1],T=Object(r.useState)(""),M=E()(T,2),D=M[0],L=M[1],F=Object(r.useState)(!1),I=E()(F,2),R=I[0],B=I[1];Object(r.useEffect)((function(){s||(p(""),v([]),_([]),C([]),L(""))}),[s]);var $=function(){var e=P()(S.a.mark((function e(r,o){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:B(!0),fetch("https://api.cdnjs.com/libraries/"+r+"/"+o).then((function(e){return e.json()})).then((function(e){var a=e.files.map((function(e,a){var s="https://cdnjs.cloudflare.com/ajax/libs/"+r+"/"+o+"/"+e;return i.a.createElement("div",{className:"itm",onClick:function(){return n("// @import('"+s+"');\n"+t),void l(!1)},key:a},e)}));C(a),L(o),B(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),W=function(){var e=P()(S.a.mark((function e(t){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:B(!0),fetch("https://api.cdnjs.com/libraries/"+t+"?fields=versions").then((function(e){return e.json()})).then((function(e){var n=(e.versions?e.versions.reverse():[]).map((function(e,n){return i.a.createElement("div",{className:"itm",onClick:function(){$(t,e)},key:n},e)}));_(n),N(t),B(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=P()(S.a.mark((function e(t){var n;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:B(!0),n=t.target.value,p(n),_([]),We(400,(function(){n?fetch("https://api.cdnjs.com/libraries?search="+n+"&search_fields=name").then((function(e){return e.json()})).then((function(e){var t=e.results.map((function(e,t){return i.a.createElement("div",{className:"itm",onClick:function(){return W(e.name)},key:t},e.name)}));v(t),B(!1)})):(v([]),B(!1))}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),H=R?i.a.createElement("div",{className:"loaderWrap"},i.a.createElement("div",{className:"loader"})):"",V=k.length>0?"showFiles":b.length>0?"showVersions":"",U=s?i.a.createElement("div",{className:V},m.length>0?i.a.createElement("div",{className:"results"},H,i.a.createElement(ln.a,{options:{wheelPropagation:!1}},m),b.length>0?i.a.createElement("div",{className:"versions"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"goback",onClick:function(){_([])}},j,i.a.createElement("span",null,"← back")),b),k.length>0?i.a.createElement("div",{className:"files"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"goback",onClick:function(){C([])}},j,"-",D,i.a.createElement("span",null,"← back")),k)):""):""):"",i.a.createElement("input",{placeholder:"Search (es: jquery)",spellCheck:!1,type:"text",value:f,onChange:z})):"";return i.a.createElement("span",{id:"jsLibsLoader",className:s?"off bt":"bt"},i.a.createElement("span",{onClick:function(){return l(!s)}},"Load Libs",i.a.createElement("b",null,i.a.createElement("span",{className:s?"ico close":"ico arrow-down"}))),U)},Ou=(n(412),n(133));n(430),n(431),n(432),n(433);function Au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ju(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Au(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}window.JSHINT=Ou.JSHINT;var Pu=function(e){var t=e.app,n=t.state,o=t.update,a=n.frameSession,s=n.storedJS,l=n.currentEl,u=n.currentlyClicked,c=n.hasJSErr,f=Object(r.useState)(!1),p=E()(f,2),d=p[0],h=p[1],m=Object(r.useState)(s.all),v=E()(m,2),g=v[0],y=v[1],b=Object(r.useState)([]),_=E()(b,2),w=_[0],x=_[1],k=Object(r.useState)([]),C=E()(k,2),O=C[0],A=C[1],j=ju(ju({},z),{},{theme:n.viewSettings.inspectorTheme,mode:"javascript",lineNumbers:!0,lint:{esversion:6,asi:!0},gutters:["CodeMirror-lint-markers"]}),N=function(e){y(e),D(e)};Object(r.useEffect)((function(){D(s.all),y(s.all),document.querySelectorAll(".CodeMirror-lint-marker-warning,.CodeMirror-lint-marker-error").length&&!c?o({hasJSErr:!0}):o({hasJSErr:!1})}),[s.all]),Object(r.useEffect)((function(){u&&se(u,t)}),[a]);var T=function(){var e=P()(S.a.mark((function e(){var t,n,r;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=S.a.mark((function e(n){var r,o,a,s;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(r=w[n]).split('"').join("").split("'").join("").split("`").join(""),o=404,e.prev=3,e.next=6,fetch(r);case 6:o=(o=e.sent).status,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.log(e.t0);case 13:a=200===o?i.a.createElement("span",null,"200"):i.a.createElement("span",{className:"n"},o),s=(s=r.split("/"))[s.length-1],t.push(i.a.createElement("span",{title:r,key:n},a,i.a.createElement("b",null,s),i.a.createElement("u",{className:"ico close",onClick:function(){return M(r,s)}})));case 17:case"end":return e.stop()}}),e,null,[[3,10]])})),e.t0=S.a.keys(w);case 3:if((e.t1=e.t0()).done){e.next=8;break}return r=e.t1.value,e.delegateYield(n(r),"t2",6);case 6:e.next=3;break;case 8:t.length>0&&t.unshift(i.a.createElement("label",{key:"l"},"Dependencies:")),A(t);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(e,t){var n=g.split("// @import('"+e+"');").join("");o({heroAlert:{title:"Remove Library",content:"Are you sure to remove "+t+" library?",type:"confirm",callBack:function(){N(n)}}})};Object(r.useEffect)((function(){T()}),[w]),Object(r.useEffect)((function(){d&&d.getSelection()&&d.doc.replaceSelection(l)}),[l]);var D=function(e){var t=e||"",n=t.matchAll(/@import\((.*?)(\);)/g),r=Array.from(n,(function(e){return e[1]})),i=t,a="[--HEROIMPORTED--]",s=[];if(x(r),r.length>0)for(var l in r){var u=r[l];u=u.split('"').join("").split("'").join("").split("`").join(""),s.push(u),i=(i=(i=(i=i.split("@import("+r[l]+");").join(a)).split("// "+a).join("")).split(a).join("")).trim()}o({storedJS:{all:t,libs:s,stripped:i}})};return i.a.createElement("div",{id:"JSEditorWrap"},i.a.createElement("div",{id:"JSEditorHead"},i.a.createElement("label",null,"JS Editor"),i.a.createElement(gu,{app:t}),i.a.createElement("span",{className:"ico close bbClose",onClick:function(){return o({showExpandedBottomBar:!1})}})),i.a.createElement("div",{id:"JSEditor"},i.a.createElement(fr.Controlled,{key:1,options:j,value:g,editorDidMount:function(e){return h(e)},onKeyUp:function(e,n){t.t.state.viewSettings.inspectorShowHints&&Ge(e,n)},onBeforeChange:function(e,t,n){y(n),We(500,(function(){return D(n)}))}})),i.a.createElement("div",{id:"libManager"},i.a.createElement(Su,{code:g,setter:N}),i.a.createElement("div",{className:"deps"},O),i.a.createElement("span",{className:"runner bt",onClick:function(){return We(200,(function(){at(t),t.emitChange({session:Date.now()}),ut(t,"js","submits js")}))}},"Update")))};function Nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nu(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mu=function(e){var t=e.app,n=t.state,o=t.update,a=n.heroFrame,s=n.currentEl,l=n.videoBgs,u=Object(r.useState)(!1),c=E()(u,2),f=c[0],p=c[1],d=Object(r.useState)([]),h=E()(d,2),m=h[0],v=h[1],g=Object(r.useState)(0),y=E()(g,2),b=y[0],_=y[1],w=Object(r.useState)(!1),k=E()(w,2),C=k[0],O=k[1],A=Object(r.useState)(""),j=E()(A,2),N=j[0],T=j[1],M=Object(r.useState)("50% 50%"),D=E()(M,2),L=D[0],F=D[1],I=Object(r.useState)({outer:{},inner:{}}),R=E()(I,2),B=R[0],$=R[1],W=Object(r.useState)(!1),z=E()(W,2),H=z[0],V=z[1],U=Object(r.useState)(!1),q=E()(U,2),G=q[0],X=q[1],Y="f981a2141b1a6ae7f301092397d7cafb",K="https://api.coverr.co/videos",J=["0% 0%","0% 50%","0% 100%","50% 0%","50% 50%","50% 100%","100% 0%","100% 50%","100% 100%"];Object(r.useEffect)((function(){var e=l[s];if(e){var t=e.id,n=e.pos,r=e.customizations,i=e.disableOnMobile;fetch(K+"/"+t+"?api_key="+Y).then((function(e){return e.json()})).then((function(e){O(e),F(n),$(r),X(i)}))}else O(!1),F("50% 50%"),$({outer:{},inner:{}}),X(!1)}),[s]),Object(r.useEffect)((function(){ne(b)}),[b]),Object(r.useEffect)((function(){We(500,(function(){_(0),ne(0)}))}),[N]);var Z=function(e,t,n){var r=Tu(Tu({},B[e]),{},x()({},t,n)),i=Tu(Tu({},B),{},x()({},e,r));$(i)},Q=function(){var e=B.outer["background-color"]?B.outer["background-color"]:"rgba(255,255,255,1)",n=f?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{onClick:function(){return p(!1)},id:"bgVidsPickerMask"}),i.a.createElement("div",{className:"bgVidsPicker"},i.a.createElement(xr,{color:e,action:function(e){var t=e.rgb,n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";Z("outer","background-color",n)},app:t,paletteAction:function(e){return Z("outer","background-color",e)}}),i.a.createElement("div",{className:"extraBtns"},i.a.createElement("div",{className:"btn secondary",onClick:function(){return p(!1)}},"Cancel"),i.a.createElement("div",{className:"btn",onClick:function(){return p(!1)}},"Submit")))):"";return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"pickerWrap"},n,i.a.createElement("div",{className:"pickerTrigger",style:{backgroundColor:e},onClick:function(){return p(!f)}})),i.a.createElement("input",{type:"text",value:B.outer["background-color"]?B.outer["background-color"]:"transparent",onChange:function(e){return Z("outer","background-color",e.target.value)}}))},ee=function(){a.document.querySelectorAll(s+" .heroVideoBg").forEach((function(e){return e.remove()}));var e=Tu({},l);e[s]&&delete e[s],o({videoBgs:e})},te=function(){var e=Se(t,s);yr("","",Ze("background-color",n,e).wysiCode,!0,t,{isDesktopOnly:!1,isImportant:!1},(function(e){var r=Tu(Tu({},n),e),i=Tu(Tu({},t),{},{state:r});yr("","",Ze("background-image",r,Se(i,s)).wysiCode,!0,i,{isDesktopOnly:!1,isImportant:!1},(function(e){var r=Tu(Tu({},n),e),i=Tu(Tu({},t),{},{state:r});yr("","",Ze("position",r,Se(i,s)).wysiCode,!0,i,{isDesktopOnly:!1})}))})),ee()},ne=function(){var e=P()(S.a.mark((function e(t){return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:V(!0),fetch("https://api.coverr.co/videos?api_key=f981a2141b1a6ae7f301092397d7cafb&urls=true&page="+t+"&query="+N).then((function(e){return e.json()})).then((function(e){var t=e.hits,n=[];if(t.length>0){var r=function(e){var r=t[e].thumbnail;n.push(i.a.createElement("div",{onClick:function(){O(t[e])},style:{backgroundImage:"url("+r+")"},key:e,className:"vid"},i.a.createElement("span",{className:"ico eye"})))};for(var o in t)r(o)}else n.push(i.a.createElement("div",{className:"noHits",key:"no"},"Nothing found here :("));v(n),V(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),re=function(e){if(s){var n=C.id,r=C.thumbnail;console.log(C);var i=a.document.querySelectorAll("[heroclicked]")[0],u=a.getComputedStyle(i).position;l[s]?ee():function(e){var n=e&&"static"!==e?{p:"background-color",v:"transparent;\nbackground-image:none"}:{p:"position",v:"relative;\nbackground-color:transparent;\nbackground-image:none"},r=Se(t,s).code,i=(r=r.split("\n\n").join("\n")).substring(r.indexOf("{")+1,r.lastIndexOf("}"));yr(n.p,n.v,i,!0,t,{isDesktopOnly:!1,isImportant:!1}),setTimeout((function(){ut(t,"video","applies video bg")}),500)}(u),Qe(s,{url:e,pos:L,customizations:B,thumbnail:r},a);var c={currentEl:s,url:e,pos:L,id:n,customizations:B,thumbnail:r,disableOnMobile:G},f=Tu(Tu({},l),{},x()({},s,c));o({videoBgs:f})}else alert("no element selected")},ie=H?i.a.createElement("div",{className:"preloader"},i.a.createElement("div",{className:"loader"})):"";return i.a.createElement("div",{id:"videoBgs"},function(){var e=[];if(C){var t=C.urls,n=C.title,r=C.duration,o=C.max_height,u=C.max_width,c=C.aspect_ratio,f=C.thumbnail,p=t.mp4,d=t.mp4_preview,h=l[s]?i.a.createElement("div",{className:"btn secondary",onClick:te},"Remove"):i.a.createElement("div",{className:"btn secondary disa"},"Remove"),m=l[s]?i.a.createElement("div",{onClick:function(){return re(p)},className:"btn primary"},"Update"):i.a.createElement("div",{onClick:function(){return re(p)},className:s?"btn primary":"btn primary disa"},"Apply"),v=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{"data-tip":"If set will only display background image on handheld devices.","data-for":"dOnlyTip",onClick:function(){return X(!G)},className:G?"cur dOnly":"dOnly"},"Disable on Mobile"),i.a.createElement(rn,{id:"dOnlyTip",place:"top",effect:"solid"})),g=i.a.createElement(i.a.Fragment,null,v,h,m);e.push(i.a.createElement("div",{className:"previewerShad",onClick:function(){return O(!1)},key:1})),e.push(i.a.createElement("div",{className:"previewer",key:0},i.a.createElement("span",{className:"ico close",onClick:function(){return O(!1)}}),i.a.createElement("div",{className:"pw"},function(){var e=[],t={inner:{opacity:i.a.createElement("div",{className:"heroSelect"},i.a.createElement("select",{value:B.inner.opacity?B.inner.opacity:"1",onChange:function(e){return Z("inner","opacity",e.target.value)}},i.a.createElement("option",{value:"0.1"},"0.1"),i.a.createElement("option",{value:"0.2"},"0.2"),i.a.createElement("option",{value:"0.3"},"0.3"),i.a.createElement("option",{value:"0.4"},"0.4"),i.a.createElement("option",{value:"0.5"},"0.5"),i.a.createElement("option",{value:"0.6"},"0.6"),i.a.createElement("option",{value:"0.7"},"0.7"),i.a.createElement("option",{value:"0.8"},"0.8"),i.a.createElement("option",{value:"0.9"},"0.9"),i.a.createElement("option",{value:"1"},"1"))),"mix-blend-mode":i.a.createElement("div",{className:"heroSelect"},i.a.createElement("select",{value:B.inner["mix-blend-mode"]?B.inner["mix-blend-mode"]:"normal",onChange:function(e){return Z("inner","mix-blend-mode",e.target.value)}},i.a.createElement("option",{value:"normal"},"normal"),i.a.createElement("option",{value:"multiply"},"multiply"),i.a.createElement("option",{value:"screen"},"screen"),i.a.createElement("option",{value:"overlay"},"overlay"),i.a.createElement("option",{value:"darken"},"darken"),i.a.createElement("option",{value:"lighten"},"lighten"),i.a.createElement("option",{value:"color-dodge"},"color-dodge"),i.a.createElement("option",{value:"color-burn"},"color-burn"),i.a.createElement("option",{value:"hard-light"},"hard-light"),i.a.createElement("option",{value:"soft-light"},"soft-light"),i.a.createElement("option",{value:"difference"},"difference"),i.a.createElement("option",{value:"exclusion"},"exclusion"),i.a.createElement("option",{value:"hue"},"hue"),i.a.createElement("option",{value:"saturation"},"saturation"),i.a.createElement("option",{value:"color"},"color"),i.a.createElement("option",{value:"luminosity"},"luminosity")))},outer:{"background-color":Q()}};for(var n in t)for(var r in t[n])e.push(i.a.createElement("div",{"data-tip":r,"data-for":r,key:r},t[n][r],i.a.createElement(rn,{id:r,place:"top",effect:"solid"})));return i.a.createElement("div",{id:"vidCustomizers"},e)}(),Qe(!1,{url:d,pos:L,customizations:B,thumbnail:f},a)),i.a.createElement("div",null,i.a.createElement("ul",{className:"vidMeta"},i.a.createElement("li",null,i.a.createElement("label",null,n)),i.a.createElement("li",null,"Duration: ",i.a.createElement("span",null,r)),i.a.createElement("li",null,"Aspect: ",i.a.createElement("span",null,c)),i.a.createElement("li",null,"Width / Height: ",i.a.createElement("span",null,u," / ",o)),i.a.createElement("li",null,"Alignment",i.a.createElement("span",{className:"vidal"},J.map((function(e,t){return i.a.createElement("span",{onClick:function(){F(e)},className:L===e?"cur":"",key:t})}))))),i.a.createElement("div",{className:"extraBtns"},g))))}return e}(),ie,i.a.createElement("header",null,i.a.createElement("label",null,"Video Backgrounds"),i.a.createElement("span",{className:"ico search"}),i.a.createElement("input",{type:"text",placeholder:"Search",value:N,onChange:function(e){return T(e.target.value)}}),i.a.createElement("span",{className:"ico close bbClose",onClick:function(){return o({showExpandedBottomBar:!1})}})),i.a.createElement("main",null,i.a.createElement("div",{className:"nav"},i.a.createElement("span",{onClick:function(){_(b-1<=0?0:b-1)}},"←"),i.a.createElement("span",{className:"c"},b+1),i.a.createElement("span",{onClick:function(){_(b+1)}},"→")),i.a.createElement(ln.a,{options:{wheelPropagation:!1}},i.a.createElement("div",{className:"vids"},m)),i.a.createElement("a",{rel:"noopener noreferrer",className:"copy",href:"https://coverr.co",target:"_blank"},"Free videos by ")))},Du=function(e){var t=e.app,n=t.state,o=t.update,a=n.heroFrame,s=n.currentEl,l=n.videoBgs,u=n.hasJSErr,c=n.showExpandedBottomBar,f=Object(r.useState)(!1),p=E()(f,2),d=p[0],h=p[1],m=[];if(a){var v=!1;try{v=v=a.document.querySelectorAll("[heroclicked]")[0]}catch(e){}v&&(m=function(e){for(var n=[];e;)n.unshift(e),e=e.parentElement;var r=[];n.forEach((function(e){try{e.hasAttribute("editableclass"),e.hasAttribute("editableclass")&&r.push(e)}catch(e){}}));var a=[r.length>10?i.a.createElement("li",{onClick:function(){return h(!d)},key:"pre",className:"pre"},"..."):i.a.createElement("li",{key:"pre",className:"pre"})];return r.length>10&&!d&&(r=r.slice(-10)),r.forEach((function(e,n){if(e.attributes&&ir(e),e.attributes&&e.getAttribute("editableclass")){var r=e.tagName;["H1","H2","H3","H4","H5","H6"].indexOf(r)>-1&&(r="H"),["OL","LI"].indexOf(r)>-1&&(r="UL");var s=ar["small"+r]?ar["small"+r]:ar.smallDIV,l=e.getAttribute("editablesuggestion")?e.getAttribute("editablesuggestion"):e.getAttribute("editableclass");l=l.split(" | ")[0];var u=i.a.createElement("li",{style:{zIndex:100-n},key:n,"data-tip":l,"data-for":"k"+n,onMouseEnter:function(){return o({currentlyHovered:e})},onMouseLeave:function(){return o({currentlyHovered:null})},onClick:function(){return se(e,t)}},i.a.createElement("div",{className:"i"},s),i.a.createElement(rn,{delayShow:100,place:"top",effect:"solid",id:"k"+n}),i.a.createElement("div",{className:"a"}));"HTML"!==r&&a.push(u)}})),a}(v))}var g=c?"exp "+c:"",y="";"pageInspector"===c&&(y=i.a.createElement(Cu,{app:t})),"JSEditor"===c&&(y=i.a.createElement(Pu,{app:t})),"VideoBgs"===c&&(y=i.a.createElement(Mu,{app:t})),Object(r.useEffect)((function(){"VideoBgs"===t.state.showExpandedBottomBar&&o({showExpandedBottomBar:!1})}),[s]);return i.a.createElement("div",{className:g,id:"bottomBar"},y,i.a.createElement("div",{className:"in"},function(){var e=l[s]?i.a.createElement("span",null):"",t=u?i.a.createElement("div",{className:"err"},"!"):"",n=!1,r="";try{n=a.document.querySelectorAll(s)[0]}catch(e){}n||(r="disabled");var f=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{"data-tip":"JS Editor","data-for":"JS",className:"JSEditor"===c?"act":"",id:"BAJS",onClick:function(){o({showExpandedBottomBar:"JSEditor"!==c&&"JSEditor"})}},i.a.createElement(rn,{id:"JS",place:"top",effect:"solid"}),i.a.createElement("b",null,"JS"),t),i.a.createElement("div",{"data-for":"VB","data-tip":"Video Backgrounds",className:"VideoBgs"===c?"act "+r:r,id:"VideoBgsTrigger",onClick:function(){return o({showExpandedBottomBar:"VideoBgs"!==c&&"VideoBgs"})}},i.a.createElement(rn,{id:"VB",place:"top",effect:"solid"}),e,ar.Vids),i.a.createElement("div",{"data-tip":"Page Inspector","data-for":"PI",className:"pageInspector"===c?"act":"",id:"BAinspector",onClick:function(){return o({showExpandedBottomBar:"pageInspector"!==c&&"pageInspector"})}},i.a.createElement(rn,{id:"PI",place:"top",effect:"solid"}),ar.Bug));return i.a.createElement("div",{id:"bottomBarServices"},f)}(),i.a.createElement("div",{className:"spacer"}),i.a.createElement("ul",null,m,i.a.createElement("li",{className:"end"},i.a.createElement("div",{className:"a"}))),i.a.createElement("div",{id:"bottomActions"},i.a.createElement(cu,{app:t}))))};n(434);function Lu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Fu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Fu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Iu=function(e,t){var n,r=[":hover",":active",":visited"],i=Lu(e);try{var o=function(){var e=n.value;if(qe(e)&&(e=Ve(e))&&!e.startsWith(".page-id-")&&!e.startsWith(".page-template-")&&!e.startsWith(".category-")&&!e.startsWith(":")&&".search"!==e){e=e.trim();var i,o=Lu(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;e=e.split(a).join("")}}catch(e){o.e(e)}finally{o.f()}var s=[];try{t.document.querySelectorAll(e),s=t.document.querySelectorAll(e)}catch(e){}s.length&&s.forEach((function(t){var n=t.getAttribute("custom_editableclass")||"",r=t.getAttribute("editableclass")||"",i=[];r.split(" | ").forEach((function(e){return i.push(Ve(e.trim()))}));var o=[],a=[];(n+" | "+r+" | "+e).split(" | ").forEach((function(e){if(e){var t=Ve(e);i.indexOf(t)>-1&&-1===o.indexOf(t)?o.push(t):-1===i.indexOf(t)&&-1===a.indexOf(t)&&a.push(t)}})),t.setAttribute("custom_editableclass",a.join(" | ")),t.setAttribute("editableclass",o.join(" | "))}))}};for(i.s();!(n=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}},Ru=function(e){var t=e.type,n=e.kind,r=e.action,o=e.size,a=n;a=t?t.replace(":","")+"-"+a:a;var s=t;"ctx"===n&&"normal"===t&&(s="normal"),s=s?i.a.createElement("b",null,s):"";var l=n;l+=t?" "+t:"";var u=r?i.a.createElement("span",{className:"ico arrow-down"}):"";r&&(a+=" hasAction");var c=o||"";return i.a.createElement("div",{className:c+" "+n+" "+a+" statusLabel",onClick:function(e){r?r():e.preventDefault()}},i.a.createElement("span",{title:l,className:a+" ico"}),s,u)};function Bu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return $u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function $u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wu=function(e){var t=e.app,n=e.closeMe,o=t.state,a=t.emitChange,s=o.currentElContexts,l=o.currentElContext,u=o.heroFrame,c=o.currentEl,f=o.storedEdits,p=Object(r.useState)(!1),d=E()(p,2),h=d[0],m=d[1],v=Object(r.useState)("normal"),g=E()(v,2),y=g[0],b=g[1],_=s[l].s,w=u.document.querySelectorAll("body")[0];try{w=u.document.querySelectorAll(_)[0]}catch(e){}Object(r.useEffect)((function(){b("normal"),F.forEach((function(e){e&&c.trim().endsWith(e)&&b(e)})),m(!1)}),[c]),Object(r.useEffect)((function(){n&&m(!1)}),[n]);return i.a.createElement(i.a.Fragment,null,i.a.createElement(Ru,{kind:h?"state open":"state",type:y,action:function(){return m(!h)}}),h?function(){var e=w&&"A"===w.tagName?F:["",":hover"],n=[];e.forEach((function(e){e&&n.push(e)}));var r,o=[],s=Bu(e);try{var u=function(){var e=r.value,s=e?e.split(":").join(""):"normal",u=_.trim();u=u.split(e).join("");var p="",d=_.split("::").join(":");d.indexOf(":before")>-1&&(d=d.split(":before").join(""),p=":before"),d.indexOf(":after")>-1&&(d=d.split(":after").join(""),p=":after");var h=Ue(d+e,f)?"edited":"",m=!1;n.forEach((function(e){c.trim().endsWith(e)&&(m=e)}));var v="";e||m||(v="cur"),e&&m===e&&(v="cur"),o.push(i.a.createElement("div",{className:v+" "+h+" item",key:s,onClick:function(){a({currentEl:d+e+p,session:_+e+p,currentElContext:l}),ut(t,"context",e)}},i.a.createElement("span",{className:s+"-state ico"}),s))};for(s.s();!(r=s.n()).done;)u()}catch(e){s.e(e)}finally{s.f()}return i.a.createElement("div",{className:"statusExpander expander"},o)}():"")},zu=function(e){var t=e.visible,n=e.currentEl,o=e.setShowSelectorHistory,a=e.currentElDesc,s=e.app,l=Object(r.useState)([]),u=E()(l,2),c=u[0],f=u[1];Object(r.useEffect)((function(){!function(e,t){var n,r=document.documentElement;n=r.getAttribute("data-child-theme-slug")?r.getAttribute("data-child-theme-slug"):"none";var i=localStorage.getItem("CSSHERO_LATEST_SELECTORS");(i=i?JSON.parse(i):{})[n]||(i[n]={}),i[n][t]||(i[n][t]=e),localStorage.setItem("CSSHERO_LATEST_SELECTORS",JSON.stringify(i)),f(i[n])}(n,a)}),[n]);return i.a.createElement("div",{className:t?"":"hidden",id:"selectorHistory"},i.a.createElement(ln.a,{options:{wheelPropagation:!1}},function(){var e=[],t=function(t){var n=t===c[t]?"":i.a.createElement("span",null,t);e.push(i.a.createElement("div",{className:"el",key:t,onClick:function(){se(c[t],s,t),o(!1)}},n,i.a.createElement("span",null,c[t])))};for(var n in c)t(n);return e.reverse(),e}()))},Hu=function(e){var t=e.app,n=t.state,o=t.emitChange,a=n.currentEl,s=n.storedEdits,l=n.currentElContexts,u=n.currentElContext,c=[],f=[],p=Object(r.useState)(!1),d=E()(p,2),h=d[0],m=d[1],v=0,g=function(e){v++;var n=l[e],r=Ue(n.s,s)?"edited":"",a="normal"===e||"only-this"===e?f:c,p=u===e?"cur":"",d=e===n.d.trim()?e:i.a.createElement(i.a.Fragment,null,e,i.a.createElement("span",{className:"ds"},"(",n.d,")"));a.push(i.a.createElement("div",{key:v,className:p+" "+r+" item ctx "+e,onClick:function(){o({currentEl:n.s,session:n.s,currentElContext:e}),m(!1),ut(t,"context",e)}},i.a.createElement("span",{className:"ico "+e+"-ctx"}),d))};for(var y in l)g(y);var b=i.a.createElement(i.a.Fragment,null,i.a.createElement(Ru,{kind:"ctx",type:u,action:function(){return m(!h)}}),h?i.a.createElement("div",{className:"ctxOpener expander"},i.a.createElement("span",{className:"ico close",onClick:function(){return m(!1)}}),i.a.createElement("p",null,"Choose current selector context, use this for page specific edits."),f,c):"");return a?i.a.createElement("div",{className:"ctxChooser"},b):""},Vu=function(e){var t=e.app,n=t.state,o=t.update,a=n.currentEl,s=n.heroFrame,l=n.currentElDesc,u=n.currentlyClicked,c=Object(r.useState)(!1),f=E()(c,2),p=f[0],d=f[1],h=Object(r.useState)(!1),m=E()(h,2),v=m[0],g=m[1];Object(r.useEffect)((function(){g(!1)}),[a]);var y=K(a).clean,b=a;a.indexOf(":before")>-1&&(b=a.split(":before").join(""),b=i.a.createElement(i.a.Fragment,null,b,i.a.createElement("span",null,":before"))),a.indexOf(":after")>-1&&(b=a.split(":after").join(""),b=i.a.createElement(i.a.Fragment,null,b,i.a.createElement("span",null,":after")));var _=0;try{_=qe(y)?s.document.querySelectorAll(y).length:0}catch(e){console.log(e)}var w=l===a?"":i.a.createElement("span",{className:"s"},l),x=0===_?"cnt no":"cnt",k=v?i.a.createElement("div",{className:"s"},i.a.createElement("label",null,"Selector"),i.a.createElement(En,{app:t,closeMe:g})):i.a.createElement("div",{className:"s"},i.a.createElement("label",null,"Selector"),i.a.createElement("div",{className:"lem sel",title:"click to modify selector",onClick:function(){return g(!v)}},i.a.createElement("div",{onMouseEnter:function(){o({currentlyHovered:u})},onMouseLeave:function(){o({currentlyHovered:null})},className:"cnts"},w,i.a.createElement("b",null,b)),i.a.createElement("div",{"data-for":"selCnt","data-tip":_+" on this page",className:x},_,i.a.createElement(rn,{id:"selCnt",place:"bottom",effect:"solid"})),i.a.createElement("span",{className:p?"ico close ddf":"ico arrow-down ddf",onClick:function(e){e.stopPropagation(),d(!p)}})),i.a.createElement(zu,{app:t,setShowSelectorHistory:d,currentEl:a,visible:p,currentElDesc:l}));return i.a.createElement(i.a.Fragment,null,v?i.a.createElement("div",{className:"changeSelectorMask"}):"",i.a.createElement("div",{className:"c"},i.a.createElement("label",null,"Selection Mode"),i.a.createElement(Hu,{app:t})),k)},Uu=function(e){var t=e.app;return t.state.currentEl?i.a.createElement("div",null,i.a.createElement("label",null,"Status"),i.a.createElement("div",{className:"rem sta"},i.a.createElement(Wu,{app:t}))):""},qu=function(e){var t=e.app,n=Object(r.useState)(!1),o=E()(n,2),a=o[0],s=o[1],l=i.a.createElement(i.a.Fragment,null,t.state.currentEl?i.a.createElement(Vu,{app:t}):"",i.a.createElement(Uu,{app:t})),u=a?i.a.createElement(hu,{app:t,closeMe:function(){return s(!1)}}):l,c=t.state.currentEl?i.a.createElement(i.a.Fragment,null,u,i.a.createElement("div",{className:"spacer"}),i.a.createElement("div",{id:"addSelectorWrap"},i.a.createElement("span",{"data-for":"AddEdSel","data-tip":"Add Selector",className:a?"act":"",id:"BAadder",onClick:function(){return s(!a)}},a?"":i.a.createElement(rn,{id:"AddEdSel",place:"bottom",effect:"solid"})))):i.a.createElement("p",null,"Please select an element on the page");return i.a.createElement("div",{id:"selectorBar"},c)};function Gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gu(Object(n),!0).forEach((function(t){x()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}var Ku=de(),Ju=window.LoadHEROWorker?window.LoadHEROWorker:new Worker("./worker.js"),Zu={code:"{}",before:"",after:""},Qu=function(e){v()(n,e);var t=Yu(n);function n(){var e;return c()(this,n),e=t.call(this),x()(h()(e),"emitChange",(function(t){var n=performance.now(),r=Xu({},e.state.storedEdits);if((r=we(r=r[e.state.currentMq]||"").s).split("{").length===r.split("}").length){Ae(h()(e)),function(e){var t=e.worker,n="";for(var r in e.state.storedEdits)n+=e.state.storedEdits[r];n=xe(n=we(n).s,"|").s,t.postMessage({type:"selectorsScan",value:n})}(h()(e));var i=Se(h()(e),t.currentEl,t.currentMq),o=function(e){var t={};for(var n in e.state.storedEdits){var r=e.state.storedEdits[n];if(r){var i=ke(r=xe(r=we(r).s).s),o=(r=i.s).match(/@(.*?):/g);for(var a in o)if(-1===o[a].indexOf(";")&&!o[a].startsWith("@media")&&!o[a].startsWith("@import")&&!o[a].startsWith("@-")){var s=r.split(o[a])[1];if((s=s.split(";")[0].trim()).indexOf("\n")>-1&&(s=s.split("\n")[0]),s.indexOf("[[--parens")>-1){var l=s.split("--]]}")[0];if(l){var u=l.split("{[[--")[0];l=l.split("{[[--")[1],s=u+""+i.b["{[[--"+l+"--]]}"]}}var c=o[a].replace(/:/g,"").trim();-1===c.indexOf("{")&&(t[c]=s)}}}return t}(h()(e));(t=Xu(Xu({},t),{},{currentNode:i,lastWorking:i,projectVars:o,session:t.currentEl})).currentElContext||(t.currentElContext=e.state.currentElContext)}else t.hasErr=!0,t.errMsg=":( unmatching }{'s";var a=Xu(Xu({},e.state),t);e.setState(a,(function(){var t=performance.now();console.log(t-n),Be(Xu(Xu({},e.theAppOb()),{},{state:a}))}))})),e.state={storedEdits:Ku.storedEdits,currentEl:"",currentElDesc:"",currentElContext:"normal",currentElContexts:{},hasJSErr:!1,hasErr:!1,errLine:!1,currentMq:"all",heroFrame:!1,mqOrder:Ku.mqOrder,lastWorking:Zu,viewSettings:L,currentNode:Zu,inspectorFoldedLines:[],flatSnippets:Ei,history:[],historyCurStep:0,currentlyHovered:null,requiredGfonts:[],gFonts:{},navigationMode:!1,currentlyRightClicked:null,showExpandedBottomBar:!1,animatedEls:Ku.animatedEls,allEdits:{},snippetPreviewStyles:"",heroAlert:!1,editingSnippet:!1,showHovers:!1,codeStyleAdjusters:!1,session:1,frameSession:0,appSession:Date.now(),forceOpen:null,currentlyClicked:null,storedJS:Ku.storedJS,videoBgs:Ku.videoBgs,updateFromParam:!1,customFonts:Ku.customFonts,frameIsLoading:!0,actionLog:[],heroRocket:[]},e.worker=Ju,e.updateState=e.updateState.bind(h()(e)),e.emitChange=e.emitChange.bind(h()(e)),e}return p()(n,[{key:"initializeAnims",value:function(){var e=this.state,t=e.heroFrame,n=e.animatedEls;"function"==typeof t.csshero_initialize_animations&&t.csshero_initialize_animations(n)}},{key:"componentDidMount",value:function(){var e,t,n=this,r=this.state,o=r.storedEdits,a=r.animatedEls;"{}"===JSON.stringify(a)&&'{"all":""}'===JSON.stringify(o)&&(e=this.theAppOb(),t=e.update,localStorage.getItem("CSSHERONOV4UPDATE")||ce({action:"csshero_get_vintage_data"},(function(e){var n=e;void 0!==e&&(n.includes("novintagedata")||t({heroAlert:{title:"Import V4 Data?",content:"Hey, looks like you have some V4 edits, do you want me to import them?",type:"confirm",customActions:i.a.createElement("span",{style:{marginRight:"auto"},className:"btn secondary",onClick:function(){t({heroAlert:!1}),localStorage.setItem("CSSHERONOV4UPDATE","nov4updateplease")}},"No, don't ask me again"),callBack:function(){var e=!1;try{e=JSON.parse(n)}catch(e){console.log(e)}if(e){var r={storedEdits:Ee(e.less),animatedEls:e.animations};t(r)}}}}))}))),sessionStorage.removeItem("HEROSESSIONHISTORY"),ut(this.theAppOb(),"load","startup"),this.sendDetermineEdits(),function(e){fetch("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyDxladV-apMhr_5M_D_iR-pe6mqJ02gEmI").then((function(e){return e.json()})).then((function(t){var n={items:t.items,cats:{},plain:[]};t.items.map((function(e){var t=e.category;return n[t]||(n[t]=[]),n.plain.push(e.family),n[t].push(e.family)})),e.setState({gFonts:n})}))}(this);var s=localStorage.getItem("CSSHERO5_viewSettings");if(s){(s=JSON.parse(s)).curPanel=null,s.showTab="properties",s.showSiteBrowser=!1;var l=Xu({},this.state.viewSettings);for(var u in s)l[u]=s[u];this.setState({viewSettings:l})}Ju.onmessage=function(e){var t=n.state,r=t.heroFrame,i=t.hasErr;if("selectorsScan"===e.data.type){var o=e.data.value;Iu(o,r)}if("determineEdits"===e.data.type&&function(e,t){var n={};for(var r in e){var i,o=[],a=Z(e[r]);try{for(a.s();!(i=a.n()).done;){var s=i.value;if((s=Ve(s)).indexOf(";")>-1){var l,u=Z(s.split(";"));try{for(u.s();!(l=u.n()).done;){var c=l.value;c.trim()&&o.push(c.trim())}}catch(e){u.e(e)}finally{u.f()}}else s.trim()&&o.push(s.trim())}}catch(e){a.e(e)}finally{a.f()}n[r]=o}t.update({allEdits:n})}(e.data.value,n.theAppOb()),"snippetsLess"===e.data.type){var a=e.data.value;n.setState({snippetPreviewStyles:a,session:Date.now()})}if("setup"===e.data.type)if(e.data.error)n.setState({errLine:e.data.error.line,hasErr:!0,errMsg:e.data.error.message,session:Date.now()});else if(i&&n.setState({errLine:!1,hasErr:!1,errMsg:null,session:Date.now()}),r){var s=function(e,t){var n=Oe(e),r=n.has,i=n.ret;return t||e.setState({requiredGfonts:r}),i}(n),l=r.document.getElementById("heroStyle"),u=new CustomEvent("peerSend",{detail:s+e.data.css});r.document.dispatchEvent(u),l&&(l.innerHTML=s+e.data.css),n.setState({session:Date.now()})}}}},{key:"sendDetermineEdits",value:function(){var e={};for(var t in this.state.storedEdits)e[t]=we(this.state.storedEdits[t]).s;Ju.postMessage({type:"determineEdits",value:e})}},{key:"theAppOb",value:function(){return{update:this.updateState,state:this.state,emitChange:this.emitChange,worker:this.worker,t:this}}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,r=n.currentEl,i=n.viewSettings,o=n.storedEdits,a=n.mqOrder,s=n.heroFrame,u=n.codeStyleAdjusters,c=i.inspectorTheme;if(!t.heroFrame&&s&&(this.emitChange({}),window.location.hash.indexOf("#reset")>-1&&nt(this.theAppOb())),window.location.hash.indexOf("#state")>-1&&nt(this.theAppOb()),t.viewSettings.appTheme!==this.state.viewSettings.appTheme){var f,p=document.querySelector(":root");(f=p.classList).remove.apply(f,l()(p.classList)),p.classList.add(this.state.viewSettings.appTheme)}if(t.frameSession!==this.state.frameSession&&pe(this),!u||t.viewSettings.inspectorTheme!==c){var d=function(e){var t="";e=".cm-s-"+e;var n=document.querySelectorAll(e)[0];if(n){var r=window.getComputedStyle(n,null),i=r.getPropertyValue("background-color"),o=r.getPropertyValue("color");t+="#root #heroWrapper .toggler .ico.arrow-down:before{border-bottom-color:"+o+"} #root #codeEditor .changeSelector,#root #inspectorTopActions,#root #editor #editorSwitch.insp > .insp:after,#root #editor #editorSwitch.insp > .insp,#root #editor #codeEditorSwitch .toggler:after,#root #editor #codeEditorSwitch .toggler,#heroWrapper #CSSInspector > .ps .title{background:"+i+";color:"+o+"} #root #heroWrapper .CodeMirror-foldmarker{background:"+o+";color:"+i+";} #JSConsole{color:"+o+";}#JSConsole,#JSConsole .it time{background:"+i+";} #libManager{color:"+o+";} #libManager .deps > span:before{background:"+o+";} #inspector #mirrorSearchReplace,#JSEditor{color:"+o+";background:"+i+"}"}return t||!1}(c);d&&this.setState({codeStyleAdjusters:d})}var h=t.storedEdits!==o,m=t.mqOrder!==a,v=t.currentEl!==r;if((h||m)&&this.emitChange(this.state),h&&this.sendDetermineEdits(),JSON.stringify(t.animatedEls)!==JSON.stringify(this.state.animatedEls)&&this.initializeAnims(),t.viewSettings!==this.state.viewSettings&&localStorage.setItem("CSSHERO5_viewSettings",JSON.stringify(i)),r&&v){var g=r.indexOf("()")>-1||r.indexOf("(@")>-1;this.setState({editingSnippet:g})}}},{key:"updateState",value:function(e,t){var n=this;this.setState(e,(function(){t&&t(n.state)}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.codeStyleAdjusters,r=t.viewSettings,o=t.heroFrame,a=t.currentNode,s=t.heroAlert,l=t.navigationMode,u=t.showExpandedBottomBar,c=t.editingSnippet,f=r.detached,p=r.editorW,d=r.inspectorFontSize,h=r.inspectorLineHeight,m=r.pageInspectorH,v=r.curPanel,g=r.showSiteBrowser,y=r.interfaceFontSize,b=o?i.a.createElement(ji.a,{handle:".detached #editorSwitch",bounds:"#contents",defaultPosition:{x:0,y:0},position:null,scale:1},i.a.createElement("div",{id:"editor",className:"mode-"+r.mode},i.a.createElement(Co,{app:this.theAppOb(),data:a}))):"",_=i.a.createElement("span",{onClick:function(){e.setState({heroAlert:!1})},className:"btn secondary"},"Cancel"),w=s.callBack?i.a.createElement("span",{className:"btn primary",onClick:function(){s.callBack(),e.setState({heroAlert:!1})}},"Ok"):"",x=s.customActions?s.customActions:"",k=s?i.a.createElement("div",{className:s.type,id:"heroAlert"},i.a.createElement("div",null,i.a.createElement("header",null,i.a.createElement("span",null,s.title),i.a.createElement("span",{className:"ico close",onClick:function(){e.setState({heroAlert:!1})}})),i.a.createElement("main",null,s.content),i.a.createElement("div",{className:"extraBtns"},x,_,w))):"",E=(g?"sbOn":"")+" "+(v?"showSidebar":"")+" "+(f?"detached":"")+" "+(l?"navigating":"")+" "+(u?"bbexp":"")+" "+(c?"editingSnippet":"")+" "+("wysi"===r.mode?"":"inspectorOn")+" "+("JSEditor"===u?"JSEditorOn":""),C=document.getElementById("topBar")?document.getElementById("topBar").getBoundingClientRect().height:0,S=["#overlayContents{font-size:"+y+"px}","body #heroWrapper:not(.detached) #selectorBar{padding-left:"+p+"}","body #heroWrapper{font-size:"+y+"px}","body #heroWrapper #editor{width:"+p+"}","body #heroWrapper #contents{width:calc(100% - "+p+");left:"+p+"} body #heroWrapper #bottomBar, body #heroWrapper #topBar{width:calc(100% - "+p+");left:"+p+"}","body #heroWrapper #AddSelector input[type=text],body #heroWrapper #codeEditor .changeSelector .ce,body #heroWrapper .CodeMirror,#codeEditorFakeLabel,#JSConsole{font-size:"+d+"px;line-height:"+h+"}","#bottomBar.exp{height:"+m+";}",".bbexp #contents{height:calc(100vh - "+m+" - "+2*C+"px)}","#htmlTree > .ps{height:calc("+m+" - "+2*C+"px);}",n];return i.a.createElement("div",{id:"heroWrapper",className:E},i.a.createElement("style",null,S.join("")),k,i.a.createElement(Jl,{app:this.theAppOb()}),i.a.createElement(qu,{app:this.theAppOb()}),b,i.a.createElement(cr,{app:this.theAppOb(),navModeChecker:this}),i.a.createElement(Du,{app:this.theAppOb()}))}}]),n}(i.a.Component),ec=n(134);a.a.render(i.a.createElement(Qu,null),document.getElementById("root")),ec.a()}]);
©
2018.