You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
694 KiB
JavaScript
1 line
694 KiB
JavaScript
7 months ago
|
(globalThis.webpackChunkweb_stories_wp=globalThis.webpackChunkweb_stories_wp||[]).push([[3573],{88862:function(t,e){!function(t){"use strict";function e(t){var e,r=t.toLowerCase();if("rgb"===r.substring(0,3)){var n=/^rgba?\s*\((\d+),\s*(\d+),\s*(\d+)([^)]*)\)$/.exec(r);e={r:n[1]/255,g:n[2]/255,b:n[3]/255,a:1},n[4]&&(e.a=parseFloat(/^,\s*(.*)$/.exec(n[4])[1]))}else"#"===r.charAt(0)&&(r=r.substr(1)),3===r.length&&(r=r.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3")),4===r.length&&(r=r.replace(/^(.)(.)(.)(.)$/,"$1$1$2$2$3$3$4$4")),e={r:parseInt(r.substr(0,2),16)/255,g:parseInt(r.substr(2,2),16)/255,b:parseInt(r.substr(4,2),16)/255,a:1},8===r.length&&(e.a=parseInt(r.substr(6,2),16)/255);return e}function r(t){var e,r,n,i=t.r,o=t.g,a=t.b,s=t.a,u=Math.min(i,o,a),c=Math.max(i,o,a),l=c-u;return c===u?e=0:i===c?e=(o-a)/l:o===c?e=2+(a-i)/l:a===c&&(e=4+(i-o)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(u+c)/2,r=c===u?0:n<=.5?l/(c+u):l/(2-c-u),{h:e,s:r*=100,l:n*=100,a:s}}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e){return s(t)||u(t,e)||c(t,e)||_nonIterableRest()}function s(t){if(Array.isArray(t))return t}function u(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function c(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t){var e=r(o(o({},t),{},{a:1}));return{h:e.h,s:e.s,l:e.l}}function p(t){var e,r,n,i,o,a,s=t.h,u=t.s,c=t.l,l=t.a;return isFinite(s)||(s=0),isFinite(u)||(u=0),isFinite(c)||(c=0),(s/=60)<0&&(s=6- -s%6),s%=6,u=Math.max(0,Math.min(1,u/100)),c=Math.max(0,Math.min(1,c/100)),a=(o=(1-Math.abs(2*c-1))*u)*(1-Math.abs(s%2-1)),s<1?(e=o,r=a,n=0):s<2?(e=a,r=o,n=0):s<3?(e=0,r=o,n=a):s<4?(e=0,r=a,n=o):s<5?(e=a,r=0,n=o):(e=o,r=0,n=a),{r:e+=i=c-o/2,g:r+=i,b:n+=i,a:l}}function h(t){var e=p(o(o({},t),{},{a:1}));return{r:e.r,g:e.g,b:e.b}}function d(t){var e=t.r,r=t.g,n=t.b,i=t.a;return"#"+(255*e|256).toString(16).slice(1)+(255*r|256).toString(16).slice(1)+(255*n|256).toString(16).slice(1)+(255*i|256).toString(16).slice(1)}function v(t){return d(o(o({},t),{},{a:1})).slice(0,7)}function g(t,e){return(Math.max(t,e)+.05)/(Math.min(t,e)+.05)}function y(t){var e=t.r,r=t.g,n=t.b,i=t.a,o=a([e,r,n].map((function(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),3);return(.2126*o[0]+.7152*o[1]+.0722*o[2])*i}var m={"min-ratio-3":{description:"(WCAG AA, large text)",minRatio:3},"min-ratio-4.5":{description:"(WCAG AA, normal text / WCAG AAA, large text)",minRatio:4.5},"min-ratio-7":{description:"(WCAG AAA, normal text)",minRatio:7},"AA-large":{description:"(WCAG AA, large text)",minRatio:3},AA:{description:"(WCAG AA, normal text)",minRatio:4.5},AAA:{description:"(WCAG AAA, normal text)",minRatio:7}};function _(t){var e=arguments.length>2&&voi
|