{"version":3,"file":"blog-dTs-v9GM.js","sources":["../../../app/components/sections/featured-section.tsx","../../../node_modules/@xstate/fsm/es/index.js","../../../node_modules/@reach/machine/dist/reach-machine.mjs","../../../node_modules/@reach/checkbox/dist/reach-checkbox.mjs","../../../app/components/tag.tsx","../../../node_modules/remove-accents/index.js","../../../node_modules/match-sorter/dist/match-sorter.esm.js","../../../app/utils/blog.ts","../../../app/routes/blog.tsx"],"sourcesContent":["import { getImgProps, type ImageBuilder } from '~/images.tsx'\nimport { ArrowLink } from '../arrow-button.tsx'\nimport { BlurrableImage } from '../blurrable-image.tsx'\nimport { ClipboardCopyButton } from '../clipboard-copy-button.tsx'\nimport { Grid } from '../grid.tsx'\nimport { H2, H6 } from '../typography.tsx'\n\ntype FeaturedSectionProps = {\n caption?: string\n cta?: string\n subTitle?: string\n title?: string\n permalink?: string\n blurDataUrl?: string\n} & (\n | {\n imageBuilder?: ImageBuilder\n imageUrl?: never\n imageAlt?: never\n }\n | {\n imageBuilder?: never\n /** use the imageBuilder if possible. imageUrl is for things we don't have in cloudinary */\n imageUrl?: string\n imageAlt?: string\n }\n) &\n ({ href?: never; slug: string } | { href: string; slug?: never })\n\nfunction FeaturedSection({\n slug,\n href,\n caption,\n cta = 'Read this article',\n imageBuilder,\n imageUrl,\n imageAlt,\n blurDataUrl,\n title = 'Untitled Post',\n subTitle,\n permalink,\n}: FeaturedSectionProps) {\n const img = imageBuilder ? (\n \n ) : (\n \n )\n return (\n
\n
\n
\n \n
\n
\n
{caption}
\n

\n {title}\n

\n\n
\n {subTitle}\n
\n
\n\n
\n {/* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition */}\n \n {cta}\n
\n \n
\n
\n\n
\n {blurDataUrl ? (\n \n ) : (\n
{img}
\n )}\n\n {permalink ? (\n \n ) : null}\n
\n \n
\n
\n
\n )\n}\n\nexport { FeaturedSection }\n","/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\nvar t;!function(t){t[t.NotStarted=0]=\"NotStarted\",t[t.Running=1]=\"Running\",t[t.Stopped=2]=\"Stopped\"}(t||(t={}));var n={type:\"xstate.init\"};function e(t){return void 0===t?[]:[].concat(t)}function r(t){return{type:\"xstate.assign\",assignment:t}}function i(t,n){return\"string\"==typeof(t=\"string\"==typeof t&&n&&n[t]?n[t]:t)?{type:t}:\"function\"==typeof t?{type:t.name,exec:t}:t}function o(t){return function(n){return t===n}}function a(t){return\"string\"==typeof t?{type:t}:t}function u(t,n){return{value:t,context:n,actions:[],changed:!1,matches:o(t)}}function c(t,n){void 0===n&&(n={});var r={config:t,_options:n,initialState:{value:t.initial,actions:e(t.states[t.initial].entry).map((function(t){return i(t,n.actions)})),context:t.context,matches:o(t.initial)},transition:function(n,c){var s,f,l=\"string\"==typeof n?{value:n,context:t.context}:n,v=l.value,p=l.context,g=a(c),y=t.states[v];if(y.on){var d=e(y.on[g.type]),x=function(n){if(void 0===n)return{value:u(v,p)};var e=\"string\"==typeof n?{target:n}:n,a=e.target,c=void 0===a?v:a,s=e.actions,f=void 0===s?[]:s,l=e.cond,d=p;if((void 0===l?function(){return!0}:l)(p,g)){var x=t.states[c],m=!1,h=[].concat(y.exit,f,x.entry).filter((function(t){return t})).map((function(t){return i(t,r._options.actions)})).filter((function(t){if(\"xstate.assign\"===t.type){m=!0;var n=Object.assign({},d);return\"function\"==typeof t.assignment?n=t.assignment(d,g):Object.keys(t.assignment).forEach((function(e){n[e]=\"function\"==typeof t.assignment[e]?t.assignment[e](d,g):t.assignment[e]})),d=n,!1}return!0}));return{value:{value:c,context:d,actions:h,changed:c!==v||h.length>0||m,matches:o(c)}}}};try{for(var m=function(t){var n=\"function\"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(d),h=m.next();!h.done;h=m.next()){var S=x(h.value);if(\"object\"==typeof S)return S.value}}catch(t){s={error:t}}finally{try{h&&!h.done&&(f=m.return)&&f.call(m)}finally{if(s)throw s.error}}}return u(v,p)}};return r}var s=function(t,n){return t.actions.forEach((function(e){var r=e.exec;return r&&r(t.context,n)}))};function f(e){var r=e.initialState,i=t.NotStarted,o=new Set,u={_machine:e,send:function(n){i===t.Running&&(r=e.transition(r,n),s(r,a(n)),o.forEach((function(t){return t(r)})))},subscribe:function(t){return o.add(t),t(r),{unsubscribe:function(){return o.delete(t)}}},start:function(){return i=t.Running,s(r,n),u},stop:function(){return i=t.Stopped,o.clear(),u},get state(){return r},get status(){return i}};return u}export{t as InterpreterStatus,r as assign,c as createMachine,f as interpret};\n","\"use strict\";\n/**\n * @reach/machine v0.18.0\n *\n * Copyright (c) 2018-2022, React Training LLC\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\n\n\n// src/reach-machine.ts\nimport * as React from \"react\";\nimport {\n assign,\n createMachine,\n interpret,\n InterpreterStatus\n} from \"@xstate/fsm\";\nimport { isString, useConstant } from \"@reach/utils\";\nvar getServiceState = (service) => {\n let currentValue;\n service.subscribe((state) => {\n currentValue = state;\n }).unsubscribe();\n return currentValue;\n};\nfunction useMachine(initialMachine, refs, DEBUG) {\n let machineRef = React.useRef(initialMachine);\n let service = useConstant(() => interpret(machineRef.current).start());\n let lastEventType = React.useRef(null);\n let [state, setState] = React.useState(() => getServiceState(service));\n let send = React.useCallback((rawEvent) => {\n let event = isString(rawEvent) ? { type: rawEvent } : rawEvent;\n let refValues = unwrapRefs(refs);\n service.send({\n ...event,\n lastEventType: lastEventType.current,\n refs: refValues\n });\n lastEventType.current = event.type;\n if (true) {\n if (DEBUG) {\n console.group(\"Event Sent\");\n console.log(\"Event:\", event);\n console.groupEnd();\n }\n }\n }, [DEBUG]);\n React.useEffect(() => {\n service.subscribe(function setStateIfChanged(newState) {\n if (newState.changed) {\n setState(newState);\n }\n });\n return () => {\n service.stop();\n };\n }, [service]);\n React.useEffect(() => {\n if (true) {\n if (DEBUG && state.changed) {\n console.group(\"State Updated\");\n console.log(\"State:\", state);\n console.groupEnd();\n }\n }\n }, [DEBUG, state]);\n const memoizedState = React.useMemo(() => ({\n ...state,\n matches: (value) => value === state.value\n }), [state.changed, state.context, state.value]);\n return [memoizedState, send, service];\n}\nfunction unwrapRefs(refs) {\n return Object.entries(refs).reduce((value, [name, ref]) => {\n value[name] = ref.current;\n return value;\n }, {});\n}\nfunction useCreateMachine(machineDefinition, options) {\n return useConstant(() => createMachine(machineDefinition, options));\n}\nexport {\n InterpreterStatus,\n assign,\n createMachine,\n interpret,\n unwrapRefs,\n useCreateMachine,\n useMachine\n};\n","\"use strict\";\n/**\n * @reach/checkbox v0.18.0\n *\n * Copyright (c) 2018-2022, React Training LLC\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\n\n\n// src/custom.tsx\nimport * as React2 from \"react\";\nimport {\n createContext,\n isFunction,\n useComposedRefs as useComposedRefs2,\n composeEventHandlers as composeEventHandlers2\n} from \"@reach/utils\";\n\n// src/mixed.tsx\nimport * as React from \"react\";\nimport {\n composeEventHandlers,\n useIsomorphicLayoutEffect,\n useComposedRefs\n} from \"@reach/utils\";\nimport { assign, useCreateMachine, useMachine } from \"@reach/machine\";\nvar DEBUG = false;\nvar MixedCheckboxStates = /* @__PURE__ */ ((MixedCheckboxStates2) => {\n MixedCheckboxStates2[\"Checked\"] = \"checked\";\n MixedCheckboxStates2[\"Mixed\"] = \"mixed\";\n MixedCheckboxStates2[\"Unchecked\"] = \"unchecked\";\n return MixedCheckboxStates2;\n})(MixedCheckboxStates || {});\nvar MixedCheckboxEvents = /* @__PURE__ */ ((MixedCheckboxEvents2) => {\n MixedCheckboxEvents2[\"GetDerivedData\"] = \"GET_DERIVED_DATA\";\n MixedCheckboxEvents2[\"Mount\"] = \"MOUNT\";\n MixedCheckboxEvents2[\"Set\"] = \"SET\";\n MixedCheckboxEvents2[\"Reset\"] = \"RESET\";\n MixedCheckboxEvents2[\"Toggle\"] = \"TOGGLE\";\n MixedCheckboxEvents2[\"Unmount\"] = \"UNMOUNT\";\n return MixedCheckboxEvents2;\n})(MixedCheckboxEvents || {});\nfunction checkToggleAllowed(data) {\n return !!(data && !data.isControlled && !data.disabled);\n}\nfunction getCheckSetCondition(state) {\n return function(data, event) {\n return data && data.isControlled && event.state === state;\n };\n}\nfunction getCheckResetCondition(state) {\n return function(data, event) {\n return data && !data.isControlled && data.initialState === state;\n };\n}\nvar assignRefs = assign((data, event) => {\n return {\n ...data,\n refs: event.refs\n };\n});\nvar commonEvents = {\n [\"MOUNT\" /* Mount */]: {\n actions: assignRefs\n },\n [\"GET_DERIVED_DATA\" /* GetDerivedData */]: {\n actions: [\n assignRefs,\n assign((data, event) => {\n return {\n ...data,\n ...event.data\n };\n })\n ]\n },\n [\"SET\" /* Set */]: [\n {\n target: \"checked\" /* Checked */,\n cond: getCheckSetCondition(\"checked\" /* Checked */)\n },\n {\n target: \"unchecked\" /* Unchecked */,\n cond: getCheckSetCondition(\"unchecked\" /* Unchecked */)\n },\n {\n target: \"mixed\" /* Mixed */,\n cond: getCheckSetCondition(\"mixed\" /* Mixed */)\n }\n ],\n [\"RESET\" /* Reset */]: [\n {\n target: \"checked\" /* Checked */,\n cond: getCheckResetCondition(\"checked\" /* Checked */)\n },\n {\n target: \"unchecked\" /* Unchecked */,\n cond: getCheckResetCondition(\"unchecked\" /* Unchecked */)\n },\n {\n target: \"mixed\" /* Mixed */,\n cond: getCheckResetCondition(\"mixed\" /* Mixed */)\n }\n ]\n};\nvar createMachineDefinition = (initialState, props) => ({\n id: \"mixed-checkbox\",\n initial: initialState,\n context: {\n disabled: props.disabled,\n initialState,\n isControlled: props.isControlled,\n refs: {\n input: null\n }\n },\n states: {\n [\"unchecked\" /* Unchecked */]: {\n entry: assignRefs,\n on: {\n [\"TOGGLE\" /* Toggle */]: {\n target: \"checked\" /* Checked */,\n cond: checkToggleAllowed\n },\n ...commonEvents\n }\n },\n [\"checked\" /* Checked */]: {\n entry: assignRefs,\n on: {\n [\"TOGGLE\" /* Toggle */]: {\n target: \"unchecked\" /* Unchecked */,\n cond: checkToggleAllowed\n },\n ...commonEvents\n }\n },\n [\"mixed\" /* Mixed */]: {\n entry: assignRefs,\n on: {\n [\"TOGGLE\" /* Toggle */]: {\n target: \"checked\" /* Checked */,\n cond: checkToggleAllowed\n },\n ...commonEvents\n }\n }\n }\n});\nvar MixedCheckbox = React.forwardRef(function MixedCheckbox2({ as: Comp = \"input\", checked, defaultChecked, disabled, onChange, ...props }, forwardedRef) {\n let ownRef = React.useRef(null);\n let ref = useComposedRefs(forwardedRef, ownRef);\n let [inputProps] = useMixedCheckbox(ownRef, {\n onChange,\n checked,\n defaultChecked,\n disabled\n }, \"MixedCheckbox\");\n return /* @__PURE__ */ React.createElement(Comp, {\n ...props,\n ...inputProps,\n \"data-reach-mixed-checkbox\": \"\",\n ref\n });\n});\nMixedCheckbox.displayName = \"MixedCheckbox\";\nfunction useMixedCheckbox(inputRef, args, deprecated_callerName) {\n let callerName = args?.callerName || deprecated_callerName || \"useMixedCheckbox\";\n let {\n checked: controlledChecked,\n defaultChecked,\n disabled,\n onChange,\n onClick\n } = args || {};\n let isControlled = controlledChecked != null;\n let machine = useCreateMachine(createMachineDefinition(checkedPropToStateValue(isControlled ? controlledChecked : defaultChecked), {\n disabled: !!disabled,\n isControlled\n }));\n let [current, send] = useMachine(machine, { input: inputRef }, DEBUG);\n let props = {\n checked: stateValueToChecked(current.value),\n disabled: !!disabled,\n onChange: composeEventHandlers(onChange, handleChange),\n onClick: composeEventHandlers(onClick, handleClick),\n type: \"checkbox\"\n };\n if (current.value === \"mixed\" /* Mixed */) {\n props[\"aria-checked\"] = \"mixed\";\n }\n let contextData = {\n checked: current.value === \"checked\" /* Checked */ ? true : current.value === \"mixed\" /* Mixed */ ? \"mixed\" : false\n };\n function handleChange() {\n if (!isControlled) {\n send(\"TOGGLE\" /* Toggle */);\n }\n }\n function handleClick() {\n syncDomNodeWithState();\n }\n function syncDomNodeWithState() {\n if (inputRef.current) {\n inputRef.current.indeterminate = current.value === \"mixed\" /* Mixed */;\n }\n }\n if (true) {\n let { current: wasControlled } = React.useRef(isControlled);\n React.useEffect(() => {\n if (!inputRef.current) {\n console.warn(`A ref was not assigned to an input element in ${callerName}.`);\n }\n }, [inputRef, callerName]);\n React.useEffect(() => {\n if (!isControlled && wasControlled) {\n console.warn(`${callerName} is changing from controlled to uncontrolled. ${callerName} should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled ${callerName} for the lifetime of the component. Check the \\`checked\\` prop being passed in.`);\n }\n if (isControlled && !wasControlled) {\n console.warn(`${callerName} is changing from uncontrolled to controlled. ${callerName} should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled ${callerName} for the lifetime of the component. Check the \\`checked\\` prop being passed in.`);\n }\n }, [callerName, isControlled, wasControlled]);\n }\n React.useEffect(() => {\n if (isControlled) {\n send({\n type: \"SET\" /* Set */,\n state: checkedPropToStateValue(controlledChecked)\n });\n }\n }, [isControlled, controlledChecked, send]);\n React.useEffect(() => {\n let form = inputRef.current?.form;\n if (!form)\n return;\n function handleReset(event) {\n send({ type: \"RESET\" /* Reset */ });\n }\n form.addEventListener(\"reset\", handleReset);\n return () => {\n form?.removeEventListener(\"reset\", handleReset);\n };\n }, [inputRef, isControlled, send]);\n useIsomorphicLayoutEffect(syncDomNodeWithState);\n React.useEffect(() => {\n send({\n type: \"GET_DERIVED_DATA\" /* GetDerivedData */,\n data: {\n disabled,\n isControlled\n }\n });\n }, [disabled, isControlled, send]);\n return [props, contextData];\n}\nfunction checkedPropToStateValue(checked) {\n return checked === true ? \"checked\" /* Checked */ : checked === \"mixed\" ? \"mixed\" /* Mixed */ : \"unchecked\" /* Unchecked */;\n}\nfunction stateValueToChecked(state) {\n return state === \"checked\" /* Checked */ ? true : false;\n}\n\n// src/custom.tsx\nvar [CustomCheckboxContextProvider, useCustomCheckboxContext] = createContext(\"CustomCheckboxContext\", {});\nvar CustomCheckboxContainer = React2.forwardRef(function CustomCheckboxContainer2({\n as: Comp = \"span\",\n checked: controlledChecked,\n children,\n defaultChecked,\n disabled,\n onClick,\n onChange,\n __componentName = \"CustomCheckboxContainer\",\n ...props\n}, forwardedRef) {\n let inputRef = React2.useRef(null);\n let [inputProps, stateData] = useMixedCheckbox(inputRef, {\n defaultChecked,\n checked: controlledChecked,\n disabled,\n onChange\n }, __componentName);\n let [focused, setFocused] = React2.useState(false);\n function handleClick() {\n window.requestAnimationFrame(() => {\n inputRef.current && inputRef.current.focus();\n });\n }\n let context = {\n defaultChecked,\n disabled,\n focused,\n inputProps,\n inputRef,\n setFocused\n };\n return /* @__PURE__ */ React2.createElement(CustomCheckboxContextProvider, {\n ...context\n }, /* @__PURE__ */ React2.createElement(Comp, {\n ...props,\n ref: forwardedRef,\n \"data-reach-custom-checkbox-container\": \"\",\n \"data-focused\": focused ? \"\" : void 0,\n \"data-state\": checkedPropToStateValue(stateData.checked),\n onClick: composeEventHandlers2(onClick, handleClick)\n }, isFunction(children) ? children({\n checked: stateData.checked,\n inputRef,\n focused\n }) : children));\n});\nCustomCheckboxContainer.displayName = \"CustomCheckboxContainer\";\nvar CustomCheckboxInput = React2.forwardRef(function CustomCheckboxInput2({ as: Comp = \"input\", onBlur, onFocus, ...props }, forwardedRef) {\n let { focused, inputProps, inputRef, setFocused } = useCustomCheckboxContext(\"CustomCheckboxInput\");\n let ref = useComposedRefs2(forwardedRef, inputRef);\n let mounted = React2.useRef(true);\n function handleBlur() {\n window.requestAnimationFrame(() => {\n if (mounted.current) {\n setFocused(false);\n }\n });\n }\n function handleFocus() {\n window.requestAnimationFrame(() => {\n if (mounted.current) {\n setFocused(true);\n }\n });\n }\n React2.useEffect(() => () => void (mounted.current = false), []);\n return /* @__PURE__ */ React2.createElement(Comp, {\n ...props,\n ...inputProps,\n ref,\n type: \"checkbox\",\n \"data-reach-custom-checkbox-input\": \"\",\n \"data-focused\": focused ? \"\" : void 0,\n onBlur: composeEventHandlers2(onBlur, handleBlur),\n onFocus: composeEventHandlers2(onFocus, handleFocus)\n });\n});\nCustomCheckboxInput.displayName = \"CustomCheckboxInput\";\nvar CustomCheckbox = React2.forwardRef(function CustomCheckbox2({ children, id, name, value, ...props }, forwardedRef) {\n return /* @__PURE__ */ React2.createElement(CustomCheckboxContainer, {\n ...props,\n \"data-reach-custom-checkbox\": \"\",\n __componentName: \"CustomCheckbox\"\n }, /* @__PURE__ */ React2.createElement(CustomCheckboxInput, {\n id,\n name,\n ref: forwardedRef,\n value\n }), children);\n});\nCustomCheckbox.displayName = \"CustomCheckbox\";\nexport {\n CustomCheckbox,\n CustomCheckboxContainer,\n CustomCheckboxInput,\n MixedCheckbox,\n MixedCheckboxEvents,\n MixedCheckboxStates,\n checkedPropToStateValue as internal_checkedPropToStateValue,\n useMixedCheckbox\n};\n","import { CustomCheckboxContainer, CustomCheckboxInput } from '@reach/checkbox'\nimport { clsx } from 'clsx'\nimport { type ChangeEventHandler } from 'react'\n\ninterface TagProps {\n tag: string\n selected: boolean\n onClick?: ChangeEventHandler\n disabled?: boolean\n}\n\nfunction Tag({ tag, selected, onClick, disabled }: TagProps) {\n return (\n \n \n {tag}\n \n )\n}\n\nexport { Tag }\n","var characterMap = {\n\t\"À\": \"A\",\n\t\"Á\": \"A\",\n\t\"Â\": \"A\",\n\t\"Ã\": \"A\",\n\t\"Ä\": \"A\",\n\t\"Å\": \"A\",\n\t\"Ấ\": \"A\",\n\t\"Ắ\": \"A\",\n\t\"Ẳ\": \"A\",\n\t\"Ẵ\": \"A\",\n\t\"Ặ\": \"A\",\n\t\"Æ\": \"AE\",\n\t\"Ầ\": \"A\",\n\t\"Ằ\": \"A\",\n\t\"Ȃ\": \"A\",\n\t\"Ả\": \"A\",\n\t\"Ạ\": \"A\",\n\t\"Ẩ\": \"A\",\n\t\"Ẫ\": \"A\",\n\t\"Ậ\": \"A\",\n\t\"Ç\": \"C\",\n\t\"Ḉ\": \"C\",\n\t\"È\": \"E\",\n\t\"É\": \"E\",\n\t\"Ê\": \"E\",\n\t\"Ë\": \"E\",\n\t\"Ế\": \"E\",\n\t\"Ḗ\": \"E\",\n\t\"Ề\": \"E\",\n\t\"Ḕ\": \"E\",\n\t\"Ḝ\": \"E\",\n\t\"Ȇ\": \"E\",\n\t\"Ẻ\": \"E\",\n\t\"Ẽ\": \"E\",\n\t\"Ẹ\": \"E\",\n\t\"Ể\": \"E\",\n\t\"Ễ\": \"E\",\n\t\"Ệ\": \"E\",\n\t\"Ì\": \"I\",\n\t\"Í\": \"I\",\n\t\"Î\": \"I\",\n\t\"Ï\": \"I\",\n\t\"Ḯ\": \"I\",\n\t\"Ȋ\": \"I\",\n\t\"Ỉ\": \"I\",\n\t\"Ị\": \"I\",\n\t\"Ð\": \"D\",\n\t\"Ñ\": \"N\",\n\t\"Ò\": \"O\",\n\t\"Ó\": \"O\",\n\t\"Ô\": \"O\",\n\t\"Õ\": \"O\",\n\t\"Ö\": \"O\",\n\t\"Ø\": \"O\",\n\t\"Ố\": \"O\",\n\t\"Ṍ\": \"O\",\n\t\"Ṓ\": \"O\",\n\t\"Ȏ\": \"O\",\n\t\"Ỏ\": \"O\",\n\t\"Ọ\": \"O\",\n\t\"Ổ\": \"O\",\n\t\"Ỗ\": \"O\",\n\t\"Ộ\": \"O\",\n\t\"Ờ\": \"O\",\n\t\"Ở\": \"O\",\n\t\"Ỡ\": \"O\",\n\t\"Ớ\": \"O\",\n\t\"Ợ\": \"O\",\n\t\"Ù\": \"U\",\n\t\"Ú\": \"U\",\n\t\"Û\": \"U\",\n\t\"Ü\": \"U\",\n\t\"Ủ\": \"U\",\n\t\"Ụ\": \"U\",\n\t\"Ử\": \"U\",\n\t\"Ữ\": \"U\",\n\t\"Ự\": \"U\",\n\t\"Ý\": \"Y\",\n\t\"à\": \"a\",\n\t\"á\": \"a\",\n\t\"â\": \"a\",\n\t\"ã\": \"a\",\n\t\"ä\": \"a\",\n\t\"å\": \"a\",\n\t\"ấ\": \"a\",\n\t\"ắ\": \"a\",\n\t\"ẳ\": \"a\",\n\t\"ẵ\": \"a\",\n\t\"ặ\": \"a\",\n\t\"æ\": \"ae\",\n\t\"ầ\": \"a\",\n\t\"ằ\": \"a\",\n\t\"ȃ\": \"a\",\n\t\"ả\": \"a\",\n\t\"ạ\": \"a\",\n\t\"ẩ\": \"a\",\n\t\"ẫ\": \"a\",\n\t\"ậ\": \"a\",\n\t\"ç\": \"c\",\n\t\"ḉ\": \"c\",\n\t\"è\": \"e\",\n\t\"é\": \"e\",\n\t\"ê\": \"e\",\n\t\"ë\": \"e\",\n\t\"ế\": \"e\",\n\t\"ḗ\": \"e\",\n\t\"ề\": \"e\",\n\t\"ḕ\": \"e\",\n\t\"ḝ\": \"e\",\n\t\"ȇ\": \"e\",\n\t\"ẻ\": \"e\",\n\t\"ẽ\": \"e\",\n\t\"ẹ\": \"e\",\n\t\"ể\": \"e\",\n\t\"ễ\": \"e\",\n\t\"ệ\": \"e\",\n\t\"ì\": \"i\",\n\t\"í\": \"i\",\n\t\"î\": \"i\",\n\t\"ï\": \"i\",\n\t\"ḯ\": \"i\",\n\t\"ȋ\": \"i\",\n\t\"ỉ\": \"i\",\n\t\"ị\": \"i\",\n\t\"ð\": \"d\",\n\t\"ñ\": \"n\",\n\t\"ò\": \"o\",\n\t\"ó\": \"o\",\n\t\"ô\": \"o\",\n\t\"õ\": \"o\",\n\t\"ö\": \"o\",\n\t\"ø\": \"o\",\n\t\"ố\": \"o\",\n\t\"ṍ\": \"o\",\n\t\"ṓ\": \"o\",\n\t\"ȏ\": \"o\",\n\t\"ỏ\": \"o\",\n\t\"ọ\": \"o\",\n\t\"ổ\": \"o\",\n\t\"ỗ\": \"o\",\n\t\"ộ\": \"o\",\n\t\"ờ\": \"o\",\n\t\"ở\": \"o\",\n\t\"ỡ\": \"o\",\n\t\"ớ\": \"o\",\n\t\"ợ\": \"o\",\n\t\"ù\": \"u\",\n\t\"ú\": \"u\",\n\t\"û\": \"u\",\n\t\"ü\": \"u\",\n\t\"ủ\": \"u\",\n\t\"ụ\": \"u\",\n\t\"ử\": \"u\",\n\t\"ữ\": \"u\",\n\t\"ự\": \"u\",\n\t\"ý\": \"y\",\n\t\"ÿ\": \"y\",\n\t\"Ā\": \"A\",\n\t\"ā\": \"a\",\n\t\"Ă\": \"A\",\n\t\"ă\": \"a\",\n\t\"Ą\": \"A\",\n\t\"ą\": \"a\",\n\t\"Ć\": \"C\",\n\t\"ć\": \"c\",\n\t\"Ĉ\": \"C\",\n\t\"ĉ\": \"c\",\n\t\"Ċ\": \"C\",\n\t\"ċ\": \"c\",\n\t\"Č\": \"C\",\n\t\"č\": \"c\",\n\t\"C̆\": \"C\",\n\t\"c̆\": \"c\",\n\t\"Ď\": \"D\",\n\t\"ď\": \"d\",\n\t\"Đ\": \"D\",\n\t\"đ\": \"d\",\n\t\"Ē\": \"E\",\n\t\"ē\": \"e\",\n\t\"Ĕ\": \"E\",\n\t\"ĕ\": \"e\",\n\t\"Ė\": \"E\",\n\t\"ė\": \"e\",\n\t\"Ę\": \"E\",\n\t\"ę\": \"e\",\n\t\"Ě\": \"E\",\n\t\"ě\": \"e\",\n\t\"Ĝ\": \"G\",\n\t\"Ǵ\": \"G\",\n\t\"ĝ\": \"g\",\n\t\"ǵ\": \"g\",\n\t\"Ğ\": \"G\",\n\t\"ğ\": \"g\",\n\t\"Ġ\": \"G\",\n\t\"ġ\": \"g\",\n\t\"Ģ\": \"G\",\n\t\"ģ\": \"g\",\n\t\"Ĥ\": \"H\",\n\t\"ĥ\": \"h\",\n\t\"Ħ\": \"H\",\n\t\"ħ\": \"h\",\n\t\"Ḫ\": \"H\",\n\t\"ḫ\": \"h\",\n\t\"Ĩ\": \"I\",\n\t\"ĩ\": \"i\",\n\t\"Ī\": \"I\",\n\t\"ī\": \"i\",\n\t\"Ĭ\": \"I\",\n\t\"ĭ\": \"i\",\n\t\"Į\": \"I\",\n\t\"į\": \"i\",\n\t\"İ\": \"I\",\n\t\"ı\": \"i\",\n\t\"IJ\": \"IJ\",\n\t\"ij\": \"ij\",\n\t\"Ĵ\": \"J\",\n\t\"ĵ\": \"j\",\n\t\"Ķ\": \"K\",\n\t\"ķ\": \"k\",\n\t\"Ḱ\": \"K\",\n\t\"ḱ\": \"k\",\n\t\"K̆\": \"K\",\n\t\"k̆\": \"k\",\n\t\"Ĺ\": \"L\",\n\t\"ĺ\": \"l\",\n\t\"Ļ\": \"L\",\n\t\"ļ\": \"l\",\n\t\"Ľ\": \"L\",\n\t\"ľ\": \"l\",\n\t\"Ŀ\": \"L\",\n\t\"ŀ\": \"l\",\n\t\"Ł\": \"l\",\n\t\"ł\": \"l\",\n\t\"Ḿ\": \"M\",\n\t\"ḿ\": \"m\",\n\t\"M̆\": \"M\",\n\t\"m̆\": \"m\",\n\t\"Ń\": \"N\",\n\t\"ń\": \"n\",\n\t\"Ņ\": \"N\",\n\t\"ņ\": \"n\",\n\t\"Ň\": \"N\",\n\t\"ň\": \"n\",\n\t\"ʼn\": \"n\",\n\t\"N̆\": \"N\",\n\t\"n̆\": \"n\",\n\t\"Ō\": \"O\",\n\t\"ō\": \"o\",\n\t\"Ŏ\": \"O\",\n\t\"ŏ\": \"o\",\n\t\"Ő\": \"O\",\n\t\"ő\": \"o\",\n\t\"Œ\": \"OE\",\n\t\"œ\": \"oe\",\n\t\"P̆\": \"P\",\n\t\"p̆\": \"p\",\n\t\"Ŕ\": \"R\",\n\t\"ŕ\": \"r\",\n\t\"Ŗ\": \"R\",\n\t\"ŗ\": \"r\",\n\t\"Ř\": \"R\",\n\t\"ř\": \"r\",\n\t\"R̆\": \"R\",\n\t\"r̆\": \"r\",\n\t\"Ȓ\": \"R\",\n\t\"ȓ\": \"r\",\n\t\"Ś\": \"S\",\n\t\"ś\": \"s\",\n\t\"Ŝ\": \"S\",\n\t\"ŝ\": \"s\",\n\t\"Ş\": \"S\",\n\t\"Ș\": \"S\",\n\t\"ș\": \"s\",\n\t\"ş\": \"s\",\n\t\"Š\": \"S\",\n\t\"š\": \"s\",\n\t\"Ţ\": \"T\",\n\t\"ţ\": \"t\",\n\t\"ț\": \"t\",\n\t\"Ț\": \"T\",\n\t\"Ť\": \"T\",\n\t\"ť\": \"t\",\n\t\"Ŧ\": \"T\",\n\t\"ŧ\": \"t\",\n\t\"T̆\": \"T\",\n\t\"t̆\": \"t\",\n\t\"Ũ\": \"U\",\n\t\"ũ\": \"u\",\n\t\"Ū\": \"U\",\n\t\"ū\": \"u\",\n\t\"Ŭ\": \"U\",\n\t\"ŭ\": \"u\",\n\t\"Ů\": \"U\",\n\t\"ů\": \"u\",\n\t\"Ű\": \"U\",\n\t\"ű\": \"u\",\n\t\"Ų\": \"U\",\n\t\"ų\": \"u\",\n\t\"Ȗ\": \"U\",\n\t\"ȗ\": \"u\",\n\t\"V̆\": \"V\",\n\t\"v̆\": \"v\",\n\t\"Ŵ\": \"W\",\n\t\"ŵ\": \"w\",\n\t\"Ẃ\": \"W\",\n\t\"ẃ\": \"w\",\n\t\"X̆\": \"X\",\n\t\"x̆\": \"x\",\n\t\"Ŷ\": \"Y\",\n\t\"ŷ\": \"y\",\n\t\"Ÿ\": \"Y\",\n\t\"Y̆\": \"Y\",\n\t\"y̆\": \"y\",\n\t\"Ź\": \"Z\",\n\t\"ź\": \"z\",\n\t\"Ż\": \"Z\",\n\t\"ż\": \"z\",\n\t\"Ž\": \"Z\",\n\t\"ž\": \"z\",\n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Ỳ\": \"Y\",\n\t\"ỳ\": \"y\",\n\t\"Ȁ\": \"A\",\n\t\"ȁ\": \"a\",\n\t\"Ȅ\": \"E\",\n\t\"ȅ\": \"e\",\n\t\"Ȉ\": \"I\",\n\t\"ȉ\": \"i\",\n\t\"Ȍ\": \"O\",\n\t\"ȍ\": \"o\",\n\t\"Ȑ\": \"R\",\n\t\"ȑ\": \"r\",\n\t\"Ȕ\": \"U\",\n\t\"ȕ\": \"u\",\n\t\"B̌\": \"B\",\n\t\"b̌\": \"b\",\n\t\"Č̣\": \"C\",\n\t\"č̣\": \"c\",\n\t\"Ê̌\": \"E\",\n\t\"ê̌\": \"e\",\n\t\"F̌\": \"F\",\n\t\"f̌\": \"f\",\n\t\"Ǧ\": \"G\",\n\t\"ǧ\": \"g\",\n\t\"Ȟ\": \"H\",\n\t\"ȟ\": \"h\",\n\t\"J̌\": \"J\",\n\t\"ǰ\": \"j\",\n\t\"Ǩ\": \"K\",\n\t\"ǩ\": \"k\",\n\t\"M̌\": \"M\",\n\t\"m̌\": \"m\",\n\t\"P̌\": \"P\",\n\t\"p̌\": \"p\",\n\t\"Q̌\": \"Q\",\n\t\"q̌\": \"q\",\n\t\"Ř̩\": \"R\",\n\t\"ř̩\": \"r\",\n\t\"Ṧ\": \"S\",\n\t\"ṧ\": \"s\",\n\t\"V̌\": \"V\",\n\t\"v̌\": \"v\",\n\t\"W̌\": \"W\",\n\t\"w̌\": \"w\",\n\t\"X̌\": \"X\",\n\t\"x̌\": \"x\",\n\t\"Y̌\": \"Y\",\n\t\"y̌\": \"y\",\n\t\"A̧\": \"A\",\n\t\"a̧\": \"a\",\n\t\"B̧\": \"B\",\n\t\"b̧\": \"b\",\n\t\"Ḑ\": \"D\",\n\t\"ḑ\": \"d\",\n\t\"Ȩ\": \"E\",\n\t\"ȩ\": \"e\",\n\t\"Ɛ̧\": \"E\",\n\t\"ɛ̧\": \"e\",\n\t\"Ḩ\": \"H\",\n\t\"ḩ\": \"h\",\n\t\"I̧\": \"I\",\n\t\"i̧\": \"i\",\n\t\"Ɨ̧\": \"I\",\n\t\"ɨ̧\": \"i\",\n\t\"M̧\": \"M\",\n\t\"m̧\": \"m\",\n\t\"O̧\": \"O\",\n\t\"o̧\": \"o\",\n\t\"Q̧\": \"Q\",\n\t\"q̧\": \"q\",\n\t\"U̧\": \"U\",\n\t\"u̧\": \"u\",\n\t\"X̧\": \"X\",\n\t\"x̧\": \"x\",\n\t\"Z̧\": \"Z\",\n\t\"z̧\": \"z\",\n\t\"й\":\"и\",\n\t\"Й\":\"И\",\n\t\"ё\":\"е\",\n\t\"Ё\":\"Е\",\n};\n\nvar chars = Object.keys(characterMap).join('|');\nvar allAccents = new RegExp(chars, 'g');\nvar firstAccent = new RegExp(chars, '');\n\nfunction matcher(match) {\n\treturn characterMap[match];\n}\n\nvar removeAccents = function(string) {\n\treturn string.replace(allAccents, matcher);\n};\n\nvar hasAccents = function(string) {\n\treturn !!string.match(firstAccent);\n};\n\nmodule.exports = removeAccents;\nmodule.exports.has = hasAccents;\nmodule.exports.remove = removeAccents;\n","import removeAccents from 'remove-accents';\n\n/**\n * @name match-sorter\n * @license MIT license.\n * @copyright (c) 2020 Kent C. Dodds\n * @author Kent C. Dodds (https://kentcdodds.com)\n */\nconst rankings = {\n CASE_SENSITIVE_EQUAL: 7,\n EQUAL: 6,\n STARTS_WITH: 5,\n WORD_STARTS_WITH: 4,\n CONTAINS: 3,\n ACRONYM: 2,\n MATCHES: 1,\n NO_MATCH: 0\n};\nconst defaultBaseSortFn = (a, b) => String(a.rankedValue).localeCompare(String(b.rankedValue));\n\n/**\n * Takes an array of items and a value and returns a new array with the items that match the given value\n * @param {Array} items - the items to sort\n * @param {String} value - the value to use for ranking\n * @param {Object} options - Some options to configure the sorter\n * @return {Array} - the new sorted array\n */\nfunction matchSorter(items, value, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n keys,\n threshold = rankings.MATCHES,\n baseSort = defaultBaseSortFn,\n sorter = matchedItems => matchedItems.sort((a, b) => sortRankedValues(a, b, baseSort))\n } = options;\n const matchedItems = items.reduce(reduceItemsToRanked, []);\n return sorter(matchedItems).map(_ref => {\n let {\n item\n } = _ref;\n return item;\n });\n function reduceItemsToRanked(matches, item, index) {\n const rankingInfo = getHighestRanking(item, keys, value, options);\n const {\n rank,\n keyThreshold = threshold\n } = rankingInfo;\n if (rank >= keyThreshold) {\n matches.push({\n ...rankingInfo,\n item,\n index\n });\n }\n return matches;\n }\n}\nmatchSorter.rankings = rankings;\n\n/**\n * Gets the highest ranking for value for the given item based on its values for the given keys\n * @param {*} item - the item to rank\n * @param {Array} keys - the keys to get values from the item for the ranking\n * @param {String} value - the value to rank against\n * @param {Object} options - options to control the ranking\n * @return {{rank: Number, keyIndex: Number, keyThreshold: Number}} - the highest ranking\n */\nfunction getHighestRanking(item, keys, value, options) {\n if (!keys) {\n // if keys is not specified, then we assume the item given is ready to be matched\n const stringItem = item;\n return {\n // ends up being duplicate of 'item' in matches but consistent\n rankedValue: stringItem,\n rank: getMatchRanking(stringItem, value, options),\n keyIndex: -1,\n keyThreshold: options.threshold\n };\n }\n const valuesToRank = getAllValuesToRank(item, keys);\n return valuesToRank.reduce((_ref2, _ref3, i) => {\n let {\n rank,\n rankedValue,\n keyIndex,\n keyThreshold\n } = _ref2;\n let {\n itemValue,\n attributes\n } = _ref3;\n let newRank = getMatchRanking(itemValue, value, options);\n let newRankedValue = rankedValue;\n const {\n minRanking,\n maxRanking,\n threshold\n } = attributes;\n if (newRank < minRanking && newRank >= rankings.MATCHES) {\n newRank = minRanking;\n } else if (newRank > maxRanking) {\n newRank = maxRanking;\n }\n if (newRank > rank) {\n rank = newRank;\n keyIndex = i;\n keyThreshold = threshold;\n newRankedValue = itemValue;\n }\n return {\n rankedValue: newRankedValue,\n rank,\n keyIndex,\n keyThreshold\n };\n }, {\n rankedValue: item,\n rank: rankings.NO_MATCH,\n keyIndex: -1,\n keyThreshold: options.threshold\n });\n}\n\n/**\n * Gives a rankings score based on how well the two strings match.\n * @param {String} testString - the string to test against\n * @param {String} stringToRank - the string to rank\n * @param {Object} options - options for the match (like keepDiacritics for comparison)\n * @returns {Number} the ranking for how well stringToRank matches testString\n */\nfunction getMatchRanking(testString, stringToRank, options) {\n testString = prepareValueForComparison(testString, options);\n stringToRank = prepareValueForComparison(stringToRank, options);\n\n // too long\n if (stringToRank.length > testString.length) {\n return rankings.NO_MATCH;\n }\n\n // case sensitive equals\n if (testString === stringToRank) {\n return rankings.CASE_SENSITIVE_EQUAL;\n }\n\n // Lower casing before further comparison\n testString = testString.toLowerCase();\n stringToRank = stringToRank.toLowerCase();\n\n // case insensitive equals\n if (testString === stringToRank) {\n return rankings.EQUAL;\n }\n\n // starts with\n if (testString.startsWith(stringToRank)) {\n return rankings.STARTS_WITH;\n }\n\n // word starts with\n if (testString.includes(` ${stringToRank}`)) {\n return rankings.WORD_STARTS_WITH;\n }\n\n // contains\n if (testString.includes(stringToRank)) {\n return rankings.CONTAINS;\n } else if (stringToRank.length === 1) {\n // If the only character in the given stringToRank\n // isn't even contained in the testString, then\n // it's definitely not a match.\n return rankings.NO_MATCH;\n }\n\n // acronym\n if (getAcronym(testString).includes(stringToRank)) {\n return rankings.ACRONYM;\n }\n\n // will return a number between rankings.MATCHES and\n // rankings.MATCHES + 1 depending on how close of a match it is.\n return getClosenessRanking(testString, stringToRank);\n}\n\n/**\n * Generates an acronym for a string.\n *\n * @param {String} string the string for which to produce the acronym\n * @returns {String} the acronym\n */\nfunction getAcronym(string) {\n let acronym = '';\n const wordsInString = string.split(' ');\n wordsInString.forEach(wordInString => {\n const splitByHyphenWords = wordInString.split('-');\n splitByHyphenWords.forEach(splitByHyphenWord => {\n acronym += splitByHyphenWord.substr(0, 1);\n });\n });\n return acronym;\n}\n\n/**\n * Returns a score based on how spread apart the\n * characters from the stringToRank are within the testString.\n * A number close to rankings.MATCHES represents a loose match. A number close\n * to rankings.MATCHES + 1 represents a tighter match.\n * @param {String} testString - the string to test against\n * @param {String} stringToRank - the string to rank\n * @returns {Number} the number between rankings.MATCHES and\n * rankings.MATCHES + 1 for how well stringToRank matches testString\n */\nfunction getClosenessRanking(testString, stringToRank) {\n let matchingInOrderCharCount = 0;\n let charNumber = 0;\n function findMatchingCharacter(matchChar, string, index) {\n for (let j = index, J = string.length; j < J; j++) {\n const stringChar = string[j];\n if (stringChar === matchChar) {\n matchingInOrderCharCount += 1;\n return j + 1;\n }\n }\n return -1;\n }\n function getRanking(spread) {\n const spreadPercentage = 1 / spread;\n const inOrderPercentage = matchingInOrderCharCount / stringToRank.length;\n const ranking = rankings.MATCHES + inOrderPercentage * spreadPercentage;\n return ranking;\n }\n const firstIndex = findMatchingCharacter(stringToRank[0], testString, 0);\n if (firstIndex < 0) {\n return rankings.NO_MATCH;\n }\n charNumber = firstIndex;\n for (let i = 1, I = stringToRank.length; i < I; i++) {\n const matchChar = stringToRank[i];\n charNumber = findMatchingCharacter(matchChar, testString, charNumber);\n const found = charNumber > -1;\n if (!found) {\n return rankings.NO_MATCH;\n }\n }\n const spread = charNumber - firstIndex;\n return getRanking(spread);\n}\n\n/**\n * Sorts items that have a rank, index, and keyIndex\n * @param {Object} a - the first item to sort\n * @param {Object} b - the second item to sort\n * @return {Number} -1 if a should come first, 1 if b should come first, 0 if equal\n */\nfunction sortRankedValues(a, b, baseSort) {\n const aFirst = -1;\n const bFirst = 1;\n const {\n rank: aRank,\n keyIndex: aKeyIndex\n } = a;\n const {\n rank: bRank,\n keyIndex: bKeyIndex\n } = b;\n const same = aRank === bRank;\n if (same) {\n if (aKeyIndex === bKeyIndex) {\n // use the base sort function as a tie-breaker\n return baseSort(a, b);\n } else {\n return aKeyIndex < bKeyIndex ? aFirst : bFirst;\n }\n } else {\n return aRank > bRank ? aFirst : bFirst;\n }\n}\n\n/**\n * Prepares value for comparison by stringifying it, removing diacritics (if specified)\n * @param {String} value - the value to clean\n * @param {Object} options - {keepDiacritics: whether to remove diacritics}\n * @return {String} the prepared value\n */\nfunction prepareValueForComparison(value, _ref4) {\n let {\n keepDiacritics\n } = _ref4;\n // value might not actually be a string at this point (we don't get to choose)\n // so part of preparing the value for comparison is ensure that it is a string\n value = `${value}`; // toString\n if (!keepDiacritics) {\n value = removeAccents(value);\n }\n return value;\n}\n\n/**\n * Gets value for key in item at arbitrarily nested keypath\n * @param {Object} item - the item\n * @param {Object|Function} key - the potentially nested keypath or property callback\n * @return {Array} - an array containing the value(s) at the nested keypath\n */\nfunction getItemValues(item, key) {\n if (typeof key === 'object') {\n key = key.key;\n }\n let value;\n if (typeof key === 'function') {\n value = key(item);\n } else if (item == null) {\n value = null;\n } else if (Object.hasOwnProperty.call(item, key)) {\n value = item[key];\n } else if (key.includes('.')) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n return getNestedValues(key, item);\n } else {\n value = null;\n }\n\n // because `value` can also be undefined\n if (value == null) {\n return [];\n }\n if (Array.isArray(value)) {\n return value;\n }\n return [String(value)];\n}\n\n/**\n * Given path: \"foo.bar.baz\"\n * And item: {foo: {bar: {baz: 'buzz'}}}\n * -> 'buzz'\n * @param path a dot-separated set of keys\n * @param item the item to get the value from\n */\nfunction getNestedValues(path, item) {\n const keys = path.split('.');\n let values = [item];\n for (let i = 0, I = keys.length; i < I; i++) {\n const nestedKey = keys[i];\n let nestedValues = [];\n for (let j = 0, J = values.length; j < J; j++) {\n const nestedItem = values[j];\n if (nestedItem == null) continue;\n if (Object.hasOwnProperty.call(nestedItem, nestedKey)) {\n const nestedValue = nestedItem[nestedKey];\n if (nestedValue != null) {\n nestedValues.push(nestedValue);\n }\n } else if (nestedKey === '*') {\n // ensure that values is an array\n nestedValues = nestedValues.concat(nestedItem);\n }\n }\n values = nestedValues;\n }\n if (Array.isArray(values[0])) {\n // keep allowing the implicit wildcard for an array of strings at the end of\n // the path; don't use `.flat()` because that's not available in node.js v10\n const result = [];\n return result.concat(...values);\n }\n // Based on our logic it should be an array of strings by now...\n // assuming the user's path terminated in strings\n return values;\n}\n\n/**\n * Gets all the values for the given keys in the given item and returns an array of those values\n * @param item - the item from which the values will be retrieved\n * @param keys - the keys to use to retrieve the values\n * @return objects with {itemValue, attributes}\n */\nfunction getAllValuesToRank(item, keys) {\n const allValues = [];\n for (let j = 0, J = keys.length; j < J; j++) {\n const key = keys[j];\n const attributes = getKeyAttributes(key);\n const itemValues = getItemValues(item, key);\n for (let i = 0, I = itemValues.length; i < I; i++) {\n allValues.push({\n itemValue: itemValues[i],\n attributes\n });\n }\n }\n return allValues;\n}\nconst defaultKeyAttributes = {\n maxRanking: Infinity,\n minRanking: -Infinity\n};\n/**\n * Gets all the attributes for the given key\n * @param key - the key from which the attributes will be retrieved\n * @return object containing the key's attributes\n */\nfunction getKeyAttributes(key) {\n if (typeof key === 'string') {\n return defaultKeyAttributes;\n }\n return {\n ...defaultKeyAttributes,\n ...key\n };\n}\n\n/*\neslint\n no-continue: \"off\",\n*/\n\nexport { defaultBaseSortFn, matchSorter, rankings };\n","import { matchSorter, rankings as matchSorterRankings } from 'match-sorter'\nimport { type MdxListItem } from '~/types.ts'\n\nfunction filterPosts(posts: Array, searchString: string) {\n if (!searchString) return posts\n\n const options = {\n keys: [\n {\n key: 'frontmatter.title',\n threshold: matchSorterRankings.CONTAINS,\n },\n {\n key: 'frontmatter.categories',\n threshold: matchSorterRankings.CONTAINS,\n maxRanking: matchSorterRankings.CONTAINS,\n },\n {\n key: 'frontmatter.meta.keywords',\n threshold: matchSorterRankings.CONTAINS,\n maxRanking: matchSorterRankings.CONTAINS,\n },\n {\n key: 'frontmatter.description',\n threshold: matchSorterRankings.CONTAINS,\n maxRanking: matchSorterRankings.CONTAINS,\n },\n ],\n }\n\n const allResults = matchSorter(posts, searchString, options)\n const searches = new Set(searchString.split(' '))\n if (searches.size < 2) {\n // if there's only one word then we're done\n return allResults\n }\n\n // if there are multiple words, we'll conduct an individual search for each word\n const [firstWord, ...restWords] = searches.values()\n if (!firstWord) {\n // this should be impossible, but if it does happen, we'll just return an empty array\n return []\n }\n const individualWordOptions = {\n ...options,\n keys: options.keys.map(key => {\n return {\n ...key,\n maxRanking: matchSorterRankings.CASE_SENSITIVE_EQUAL,\n threshold: matchSorterRankings.WORD_STARTS_WITH,\n }\n }),\n }\n\n // go through each word and further filter the results\n let individualWordResults = matchSorter(\n posts,\n firstWord,\n individualWordOptions,\n )\n for (const word of restWords) {\n const searchResult = matchSorter(\n individualWordResults,\n word,\n individualWordOptions,\n )\n individualWordResults = individualWordResults.filter(r =>\n searchResult.includes(r),\n )\n }\n return Array.from(new Set([...allResults, ...individualWordResults]))\n}\n\nexport { filterPosts }\n","import {\n json,\n type LoaderFunctionArgs,\n type HeadersFunction,\n type LinksFunction,\n type MetaFunction,\n type SerializeFrom,\n} from '@remix-run/node'\nimport { useLoaderData, useSearchParams } from '@remix-run/react'\nimport { clsx } from 'clsx'\nimport * as React from 'react'\nimport { ArticleCard } from '~/components/article-card.tsx'\nimport { Button } from '~/components/button.tsx'\nimport { ServerError } from '~/components/errors.tsx'\nimport { Grid } from '~/components/grid.tsx'\nimport { PlusIcon, SearchIcon } from '~/components/icons.tsx'\nimport { FeaturedSection } from '~/components/sections/featured-section.tsx'\nimport { HeroSection } from '~/components/sections/hero-section.tsx'\nimport { Tag } from '~/components/tag.tsx'\nimport { H6 } from '~/components/typography.tsx'\nimport {\n getImageBuilder,\n getSocialImageWithPreTitle,\n images,\n} from '~/images.tsx'\nimport { filterPosts } from '~/utils/blog.ts'\nimport { getBlogRecommendations } from '~/utils/blog.server.ts'\nimport { getBannerAltProp } from '~/utils/mdx.tsx'\nimport { getBlogMdxListItems } from '~/utils/mdx.server.ts'\nimport {\n formatNumber,\n getDisplayUrl,\n getUrl,\n reuseUsefulLoaderHeaders,\n useUpdateQueryStringValueWithoutNavigation,\n useCapturedRouteError,\n} from '~/utils/misc.tsx'\nimport { getSocialMetas } from '~/utils/seo.ts'\nimport { getServerTimeHeader } from '~/utils/timing.server.ts'\nimport { useRootData } from '~/utils/use-root-data.ts'\nimport { type RootLoaderType } from '~/root.tsx'\n\nexport const links: LinksFunction = () => {\n return [\n {\n rel: 'alternate',\n type: 'application/rss+xml',\n title: 'Blog - Vinh Nguyen',\n href: '/blog/rss.xml',\n },\n ]\n}\n\nexport async function loader({ request }: LoaderFunctionArgs) {\n const timings = {}\n const [posts, [recommended]] = await Promise.all([\n getBlogMdxListItems({ request }).then(allPosts =>\n allPosts.filter(p => !p.frontmatter.draft && !p.frontmatter.unlisted),\n ),\n getBlogRecommendations({ request, limit: 1, timings }),\n ])\n\n const tags = new Set()\n for (const post of posts) {\n for (const category of post.frontmatter.categories ?? []) {\n tags.add(category)\n }\n }\n\n const data = {\n posts,\n recommended,\n tags: Array.from(tags),\n }\n\n return json(data, {\n headers: {\n 'Cache-Control': 'private, max-age=3600',\n Vary: 'Cookie',\n 'Server-Timing': getServerTimeHeader(timings),\n },\n })\n}\n\nexport const headers: HeadersFunction = reuseUsefulLoaderHeaders\n\nexport const meta: MetaFunction = ({\n data,\n matches,\n}) => {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n const requestInfo = matches.find(m => m.id === 'root')?.data.requestInfo\n const { posts } = data as SerializeFrom\n return getSocialMetas({\n title: 'Articles - Vinh Nguyen',\n description: `Boost your development knowledge with ${formatNumber(\n posts.length,\n )} articles on Microservice, Testing, Database, Software Development, and more.`,\n keywords:\n 'Microservice, Testing, Database, Software Development, Vinh Nguyen Blog',\n url: getUrl(requestInfo),\n image: getSocialImageWithPreTitle({\n url: getDisplayUrl(requestInfo),\n featuredImage: images.defaultFeaturedImage.id,\n preTitle: 'Check out my articles',\n title:\n 'Essential insights, ideas, and experiences for your development work',\n }),\n })\n}\n\nconst PAGE_SIZE = 12\nconst initialIndexToShow = PAGE_SIZE\n\nfunction BlogHome() {\n const { requestInfo } = useRootData()\n const [searchParams] = useSearchParams()\n\n const searchInputRef = React.useRef(null)\n const resultsRef = React.useRef(null)\n\n /**\n * This is here to make sure that a user doesn't hit \"enter\" on the search\n * button, which focuses the input and then keyup the enter on the input\n * which will trigger the scroll down. We should *only* scroll when the\n * \"enter\" keypress and keyup happen on the input.\n */\n const ignoreInputKeyUp = React.useRef(false)\n const [queryValue, setQuery] = React.useState(() => {\n return searchParams.get('q') ?? ''\n })\n const query = queryValue.trim()\n\n useUpdateQueryStringValueWithoutNavigation('q', query)\n\n const data = useLoaderData()\n const { posts: allPosts } = data\n\n const matchingPosts = React.useMemo(() => {\n return filterPosts(allPosts, query)\n }, [allPosts, query])\n\n const [indexToShow, setIndexToShow] = React.useState(initialIndexToShow)\n React.useEffect(() => {\n setIndexToShow(initialIndexToShow)\n }, [query])\n\n function toggleTag(tag: string) {\n setQuery(q => {\n const expression = new RegExp(tag, 'ig')\n\n const newQuery = expression.test(q)\n ? q.replace(expression, '')\n : `${q} ${tag}`\n\n return newQuery.replace(/\\s+/g, ' ').trim()\n })\n }\n\n const isSearching = query.length > 0\n\n const posts = isSearching\n ? matchingPosts.slice(0, indexToShow)\n : matchingPosts\n .filter(p => p.slug !== data.recommended?.slug)\n .slice(0, indexToShow)\n\n const hasMorePosts = isSearching\n ? indexToShow < matchingPosts.length\n : indexToShow < matchingPosts.length - 1\n\n const visibleTags = isSearching\n ? new Set(\n matchingPosts\n .flatMap(post => post.frontmatter.categories)\n .filter(Boolean),\n )\n : new Set(data.tags)\n\n const recommendedPermalink = data.recommended\n ? `${requestInfo.origin}/blog/${data.recommended.slug}`\n : undefined\n\n const searchInputPlaceholder = 'Search articles'\n\n return (\n
\n \n e.preventDefault()}\n >\n
\n {\n setQuery('')\n ignoreInputKeyUp.current = true\n searchInputRef.current?.focus()\n }}\n onKeyDown={() => {\n ignoreInputKeyUp.current = true\n }}\n onKeyUp={() => {\n ignoreInputKeyUp.current = false\n }}\n className={clsx(\n 'absolute left-6 top-0 flex h-full items-center justify-center border-none bg-transparent p-0 text-slate-500',\n {\n 'cursor-pointer': query !== '',\n 'cursor-default': query === '',\n },\n )}\n >\n \n \n \n setQuery(event.currentTarget.value.toLowerCase())\n }\n onKeyUp={e => {\n if (!ignoreInputKeyUp.current && e.key === 'Enter') {\n resultsRef.current\n ?.querySelector('a')\n ?.focus({ preventScroll: true })\n resultsRef.current?.scrollIntoView({ behavior: 'smooth' })\n }\n ignoreInputKeyUp.current = false\n }}\n name=\"q\"\n placeholder={searchInputPlaceholder}\n className=\"text-primary bg-primary border-secondary focus:bg-secondary w-full appearance-none rounded-md border py-4 pl-14 pr-6 text-lg font-medium hover:border-main-current focus:border-main-current focus:outline-none\"\n />\n
\n \n
\n }\n />\n\n \n {data.tags.length > 0 ? (\n
\n {data.tags.map(tag => {\n const selected = query.includes(tag)\n return (\n toggleTag(tag)}\n disabled={Boolean(!visibleTags.has(tag)) ? !selected : false}\n />\n )\n })}\n
\n ) : null}\n
\n\n {!isSearching && data.recommended ? (\n
\n \n
\n ) : null}\n\n \n {posts.length === 0 && isSearching ? (\n
\n
\n {`Couldn't find anything to match your criteria. Sorry.`}\n
\n
\n ) : (\n posts.map(article => (\n
\n \n
\n ))\n )}\n
\n\n {hasMorePosts ? (\n
\n setIndexToShow(i => i + PAGE_SIZE)}\n >\n Load more \n \n
\n ) : null}\n
\n )\n}\n\nexport default BlogHome\nexport function ErrorBoundary() {\n const error = useCapturedRouteError()\n console.error(error)\n return \n}\n"],"names":["FeaturedSection","slug","href","caption","cta","imageBuilder","imageUrl","imageAlt","blurDataUrl","title","subTitle","permalink","img","jsx","getImgProps","jsxs","Grid","H6","H2","ArrowLink","BlurrableImage","ClipboardCopyButton","t","n","e","r","i","o","a","u","c","s","f","l","v","p","g","y","d","x","m","h","S","getServiceState","service","currentValue","state","useMachine","initialMachine","refs","DEBUG","machineRef","React.useRef","useConstant","interpret","lastEventType","setState","React.useState","send","React.useCallback","rawEvent","event","isString","refValues","unwrapRefs","React.useEffect","newState","React.useMemo","value","name","ref","useCreateMachine","machineDefinition","options","createMachine","checkToggleAllowed","data","getCheckSetCondition","getCheckResetCondition","assignRefs","assign","commonEvents","createMachineDefinition","initialState","props","MixedCheckbox","React.forwardRef","Comp","checked","defaultChecked","disabled","onChange","forwardedRef","ownRef","useComposedRefs","inputProps","useMixedCheckbox","React.createElement","inputRef","args","deprecated_callerName","callerName","controlledChecked","onClick","isControlled","machine","checkedPropToStateValue","current","stateValueToChecked","composeEventHandlers","handleChange","handleClick","contextData","syncDomNodeWithState","wasControlled","form","_a","handleReset","useIsomorphicLayoutEffect","CustomCheckboxContextProvider","useCustomCheckboxContext","createContext","CustomCheckboxContainer","React2.forwardRef","children","__componentName","React2.useRef","stateData","focused","setFocused","React2.useState","context","React2.createElement","composeEventHandlers2","isFunction","CustomCheckboxInput","onBlur","onFocus","useComposedRefs2","mounted","handleBlur","handleFocus","React2.useEffect","CustomCheckbox","id","Tag","tag","selected","clsx","characterMap","chars","allAccents","firstAccent","matcher","match","removeAccents","string","hasAccents","removeAccentsModule","rankings","defaultBaseSortFn","b","matchSorter","items","keys","threshold","baseSort","sorter","matchedItems","sortRankedValues","reduceItemsToRanked","_ref","item","matches","index","rankingInfo","getHighestRanking","rank","keyThreshold","stringItem","getMatchRanking","getAllValuesToRank","_ref2","_ref3","rankedValue","keyIndex","itemValue","attributes","newRank","newRankedValue","minRanking","maxRanking","testString","stringToRank","prepareValueForComparison","getAcronym","getClosenessRanking","acronym","wordInString","splitByHyphenWord","matchingInOrderCharCount","charNumber","findMatchingCharacter","matchChar","j","J","getRanking","spread","spreadPercentage","inOrderPercentage","firstIndex","I","aRank","aKeyIndex","bRank","bKeyIndex","_ref4","keepDiacritics","getItemValues","key","getNestedValues","path","values","nestedKey","nestedValues","nestedItem","nestedValue","allValues","getKeyAttributes","itemValues","defaultKeyAttributes","filterPosts","posts","searchString","matchSorterRankings","allResults","searches","firstWord","restWords","individualWordOptions","individualWordResults","word","searchResult","links","rel","type","meta","requestInfo","find","getSocialMetas","description","formatNumber","length","keywords","url","getUrl","image","getSocialImageWithPreTitle","getDisplayUrl","featuredImage","images","defaultFeaturedImage","preTitle","PAGE_SIZE","initialIndexToShow","BlogHome","useRootData","searchParams","useSearchParams","searchInputRef","React","resultsRef","ignoreInputKeyUp","queryValue","setQuery","get","query","trim","useUpdateQueryStringValueWithoutNavigation","useLoaderData","allPosts","matchingPosts","indexToShow","setIndexToShow","toggleTag","q","expression","RegExp","test","replace","isSearching","slice","filter","recommended","hasMorePosts","visibleTags","Set","flatMap","post","frontmatter","categories","Boolean","tags","recommendedPermalink","origin","HeroSection","animatedTitle","action","className","method","onSubmit","preventDefault","focus","onKeyDown","onKeyUp","SearchIcon","currentTarget","toLowerCase","querySelector","preventScroll","scrollIntoView","behavior","placeholder","map","includes","has","dateDisplay","readTime","text","join","bannerBlurDataUrl","bannerCloudinaryId","getImageBuilder","getBannerAltProp","as","variant","ArticleCard","article","Button","PlusIcon","ErrorBoundary","error","useCapturedRouteError","console","ServerError"],"mappings":"8gBA6BA,SAASA,GAAgB,CACvB,KAAAC,EACA,KAAAC,EACA,QAAAC,EACA,IAAAC,EAAM,oBACN,aAAAC,EACA,SAAAC,EACA,SAAAC,EACA,YAAAC,EACA,MAAAC,EAAQ,gBACR,SAAAC,EACA,UAAAC,CACF,EAAyB,CACvB,MAAMC,EAAMP,EACVQ,EAAA,IAAC,MAAA,CACE,GAAGC,GAAYT,EAAc,CAC5B,UAAW,wCACX,OAAQ,CAAC,IAAK,IAAK,IAAK,KAAM,IAAI,EAClC,MAAO,CACL,2BACA,iDACA,OACF,EACA,gBAAiB,CAAE,WAAY,YAAa,CAC7C,CAAA,CAAA,CAAA,EAGHQ,EAAA,IAAC,MAAA,CACC,UAAU,wCACV,IAAKP,EACL,IAAKC,CAAA,CACP,EAEF,OACGM,MAAA,MAAA,CAAI,UAAU,sBACb,eAAC,MAAI,CAAA,UAAU,mFACb,SAAAA,EAAA,IAAC,OAAI,UAAU,gBACb,SAACE,OAAAC,EAAA,CAAK,UAAU,0EACd,SAAA,CAACD,EAAAA,KAAA,MAAA,CAAI,UAAU,oFACb,SAAA,CAAAA,OAAC,MACC,CAAA,SAAA,CAACF,EAAA,IAAAI,GAAA,CAAG,GAAG,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,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,KACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,KACL,EAAK,KACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,KACL,EAAK,KACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,KACL,EAAK,KACL,EAAK,IACL,EAAK,IACL,EAAK,KACL,EAAK,KACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,EAAK,IACL,GAAM,IACN,GAAM,IACN,EAAK,IACL,EAAK,IACL,EA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