!function(t){var e="undefined"==typeof module?t.baidu=t.baidu||{}:module.exports;e.template=function(e,n){var o=function(){if(!t.document)return i._compile(e);var n=document.getElementById(e);if(n){if(i.cache[e])return i.cache[e];var o=/^(textarea|input)$/i.test(n.nodeName)?n.value:n.innerHTML;return i._compile(o)}return i._compile(e)}(),r=i._isObject(n)?o(n):o;return o=null,r};var i=e.template;i.versions=i.versions||[],i.versions.push("1.0.6"),i.cache={},i.LEFT_DELIMITER=i.LEFT_DELIMITER||"{%",i.RIGHT_DELIMITER=i.RIGHT_DELIMITER||"%}",i.ESCAPE=!0,i._encodeHTML=function(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/\\/g,"\").replace(/"/g,""").replace(/'/g,"'")},i._encodeReg=function(t){return String(t).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},i._encodeEventHTML=function(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\n/g,"\n").replace(/\\r/g,"\r")},i._compile=function(t){var e="var _template_fun_array=[];\nvar fn=(function(__data__){\nvar _template_varName='';\nfor(name in __data__){\n_template_varName+=('var '+name+'=__data__[\"'+name+'\"];');\n};\neval(_template_varName);\n_template_fun_array.push('"+i._analysisStr(t)+"');\n_template_varName=null;\n})(_template_object);\nfn = null;\nreturn _template_fun_array.join('');\n";return new Function("_template_object",e)},i._isObject=function(t){return"function"==typeof t||!(!t||"object"!=typeof t)},i._analysisStr=function(t){var e=i.LEFT_DELIMITER,n=i.RIGHT_DELIMITER,o=i._encodeReg(e),r=i._encodeReg(n);return t=String(t).replace(new RegExp("("+o+"[^"+r+"]*)//.*\n","g"),"$1").replace(new RegExp("","g"),"").replace(new RegExp(o+"\\*.*?\\*"+r,"g"),"").replace(new RegExp("[\\r\\t\\n]","g"),"").replace(new RegExp(o+"(?:(?!"+r+")[\\s\\S])*"+r+"|((?:(?!"+o+")[\\s\\S])+)","g"),function(t,e){var i="";if(e)for(i=e.replace(/\\/g,"\").replace(/'/g,"'");/<[^<]*?'[^<]*?>/g.test(i);)i=i.replace(/(<[^<]*?)'([^<]*?>)/g,"$1\r$2");else i=t;return i}),t=t.replace(new RegExp("("+o+"[\\s]*?var[\\s]*?.*?[\\s]*?[^;])[\\s]*?"+r,"g"),"$1;"+n).replace(new RegExp("("+o+":?[hvu]?[\\s]*?=[\\s]*?[^;|"+r+"]*?);[\\s]*?"+r,"g"),"$1"+n).split(e).join("\t"),t=i.ESCAPE?t.replace(new RegExp("\\t=(.*?)"+r,"g"),"',typeof($1) === 'undefined'?'':baidu.template._encodeHTML($1),'"):t.replace(new RegExp("\\t=(.*?)"+r,"g"),"',typeof($1) === 'undefined'?'':$1,'"),t=t.replace(new RegExp("\\t:h=(.*?)"+r,"g"),"',typeof($1) === 'undefined'?'':baidu.template._encodeHTML($1),'").replace(new RegExp("\\t(?::=|-)(.*?)"+r,"g"),"',typeof($1)==='undefined'?'':$1,'").replace(new RegExp("\\t:u=(.*?)"+r,"g"),"',typeof($1)==='undefined'?'':encodeURIComponent($1),'").replace(new RegExp("\\t:v=(.*?)"+r,"g"),"',typeof($1)==='undefined'?'':baidu.template._encodeEventHTML($1),'").split("\t").join("');").split(n).join("_template_fun_array.push('").split("\r").join("\\'")}}(window),!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.GeoPattern=t()}}(function(){return function t(e,i,n){function o(s,a){if(!i[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);throw new Error("Cannot find module '"+s+"'")}var h=i[s]={exports:{}};e[s][0].call(h.exports,function(t){var i=e[s][1][t];return o(i?i:t)},h,h.exports,t,e,i,n)}return i[s].exports}for(var r="function"==typeof require&&require,s=0;s.5?h/(2-s-a):h/(s+a),s){case e:o=(i-n)/h+(n>i?6:0);break;case i:o=(n-e)/h+2;break;case n:o=(e-i)/h+4}o/=6}return{h:o,s:r,l:l}}function r(t){function e(t,e,i){return 0>i&&(i+=1),i>1&&(i-=1),1/6>i?t+6*(e-t)*i:.5>i?e:2/3>i?t+(e-t)*(2/3-i)*6:t}var i,n,o,r=t.h,s=t.s,a=t.l;if(0===s)i=n=o=a;else{var l=.5>a?a*(1+s):a+s-a*s,h=2*a-l;i=e(h,l,r+1/3),n=e(h,l,r),o=e(h,l,r-1/3)}return{r:Math.round(255*i),g:Math.round(255*n),b:Math.round(255*o)}}e.exports={hex2rgb:i,rgb2hex:n,rgb2hsl:o,hsl2rgb:r,rgb2rgbString:function(t){return"rgb("+[t.r,t.g,t.b].join(",")+")"}}},{}],3:[function(t,e){!function(i){"use strict";function n(t){return function(e,i){return"object"==typeof e&&(i=e,e=null),(null===e||void 0===e)&&(e=(new Date).toString()),i||(i={}),t.call(this,e,i)}}var o=t("./pattern"),r=e.exports={generate:n(function(t,e){return new o(t,e)})};i&&(i.fn.geopattern=n(function(t,e){return this.each(function(){var n=i(this).attr("data-title-sha");n&&(e=i.extend({hash:n},e));var o=r.generate(t,e);i(this).css("background-image",o.toDataUrl())})}))}("undefined"!=typeof jQuery?jQuery:null)},{"./pattern":4}],4:[function(t,e){(function(i){"use strict";function n(t,e,i){return parseInt(t.substr(e,i||1),16)}function o(t,e,i,n,o){var r=parseFloat(t),s=i-e,a=o-n;return(r-e)*a/s+n}function r(t){return t%2===0?k:C}function s(t){return o(t,0,15,S,I)}function a(t){var e=t,i=e/2,n=Math.sin(60*Math.PI/180)*e;return[0,n,i,0,i+e,0,2*e,n,i+e,2*n,i,2*n,0,n].join(",")}function l(t,e){var i=.66*e;return[[0,0,t/2,e-i,t/2,e,0,i,0,0],[t/2,e-i,t,0,t,i,t/2,e,t/2,e-i]].map(function(t){return t.join(",")})}function h(t){return[[t,0,t,3*t],[0,t,3*t,t]]}function c(t){var e=t,i=.33*e;return[i,0,e-i,0,e,i,e,e-i,e-i,e,i,e,0,e-i,0,i,i,0].join(",")}function u(t,e){var i=t/2;return[i,0,t,e,0,e,i,0].join(",")}function p(t,e){return[t/2,0,t,e/2,t/2,e,0,e/2].join(",")}function f(t){return[0,0,t,t,0,t,0,0].join(",")}function d(t,e,i,n,o){var a=f(n),l=s(o[0]),h=r(o[0]),c={stroke:E,"stroke-opacity":x,"fill-opacity":l,fill:h};t.polyline(a,c).transform({translate:[e+n,i],scale:[-1,1]}),t.polyline(a,c).transform({translate:[e+n,i+2*n],scale:[1,-1]}),l=s(o[1]),h=r(o[1]),c={stroke:E,"stroke-opacity":x,"fill-opacity":l,fill:h},t.polyline(a,c).transform({translate:[e+n,i+2*n],scale:[-1,-1]}),t.polyline(a,c).transform({translate:[e+n,i],scale:[1,1]})}function g(t,e,i,n,o){var a=s(o),l=r(o),h=f(n),c={stroke:E,"stroke-opacity":x,"fill-opacity":a,fill:l};t.polyline(h,c).transform({translate:[e,i+n],scale:[1,-1]}),t.polyline(h,c).transform({translate:[e+2*n,i+n],scale:[-1,-1]}),t.polyline(h,c).transform({translate:[e,i+n],scale:[1,1]}),t.polyline(h,c).transform({translate:[e+2*n,i+n],scale:[-1,1]})}function v(t,e){var i=t/2;return[0,0,e,i,0,t,0,0].join(",")}var m=t("extend"),y=t("./color"),b=t("./sha1"),w=t("./svg"),T={baseColor:"#933c3c"},_=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],C="#222",k="#ddd",E="#000",x=.02,S=.02,I=.15,A=e.exports=function(t,e){return this.opts=m({},T,e),this.hash=e.hash||b(t),this.svg=new w,this.generateBackground(),this.generatePattern(),this};A.prototype.toSvg=function(){return this.svg.toString()},A.prototype.toString=function(){return this.toSvg()},A.prototype.toBase64=function(){var t,e=this.toSvg();return t="undefined"!=typeof window&&"function"==typeof window.btoa?window.btoa(e):new i(e).toString("base64")},A.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},A.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},A.prototype.generateBackground=function(){var t,e,i,r;this.opts.color?i=y.hex2rgb(this.opts.color):(e=o(n(this.hash,14,3),0,4095,0,359),r=n(this.hash,17),t=y.rgb2hsl(y.hex2rgb(this.opts.baseColor)),t.h=(360*t.h-e+360)%360/360,t.s=r%2===0?Math.min(1,(100*t.s+r)/100):Math.max(0,(100*t.s-r)/100),i=y.hsl2rgb(t)),this.color=y.rgb2hex(i),this.svg.rect(0,0,"100%","100%",{fill:y.rgb2rgbString(i)})},A.prototype.generatePattern=function(){var t=this.opts.generator;if(t){if(_.indexOf(t)<0)throw new Error("The generator "+t+" does not exist.")}else t=_[n(this.hash,20)];return this["geo"+t.slice(0,1).toUpperCase()+t.slice(1)]()},A.prototype.geoHexagons=function(){var t,e,i,l,h,c,u,p,f=n(this.hash,0),d=o(f,0,15,8,60),g=d*Math.sqrt(3),v=2*d,m=a(d);for(this.svg.setWidth(3*v+3*d),this.svg.setHeight(6*g),i=0,p=0;6>p;p++)for(u=0;6>u;u++)c=n(this.hash,i),t=u%2===0?p*g:p*g+g/2,l=s(c),e=r(c),h={fill:e,"fill-opacity":l,stroke:E,"stroke-opacity":x},this.svg.polyline(m,h).transform({translate:[u*d*1.5-v/2,t-g/2]}),0===u&&this.svg.polyline(m,h).transform({translate:[6*d*1.5-v/2,t-g/2]}),0===p&&(t=u%2===0?6*g:6*g+g/2,this.svg.polyline(m,h).transform({translate:[u*d*1.5-v/2,t-g/2]})),0===u&&0===p&&this.svg.polyline(m,h).transform({translate:[6*d*1.5-v/2,5*g+g/2]}),i++},A.prototype.geoSineWaves=function(){var t,e,i,a,l,h,c,u=Math.floor(o(n(this.hash,0),0,15,100,400)),p=Math.floor(o(n(this.hash,1),0,15,30,100)),f=Math.floor(o(n(this.hash,2),0,15,3,30));for(this.svg.setWidth(u),this.svg.setHeight(36*f),e=0;36>e;e++)h=n(this.hash,e),i=s(h),t=r(h),c=u/4*.7,l={fill:"none",stroke:t,opacity:i,"stroke-width":""+f+"px"},a="M0 "+p+" C "+c+" 0, "+(u/2-c)+" 0, "+u/2+" "+p+" S "+(u-c)+" "+2*p+", "+u+" "+p+" S "+(1.5*u-c)+" 0, "+1.5*u+", "+p,this.svg.path(a,l).transform({translate:[-u/4,f*e-1.5*p]}),this.svg.path(a,l).transform({translate:[-u/4,f*e-1.5*p+36*f]})},A.prototype.geoChevrons=function(){var t,e,i,a,h,c,u,p=o(n(this.hash,0),0,15,30,80),f=o(n(this.hash,0),0,15,30,80),d=l(p,f);for(this.svg.setWidth(6*p),this.svg.setHeight(6*f*.66),e=0,u=0;6>u;u++)for(c=0;6>c;c++)h=n(this.hash,e),i=s(h),t=r(h),a={stroke:E,"stroke-opacity":x,fill:t,"fill-opacity":i,"stroke-width":1},this.svg.group(a).transform({translate:[c*p,u*f*.66-f/2]}).polyline(d).end(),0===u&&this.svg.group(a).transform({translate:[c*p,6*f*.66-f/2]}).polyline(d).end(),e+=1},A.prototype.geoPlusSigns=function(){var t,e,i,a,l,c,u,p,f=o(n(this.hash,0),0,15,10,25),d=3*f,g=h(f);for(this.svg.setWidth(12*f),this.svg.setHeight(12*f),i=0,p=0;6>p;p++)for(u=0;6>u;u++)c=n(this.hash,i),a=s(c),e=r(c),t=p%2===0?0:1,l={fill:e,stroke:E,"stroke-opacity":x,"fill-opacity":a},this.svg.group(l).transform({translate:[u*d-u*f+t*f-f,p*d-p*f-d/2]}).rect(g).end(),0===u&&this.svg.group(l).transform({translate:[4*d-u*f+t*f-f,p*d-p*f-d/2]}).rect(g).end(),0===p&&this.svg.group(l).transform({translate:[u*d-u*f+t*f-f,4*d-p*f-d/2]}).rect(g).end(),0===u&&0===p&&this.svg.group(l).transform({translate:[4*d-u*f+t*f-f,4*d-p*f-d/2]}).rect(g).end(),i++},A.prototype.geoXes=function(){var t,e,i,a,l,c,u,p,f=o(n(this.hash,0),0,15,10,25),d=h(f),g=3*f*.943;for(this.svg.setWidth(3*g),this.svg.setHeight(3*g),i=0,p=0;6>p;p++)for(u=0;6>u;u++)c=n(this.hash,i),a=s(c),t=u%2===0?p*g-.5*g:p*g-.5*g+g/4,e=r(c),l={fill:e,opacity:a},this.svg.group(l).transform({translate:[u*g/2-g/2,t-p*g/2],rotate:[45,g/2,g/2]}).rect(d).end(),0===u&&this.svg.group(l).transform({translate:[6*g/2-g/2,t-p*g/2],rotate:[45,g/2,g/2]}).rect(d).end(),0===p&&(t=u%2===0?6*g-g/2:6*g-g/2+g/4,this.svg.group(l).transform({translate:[u*g/2-g/2,t-6*g/2],rotate:[45,g/2,g/2]}).rect(d).end()),5===p&&this.svg.group(l).transform({translate:[u*g/2-g/2,t-11*g/2],rotate:[45,g/2,g/2]}).rect(d).end(),0===u&&0===p&&this.svg.group(l).transform({translate:[6*g/2-g/2,t-6*g/2],rotate:[45,g/2,g/2]}).rect(d).end(),i++},A.prototype.geoOverlappingCircles=function(){var t,e,i,a,l,h,c,u=n(this.hash,0),p=o(u,0,15,25,200),f=p/2;for(this.svg.setWidth(6*f),this.svg.setHeight(6*f),e=0,c=0;6>c;c++)for(h=0;6>h;h++)l=n(this.hash,e),i=s(l),t=r(l),a={fill:t,opacity:i},this.svg.circle(h*f,c*f,f,a),0===h&&this.svg.circle(6*f,c*f,f,a),0===c&&this.svg.circle(h*f,6*f,f,a),0===h&&0===c&&this.svg.circle(6*f,6*f,f,a),e++},A.prototype.geoOctogons=function(){var t,e,i,a,l,h,u=o(n(this.hash,0),0,15,10,60),p=c(u);for(this.svg.setWidth(6*u),this.svg.setHeight(6*u),e=0,h=0;6>h;h++)for(l=0;6>l;l++)a=n(this.hash,e),i=s(a),t=r(a),this.svg.polyline(p,{fill:t,"fill-opacity":i,stroke:E,"stroke-opacity":x}).transform({translate:[l*u,h*u]}),e+=1},A.prototype.geoSquares=function(){var t,e,i,a,l,h,c=o(n(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*c),this.svg.setHeight(6*c),e=0,h=0;6>h;h++)for(l=0;6>l;l++)a=n(this.hash,e),i=s(a),t=r(a),this.svg.rect(l*c,h*c,c,c,{fill:t,"fill-opacity":i,stroke:E,"stroke-opacity":x}),e+=1},A.prototype.geoConcentricCircles=function(){var t,e,i,a,l,h,c=n(this.hash,0),u=o(c,0,15,10,60),p=u/5;for(this.svg.setWidth(6*(u+p)),this.svg.setHeight(6*(u+p)),e=0,h=0;6>h;h++)for(l=0;6>l;l++)a=n(this.hash,e),i=s(a),t=r(a),this.svg.circle(l*u+l*p+(u+p)/2,h*u+h*p+(u+p)/2,u/2,{fill:"none",stroke:t,opacity:i,"stroke-width":p+"px"}),a=n(this.hash,39-e),i=s(a),t=r(a),this.svg.circle(l*u+l*p+(u+p)/2,h*u+h*p+(u+p)/2,u/4,{fill:t,"fill-opacity":i}),e+=1},A.prototype.geoOverlappingRings=function(){var t,e,i,a,l,h,c,u=n(this.hash,0),p=o(u,0,15,10,60),f=p/4;for(this.svg.setWidth(6*p),this.svg.setHeight(6*p),e=0,c=0;6>c;c++)for(h=0;6>h;h++)l=n(this.hash,e),i=s(l),t=r(l),a={fill:"none",stroke:t,opacity:i,"stroke-width":f+"px"},this.svg.circle(h*p,c*p,p-f/2,a),0===h&&this.svg.circle(6*p,c*p,p-f/2,a),0===c&&this.svg.circle(h*p,6*p,p-f/2,a),0===h&&0===c&&this.svg.circle(6*p,6*p,p-f/2,a),e+=1},A.prototype.geoTriangles=function(){var t,e,i,a,l,h,c,p,f=n(this.hash,0),d=o(f,0,15,15,80),g=d/2*Math.sqrt(3),v=u(d,g);for(this.svg.setWidth(3*d),this.svg.setHeight(6*g),e=0,p=0;6>p;p++)for(c=0;6>c;c++)h=n(this.hash,e),i=s(h),t=r(h),l={fill:t,"fill-opacity":i,stroke:E,"stroke-opacity":x},a=p%2===0?c%2===0?180:0:c%2!==0?180:0,this.svg.polyline(v,l).transform({translate:[c*d*.5-d/2,g*p],rotate:[a,d/2,g/2]}),0===c&&this.svg.polyline(v,l).transform({translate:[6*d*.5-d/2,g*p],rotate:[a,d/2,g/2]}),e+=1},A.prototype.geoDiamonds=function(){var t,e,i,a,l,h,c,u,f=o(n(this.hash,0),0,15,10,50),d=o(n(this.hash,1),0,15,10,50),g=p(f,d);for(this.svg.setWidth(6*f),this.svg.setHeight(3*d),i=0,u=0;6>u;u++)for(c=0;6>c;c++)h=n(this.hash,i),a=s(h),e=r(h),l={fill:e,"fill-opacity":a,stroke:E,"stroke-opacity":x},t=u%2===0?0:f/2,this.svg.polyline(g,l).transform({translate:[c*f-f/2+t,d/2*u-d/2]}),0===c&&this.svg.polyline(g,l).transform({translate:[6*f-f/2+t,d/2*u-d/2]}),0===u&&this.svg.polyline(g,l).transform({translate:[c*f-f/2+t,d/2*6-d/2]}),0===c&&0===u&&this.svg.polyline(g,l).transform({translate:[6*f-f/2+t,d/2*6-d/2]}),i+=1},A.prototype.geoNestedSquares=function(){var t,e,i,a,l,h,c,u=o(n(this.hash,0),0,15,4,12),p=7*u;for(this.svg.setWidth(6*(p+u)+6*u),this.svg.setHeight(6*(p+u)+6*u),e=0,c=0;6>c;c++)for(h=0;6>h;h++)l=n(this.hash,e),i=s(l),t=r(l),a={fill:"none",stroke:t,opacity:i,"stroke-width":u+"px"},this.svg.rect(h*p+h*u*2+u/2,c*p+c*u*2+u/2,p,p,a),l=n(this.hash,39-e),i=s(l),t=r(l),a={fill:"none",stroke:t,opacity:i,"stroke-width":u+"px"},this.svg.rect(h*p+h*u*2+u/2+2*u,c*p+c*u*2+u/2+2*u,3*u,3*u,a),e+=1},A.prototype.geoMosaicSquares=function(){var t,e,i,r=o(n(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),t=0,i=0;4>i;i++)for(e=0;4>e;e++)e%2===0?i%2===0?g(this.svg,e*r*2,i*r*2,r,n(this.hash,t)):d(this.svg,e*r*2,i*r*2,r,[n(this.hash,t),n(this.hash,t+1)]):i%2===0?d(this.svg,e*r*2,i*r*2,r,[n(this.hash,t),n(this.hash,t+1)]):g(this.svg,e*r*2,i*r*2,r,n(this.hash,t)),t+=1},A.prototype.geoPlaid=function(){var t,e,i,o,a,l,h,c=0,u=0;for(e=0;36>e;)o=n(this.hash,e),c+=o+5,h=n(this.hash,e+1),i=s(h),t=r(h),a=h+5,this.svg.rect(0,c,"100%",a,{opacity:i,fill:t}),c+=a,e+=2;for(e=0;36>e;)o=n(this.hash,e),u+=o+5,h=n(this.hash,e+1),i=s(h),t=r(h),l=h+5,this.svg.rect(u,0,l,"100%",{opacity:i,fill:t}),u+=l,e+=2;this.svg.setWidth(u),this.svg.setHeight(c)},A.prototype.geoTessellation=function(){var t,e,i,a,l,h=o(n(this.hash,0),0,15,5,40),c=h*Math.sqrt(3),u=2*h,p=h/2*Math.sqrt(3),f=v(h,p),d=3*h+2*p,g=2*c+2*h;for(this.svg.setWidth(d),this.svg.setHeight(g),e=0;20>e;e++)switch(l=n(this.hash,e),i=s(l),t=r(l),a={stroke:E,"stroke-opacity":x,fill:t,"fill-opacity":i,"stroke-width":1},e){case 0:this.svg.rect(-h/2,-h/2,h,h,a),this.svg.rect(d-h/2,-h/2,h,h,a),this.svg.rect(-h/2,g-h/2,h,h,a),this.svg.rect(d-h/2,g-h/2,h,h,a);break;case 1:this.svg.rect(u/2+p,c/2,h,h,a);break;case 2:this.svg.rect(-h/2,g/2-h/2,h,h,a),this.svg.rect(d-h/2,g/2-h/2,h,h,a);break;case 3:this.svg.rect(u/2+p,1.5*c+h,h,h,a);break;case 4:this.svg.polyline(f,a).transform({translate:[h/2,-h/2],rotate:[0,h/2,p/2]}),this.svg.polyline(f,a).transform({translate:[h/2,g- -h/2],rotate:[0,h/2,p/2],scale:[1,-1]});break;case 5:this.svg.polyline(f,a).transform({translate:[d-h/2,-h/2],rotate:[0,h/2,p/2],scale:[-1,1]}),this.svg.polyline(f,a).transform({translate:[d-h/2,g+h/2],rotate:[0,h/2,p/2],scale:[-1,-1]});break;case 6:this.svg.polyline(f,a).transform({translate:[d/2+h/2,c/2]});break;case 7:this.svg.polyline(f,a).transform({translate:[d-d/2-h/2,c/2],scale:[-1,1]});break;case 8:this.svg.polyline(f,a).transform({translate:[d/2+h/2,g-c/2],scale:[1,-1]});break;case 9:this.svg.polyline(f,a).transform({translate:[d-d/2-h/2,g-c/2],scale:[-1,-1]});break;case 10:this.svg.polyline(f,a).transform({translate:[h/2,g/2-h/2]});break;case 11:this.svg.polyline(f,a).transform({translate:[d-h/2,g/2-h/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,h,h,a).transform({translate:[h/2,h/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,h,h,a).transform({scale:[-1,1],translate:[-d+h/2,h/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,h,h,a).transform({translate:[h/2,g/2-h/2-h],rotate:[30,0,h]});break;case 15:this.svg.rect(0,0,h,h,a).transform({scale:[-1,1],translate:[-d+h/2,g/2-h/2-h],rotate:[30,0,h]});break;case 16:this.svg.rect(0,0,h,h,a).transform({scale:[1,-1],translate:[h/2,-g+g/2-h/2-h],rotate:[30,0,h]});break;case 17:this.svg.rect(0,0,h,h,a).transform({scale:[-1,-1],translate:[-d+h/2,-g+g/2-h/2-h],rotate:[30,0,h]});break;case 18:this.svg.rect(0,0,h,h,a).transform({scale:[1,-1],translate:[h/2,-g+h/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,h,h,a).transform({scale:[-1,-1],translate:[-d+h/2,-g+h/2],rotate:[-30,0,0]})}}}).call(this,t("buffer").Buffer)},{"./color":2,"./sha1":5,"./svg":6,buffer:8,extend:9}],5:[function(t,e){"use strict";function i(){function t(){for(var t=16;80>t;t++){var e=u[t-3]^u[t-8]^u[t-14]^u[t-16];u[t]=e<<1|e>>>31}var i,n,o=s,r=a,f=l,d=h,g=c;for(t=0;80>t;t++){20>t?(i=d^r&(f^d),n=1518500249):40>t?(i=r^f^d,n=1859775393):60>t?(i=r&f|d&(r|f),n=2400959708):(i=r^f^d,n=3395469782);var v=(o<<5|o>>>27)+i+g+n+(0|u[t]);g=d,d=f,f=r<<30|r>>>2,r=o,o=v}for(s=s+o|0,a=a+r|0,l=l+f|0,h=h+d|0,c=c+g|0,p=0,t=0;16>t;t++)u[t]=0}function e(e){u[p]|=(255&e)<n;n++)e(t.charCodeAt(n))}function n(t){if("string"==typeof t)return i(t);var n=t.length;d+=8*n;for(var o=0;n>o;o++)e(t[o])}function o(t){for(var e="",i=28;i>=0;i-=4)e+=(t>>i&15).toString(16);return e}function r(){e(128),(p>14||14===p&&24>f)&&t(),p=14,f=24,e(0),e(0),e(d>0xffffffffff?d/1099511627776:0),e(d>4294967295?d/4294967296:0);for(var i=24;i>=0;i-=8)e(d>>i);return o(s)+o(a)+o(l)+o(h)+o(c)}var s=1732584193,a=4023233417,l=2562383102,h=271733878,c=3285377520,u=new Uint32Array(80),p=0,f=24,d=0;return{update:n,digest:r}}e.exports=function(t){if(void 0===t)return i();var e=i();return e.update(t),e.digest()}},{}],6:[function(t,e){"use strict";function i(){return this.width=100,this.height=100,this.svg=new o("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}var n=t("extend"),o=t("./xml");e.exports=i,i.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},i.prototype.end=function(){return this.context.pop(),this},i.prototype.currentNode=function(){var t=this.currentContext();return t.lastChild||t},i.prototype.transform=function(t){return this.currentNode().setAttribute("transform",Object.keys(t).map(function(e){return e+"("+t[e].join(",")+")"}).join(" ")),this},i.prototype.setAttributes=function(t,e){Object.keys(e).forEach(function(i){t.setAttribute(i,e[i])})},i.prototype.setWidth=function(t){this.svg.setAttribute("width",Math.floor(t))},i.prototype.setHeight=function(t){this.svg.setAttribute("height",Math.floor(t))},i.prototype.toString=function(){return this.svg.toString()},i.prototype.rect=function(t,e,i,r,s){var a=this;if(Array.isArray(t))return t.forEach(function(t){a.rect.apply(a,t.concat(s))}),this;var l=new o("rect");return this.currentContext().appendChild(l),this.setAttributes(l,n({x:t,y:e,width:i,height:r},s)),this},i.prototype.circle=function(t,e,i,r){var s=new o("circle");return this.currentContext().appendChild(s),this.setAttributes(s,n({cx:t,cy:e,r:i},r)),this},i.prototype.path=function(t,e){var i=new o("path");return this.currentContext().appendChild(i),this.setAttributes(i,n({d:t},e)),this},i.prototype.polyline=function(t,e){var i=this;if(Array.isArray(t))return t.forEach(function(t){i.polyline(t,e)}),this;var r=new o("polyline");return this.currentContext().appendChild(r),this.setAttributes(r,n({points:t},e)),this},i.prototype.group=function(t){var e=new o("g");return this.currentContext().appendChild(e),this.context.push(e),this.setAttributes(e,n({},t)),this}},{"./xml":7,extend:9}],7:[function(t,e){"use strict";var i=e.exports=function(t){return this instanceof i?(this.tagName=t,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new i(t)};i.prototype.appendChild=function(t){return this.children.push(t),this.lastChild=t,this},i.prototype.setAttribute=function(t,e){return this.attributes[t]=e,this},i.prototype.toString=function(){var t=this;return["<",t.tagName,Object.keys(t.attributes).map(function(e){return[" ",e,'="',t.attributes[e],'"'].join("")}).join(""),">",t.children.map(function(t){return t.toString()}).join(""),""].join("")}},{}],8:[function(){},{}],9:[function(t,e){function i(t){if(!t||"[object Object]"!==o.call(t)||t.nodeType||t.setInterval)return!1;var e=n.call(t,"constructor"),i=n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!i)return!1;var r;for(r in t);return void 0===r||n.call(t,r)}var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function r(){var t,e,n,o,s,a,l=arguments[0]||{},h=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},h=2),"object"!=typeof l&&"function"!=typeof l&&(l={});c>h;h++)if(null!=(t=arguments[h]))for(e in t)n=l[e],o=t[e],l!==o&&(u&&o&&(i(o)||(s=Array.isArray(o)))?(s?(s=!1,a=n&&Array.isArray(n)?n:[]):a=n&&i(n)?n:{},l[e]=r(u,a,o)):void 0!==o&&(l[e]=o));return l}},{}]},{},[1])(1)}),function(){"use strict";if(navigator.userAgent.match(/IEMobile\/10\.0/)){var t=document.createElement("style");t.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(t)}}(),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}(function(t){function e(e,i){var o=this;this.options=t.extend({},n,i),o.navigation=t(e),o.document=t(document),o.window=t(window),""==this.options.parent?this.options.parent=o.navigation.parent():"",o.nav_open=!1,o.parent_full_width=0,o.radCoef=180/Math.PI,o.sTouch={x:0,y:0},o.cTouch={x:0,y:0},o.sTime=0,o.nav_position=0,o.percent_open=0,o.nav_moving=!1,o.init()}var i="okayNav",n={parent:"",toggle_icon_class:"okayNav__menu-toggle",toggle_icon_content:"",align_right:!0,swipe_enabled:!0,threshold:50,resize_delay:10,beforeOpen:function(){},afterOpen:function(){},beforeClose:function(){},afterClose:function(){},itemHidden:function(){},itemDisplayed:function(){}};t.extend(e.prototype,{init:function(){var e=this;t("body").addClass("okayNav-loaded"),e.navigation.addClass("okayNav loaded").children("ul").addClass("okayNav__nav--visible"),e.options.align_right?e.navigation.append('