WordPress/wp-includes/js/dist/block-library.min.js

42 lines
482 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="./node_modules/@wordpress/block-library/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/extends.js":function(e,t,o){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}o.d(t,"a",(function(){return n}))},"./node_modules/@wordpress/block-library/build-module/index.js":function(e,t,o){"use strict";o.r(t),o.d(t,"__experimentalGetCoreBlocks",(function(){return mm})),o.d(t,"registerCoreBlocks",(function(){return bm})),o.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return pm}));var n={};o.r(n),o.d(n,"metadata",(function(){return ze})),o.d(n,"name",(function(){return Pe})),o.d(n,"settings",(function(){return Ne}));var r={};o.r(r),o.d(r,"metadata",(function(){return Qt})),o.d(r,"name",(function(){return Yt})),o.d(r,"settings",(function(){return Jt}));var a={};o.r(a),o.d(a,"metadata",(function(){return po})),o.d(a,"name",(function(){return go})),o.d(a,"settings",(function(){return ho}));var c={};o.r(c),o.d(c,"metadata",(function(){return _o})),o.d(c,"name",(function(){return ko})),o.d(c,"settings",(function(){return Eo}));var l={};o.r(l),o.d(l,"metadata",(function(){return $o})),o.d(l,"name",(function(){return Zo})),o.d(l,"settings",(function(){return Qo}));var i={};o.r(i),o.d(i,"metadata",(function(){return Xo})),o.d(i,"name",(function(){return en})),o.d(i,"settings",(function(){return tn}));var s={};o.r(s),o.d(s,"metadata",(function(){return ln})),o.d(s,"name",(function(){return sn})),o.d(s,"settings",(function(){return un}));var u={};o.r(u),o.d(u,"metadata",(function(){return Cn})),o.d(u,"name",(function(){return xn})),o.d(u,"settings",(function(){return Sn}));var d={};o.r(d),o.d(d,"metadata",(function(){return Nn})),o.d(d,"name",(function(){return Mn})),o.d(d,"settings",(function(){return Vn}));var m={};o.r(m),o.d(m,"metadata",(function(){return Dn})),o.d(m,"name",(function(){return Fn})),o.d(m,"settings",(function(){return Un}));var b={};o.r(b),o.d(b,"metadata",(function(){return Wn})),o.d(b,"name",(function(){return $n})),o.d(b,"settings",(function(){return Zn}));var p={};o.r(p),o.d(p,"metadata",(function(){return Xn})),o.d(p,"name",(function(){return er})),o.d(p,"settings",(function(){return tr}));var g={};o.r(g),o.d(g,"metadata",(function(){return gr})),o.d(g,"name",(function(){return hr})),o.d(g,"settings",(function(){return vr}));var h={};o.r(h),o.d(h,"metadata",(function(){return yr})),o.d(h,"name",(function(){return wr})),o.d(h,"settings",(function(){return _r}));var v={};o.r(v),o.d(v,"metadata",(function(){return $r})),o.d(v,"name",(function(){return Zr})),o.d(v,"settings",(function(){return Qr}));var O={};o.r(O),o.d(O,"metadata",(function(){return xa})),o.d(O,"name",(function(){return Sa})),o.d(O,"settings",(function(){return Ba}));var j={};o.r(j),o.d(j,"metadata",(function(){return Aa})),o.d(j,"name",(function(){return Ia})),o.d(j,"settings",(function(){return Da}));var f={};o.r(f),o.d(f,"metadata",(function(){return Ga})),o.d(f,"name",(function(){return qa})),o.d(f,"settings
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var nt=function(e,t){return(nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};var rt=function(){return(rt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create;var at=o("react"),ct=o.n(at),lt=o("./node_modules/normalize-wheel/index.js"),it=o.n(lt);function st(e,t,o,n,r,a){void 0===a&&(a=0);var c=ft(e,t,a),l=c.width,i=c.height,s=Math.min(l,o),u=Math.min(i,n);return s>u*r?{width:u*r,height:u}:{width:s,height:s/r}}function ut(e,t,o,n,r){void 0===r&&(r=0);var a=ft(t.width,t.height,r),c=a.width,l=a.height;return{x:dt(e.x,c,o.width,n),y:dt(e.y,l,o.height,n)}}function dt(e,t,o,n){var r=t*n/2-o/2;return Math.min(r,Math.max(e,-r))}function mt(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function bt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function pt(e,t,o,n,r,a,c){void 0===a&&(a=0),void 0===c&&(c=!0);var l=c&&0===a?gt:ht,i={x:l(100,((t.width-o.width/r)/2-e.x/r)/t.width*100),y:l(100,((t.height-o.height/r)/2-e.y/r)/t.height*100),width:l(100,o.width/t.width*100/r),height:l(100,o.height/t.height*100/r)},s=Math.round(l(t.naturalWidth,i.width*t.naturalWidth/100)),u=Math.round(l(t.naturalHeight,i.height*t.naturalHeight/100)),d=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:i,croppedAreaPixels:rt(rt({},d),{x:Math.round(l(t.naturalWidth-d.width,i.x*t.naturalWidth/100)),y:Math.round(l(t.naturalHeight-d.height,i.y*t.naturalHeight/100))})}}function gt(e,t){return Math.min(e,Math.max(0,t))}function ht(e,t){return t}function vt(e,t,o){var n=t.width/t.naturalWidth,r=function(e,t,o){var n=t.width/t.naturalWidth;if(o)return o.height>o.width?o.height/n/e.height:o.width/n/e.width;var r=e.width/e.height;return t.naturalWidth>=t.naturalHeight*r?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,o),a=n*r;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*a,y:((t.naturalHeight-e.height)/2-e.y)*a},zoom:r}}function Ot(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function jt(e,t,o,n,r){var a=Math.cos,c=Math.sin,l=r*Math.PI/180;return[(e-o)*a(l)-(t-n)*c(l)+o,(e-o)*c(l)+(t-n)*a(l)+n]}function ft(e,t,o){var n=e/2,r=t/2,a=[jt(0,0,n,r,o),jt(e,0,n,r,o),jt(e,t,n,r,o),jt(0,t,n,r,o)],c=Math.min.apply(Math,a.map((function(e){return e[0]}))),l=Math.max.apply(Math,a.map((function(e){return e[0]}))),i=Math.min.apply(Math,a.map((function(e){return e[1]})));return{width:l-c,height:Math.max.apply(Math,a.map((function(e){return e[1]})))-i}}function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var wt=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.imageRef=null,o.videoRef=null,o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.state={cropSize:null,hasWheelJustStarted:!1},o.preventZoomSafari=function(e){return e.preventDefault()},o.cleanEvents=function(){document.removeEventListener("mousemove",o.onMouseMove),document.removeEventListener("mouseup",o.onDragStopped),document.removeEventListener("touchmove",o.onTouchMove),document.removeEventListener("touchend",o.onDragStopped)},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){o.computeSizes(),o.emitCropData(),o.setInitialCrop(),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(){var e=o.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var r
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var o=t.length,n=0;n<o;++n)r(e,t[n])}e.prototype=Object.create(null);var o={}.hasOwnProperty;var n=/\s+/;function r(e,r){if(r){var a=typeof r;"string"===a?function(e,t){for(var o=t.split(n),r=o.length,a=0;a<r;++a)e[o[a]]=!0}(e,r):Array.isArray(r)?t(e,r):"object"===a?function(e,t){if(t.toString===Object.prototype.toString)for(var n in t)o.call(t,n)&&(e[n]=!!t[n]);else e[t.toString()]=!0}(e,r):"number"===a&&function(e,t){e[t]=!0}(e,r)}}return function(){for(var o=arguments.length,n=Array(o),r=0;r<o;r++)n[r]=arguments[r];var a=new e;t(a,n);var c=[];for(var l in a)a[l]&&c.push(l);return c.join(" ")}}();e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},"./node_modules/classnames/index.js":function(e,t,o){var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var c=r.apply(null,n);c&&e.push(c)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var l in n)o.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},"./node_modules/fast-average-color/dist/index.js":function(e,t,o){
/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
e.exports=function(){"use strict";function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=[],n=!0,r=!1,a=void 0;try{for(var c,l=e[Symbol.iterator]();!(n=(c=l.next()).done)&&(o.push(c.value),!t||o.length!==t);n=!0);}catch(e){r=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw a}}return o}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}return function(){function o(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o)}var n,r,a;return n=o,(r=[{key:"getColorAsync",value:function(e,t,o){e.complete?t.call(e,this.getColor(e,o),o&&o.data):this._bindImageEvents(e,t,o)}},{key:"getColor",value:function(e,t){t=t||{};var o=this._getDefaultColor(t),n=this._getOriginalSize(e),r=this._prepareSizeAndPosition(n,t),a=null,c=o;if(!(r.srcWidth&&r.srcHeight&&r.destWidth&&r.destHeight))return this._prepareResult(o,new Error("FastAverageColor: Incorrect sizes."));if(!this._ctx&&(this._canvas=this._makeCanvas(),this._ctx=this._canvas.getContext&&this._canvas.getContext("2d"),!this._ctx))return this._prepareResult(o,new Error("FastAverageColor: Canvas Context 2D is not supported in this browser."));this._canvas.width=r.destWidth,this._canvas.height=r.destHeight;try{this._ctx.clearRect(0,0,r.destWidth,r.destHeight),this._ctx.drawImage(e,r.srcLeft,r.srcTop,r.srcWidth,r.srcHeight,0,0,r.destWidth,r.destHeight);var l=this._ctx.getImageData(0,0,r.destWidth,r.destHeight).data;c=this.getColorFromArray4(l,t)}catch(e){a=e}return this._prepareResult(c,a)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var o=e.length;if(o<4)return this._getDefaultColor(t);var n=o-o%4,r=4*(t.step||1),a="_"+(t.algorithm||"sqrt")+"Algorithm";if("function"!=typeof this[a])throw new Error("FastAverageColor: ".concat(t.algorithm," is unknown algorithm."));return this[a](e,n,r)}},{key:"destroy",value:function(){delete this._canvas,delete this._ctx}},{key:"_getDefaultColor",value:function(e){return this._getOption(e,"defaultColor",[255,255,255,255])}},{key:"_getOption",value:function(e,t,o){return void 0===e[t]?o:e[t]}},{key:"_prepareSizeAndPosition",value:function(e,t){var o,n=this._getOption(t,"left",0),r=this._getOption(t,"top",0),a=this._getOption(t,"width",e.width),c=this._getOption(t,"height",e.height),l=a,i=c;return"precision"===t.mode||(a>c?(o=a/c,l=100,i=Math.round(l/o)):(o=c/a,i=100,l=Math.round(i/o)),(l>a||i>c||l<10||i<10)&&(l=a,i=c)),{srcLeft:n,srcTop:r,srcWidth:a,srcHeight:c,destWidth:l,destHeight:i}}},{key:"_simpleAlgorithm",value:function(e,t,o){for(var n=0,r=0,a=0,c=0,l=0,i=0;i<t;i+=o){var s=e[i+3];n+=e[i]*s,r+=e[i+1]*s,a+=e[i+2]*s,c+=s,l++}return c?[Math.round(n/c),Math.round(r/c),Math.round(a/c),Math.round(c/l)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,o){for(var n=0,r=0,a=0,c=0,l=0,i=0;i<t;i+=o){var s=e[i],u=e[i+1],d=e[i+2],m=e[i+3];n+=s*s*m,r+=u*u*m,a+=d*d*m,c+=m,l++}return c?[Math.round(Math.sqrt(n/c)),Math.round(Math.sqrt(r/c)),Math.round(Math.sqrt(a/c)),Math.round(c/l)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,o,n){for(var r={},a=0;a<o;a+=n){var c=e[a],l=e[a+1],i=e[a+2],s=e[a+3],u=Math.round(c/24)+","+Math.round(l/24)+","+Math.round(i/24);r[u]?r[u]=[r[u][0]+c*s,r[u][1]+l*s,r[u][2]+i*s,r[u][3]+s,r[u][4]+1]:r[u]=[c*s,l*s,i*s,s,1]}var d=t(Object.keys(r).map((function(e){return r[e]})).sort((function(e,t){var o=e[4],n=t[4];return o>n?-1:o===n?0:1}))[0],5),m=d[0],b=d[1],p=d[2],g=d[3],h=d[4];return g?[Math.round(m/g),Math.round(b/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,o){var n=this,r=(o=o||{})&&o.data,a=this._getDefaultColor(o),c=function(){s(),t.call(e,n.getColor(e,o),r)},l=function(){s(),t.call(e,n._prepareResult(a,new Error("Image error")),r)},i=function(){s(),t.call(e,n._prepareResult(a,new Error("Image abort")),r)},s=function(){e.removeEventListener("load",c),e.remo
/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,a=o in document;if(!a){var c=document.createElement("div");c.setAttribute(o,"return;"),a="function"==typeof c[o]}return!a&&n&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}},"./node_modules/normalize-wheel/src/normalizeWheel.js":function(e,t,o){"use strict";var n=o("./node_modules/normalize-wheel/src/UserAgent_DEPRECATED.js"),r=o("./node_modules/normalize-wheel/src/isEventSupported.js");function a(e){var t=0,o=0,n=0,r=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),n=10*t,r=10*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1==e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:t,spinY:o,pixelX:n,pixelY:r}}a.getEventType=function(){return n.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=a},"./node_modules/tinycolor2/tinycolor.js":function(e,t,o){var n;!function(r){var a=/^\s+/,c=/\s+$/,l=0,i=r.round,s=r.min,u=r.max,d=r.random;function m(e,t){if(t=t||{},(e=e||"")instanceof m)return e;if(!(this instanceof m))return new m(e,t);var o=function(e){var t={r:0,g:0,b:0},o=1,n=null,l=null,i=null,d=!1,m=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(c,"").toLowerCase();var t,o=!1;if(T[e])e=T[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:V(t[1]),g:V(t[2]),b:V(t[3]),a:A(t[4]),format:o?"name":"hex8"};if(t=U.hex6.exec(e))return{r:V(t[1]),g:V(t[2]),b:V(t[3]),format:o?"name":"hex"};if(t=U.hex4.exec(e))return{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),a:A(t[4]+""+t[4]),format:o?"name":"hex8"};if(t=U.hex3.exec(e))return{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),format:o?"name":"hex"};return!1}(e));"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(b=e.r,p=e.g,g=e.b,t={r:255*N(b,255),g:255*N(p,255),b:255*N(g,255)},d=!0,m="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(n=R(e.s),l=R(e.v),t=function(e,t,o){e=6*N(e,360),t=N(t,100),o=N(o,100);var n=r.floor(e),a=e-n,c=o*(1-t),l=o*(1-a*t),i=o*(1-(1-a)*t),s=n%6;return{r:255*[o,l,c,c,i,o][s],g:255*[i,o,o,l,c,c][s],b:255*[c,c,i,o,o,l][s]}}(e.h,n,l),d=!0,m="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(n=R(e.s),i=R(e.l),t=function(e,t,o){var n,r,a;function c(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}if(e=N(e,360),t=N(t,100),o=N(o,100),0===t)n=r=a=o;else{var l=o<.5?o*(1+t):o+t-o*t,i=2*o-l;n=c(i,l,e+1/3),r=c(i,l,e),a=c(i,l,e-1/3)}return{r:255*n,g:255*r,b:255*a}}(e.h,n,i),d=!0,m="hsl"),e.hasOwnProperty("a")&&(o=e.a));var b,p,g;return o=P(o),{ok:d,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:o}}(e);this._originalInput=e,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=i(100*this._a)/100,this._format=t.format||o.format,this._gradientType=t.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=o.ok,this._tc_id=l++}function b(e,t,o){e=N(e,255),t=N(t,255),o=N(o,255);var n,r,a=u(e,t,o),c=s(e,t,o),l=(a+c)/2;if(a==c)n=r=0;else{var i=a-c;switch(r=l>.5?i/(2-a-c):i/(a+c),a){case e:n=(t-o)/i+(t<o?6:0);break;case t:n=(o-e)/i+2;break;case o:n=(e-t)/i+4}n/=6}return{h:n,s:r,l:l}}function p(e,t,o){e=N(e,255),t=N(t,255),o=N(o,255);var n,r,a=u(e,t,o),c=s(e,t,o),l=a,i=a-c;if(r=0===a?0:i/a,a==c)n=0;else{switch(a){case e:n=(t-o)/i+(t<o?6:0);break;case t:n=(o-e)/i+2;break;case o:n=(e-t)/i+4}n/=6}return{h:n,s:r,v:l}}function g(e,t,o,n){var r=[H(i(e).toString(16)),H(i(t).toString(16)),H(i(o).toString(16)