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

42 lines
490 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},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 r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}o.d(t,"a",(function(){return r}))},"./node_modules/@wordpress/block-library/build-module/index.js":function(e,t,o){"use strict";o.r(t),o.d(t,"__experimentalGetCoreBlocks",(function(){return em})),o.d(t,"registerCoreBlocks",(function(){return tm})),o.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return om}));var r={};o.r(r),o.d(r,"metadata",(function(){return Te})),o.d(r,"name",(function(){return ze})),o.d(r,"settings",(function(){return Pe}));var n={};o.r(n),o.d(n,"metadata",(function(){return Zt})),o.d(n,"name",(function(){return Qt})),o.d(n,"settings",(function(){return Yt}));var a={};o.r(a),o.d(a,"metadata",(function(){return bo})),o.d(a,"name",(function(){return po})),o.d(a,"settings",(function(){return go}));var c={};o.r(c),o.d(c,"metadata",(function(){return wo})),o.d(c,"name",(function(){return _o})),o.d(c,"settings",(function(){return ko}));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 er})),o.d(i,"settings",(function(){return tr}));var s={};o.r(s),o.d(s,"metadata",(function(){return lr})),o.d(s,"name",(function(){return ir})),o.d(s,"settings",(function(){return sr}));var u={};o.r(u),o.d(u,"metadata",(function(){return Er})),o.d(u,"name",(function(){return Cr})),o.d(u,"settings",(function(){return xr}));var d={};o.r(d),o.d(d,"metadata",(function(){return Pr})),o.d(d,"name",(function(){return Nr})),o.d(d,"settings",(function(){return Mr}));var m={};o.r(m),o.d(m,"metadata",(function(){return Lr})),o.d(m,"name",(function(){return Dr})),o.d(m,"settings",(function(){return Fr}));var b={};o.r(b),o.d(b,"metadata",(function(){return Ur})),o.d(b,"name",(function(){return Wr})),o.d(b,"settings",(function(){return $r}));var p={};o.r(p),o.d(p,"metadata",(function(){return Kr})),o.d(p,"name",(function(){return Xr})),o.d(p,"settings",(function(){return en}));var g={};o.r(g),o.d(g,"metadata",(function(){return vn})),o.d(g,"name",(function(){return jn})),o.d(g,"settings",(function(){return On}));var h={};o.r(h),o.d(h,"metadata",(function(){return _n})),o.d(h,"name",(function(){return kn})),o.d(h,"settings",(function(){return En}));var v={};o.r(v),o.d(v,"metadata",(function(){return Jn})),o.d(v,"name",(function(){return Kn})),o.d(v,"settings",(function(){return Xn}));var j={};o.r(j),o.d(j,"metadata",(function(){return za})),o.d(j,"name",(function(){return Pa})),o.d(j,"settings",(function(){return Na}));var O={};o.r(O),o.d(O,"metadata",(function(){return Ga})),o.d(O,"name",(function(){return qa})),o.d(O,"settings",(function(){return Ua}));var f={};o.r(f),o.d(f,"metadata",(function(){return Za})),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 ot=function(e,t){return(ot=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,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.create;Object.create;var nt=o("react"),at=o.n(nt),ct=o("./node_modules/normalize-wheel/index.js"),lt=o.n(ct);function it(e,t,o,r,n,a){void 0===a&&(a=0);var c=Ot(e,t,a),l=c.width,i=c.height,s=Math.min(l,o),u=Math.min(i,r);return s>u*n?{width:u*n,height:u}:{width:s,height:s/n}}function st(e,t,o,r,n){void 0===n&&(n=0);var a=Ot(t.width,t.height,n),c=a.width,l=a.height;return{x:ut(e.x,c,o.width,r),y:ut(e.y,l,o.height,r)}}function ut(e,t,o,r){var n=t*r/2-o/2;return Math.min(n,Math.max(e,-n))}function dt(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function mt(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function bt(e,t,o,r,n,a,c){void 0===a&&(a=0),void 0===c&&(c=!0);var l=c&&0===a?pt:gt,i={x:l(100,((t.width-o.width/n)/2-e.x/n)/t.width*100),y:l(100,((t.height-o.height/n)/2-e.y/n)/t.height*100),width:l(100,o.width/t.width*100/n),height:l(100,o.height/t.height*100/n)},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*r?{width:Math.round(u*r),height:u}:{width:s,height:Math.round(s/r)};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 pt(e,t){return Math.min(e,Math.max(0,t))}function gt(e,t){return t}function ht(e,t,o){var r=t.width/t.naturalWidth,n=function(e,t,o){var r=t.width/t.naturalWidth;if(o)return o.height>o.width?o.height/r/e.height:o.width/r/e.width;var n=e.width/e.height;return t.naturalWidth>=t.naturalHeight*n?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,o),a=r*n;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*a,y:((t.naturalHeight-e.height)/2-e.y)*a},zoom:n}}function vt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function jt(e,t,o,r,n){var a=Math.cos,c=Math.sin,l=n*Math.PI/180;return[(e-o)*a(l)-(t-r)*c(l)+o,(e-o)*c(l)+(t-r)*a(l)+r]}function Ot(e,t,o){var r=e/2,n=t/2,a=[jt(0,0,r,n,o),jt(e,0,r,n,o),jt(e,t,r,n,o),jt(0,t,r,n,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 ft(){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 yt=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,r=e.cropSize;if(t){var n
/*!
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,r=0;r<o;++r)n(e,t[r])}e.prototype=Object.create(null);var o={}.hasOwnProperty;var r=/\s+/;function n(e,n){if(n){var a=typeof n;"string"===a?function(e,t){for(var o=t.split(r),n=o.length,a=0;a<n;++a)e[o[a]]=!0}(e,n):Array.isArray(n)?t(e,n):"object"===a?function(e,t){if(t.toString===Object.prototype.toString)for(var r in t)o.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,n):"number"===a&&function(e,t){e[t]=!0}(e,n)}}return function(){for(var o=arguments.length,r=Array(o),n=0;n<o;n++)r[n]=arguments[n];var a=new e;t(a,r);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===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},"./node_modules/classnames/index.js":function(e,t,o){var r;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var c=n.apply(null,r);c&&e.push(c)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var l in r)o.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},"./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 r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=[],r=!0,n=!1,a=void 0;try{for(var c,l=e[Symbol.iterator]();!(r=(c=l.next()).done)&&(o.push(c.value),!t||o.length!==t);r=!0);}catch(e){n=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(n)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 r,n,a;return r=o,(n=[{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),r=this._getOriginalSize(e),n=this._prepareSizeAndPosition(r,t),a=null,c=o;if(!(n.srcWidth&&n.srcHeight&&n.destWidth&&n.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=n.destWidth,this._canvas.height=n.destHeight;try{this._ctx.clearRect(0,0,n.destWidth,n.destHeight),this._ctx.drawImage(e,n.srcLeft,n.srcTop,n.srcWidth,n.srcHeight,0,0,n.destWidth,n.destHeight);var l=this._ctx.getImageData(0,0,n.destWidth,n.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 r=o-o%4,n=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,r,n)}},{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,r=this._getOption(t,"left",0),n=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:r,srcTop:n,srcWidth:a,srcHeight:c,destWidth:l,destHeight:i}}},{key:"_simpleAlgorithm",value:function(e,t,o){for(var r=0,n=0,a=0,c=0,l=0,i=0;i<t;i+=o){var s=e[i+3];r+=e[i]*s,n+=e[i+1]*s,a+=e[i+2]*s,c+=s,l++}return c?[Math.round(r/c),Math.round(n/c),Math.round(a/c),Math.round(c/l)]:[0,0,0,0]}},{key:"_sqrtAlgorithm",value:function(e,t,o){for(var r=0,n=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];r+=s*s*m,n+=u*u*m,a+=d*d*m,c+=m,l++}return c?[Math.round(Math.sqrt(r/c)),Math.round(Math.sqrt(n/c)),Math.round(Math.sqrt(a/c)),Math.round(c/l)]:[0,0,0,0]}},{key:"_dominantAlgorithm",value:function(e,o,r){for(var n={},a=0;a<o;a+=r){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);n[u]?n[u]=[n[u][0]+c*s,n[u][1]+l*s,n[u][2]+i*s,n[u][3]+s,n[u][4]+1]:n[u]=[c*s,l*s,i*s,s,1]}var d=t(Object.keys(n).map((function(e){return n[e]})).sort((function(e,t){var o=e[4],r=t[4];return o>r?-1:o===r?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 r=this,n=(o=o||{})&&o.data,a=this._getDefaultColor(o),c=function(){s(),t.call(e,r.getColor(e,o),n)},l=function(){s(),t.call(e,r._prepareResult(a,new Error("Image error")),n)},i=function(){s(),t.call(e,r._prepareResult(a,new Error("Image abort")),n)},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(!n.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&&r&&"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 r=o("./node_modules/normalize-wheel/src/UserAgent_DEPRECATED.js"),n=o("./node_modules/normalize-wheel/src/isEventSupported.js");function a(e){var t=0,o=0,r=0,n=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),r=10*t,n=10*o,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||n)&&e.deltaMode&&(1==e.deltaMode?(r*=40,n*=40):(r*=800,n*=800)),r&&!t&&(t=r<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:n}}a.getEventType=function(){return r.firefox()?"DOMMouseScroll":n("wheel")?"wheel":"mousewheel"},e.exports=a},"./node_modules/tinycolor2/tinycolor.js":function(e,t,o){var r;!function(n){var a=/^\s+/,c=/\s+$/,l=0,i=n.round,s=n.min,u=n.max,d=n.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,r=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=G.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=G.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=G.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=G.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=G.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=G.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=G.hex8.exec(e))return{r:V(t[1]),g:V(t[2]),b:V(t[3]),a:I(t[4]),format:o?"name":"hex8"};if(t=G.hex6.exec(e))return{r:V(t[1]),g:V(t[2]),b:V(t[3]),format:o?"name":"hex"};if(t=G.hex4.exec(e))return{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:o?"name":"hex8"};if(t=G.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&&(q(e.r)&&q(e.g)&&q(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"):q(e.h)&&q(e.s)&&q(e.v)?(r=H(e.s),l=H(e.v),t=function(e,t,o){e=6*N(e,360),t=N(t,100),o=N(o,100);var r=n.floor(e),a=e-r,c=o*(1-t),l=o*(1-a*t),i=o*(1-(1-a)*t),s=r%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,r,l),d=!0,m="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(r=H(e.s),i=H(e.l),t=function(e,t,o){var r,n,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)r=n=a=o;else{var l=o<.5?o*(1+t):o+t-o*t,i=2*o-l;r=c(i,l,e+1/3),n=c(i,l,e),a=c(i,l,e-1/3)}return{r:255*r,g:255*n,b:255*a}}(e.h,r,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 r,n,a=u(e,t,o),c=s(e,t,o),l=(a+c)/2;if(a==c)r=n=0;else{var i=a-c;switch(n=l>.5?i/(2-a-c):i/(a+c),a){case e:r=(t-o)/i+(t<o?6:0);break;case t:r=(o-e)/i+2;break;case o:r=(e-t)/i+4}r/=6}return{h:r,s:n,l:l}}function p(e,t,o){e=N(e,255),t=N(t,255),o=N(o,255);var r,n,a=u(e,t,o),c=s(e,t,o),l=a,i=a-c;if(n=0===a?0:i/a,a==c)r=0;else{switch(a){case e:r=(t-o)/i+(t<o?6:0);break;case t:r=(o-e)/i+2;break;case o:r=(e-t)/i+4}r/=6}return{h:r,s:n,v:l}}function g(e,t,o,r){var n=[R(i(e).toString(16)),R(i(t).toString(16)),R(i(o).toString(16)