vendor: 4,834 bytes, lines 1-2
1/*! For license information please see lb_custom-theme.js.LICENSE.txt */ 2(()=>{var t,r={961:(t,r,e)=>{"use strict";var n=e(670),a=e.n(n);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function f(){f=function(){return t};var t={},r=Object.prototype,e=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",i=n.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var a=r&&r.prototype instanceof d?r:d,o=Object.create(a.prototype),f=new N(n||[]);return o._invoke=function(t,r,e){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return O()}for(e.method=a,e.arg=o;;){var f=e.delegate;if(f){var c=_(f,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var i=s(t,r,e);if("normal"===i.type){if(n=e.done?"completed":"suspendedYield",i.arg===h)continue;return{value:i.arg,done:e.done}}"throw"===i.type&&(n="completed",e.method="throw",e.arg=i.arg)}}}(t,e,f),o}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function d(){}function p(){}function b(){}var v={};u(v,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(E([])));m&&m!==r&&e.call(m,a)&&(v=m);var y=b.prototype=d.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function k(t,r){function n(a,f,c,i){var u=s(t[a],t,f);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==o(h)&&e.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,c,i)}),(function(t){n("throw",t,c,i)})):r.resolve(h).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,i)}))}i(u.arg)}var a;this._invoke=function(t,e){function o(){return new r((function(r,a){n(t,e,r,a)}))}return a=a?a.then(o,o):o()}}function _(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,_(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var a=n.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function x(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function M(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function E(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=b,u(y,"constructor",b),u(b,"constructor",p),p.displayName=u(b,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(k.prototype),u(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(r,e,n,a,o){void 0===o&&(o=Promise);var f=new k(l(r,e,n,a),o);return t.isGeneratorFunction(e)?f:f.next().then((function(t){return t.done?t.value:f.next()}))},w(y),u(y,i,"Generator"),u(y,a,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=E,N.prototype={constructor:N,reset:function(t){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.forEac
2h(M),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return f.type="throw",f.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],f=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=e.call(o,"catchLoc"),i=e.call(o,"finallyLoc");if(c&&i){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!i)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&e.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var f=o?o.completion:{};return f.type=t,f.arg=r,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(f)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),M(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var a=n.arg;M(e)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:E(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,r,e,n,a,o,f){try{var c=t[o](f),i=c.value}catch(t){return void e(t)}c.done?r(i):Promise.resolve(i).then(n,a)}var i="LBCustomTheme",u=function(t){var r=localStorage.getItem(t);return r?JSON.parse(r):{}},l=function(t){var r,e,n,o,f,c,i,u,l,s,h,d,p,b=t.colors;Object.keys(b).forEach((function(t){var r=function(t){if("string"!=typeof t)return null;var r=t.trim().toLowerCase().replace("##","#");return/^#([0-9a-f]{3}|[0-9a-f]{6})$/.test(r)?r:null}(b[t]);r&&(b[t]=r)}));var v='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans"',g=null!==(r=t.fonts)&&void 0!==r&&null!==(e=r.text_font)&&void 0!==e&&e.split(":")[0]?'"'+(null===(n=t.fonts)||void 0===n||null===(o=n.text_font)||void 0===o?void 0:o.split(":")[0])+'"':v,m=null!==(f=t.fonts)&&void 0!==f&&null!==(c=f.title_font)&&void 0!==c&&c.split(":")[0]?'"'+(null===(i=t.fonts)||void 0===i||null===(u=i.title_font)||void 0===u?void 0:u.split(":")[0])+'"':v,y=null;(null==t||null===(l=t.extras)||void 0===l?void 0:l.enable_border_radius)&&!0||(y="\n --sc-input-rounded: 0;\n --sc-btn-rounded: 0;\n --sc-rounded: 0;\n --sc-rounded-lg: 0");var w=a().scale([b.base,b.base_900]).mode("lab").correctLightness();return["warning","danger","success","info"].forEach((function(t){var r={base:a().contrast(b.base,b[t]),base_900:a().contrast(b.base_900,b[t])};for(var e in r){if(r[e]>("base"==e?3.5:8)){b[t+"_content"]=b[e];break}b[t+"_content"]="#ffffff"}})),"\n --sc-primary:".concat(b.primary,";\n --sc-warning:").concat(b.warning,";\n --sc-danger:").concat(b.danger,";\n --sc-info:").concat(b.info,";\n --sc-success:").concat(b.success,";\n\n --sc-primary-content:").concat(b.primary_content,";\n --sc-warning-content:").concat(b.warning_content,";\n --sc-danger-content:").concat(b.danger_content,";\n --sc-info-content:").concat(b.info_content,";\n --sc-success-content:").concat(b.success_content,";\n \n --sc-base: ").concat(b.base,";\n --sc-base-50:").concat(w(.04).hex(),";\n --sc-base-100:").concat(w(.07).hex(),";\n --sc-base-200:").concat(w(.18).hex(),";\n --sc-base-300:").concat(w(.25).hex(),";\n --sc-base-400:").concat(w(.4).hex(),";\n --sc-base-500:").concat(w(.5).hex(),";\n --sc-base-600:").concat(w(.65).hex(),";\n --sc-base-700:").concat(w(.8).hex(),";\n --sc-base-800:").concat(w(.9).hex(),";\n --sc-base-900:").concat(w(1).hex(),";\n \n --sc-base-content: ").concat(b.base_content,";\n --sc-contrast-content: #ffffff;\n --sc-contrast: #111111;\n\n --sc-font-family-base: ").concat(g,', sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n --sc-font-weight-base: ').concat((null===(s=t.fonts)||void 0===s||null===(h=s.text_font)||void 0===h?void 0:h.split(":")[1])||"normal",";\n\n --sc-headings-font-family: ").concat(m,', sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n --sc-headings-font-weight: ').concat((null===(d=t.fonts)||void 0===d||null===(p=d.title_font)||void 0===p?void 0:p.split(":")[1])||"normal",";\n \n font-family: var(--sc-font-family-base);\n background-color: var(--sc-base);\n color: var(--sc-base-content);\n ").concat(y||"","\n\n ")},s=function(t){if(!document.querySelector("[data-lb-theme-fonts-ssr]")){var r,e=function(t){var r=t.fonts.title_font,e=t.fonts.text_font,n=[];return r&&n.push(r),e&&e!=r&&n.push(e),n}(t);if(e.length>0){var n;null===(n=document.querySelector("[data-lb-theme-custom-font]"))||void 0===n||n.remove();var a=(r=[],e.forEach((function(t){var e=t.replace(" ","+").replace(":",":wght@");e.endsWith("i")&&(e=e.slice(0,-1).replace(":",":ital,").replace("@","@1,")),e="family="+e,r.push(e)})),'<link href="https://fonts.googleapis.com/css2?'.concat(r.join("&"),'&display=swap" rel="stylesheet" data-lb-theme-custom-font>'));document.head.insertAdjacentHTML("beforeend",a)}}};function h(t){if(0!=Object.keys(t).length){var r=u(i);if(JSON.stringify(t)!==JSON.stringify(r)){var e=l(t);localStorage.setItem("cssCustom",e),function(t,r){localStorage.setItem(r,JSON.stringify(t))}(t,i),d(t)}}}function d(t){if(!document.documentElement.classList.contains("drupal-logged-in")){var r=localStorage.getItem("cssCustom");if(r){var e=document.querySelector("[data-concorde-theme-css]"),n=null!==e,a=n?e:document.createElement("style");a.setAttribute("data-concorde-theme-css",""),a.innerHTML="\n html.customer-front,\n html.customer-front body,\n html.customer-front sonic-theme,\n html.customer-front sonic-tickets-app::part(theme)\n {\n ".concat(r,"\n }"),n||document.head.appendChild(a)}s(t)}}if(window.parent==window){var p=function(){var t,r=(t=f().mark((function t(){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/api/v2/theme",{headers:{"Accept-language":document.documentElement.lang}});
2case 2:if(!(r=t.sent).ok){t.next=8;break}return t.next=6,r.json();case 6:h(t.sent);case 8:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,a){var o=t.apply(r,e);function f(t){c(o,n,a,f,i,"next",t)}function i(t){c(o,n,a,f,i,"throw",t)}f(void 0)}))});return function(){return r.apply(this,arguments)}}(),b=u(i);0===!Object.keys(b).length&&d(b),window.SonicStaticTheme?h(SonicStaticTheme):p()}window.addEventListener("load",(function(){!function(){if(document.querySelector("form[id*=la-billetterie-configure-parametre-personnalisation-form]")){var t={colors:{},fonts:{},extras:{}},r=document.querySelectorAll([".colorpick",".form-item-data-fonts-title-font input",".form-item-data-fonts-text-font input",".form-item-data-extras-enable-border-radius input"].join(", ")),e=document.getElementById("sonic-preview-theme");if(e){var n=function(r){var e=r.getAttribute("name"),n="";e.includes("colors")||e.includes("grays")?(n=e.replace("data[colors][","").replace("data[grays][","").replace("]",""),/^#([0-9a-f]{3}){1,2}$/i.test(r.value)&&(t.colors[n]=r.value)):e.includes("fonts")?(n=e.replace("data[fonts][","").replace("]",""),t.fonts[n]=r.value):e.includes("enable_border_radius")&&(n=e.replace("data[extras][","").replace("]",""),t.extras[n]=r.checked)};null==r||r.forEach((function(t){n(t)})),s(t),null==e||e.setAttribute("style",l(t)),null==r||r.forEach((function(r){r.addEventListener("input",(function(r){n(r.target),s(t),null==e||e.setAttribute("style",l(t))}))}))}}}()}))},770:()=>{},371:()=>{},178:()=>{},479:()=>{},597:()=>{},40:()=>{},670:function(t){t.exports=function(){"use strict";for(var t=function(t,r,e){return void 0===r&&(r=0),void 0===e&&(e=1),t<r?r:t>e?e:t},r=t,e=function(t){t._clipped=!1,t._unclipped=t.slice(0);for(var e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=r(t[e],0,255)):3===e&&(t[e]=r(t[e],0,1));return t},n={},a=0,o=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];a<o.length;a+=1){var f=o[a];n["[object "+f+"]"]=f.toLowerCase()}var c=function(t){return n[Object.prototype.toString.call(t)]||"object"},i=c,u=function(t,r){return void 0===r&&(r=null),t.length>=3?Array.prototype.slice.call(t):"object"==i(t[0])&&r?r.split("").filter((function(r){return void 0!==t[0][r]})).map((function(r){return t[0][r]})):t[0]},l=c,s=function(t){if(t.length<2)return null;var r=t.length-1;return"string"==l(t[r])?t[r].toLowerCase():null},h=Math.PI,d={clip_rgb:e,limit:t,type:c,unpack:u,last:s,PI:h,TWOPI:2*h,PITHIRD:h/3,DEG2RAD:h/180,RAD2DEG:180/h},p={format:{},autodetect:[]},b=d.last,v=d.clip_rgb,g=d.type,m=p,y=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=this;if("object"===g(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];var n=b(t),a=!1;if(!n){a=!0,m.sorted||(m.autodetect=m.autodetect.sort((function(t,r){return r.p-t.p})),m.sorted=!0);for(var o=0,f=m.autodetect;o<f.length;o+=1){var c=f[o];if(n=c.test.apply(c,t))break}}if(!m.format[n])throw new Error("unknown format: "+t);var i=m.format[n].apply(null,a?t:t.slice(0,-1));e._rgb=v(i),3===e._rgb.length&&e._rgb.push(1)};y.prototype.toString=function(){return"function"==g(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var w=y,k=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(k.Color,[null].concat(t)))};k.Color=w,k.version="2.4.2";var _=k,x=d.unpack,M=Math.max,N=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=x(t,"rgb"),n=e[0],a=e[1],o=e[2],f=1-M(n/=255,M(a/=255,o/=255)),c=f<1?1/(1-f):0;return[(1-n-f)*c,(1-a-f)*c,(1-o-f)*c,f]},E=N,O=d.unpack,L=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=(t=O(t,"cmyk"))[0],n=t[1],a=t[2],o=t[3],f=t.length>4?t[4]:1;return 1===o?[0,0,0,f]:[e>=1?0:255*(1-e)*(1-o),n>=1?0:255*(1-n)*(1-o),a>=1?0:255*(1-a)*(1-o),f]},S=L,j=_,A=w,P=p,F=d.unpack,I=d.type,G=E;A.prototype.cmyk=function(){return G(this._rgb)},j.cmyk=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(A,[null].concat(t,["cmyk"])))},P.format.cmyk=S,P.autodetect.push({p:2,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=F(t,"cmyk"),"array"===I(t)&&4===t.length)return"cmyk"}});var C=d.unpack,q=d.last,R=function(t){return Math.round(100*t)/100},B=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=C(t,"hsla"),n=q(t)||"lsa";return e[0]=R(e[0]||0),e[1]=R(100*e[1])+"%",e[2]=R(100*e[2])+"%","hsla"===n||e.length>3&&e[3]<1?(e[3]=e.length>3?e[3]:1,n="hsla"):e.length=3,n+"("+e.join(",")+")"},T=B,D=d.unpack,Y=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=(t=D(t,"rgba"))[0],n=t[1],a=t[2];e/=255,n/=255,a/=255;var o,f,c=Math.min(e,n,a),i=Math.max(e,n,a),u=(i+c)/2;return i===c?(o=0,f=Number.NaN):o=u<.5?(i-c)/(i+c):(i-c)/(2-i-c),e==i?f=(n-a)/(i-c):n==i?f=2+(a-e)/(i-c):a==i&&(f=4+(e-n)/(i-c)),(f*=60)<0&&(f+=360),t.length>
vendor: 40,498 bytes, line 2
23&&void 0!==t[3]?[f,o,u,t[3]]:[f,o,u]},$=Y,U=d.unpack,z=d.last,X=T,H=$,W=Math.round,J=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=U(t,"rgba"),n=z(t)||"rgb";return"hsl"==n.substr(0,3)?X(H(e),n):(e[0]=W(e[0]),e[1]=W(e[1]),e[2]=W(e[2]),("rgba"===n||e.length>3&&e[3]<1)&&(e[3]=e.length>3?e[3]:1,n="rgba"),n+"("+e.slice(0,"rgb"===n?3:4).join(",")+")")},V=J,K=d.unpack,Z=Math.round,Q=function(){for(var t,r=[],e=arguments.length;e--;)r[e]=arguments[e];var n,a,o,f=(r=K(r,"hsl"))[0],c=r[1],i=r[2];if(0===c)n=a=o=255*i;else{var u=[0,0,0],l=[0,0,0],s=i<.5?i*(1+c):i+c-i*c,h=2*i-s,d=f/360;u[0]=d+1/3,u[1]=d,u[2]=d-1/3;for(var p=0;p<3;p++)u[p]<0&&(u[p]+=1),u[p]>1&&(u[p]-=1),6*u[p]<1?l[p]=h+6*(s-h)*u[p]:2*u[p]<1?l[p]=s:3*u[p]<2?l[p]=h+(s-h)*(2/3-u[p])*6:l[p]=h;n=(t=[Z(255*l[0]),Z(255*l[1]),Z(255*l[2])])[0],a=t[1],o=t[2]}return r.length>3?[n,a,o,r[3]]:[n,a,o,1]},tt=Q,rt=tt,et=p,nt=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,at=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,ot=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,ft=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ct=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,it=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ut=Math.round,lt=function(t){var r;if(t=t.toLowerCase().trim(),et.format.named)try{return et.format.named(t)}catch(t){}if(r=t.match(nt)){for(var e=r.slice(1,4),n=0;n<3;n++)e[n]=+e[n];return e[3]=1,e}if(r=t.match(at)){for(var a=r.slice(1,5),o=0;o<4;o++)a[o]=+a[o];return a}if(r=t.match(ot)){for(var f=r.slice(1,4),c=0;c<3;c++)f[c]=ut(2.55*f[c]);return f[3]=1,f}if(r=t.match(ft)){for(var i=r.slice(1,5),u=0;u<3;u++)i[u]=ut(2.55*i[u]);return i[3]=+i[3],i}if(r=t.match(ct)){var l=r.slice(1,4);l[1]*=.01,l[2]*=.01;var s=rt(l);return s[3]=1,s}if(r=t.match(it)){var h=r.slice(1,4);h[1]*=.01,h[2]*=.01;var d=rt(h);return d[3]=+r[4],d}};lt.test=function(t){return nt.test(t)||at.test(t)||ot.test(t)||ft.test(t)||ct.test(t)||it.test(t)};var st=lt,ht=_,dt=w,pt=p,bt=d.type,vt=V,gt=st;dt.prototype.css=function(t){return vt(this._rgb,t)},ht.css=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(dt,[null].concat(t,["css"])))},pt.format.css=gt,pt.autodetect.push({p:5,test:function(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];if(!r.length&&"string"===bt(t)&>.test(t))return"css"}});var mt=w,yt=_,wt=p,kt=d.unpack;wt.format.gl=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=kt(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},yt.gl=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(mt,[null].concat(t,["gl"])))},mt.prototype.gl=function(){var t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};var _t=d.unpack,xt=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e,n=_t(t,"rgb"),a=n[0],o=n[1],f=n[2],c=Math.min(a,o,f),i=Math.max(a,o,f),u=i-c,l=100*u/255,s=c/(255-u)*100;return 0===u?e=Number.NaN:(a===i&&(e=(o-f)/u),o===i&&(e=2+(f-a)/u),f===i&&(e=4+(a-o)/u),(e*=60)<0&&(e+=360)),[e,l,s]},Mt=xt,Nt=d.unpack,Et=Math.floor,Ot=function(){for(var t,r,e,n,a,o,f=[],c=arguments.length;c--;)f[c]=arguments[c];var i,u,l,s=(f=Nt(f,"hcg"))[0],h=f[1],d=f[2];d*=255;var p=255*h;if(0===h)i=u=l=d;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);var b=Et(s/=60),v=s-b,g=d*(1-h),m=g+p*(1-v),y=g+p*v,w=g+p;switch(b){case 0:i=(t=[w,y,g])[0],u=t[1],l=t[2];break;case 1:i=(r=[m,w,g])[0],u=r[1],l=r[2];break;case 2:i=(e=[g,w,y])[0],u=e[1],l=e[2];break;case 3:i=(n=[g,m,w])[0],u=n[1],l=n[2];break;case 4:i=(a=[y,g,w])[0],u=a[1],l=a[2];break;case 5:i=(o=[w,g,m])[0],u=o[1],l=o[2]}}return[i,u,l,f.length>3?f[3]:1]},Lt=Ot,St=d.unpack,jt=d.type,At=_,Pt=w,Ft=p,It=Mt;Pt.prototype.hcg=function(){return It(this._rgb)},At.hcg=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(Pt,[null].concat(t,["hcg"])))},Ft.format.hcg=Lt,Ft.autodetect.push({p:1,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=St(t,"hcg"),"array"===jt(t)&&3===t.length)return"hcg"}});var Gt=d.unpack,Ct=d.last,qt=Math.round,Rt=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=Gt(t,"rgba"),n=e[0],a=e[1],o=e[2],f=e[3],c=Ct(t)||"auto";void 0===f&&(f=1),"auto"===c&&(c=f<1?"rgba":"rgb");var i="000000"+((n=qt(n))<<16|(a=qt(a))<<8|(o=qt(o))).toString(16);i=i.substr(i.length-6);var u="0"+qt(255*f).toString(16);switch(u=u.substr(u.length-2),c.toLowerCase()){case"rgba":return"#"+i+u;case"argb":return"#"+u+i;default:return"#"+i}},Bt=Rt,Tt=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Dt=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Yt=function(t){if(t.match(Tt)){4!==t.length&&7!==t.length||(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var r=parseInt(t,16);return[r>>16,r>>8&255,255&r,1]}if(t.match(Dt)){5!==t.length&&9!==t.length||(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);var e=parseInt(t,16);return[e>>24&255,e>>16&255,e>>8&255,Math.round((255&e)/255*100)/100]}throw new Error("unknown hex color: "+t)},$t=_,Ut=w,zt=d.type,Xt=p,Ht=Bt;Ut.prototype.hex=function(t){return Ht(this._rgb,t)},$t.hex=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(Ut,[null].concat(t,["hex"])))},Xt.format.hex=Yt,Xt.autodetect.push({p:4,test:function(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];if(!r.length&&"string"===zt(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});var Wt=d.unpack,Jt=d.TWOPI,Vt=Math.min,Kt=Math.sqrt,Zt=Math.acos,Qt=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e,n=Wt(t,"rgb"),a=n[0],o=n[1],f=n[2],c=Vt(a/=255,o/=255,f/=255),i=(a+o+f)/3,u=i>0?1-c/i:0;return 0===u?e=NaN:(e=(a-o+(a-f))/2,e/=Kt((a-o)*(a-o)+(a-f)*(o-f)),e=Zt(e),f>o&&(e=Jt-e),e/=Jt),[360*e,u,i]},tr=Qt,rr=d.unpack,er=d.limit,nr=d.TWOPI,ar=d.PITHIRD,or=Math.cos,fr=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e,n,a,o=(t=rr(t,"hsi"))[0],f=t[1],c=t[2];return isNaN(o)&&(o=0),isNaN(f)&&(f=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?n=1-((a=(1-f)/3)+(e=(1+f*or(nr*o)/or(ar-nr*o))/3)):o<2/3?a=1-((e=(1-f)/3)+(n=(1+f*or(nr*(o-=1/3))/or(ar-nr*o))/3)):e=1-((n=(1-f)/3)+(a=(1+f*or(nr*(o-=2/3))/or(ar-nr*o))/3)),[255*(e=er(c*e*3)),255*(n=er(c*n*3)),255*(a=er(c*a*3)),t.length>3?t[3]:1]},cr=fr,ir=d.unpack,ur=d.type,lr=_,sr=w,hr=p,dr=tr;sr.prototype.hsi=function(){return dr(this._rgb)},lr.hsi=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(sr,[null].concat(t,["hsi"])))},hr.format.hsi=cr,hr.autodetect.push({p:2,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=ir(t,"hsi"),"array"===ur(t)&&3===t.length)return"hsi"}});var pr=d.unpack,br=d.type,vr=_,gr=w,mr=p,yr=$;gr.prototype.hsl=function(){return yr(this._rgb)},vr.hsl=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(gr,[null].concat(t,["hsl"])))},mr.format.hsl=tt,mr.autodetect.push({p:2,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=pr(t,"hsl"),"array"===br(t)&&3===t.length)return"hsl"}});var wr=d.unpack,kr=Math.min,_r=Math.max,xr=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e,n,a,o=(t=wr(t,"rgb"))[0],f=t[1],c=t[2],i=kr(o,f,c),u=_r(o,f,c),l=u-i;return a=u/255,0===u?(e=Number.NaN,n=0):(n=l/u,o===u&&(e=(f-c)/l),f===u&&(e=2+(c-o)/l),c===u&&(e=4+(o-f)/l),(e*=60)<0&&(e+=360)),[e,n,a]},Mr=xr,Nr=d.unpack,Er=Math.floor,Or=function(){for(var t,r,e,n,a,o,f=[],c=arguments.length;c--;)f[c]=arguments[c];var i,u,l,s=(f=Nr(f,"hsv"))[0],h=f[1],d=f[2];if(d*=255,0===h)i=u=l=d;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);var p=Er(s/=60),b=s-p,v=d*(1-h),g=d*(1-h*b),m=d*(1-h*(1-b));switch(p){case 0:i=(t=[d,m,v])[0],u=t[1],l=t[2];break;case 1:i=(r=[g,d,v])[0],u=r[1],l=r[2];break;case 2:i=(e=[v,d,m])[0],u=e[1],l=e[2];break;case 3:i=(n=[v,g,d])[0],u=n[1],l=n[2];break;case 4:i=(a=[m,v,d])[0],u=a[1],l=a[2];break;case 5:i=(o=[d,v,g])[0],u=o[1],l=o[2]}}return[i,u,l,f.length>3?f[3]:1]},Lr=Or,Sr=d.unpack,jr=d.type,Ar=_,Pr=w,Fr=p,Ir=Mr;Pr.prototype.hsv=function(){return Ir(this._rgb)},Ar.hsv=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(Pr,[null].concat(t,["hsv"])))},Fr.format.hsv=Lr,Fr.autodetect.push({p:2,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=Sr(t,"hsv"),"array"===jr(t)&&3===t.length)return"hsv"}});var Gr={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Cr=Gr,qr=d.unpack,Rr=Math.pow,Br=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=qr(t,"rgb"),n=e[0],a=e[1],o=e[2],f=Yr(n,a,o),c=f[0],i=f[1],u=116*i-16;return[u<0?0:u,500*(c-i),200*(i-f[2])]},Tr=function(t){return(t/=255)<=.04045?t/12.92:Rr((t+.055)/1.055,2.4)},Dr=function(t){return t>Cr.t3?Rr(t,1/3):t/Cr.t2+Cr.t0},Yr=function(t,r,e){return t=Tr(t),r=Tr(r),e=Tr(e),[Dr((.4124564*t+.3575761*r+.1804375*e)/Cr.Xn),Dr((.2126729*t+.7151522*r+.072175*e)/Cr.Yn),Dr((.0193339*t+.119192*r+.9503041*e)/Cr.Zn)]},$r=Br,Ur=Gr,zr=d.unpack,Xr=Math.pow,Hr=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e,n,a,o=(t=zr(t,"lab"))[0],f=t[1],c=t[2];return n=(o+16)/116,e=isNaN(f)?n:n+f/500,a=isNaN(c)?n:n-c/200,n=Ur.Yn*Jr(n),e=Ur.Xn*Jr(e),a=Ur.Zn*Jr(a),[Wr(3.2404542*e-1.5371385*n-.4985314*a),Wr(-.969266*e+1.8760108*n+.041556*a),Wr(.0556434*e-.2040259*n+1.0572252*a),t.length>3?t[3]:1]},Wr=function(t){return 255*(t<=.00304?12.92*t:1.055*Xr(t,1/2.4)-.055)},Jr=function(t){return t>Ur.t1?t*t*t:Ur.t2*(t-Ur.t0)},Vr=Hr,Kr=d.unpack,Zr=d.type,Qr=_,te=w,re=p,ee=$r;te.prototype.lab=function(){return ee(this._rgb)},Qr.lab=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(te,[null].concat(t,["lab"])))},re.format.lab=Vr,re.autodetect.push({p:2,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=Kr(t,"lab"),"array"===Zr(t)&&3===t.length)return"lab"}});var ne=d.unpack,ae=d.RAD2DEG,oe=Math.sqrt,fe=Math.atan2,ce=Math.round,ie=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=ne(t,"lab"),n=e[0],a=e[1],o=e[2],f=oe(a*a+o*o),c=(fe(o,a)*ae+360)%360;return 0===ce(1e4*f)&&(c=Number.NaN),[n,f,c]},ue=ie,le=d.unpack,se=$r,he=ue,de=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=le(t,"rgb"),n=e[0],a=e[1],o=e[2],f=se(n,a,o),c=f[0],i=f[1],u=f[2];return he(c,i,u)},pe=de,be=d.unpack,ve=d.DEG2RAD,ge=Math.sin,me=Math.cos,ye=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=be(t,"lch"),n=e[0],a=e[1],o=e[2];return isNaN(o)&&(o=0),[n,me(o*=ve)*a,ge(o)*a]},we=ye,ke=d.unpack,_e=we,xe=Vr,Me=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=(t=ke(t,"lch"))[0],n=t[1],a=t[2],o=_e(e,n,a),f=o[0],c=o[1],i=o[2],u=xe(f,c,i);return[u[0],u[1],u[2],t.length>3?t[3]:1]},Ne=Me,Ee=d.unpack,Oe=Ne,Le=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=Ee(t,"hcl").reverse();return Oe.apply(void 0,e)},Se=Le,je=d.unpack,Ae=d.type,Pe=_,Fe=w,Ie=p,Ge=pe;Fe.prototype.lch=function(){return Ge(this._rgb)},Fe.prototype.hcl=function(){return Ge(this._rgb).reverse()},Pe.lch=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(Fe,[null].concat(t,["lch"])))},Pe.hcl=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(Fe,[null].concat(t,["hcl"])))},Ie.format.lch=Ne,Ie.format.hcl=Se,["lch","hcl"].forEach((function(t){return Ie.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=je(r,t),"array"===Ae(r)&&3===r.length)return t}})}));var Ce={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",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",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",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",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"},qe=w,Re=p,Be=d.type,Te=Ce,De=Yt,Ye=Bt;qe.prototype.name=function(){for(var t=Ye(this._rgb,"rgb"),r=0,e=Object.keys(Te);r<e.length;r+=1){var n=e[r];if(Te[n]===t)return n.toLowerCase()}return t},Re.format.named=function(t){if(t=t.toLowerCase(),Te[t])return De(Te[t]);throw new Error("unknown color name: "+t)},Re.autodetect.push({p:5,test:function(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];if(!r.length&&"string"===Be(t)&&Te[t.toLowerCase()])return"named"}});var $e=d.unpack,Ue=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=$e(t,"rgb");return(e[0]<<16)+(e[1]<<8)+e[2]},ze=Ue,Xe=d.type,He=function(t){if("number"==Xe(t)&&t>=0&&t<=16777215)return[t>>16,t>>8&255,255&t,1];throw new Error("unknown num color: "+t)},We=He,Je=_,Ve=w,Ke=p,Ze=d.type,Qe=ze;Ve.prototype.num=function(){return Qe(this._rgb)},Je.num=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(Ve,[null].concat(t,["num"])))},Ke.format.num=We,Ke.autodetect.push({p:5,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(1===t.length&&"number"===Ze(t[0])&&t[0]>=0&&t[0]<=16777215)return"num"}});var tn=_,rn=w,en=p,nn=d.unpack,an=d.type,on=Math.round;rn.prototype.rgb=function(t){return void 0===t&&(t=!0),!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(on)},rn.prototype.rgba=function(t){return void 0===t&&(t=!0),this._rgb.slice(0,4).map((function(r,e){return e<3?!1===t?r:on(r):r}))},tn.rgb=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(rn,[null].concat(t,["rgb"])))},en.format.rgb=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=nn(t,"rgba");return void 0===e[3]&&(e[3]=1),e},en.autodetect.push({p:3,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=nn(t,"rgba"),"array"===an(t)&&(3===t.length||4===t.length&&"number"==an(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});var fn=Math.log,cn=function(t){var r,e,n,a=t/100;return a<66?(r=255,e=a<6?0:-155.25485562709179-.44596950469579133*(e=a-2)+104.49216199393888*fn(e),n=a<20?0:.8274096064007395*(n=a-10)-254.76935184120902+115.67994401066147*fn(n)):(r=351.97690566805693+.114206453784165*(r=a-55)-40.25366309332127*fn(r),e=325.4494125711974+.07943456536662342*(e=a-50)-28.0852963507957*fn(e),n=255),[r,e,n,1]},un=cn,ln=d.unpack,sn=Math.round,hn=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var e,n=ln(t,"rgb"),a=n[0],o=n[2],f=1e3,c=4e4,i=.4;c-f>i;){var u=un(e=.5*(c+f));u[2]/u[0]>=o/a?c=e:f=e}return sn(e)},dn=_,pn=w,bn=p,vn=hn;pn.prototype.temp=pn.prototype.kelvin=pn.prototype.temperature=function(){return vn(this._rgb)},dn.temp=dn.kelvin=dn.temperature=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(pn,[null].concat(t,["temp"])))},bn.format.temp=bn.format.kelvin=bn.format.temperature=cn;var gn=d.unpack,mn=Math.cbrt,yn=Math.pow,wn=Math.sign,kn=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=gn(t,"rgb"),n=e[0],a=e[1],o=e[2],f=[xn(n/255),xn(a/255),xn(o/255)],c=f[0],i=f[1],u=f[2],l=mn(.4122214708*c+.5363325363*i+.0514459929*u),s=mn(.2119034982*c+.6806995451*i+.1073969566*u),h=mn(.0883024619*c+.2817188376*i+.6299787005*u);return[.2104542553*l+.793617785*s-.0040720468*h,1.9779984951*l-2.428592205*s+.4505937099*h,.0259040371*l+.7827717662*s-.808675766*h]},_n=kn;function xn(t){var r=Math.abs(t);return r<.04045?t/12.92:(wn(t)||1)*yn((r+.055)/1.055,2.4)}var Mn=d.unpack,Nn=Math.pow,En=Math.sign,On=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=(t=Mn(t,"lab"))[0],n=t[1],a=t[2],o=Nn(e+.3963377774*n+.2158037573*a,3),f=Nn(e-.1055613458*n-.0638541728*a,3),c=Nn(e-.0894841775*n-1.291485548*a,3);return[255*Sn(4.0767416621*o-3.3077115913*f+.2309699292*c),255*Sn(-1.2684380046*o+2.6097574011*f-.3413193965*c),255*Sn(-.0041960863*o-.7034186147*f+1.707614701*c),t.length>3?t[3]:1]},Ln=On;function Sn(t){var r=Math.abs(t);return r>.0031308?(En(t)||1)*(1.055*Nn(r,1/2.4)-.055):12.92*t}var jn=d.unpack,An=d.type,Pn=_,Fn=w,In=p,Gn=_n;Fn.prototype.oklab=function(){return Gn(this._rgb)},Pn.oklab=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(Fn,[null].concat(t,["oklab"])))},In.format.oklab=Ln,In.autodetect.push({p:3,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=jn(t,"oklab"),"array"===An(t)&&3===t.length)return"oklab"}});var Cn=d.unpack,qn=_n,Rn=ue,Bn=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=Cn(t,"rgb"),n=e[0],a=e[1],o=e[2],f=qn(n,a,o),c=f[0],i=f[1],u=f[2];return Rn(c,i,u)},Tn=Bn,Dn=d.unpack,Yn=we,$n=Ln,Un=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var e=(t=Dn(t,"lch"))[0],n=t[1],a=t[2],o=Yn(e,n,a),f=o[0],c=o[1],i=o[2],u=$n(f,c,i);return[u[0],u[1],u[2],t.length>3?t[3]:1]},zn=Un,Xn=d.unpack,Hn=d.type,Wn=_,Jn=w,Vn=p,Kn=Tn;Jn.prototype.oklch=function(){return Kn(this._rgb)},Wn.oklch=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return new(Function.prototype.bind.apply(Jn,[null].concat(t,["oklch"])))},Vn.format.oklch=zn,Vn.autodetect.push({p:3,test:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(t=Xn(t,"oklch"),"array"===Hn(t)&&3===t.length)return"oklch"}});var Zn=w,Qn=d.type;Zn.prototype.alpha=function(t,r){return void 0===r&&(r=!1),void 0!==t&&"number"===Qn(t)?r?(this._rgb[3]=t,this):new Zn([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},w.prototype.clipped=function(){return this._rgb._clipped||!1};var ta=w,ra=Gr;ta.prototype.darken=function(t){void 0===t&&(t=1);var r=this,e=r.lab();return e[0]-=ra.Kn*t,new ta(e,"lab").alpha(r.alpha(),!0)},ta.prototype.brighten=function(t){return void 0===t&&(t=1),this.darken(-t)},ta.prototype.darker=ta.prototype.darken,ta.prototype.brighter=ta.prototype.brighten,w.prototype.get=function(t){var r=t.split("."),e=r[0],n=r[1],a=this[e]();if(n){var o=e.indexOf(n)-("ok"===e.substr(0,2)?2:0);if(o>-1)return a[o];throw new Error("unknown channel "+n+" in mode "+e)}return a};var ea=w,na=d.type,aa=Math.pow,oa=1e-7,fa=20;ea.prototype.luminance=function(t){if(void 0!==t&&"number"===na(t)){if(0===t)return new ea([0,0,0,this._rgb[3]],"rgb");if(1===t)return new ea([255,255,255,this._rgb[3]],"rgb");var r=this.luminance(),e="rgb",n=fa,a=function(r,o){var f=r.interpolate(o,.5,e),c=f.luminance();return Math.abs(t-c)<oa||!n--?f:c>t?a(r,f):a(f,o)},o=(r>t?a(new ea([0,0,0]),this):a(this,new ea([255,255,255]))).rgb();return new ea(o.concat([this._rgb[3]]))}return ca.apply(void 0,this._rgb.slice(0,3))};var ca=function(t,r,e){return.2126*(t=ia(t))+.7152*(r=ia(r))+.0722*(e=ia(e))},ia=function(t){return(t/=255)<=.03928?t/12.92:aa((t+.055)/1.055,2.4)},ua={},la=w,sa=d.type,ha=ua,da=function(t,r,e){void 0===e&&(e=.5);for(var n=[],a=arguments.length-3;a-- >0;)n[a]=arguments[a+3];var o=n[0]||"lrgb";if(ha[o]||n.length||(o=Object.keys(ha)[0]),!ha[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==sa(t)&&(t=new la(t)),"object"!==sa(r)&&(r=new la(r)),ha[o](t,r,e).alpha(t.alpha()+e*(r.alpha()-t.alpha()))},pa=w,ba=da;pa.prototype.mix=pa.prototype.interpolate=function(t,r){void 0===r&&(r=.5);for(var e=[],n=arguments.length-2;n-- >0;)e[n]=arguments[n+2];return ba.apply(void 0,[this,t,r].concat(e))};var va=w;va.prototype.premultiply=function(t){void 0===t&&(t=!1);var r=this._rgb,e=r[3];return t?(this._rgb=[r[0]*e,r[1]*e,r[2]*e,e],this):new va([r[0]*e,r[1]*e,r[2]*e,e],"rgb")};var ga=w,ma=Gr;ga.prototype.saturate=function(t){void 0===t&&(t=1);var r=this,e=r.lch();return e[1]+=ma.Kn*t,e[1]<0&&(e[1]=0),new ga(e,"lch").alpha(r.alpha(),!0)},ga.prototype.desaturate=function(t){return void 0===t&&(t=1),this.saturate(-t)};var ya=w,wa=d.type;ya.prototype.set=function(t,r,e){void 0===e&&(e=!1);var n=t.split("."),a=n[0],o=n[1],f=this[a]();if(o){var c=a.indexOf(o)-("ok"===a.substr(0,2)?2:0);if(c>-1){if("string"==wa(r))switch(r.charAt(0)){case"+":case"-":f[c]+=+r;break;case"*":f[c]*=+r.substr(1);break;case"/":f[c]/=+r.substr(1);break;default:f[c]=+r}else{if("number"!==wa(r))throw new Error("unsupported value for Color.set");f[c]=r}var i=new ya(f,a);return e?(this._rgb=i._rgb,this):i}throw new Error("unknown channel "+o+" in mode "+a)}return f};var ka=w,_a=function(t,r,e){var n=t._rgb,a=r._rgb;return new ka(n[0]+e*(a[0]-n[0]),n[1]+e*(a[1]-n[1]),n[2]+e*(a[2]-n[2]),"rgb")};ua.rgb=_a;var xa=w,Ma=Math.sqrt,Na=Math.pow,Ea=function(t,r,e){var n=t._rgb,a=n[0],o=n[1],f=n[2],c=r._rgb,i=c[0],u=c[1],l=c[2];return new xa(Ma(Na(a,2)*(1-e)+Na(i,2)*e),Ma(Na(o,2)*(1-e)+Na(u,2)*e),Ma(Na(f,2)*(1-e)+Na(l,2)*e),"rgb")};ua.lrgb=Ea;var Oa=w,La=function(t,r,e){var n=t.lab(),a=r.lab();return new Oa(n[0]+e*(a[0]-n[0]),n[1]+e*(a[1]-n[1]),n[2]+e*(a[2]-n[2]),"lab")};ua.lab=La;var Sa=w,ja=function(t,r,e,n){var a,o,f,c,i,u,l,s,h,d,p,b,v;return"hsl"===n?(f=t.hsl(),c=r.hsl()):"hsv"===n?(f=t.hsv(),c=r.hsv()):"hcg"===n?(f=t.hcg(),c=r.hcg()):"hsi"===n?(f=t.hsi(),c=r.hsi()):"lch"===n||"hcl"===n?(n="hcl",f=t.hcl(),c=r.hcl()):"oklch"===n&&(f=t.oklch().reverse(),c=r.oklch().reverse()),"h"!==n.substr(0,1)&&"oklch"!==n||(i=(a=f)[0],l=a[1],h=a[2],u=(o=c)[0],s=o[1],d=o[2]),isNaN(i)||isNaN(u)?isNaN(i)?isNaN(u)?b=Number.NaN:(b=u,1!=h&&0!=h||"hsv"==n||(p=s)):(b=i,1!=d&&0!=d||"hsv"==n||(p=l)):b=i+e*(u>i&&u-i>180?u-(i+360):u<i&&i-u>180?u+360-i:u-i),void 0===p&&(p=l+e*(s-l)),v=h+e*(d-h),new Sa("oklch"===n?[v,p,b]:[b,p,v],n)},Aa=ja,Pa=function(t,r,e){return Aa(t,r,e,"lch")};ua.lch=Pa,ua.hcl=Pa;var Fa=w,Ia=function(t,r,e){var n=t.num(),a=r.num();return new Fa(n+e*(a-n),"num")};ua.num=Ia;var Ga=ja,Ca=function(t,r,e){return Ga(t,r,e,"hcg")};ua.hcg=Ca;var qa=ja,Ra=function(t,r,e){return qa(t,r,e,"hsi")};ua.hsi=Ra;var Ba=ja,Ta=function(t,r,e){return Ba(t,r,e,"hsl")};ua.hsl=Ta;var Da=ja,Ya=function(t,r,e){return Da(t,r,e,"hsv")};ua.hsv=Ya;var $a=w,Ua=function(t,r,e){var n=t.oklab(),a=r.oklab();return new $a(n[0]+e*(a[0]-n[0]),n[1]+e*(a[1]-n[1]),n[2]+e*(a[2]-n[2]),"oklab")};ua.oklab=Ua;var za=ja,Xa=function(t,r,e){return za(t,r,e,"oklch")};ua.oklch=Xa;var Ha=w,Wa=d.clip_rgb,Ja=Math.pow,Va=Math.sqrt,Ka=Math.PI,Za=Math.cos,Qa=Math.sin,to=Math.atan2,ro=function(t,r,e){void 0===r&&(r="lrgb"),void 0===e&&(e=null);var n=t.length;e||(e=Array.from(new Array(n)).map((function(){return 1})));var a=n/e.reduce((function(t,r){return t+r}));if(e.forEach((function(t,r){e[r]*=a})),t=t.map((function(t){return new Ha(t)})),"lrgb"===r)return eo(t,e);for(var o=t.shift(),f=o.get(r),c=[],i=0,u=0,l=0;l<f.length;l++)if(f[l]=(f[l]||0)*e[0],c.push(isNaN(f[l])?0:e[0]),"h"===r.charAt(l)&&!isNaN(f[l])){var s=f[l]/180*Ka;i+=Za(s)*e[0],u+=Qa(s)*e[0]}var h=o.alpha()*e[0];t.forEach((function(t,n){var a=t.get(r);h+=t.alpha()*e[n+1];for(var o=0;o<f.length;o++)if(!isNaN(a[o]))if(c[o]+=e[n+1],"h"===r.charAt(o)){var l=a[o]/180*Ka;i+=Za(l)*e[n+1],u+=Qa(l)*e[n+1]}else f[o]+=a[o]*e[n+1]}));for(var d=0;d<f.length;d++)if("h"===r.charAt(d)){for(var p=to(u/c[d],i/c[d])/Ka*180;p<0;)p+=360;for(;p>=360;)p-=360;f[d]=p}else f[d]=f[d]/c[d];return h/=n,new Ha(f,r).alpha(h>.99999?1:h,!0)},eo=function(t,r){for(var e=t.length,n=[0,0,0,0],a=0;a<t.length;a++){var o=t[a],f=r[a]/e,c=o._rgb;n[0]+=Ja(c[0],2)*f,n[1]+=Ja(c[1],2)*f,n[2]+=Ja(c[2],2)*f,n[3]+=c[3]*f}return n[0]=Va(n[0]),n[1]=Va(n[1]),n[2]=Va(n[2]),n[3]>.9999999&&(n[3]=1),new Ha(Wa(n))},no=_,ao=d.type,oo=Math.pow,fo=function(t){var r="rgb",e=no("#ccc"),n=0,a=[0,1],o=[],f=[0,0],c=!1,i=[],u=!1,l=0,s=1,h=!1,d={},p=!0,b=1,v=function(t){if((t=t||["#fff","#000"])&&"string"===ao(t)&&no.brewer&&no.brewer[t.toLowerCase()]&&(t=no.brewer[t.toLowerCase()]),"array"===ao(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(var r=0;r<t.length;r++)t[r]=no(t[r]);o.length=0;for(var e=0;e<t.length;e++)o.push(e/(t.length-1))}return k(),i=t},g=function(t){if(null!=c){for(var r=c.length-1,e=0;e<r&&t>=c[e];)e++;return e-1}return 0},m=function(t){return t},y=function(t){return t},w=function(t,n){var a,u;if(null==n&&(n=!1),isNaN(t)||null===t)return e;u=n?t:c&&c.length>2?g(t)/(c.length-2):s!==l?(t-l)/(s-l):1,u=y(u),n||(u=m(u)),1!==b&&(u=oo(u,b)),u=f[0]+u*(1-f[0]-f[1]),u=Math.min(1,Math.max(0,u));var h=Math.floor(1e4*u);if(p&&d[h])a=d[h];else{if("array"===ao(i))for(var v=0;v<o.length;v++){var w=o[v];if(u<=w){a=i[v];break}if(u>=w&&v===o.length-1){a=i[v];break}if(u>w&&u<o[v+1]){u=(u-w)/(o[v+1]-w),a=no.interpolate(i[v],i[v+1],u,r);break}}else"function"===ao(i)&&(a=i(u));p&&(d[h]=a)}return a},k=function(){return d={}};v(t);var _=function(t){var r=no(w(t));return u&&r[u]?r[u]():r};return _.classes=function(t){if(null!=t){if("array"===ao(t))c=t,a=[t[0],t[t.length-1]];else{var r=no.analyze(a);c=0===t?[r.min,r.max]:no.limits(r,"e",t)}return _}return c},_.domain=function(t){if(!arguments.length)return a;l=t[0],s=t[t.length-1],o=[];var r=i.length;if(t.length===r&&l!==s)for(var e=0,n=Array.from(t);e<n.length;e+=1){var f=n[e];o.push((f-l)/(s-l))}else{for(var c=0;c<r;c++)o.push(c/(r-1));if(t.length>2){var u=t.map((function(r,e){return e/(t.length-1)})),h=t.map((function(t){return(t-l)/(s-l)}));h.every((function(t,r){return u[r]===t}))||(y=function(t){if(t<=0||t>=1)return t;for(var r=0;t>=h[r+1];)r++;var e=(t-h[r])/(h[r+1]-h[r]);return u[r]+e*(u[r+1]-u[r])})}}return a=[l,s],_},_.mode=function(t){return arguments.length?(r=t,k(),_):r},_.range=function(t,r){return v(t),_},_.out=function(t){return u=t,_},_.spread=function(t){return arguments.length?(n=t,_):n},_.correctLightness=function(t){return null==t&&(t=!0),h=t,k(),m=h?function(t){for(var r=w(0,!0).lab()[0],e=w(1,!0).lab()[0],n=r>e,a=w(t,!0).lab()[0],o=r+(e-r)*t,f=a-o,c=0,i=1,u=20;Math.abs(f)>.01&&u-- >0;)n&&(f*=-1),f<0?(c=t,t+=.5*(i-t)):(i=t,t+=.5*(c-t)),a=w(t,!0).lab()[0],f=a-o;return t}:function(t){return t},_},_.padding=function(t){return null!=t?("number"===ao(t)&&(t=[t,t]),f=t,_):f},_.colors=function(r,e){arguments.length<2&&(e="hex");var n=[];if(0===arguments.length)n=i.slice(0);else if(1===r)n=[_(.5)];else if(r>1){var o=a[0],f=a[1]-o;n=co(0,r,!1).map((function(t){return _(o+t/(r-1)*f)}))}else{t=[];var u=[];if(c&&c.length>2)for(var l=1,s=c.length,h=1<=s;h?l<s:l>s;h?l++:l--)u.push(.5*(c[l-1]+c[l]));else u=a;n=u.map((function(t){return _(t)}))}return no[e]&&(n=n.map((function(t){return t[e]()}))),n},_.cache=function(t){return null!=t?(p=t,_):p},_.gamma=function(t){return null!=t?(b=t,_):b},_.nodata=function(t){return null!=t?(e=no(t),_):e},_};function co(t,r,e){for(var n=[],a=t<r,o=e?a?r+1:r-1:r,f=t;a?f<o:f>o;a?f++:f--)n.push(f);return n}var io=w,uo=fo,lo=function(t){for(var r=[1,1],e=1;e<t;e++){for(var n=[1],a=1;a<=r.length;a++)n[a]=(r[a]||0)+r[a-1];r=n}return r},so=function(t){var r,e,n,a,o,f,c;if(2===(t=t.map((function(t){return new io(t)}))).length)r=t.map((function(t){return t.lab()})),o=r[0],f=r[1],a=function(t){var r=[0,1,2].map((function(r){return o[r]+t*(f[r]-o[r])}));return new io(r,"lab")};else if(3===t.length)e=t.map((function(t){return t.lab()})),o=e[0],f=e[1],c=e[2],a=function(t){var r=[0,1,2].map((function(r){return(1-t)*(1-t)*o[r]+2*(1-t)*t*f[r]+t*t*c[r]}));return new io(r,"lab")};else if(4===t.length){var i;n=t.map((function(t){return t.lab()})),o=n[0],f=n[1],c=n[2],i=n[3],a=function(t){var r=[0,1,2].map((function(r){return(1-t)*(1-t)*(1-t)*o[r]+3*(1-t)*(1-t)*t*f[r]+3*(1-t)*t*t*c[r]+t*t*t*i[r]}));return new io(r,"lab")}}else{if(!(t.length>=5))throw new RangeError("No point in running bezier with only one color.");var u,l,s;u=t.map((function(t){return t.lab()})),s=t.length-1,l=lo(s),a=function(t){var r=1-t,e=[0,1,2].map((function(e){return u.reduce((function(n,a,o){return n+l[o]*Math.pow(r,s-o)*Math.pow(t,o)*a[e]}),0)}));return new io(e,"lab")}}return a},ho=function(t){var r=so(t);return r.scale=function(){return uo(r)},r},po=_,bo=function(t,r,e){if(!bo[e])throw new Error("unknown blend mode "+e);return bo[e](t,r)},vo=function(t){return function(r,e){var n=po(e).rgb(),a=po(r).rgb();return po.rgb(t(n,a))}},go=function(t){return function(r,e){var n=[];return n[0]=t(r[0],e[0]),n[1]=t(r[1],e[1]),n[2]=t(r[2],e[2]),n}},mo=function(t){return t},yo=function(t,r){return t*r/255},wo=function(t,r){return t>r?r:t},ko=function(t,r){return t>r?t:r},_o=function(t,r){return 255*(1-(1-t/255)*(1-r/255))},xo=function(t,r){return r<128?2*t*r/255:255*(1-2*(1-t/255)*(1-r/255))},Mo=function(t,r){return 255*(1-(1-r/255)/(t/255))},No=function(t,r){return 255===t||(t=r/255*255/(1-t/255))>255?255:t};bo.normal=vo(go(mo)),bo.multiply=vo(go(yo)),bo.screen=vo(go(_o)),bo.overlay=vo(go(xo)),bo.darken=vo(go(wo)),bo.lighten=vo(go(ko)),bo.dodge=vo(go(No)),bo.burn=vo(go(Mo));for(var Eo=bo,Oo=d.type,Lo=d.clip_rgb,So=d.TWOPI,jo=Math.pow,Ao=Math.sin,Po=Math.cos,Fo=_,Io=function(t,r,e,n,a){void 0===t&&(t=300),void 0===r&&(r=-1.5),void 0===e&&(e=1),void 0===n&&(n=1),void 0===a&&(a=[0,1]);var o,f=0;"array"===Oo(a)?o=a[1]-a[0]:(o=0,a=[a,a]);var c=function(c){var i=So*((t+120)/360+r*c),u=jo(a[0]+o*c,n),l=(0!==f?e[0]+c*f:e)*u*(1-u)/2,s=Po(i),h=Ao(i);return Fo(Lo([255*(u+l*(-.14861*s+1.78277*h)),255*(u+l*(-.29227*s-.90649*h)),255*(u+l*(1.97294*s)),1]))};return c.start=function(r){return null==r?t:(t=r,c)},c.rotations=function(t){return null==t?r:(r=t,c)},c.gamma=function(t){return null==t?n:(n=t,c)},c.hue=function(t){return null==t?e:("array"===Oo(e=t)?0==(f=e[1]-e[0])&&(e=e[1]):f=0,c)},c.lightness=function(t){return null==t?a:("array"===Oo(t)?(a=t,o=t[1]-t[0]):(a=[t,t],o=0),c)},c.scale=function(){return Fo.scale(c)},c.hue(e),c},Go=w,Co="0123456789abcdef",qo=Math.floor,Ro=Math.random,Bo=function(){for(var t="#",r=0;r<6;r++)t+=Co.charAt(qo(16*Ro()));return new Go(t,"hex")},To=c,Do=Math.log,Yo=Math.pow,$o=Math.floor,Uo=Math.abs,zo=function(t,r){void 0===r&&(r=null);var e={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===To(t)&&(t=Object.values(t)),t.forEach((function(t){r&&"object"===To(t)&&(t=t[r]),null==t||isNaN(t)||(e.values.push(t),e.sum+=t,t<e.min&&(e.min=t),t>e.max&&(e.max=t),e.count+=1)})),e.domain=[e.min,e.max],e.limits=function(t,r){return Xo(e,t,r)},e},Xo=function(t,r,e){void 0===r&&(r="equal"),void 0===e&&(e=7),"array"==To(t)&&(t=zo(t));var n=t.min,a=t.max,o=t.values.sort((function(t,r){return t-r}));if(1===e)return[n,a];var f=[];if("c"===r.substr(0,1)&&(f.push(n),f.push(a)),"e"===r.substr(0,1)){f.push(n);for(var c=1;c<e;c++)f.push(n+c/e*(a-n));f.push(a)}else if("l"===r.substr(0,1)){if(n<=0)throw new Error("Logarithmic scales are only possible for values > 0");var i=Math.LOG10E*Do(n),u=Math.LOG10E*Do(a);f.push(n);for(var l=1;l<e;l++)f.push(Yo(10,i+l/e*(u-i)));f.push(a)}else if("q"===r.substr(0,1)){f.push(n);for(var s=1;s<e;s++){var h=(o.length-1)*s/e,d=$o(h);if(d===h)f.push(o[d]);else{var p=h-d;f.push(o[d]*(1-p)+o[d+1]*p)}}f.push(a)}else if("k"===r.substr(0,1)){var b,v=o.length,g=new Array(v),m=new Array(e),y=!0,w=0,k=null;(k=[]).push(n);for(var _=1;_<e;_++)k.push(n+_/e*(a-n));for(k.push(a);y;){for(var x=0;x<e;x++)m[x]=0;for(var M=0;M<v;M++)for(var N=o[M],E=Number.MAX_VALUE,O=void 0,L=0;L<e;L++){var S=Uo(k[L]-N);S<E&&(E=S,O=L),m[O]++,g[M]=O}for(var j=new Array(e),A=0;A<e;A++)j[A]=null;for(var P=0;P<v;P++)null===j[b=g[P]]?j[b]=o[P]:j[b]+=o[P];for(var F=0;F<e;F++)j[F]*=1/m[F];y=!1;for(var I=0;I<e;I++)if(j[I]!==k[I]){y=!0;break}k=j,++w>200&&(y=!1)}for(var G={},C=0;C<e;C++)G[C]=[];for(var q=0;q<v;q++)G[b=g[q]].push(o[q]);for(var R=[],B=0;B<e;B++)R.push(G[B][0]),R.push(G[B][G[B].length-1]);R=R.sort((function(t,r){return t-r})),f.push(R[0]);for(var T=1;T<R.length;T+=2){var D=R[T];isNaN(D)||-1!==f.indexOf(D)||f.push(D)}}return f},Ho={analyze:zo,limits:Xo},Wo=w,Jo=function(t,r){t=new Wo(t),r=new Wo(r);var e=t.luminance(),n=r.luminance();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},Vo=w,Ko=Math.sqrt,Zo=Math.pow,Qo=Math.min,tf=Math.max,rf=Math.atan2,ef=Math.abs,nf=Math.cos,af=Math.sin,of=Math.exp,ff=Math.PI,cf=function(t,r,e,n,a){void 0===e&&(e=1),void 0===n&&(n=1),void 0===a&&(a=1);var o=function(t){return 360*t/(2*ff)},f=function(t){return 2*ff*t/360};t=new Vo(t),r=new Vo(r);var c=Array.from(t.lab()),i=c[0],u=c[1],l=c[2],s=Array.from(r.lab()),h=s[0],d=s[1],p=s[2],b=(i+h)/2,v=(Ko(Zo(u,2)+Zo(l,2))+Ko(Zo(d,2)+Zo(p,2)))/2,g=.5*(1-Ko(Zo(v,7)/(Zo(v,7)+Zo(25,7)))),m=u*(1+g),y=d*(1+g),w=Ko(Zo(m,2)+Zo(l,2)),k=Ko(Zo(y,2)+Zo(p,2)),_=(w+k)/2,x=o(rf(l,m)),M=o(rf(p,y)),N=x>=0?x:x+360,E=M>=0?M:M+360,O=ef(N-E)>180?(N+E+360)/2:(N+E)/2,L=1-.17*nf(f(O-30))+.24*nf(f(2*O))+.32*nf(f(3*O+6))-.2*nf(f(4*O-63)),S=E-N;S=ef(S)<=180?S:E<=N?S+360:S-360,S=2*Ko(w*k)*af(f(S)/2);var j=h-i,A=k-w,P=1+.015*Zo(b-50,2)/Ko(20+Zo(b-50,2)),F=1+.045*_,I=1+.015*_*L,G=30*of(-Zo((O-275)/25,2)),C=-2*Ko(Zo(_,7)/(Zo(_,7)+Zo(25,7)))*af(2*f(G)),q=Ko(Zo(j/(e*P),2)+Zo(A/(n*F),2)+Zo(S/(a*I),2)+C*(A/(n*F))*(S/(a*I)));return tf(0,Qo(100,q))},uf=w,lf=function(t,r,e){void 0===e&&(e="lab"),t=new uf(t),r=new uf(r);var n=t.get(e),a=r.get(e),o=0;for(var f in n){var c=(n[f]||0)-(a[f]||0);o+=c*c}return Math.sqrt(o)},sf=w,hf=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];try{return new(Function.prototype.bind.apply(sf,[null].concat(t))),!0}catch(t){return!1}},df=_,pf=fo,bf={cool:function(){return pf([df.hsl(180,1,.9),df.hsl(250,.7,.4)])},hot:function(){return pf(["#000","#f00","#ff0","#fff"]).mode("rgb")}},vf={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},gf=0,mf=Object.keys(vf);gf<mf.length;gf+=1){var yf=mf[gf];vf[yf.toLowerCase()]=vf[yf]}var wf=vf,kf=_;return kf.average=ro,kf.bezier=ho,kf.blend=Eo,kf.cubehelix=Io,kf.mix=kf.interpolate=da,kf.random=Bo,kf.scale=fo,kf.analyze=Ho.analyze,kf.contrast=Jo,kf.deltaE=cf,kf.distance=lf,kf.limits=Ho.limits,kf.valid=hf,kf.scales=bf,kf.colors=Ce,kf.brewer=wf,kf}()}},e={};function n(t){var a=e[t];if(void 0!==a)return a.exports;var o=e[t]={exports:{}};return r[t].call(o.exports,o,o.exports,n),o.exports}n.m=r,t=[],n.O=(r,e,a,o)=>
2{if(!e){var f=1/0;for(l=0;l<t.length;l++){for(var[e,a,o]=t[l],c=!0,i=0;i<e.length;i++)(!1&o||f>=o)&&Object.keys(n.O).every((t=>n.O[t](e[i])))?e.splice(i--,1):(c=!1,o<f&&(f=o));if(c){t.splice(l--,1);var u=a();void 0!==u&&(r=u)}}return r}o=o||0;for(var l=t.length;l>0&&t[l-1][2]>o;l--)t[l]=t[l-1];t[l]=[e,a,o]},n.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return n.d(r,{a:r}),r},n.d=(t,r)=>{for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),(()=>{var t={348:0,79:0,638:0,680:0,510:0,925:0,273:0};n.O.j=r=>0===t[r];var r=(r,e)=>{var a,o,[f,c,i]=e,u=0;if(f.some((r=>0!==t[r]))){for(a in c)n.o(c,a)&&(n.m[a]=c[a]);if(i)var l=i(n)}for(r&&r(e);u<f.length;u++)o=f[u],n.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return n.O(l)},e=self.webpackChunkdrupal=self.webpackChunkdrupal||[];e.forEach(r.bind(null,0)),e.push=r.bind(null,e.push.bind(e))})(),n.O(void 0,[79,638,680,510,925,273],(()=>n(961))),n.O(void 0,[79,638,680,510,925,273],(()=>n(371))),n.O(void 0,[79,638,680,510,925,273],(()=>n(178))),n.O(void 0,[79,638,680,510,925,273],(()=>n(479))),n.O(void 0,[79,638,680,510,925,273],(()=>n(597))),n.O(void 0,[79,638,680,510,925,273],(()=>n(40)));var a=n.O(void 0,[79,638,680,510,925,273],(()=>n(770)));a=n.O(a)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.