File "index.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/yith-woocommerce-compare/plugin-fw/dist/gutenberg/index.js
File size: 23.68 KB
MIME-type: text/plain
Charset: utf-8

(()=>{var e,t={631:(e,t,n)=>{"use strict";const o=window.wp.element,r=window.React;var a=n(503),s=n.n(a);const l=window.wp.blocks,c=window.wp.url;function i(e){if(e.status>=200&&e.status<300)return e;throw e}function u(e){return e.json?e.json():e.text()}const d=(0,o.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},(0,o.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z  M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"})),p=window.lodash;var h=n.n(p);const m=(e,t,n)=>{let o=!0;if(t&&t.id&&"value"in t){let r=t.value;["toggle","checkbox"].includes(n)&&(r=!0===r||"yes"===r||1===r),r=h().isArray(r)?r:[r],o=void 0!==e[t.id]&&r.includes(e[t.id])}return o},f=(e,t)=>{const{controlType:n}=e;let o=!0;if(e.deps)if(h().isArray(e.deps))for(let r in e.deps){const a=e.deps[r];if(o=m(t,a,n),!o)break}else o=m(t,e.deps,n);return o},g=(e,t)=>{let n="",o=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?o=jQuery.fn[e.callback]:e.callback in window&&(o=window[e.callback])),"function"==typeof o)n=o(t,e);else{const o=e.attributes?Object.entries(e.attributes).map((([e,n])=>{const o=f(n,t),r=t[e];if(o&&void 0!==r)return e+"="+(n.remove_quotes?r:`"${r}"`)})):[],r=o.length?" "+o.join(" "):"";n=`[${e.shortcode_name}${r}]`}return n},b=window.wp.components,_=window.wp.blockEditor,y=window.wp.hooks;class v extends r.Component{constructor(){super(...arguments),this.state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},this.ajaxTimeout=!1}componentDidMount(){this.updateShortcode()}componentDidUpdate(e,t,n){const{shortcode:o,shortcodeHash:r,ajaxSuccess:a,ajaxResponse:s,ajaxUpdated:l}=this.state;(0,p.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&l&&(a&&(0,y.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,r,s),(0,y.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,r,s),this.setState({ajaxUpdated:!1}))}updateShortcode(){const{attributes:e,blockArgs:t}=this.props;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});const n=g(t,e),o=s()(n);t.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),(0,y.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",n,o),this.ajaxTimeout=setTimeout((()=>{var e,t,r;((e,t=yithGutenberg.ajaxurl)=>{var n;return e.security=null!==(n=e.security)&&void 0!==n?n:yithGutenberg.ajaxNonce,t=(0,c.addQueryArgs)(t,e),fetch(t).then(i).then(u)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:n,context:{...null!==(e=this.props.context)&&void 0!==e?e:{},adminPage:null!==(t=window?.adminpage)&&void 0!==t?t:"",pageNow:null!==(r=window?.pagenow)&&void 0!==r?r:""}}).then((e=>{this.setState({loading:!1,firstLoading:!1,html:e.html,shortcode:n,shortcodeHash:o,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:e})})).catch((e=>{console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:n,shortcode:n,shortcodeHash:o})}render(){const{html:e,loading:t,firstLoading:n,shortcode:r,shortcodeHash:a}=this.state,{blockArgs:s}=this.props,{do_shortcode:l,title:c,empty_message:i}=s,u="block-editor-yith-plugin-fw-shortcode-block";let p=[u],h=l?"html":"shortcode",m=e,f="";n&&t?h="first-loading":l&&!e&&(h="empty-html",m=r,!t&&i&&(f=i));const g=["first-loading","empty-html","shortcode"].includes(h),_=!["first-loading","empty-html"].includes(h),y=!!f;return p.push(`${u}--${h}`),p.push(y?`${u}--has-message`:`${u}--no-message`),p.push(`yith_block_${a}`),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:p.join(" ")},t?(0,o.createElement)("div",{className:`${u}__spinner-wrap`},(0,o.createElement)(b.Spinner,null)):"",g&&(0,o.createElement)("div",{className:`${u}__title components-placeholder__label`},d,c),y&&(0,o.createElement)(o.RawHTML,{className:`${u}__message`},f),_&&(0,o.createElement)(o.RawHTML,{className:`${u}__content`},m)))}}const w=window.wp.compose;function k({className:e,label:t,onChange:n,value:r,help:a,disableAlpha:s}){const l=`inspector-yith-color-picker-control-${(0,w.useInstanceId)(k)}`;return(0,o.createElement)(b.BaseControl,{id:l,label:t,className:`block-editor-yith-color-control ${e}`,help:a},(0,o.createElement)(b.ColorPicker,{color:r,disableAlpha:s,onChangeComplete:n}))}function C({label:e,colorValue:t}){return(0,o.createElement)(o.Fragment,null,e,!!t&&(0,o.createElement)(b.ColorIndicator,{colorValue:t}))}function E({className:e,label:t,onChange:n,value:r,help:a,palette:s,clearable:l}){s=s||(0,_.useSetting)("color.palette");const c=`inspector-yith-color-palette-control-${(0,w.useInstanceId)(E)}`;return(0,o.createElement)(b.BaseControl,{id:c,className:`block-editor-yith-color-palette-control ${e}`,help:a},(0,o.createElement)("fieldset",null,(0,o.createElement)("legend",null,(0,o.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},(0,o.createElement)(b.BaseControl.VisualLabel,null,(0,o.createElement)(C,{colorValue:r,label:t})))),(0,o.createElement)(b.ColorPalette,{value:r,onChange:n,colors:s,clearable:l})))}var x=n(942),N=n.n(x),T=n(556),j=n.n(T);const S=window.wp.i18n,R={noItems:(0,S.__)("No items found.","yith-plugin-fw"),noResults:(0,S.__)('No results for "%s"',"yith-plugin-fw"),search:(0,S.__)("Search for items...","yith-plugin-fw")};function O(e){const t=(0,w.useInstanceId)(B);return e||`inspector-yith-multiple-select-control-${t}`}function A({id:e,value:t,options:n,onChange:a,messages:s}){var l;const[c,i]=(0,r.useState)(""),[u,d]=(0,r.useState)(!1),[p,h]=(0,r.useState)(248),m={...R,...s},f=(0,r.useRef)(),g=(0,r.useRef)(),_=(0,r.useRef)(),y=(0,r.useRef)(),v=(0,r.useRef)(),w=N()("yith-fw-components__multiple-select"),k=(0,r.useMemo)((()=>n.map((e=>e.value))),[n]),C=(0,r.useMemo)((()=>t.filter((e=>k.includes(e)))),[t,k]),E=(0,r.useMemo)((()=>n.filter((e=>e.label.toLowerCase().indexOf(c.toLowerCase())>=0))),[n,c]),x=(0,r.useMemo)((()=>n.filter((e=>C.includes(e.value)))),[n,C]),T=e=>{const t=[...C].filter((t=>t!==e));a(t)},j=()=>!!g.current&&g.current.focus(),A=e=>{const t=f?.current&&f.current.contains(e.target),n=y?.current&&y.current.contains(e.target);t||n||d(!1)};return(0,r.useEffect)((()=>(document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)))),(0,r.useEffect)((()=>{(()=>{if(!f.current)return;const e=f.current.getBoundingClientRect()?.width;h(e)})()}),[]),(0,o.createElement)("div",{className:w,ref:f},(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__input-container",ref:_,onClick:e=>{_?.current&&_.current===e.target&&j()}},x.map((e=>(0,o.createElement)("span",{key:e.value,className:"yith-fw-components__multiple-select__item"},(0,o.createElement)("span",{className:"yith-fw-components__multiple-select__item__label"},e.label),(0,o.createElement)("i",{className:"yith-fw-components__multiple-select__item__remove yith-icon-close-alt",onClick:()=>{T(e.value),d(!1)}})))),(0,o.createElement)("input",{className:"yith-fw-components__multiple-select__input",id:O(e),ref:g,type:"text",autoComplete:"off",placeholder:m.search,onFocus:()=>d(!0),value:c,onChange:e=>i(e.target.value)})),u&&(0,o.createElement)(b.Popover,{className:"yith-fw-components__multiple-select__popover",position:"bottom",offset:20,anchorRef:null!==(l=f?.current)&&void 0!==l?l:void 0,anchorRect:f?.current&&f?.current.getBoundingClientRect(),focusOnMount:!1,ref:y},(0,o.createElement)("div",{className:N()("yith-fw-components__multiple-select__suggestions",!E.length&&"no-results"),ref:v,style:{width:p}},n.length&&E.length?E.map((e=>{const t=C.includes(e.value);return(0,o.createElement)("div",{key:e.value,className:N()("yith-fw-components__multiple-select__suggestion",t&&"selected"),onClick:()=>{var n;t||(n=e.value,a([...C,n]),i(""),j())}},(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__suggestion__label"},e.label),t&&(0,o.createElement)("i",{className:"yith-fw-components__multiple-select__suggestion__remove yith-icon yith-icon-close-alt",onClick:()=>{T(e.value),j()}}))})):(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__suggestions__message"},n.length&&c?(0,S.sprintf)(m.noResults,c):m.noItems))))}function B({className:e,label:t,onChange:n,value:r,help:a,options:s,messages:l}){const c=`inspector-yith-multiple-select-control-${(0,w.useInstanceId)(B)}`;return(0,o.createElement)(b.BaseControl,{id:c,label:t,className:`block-editor-yith-multiple-select-control ${e}`,help:a},(0,o.createElement)(A,{id:c,value:r,options:s,onChange:n,messages:l}))}function $({className:e,title:t,attributes:n,context:r,block:a}){const s=(0,o.useRef)(),[l,i]=(0,o.useState)(!1),u=(0,c.addQueryArgs)(yithGutenberg.siteURL,{"yith-plugin-fw-block-preview":1,"yith-plugin-fw-block-preview-nonce":yithGutenberg.previewNonce,attributes:n,context:r,block:a}),d=N()("yith-plugin-fw-blocks__edit-preview-iframe",!l&&"yith-plugin-fw-blocks__edit-preview-iframe--is-loading",e);return(0,o.useEffect)((()=>{i(!1)}),[u]),(0,o.useEffect)((()=>{if(!s||!s.current||!l)return;const e=s.current,t=()=>{const e=s.current,t=Math.max(e.contentDocument.documentElement.offsetHeight,e.contentDocument.body.offsetHeight);e.style.height=`${t}px`},{IntersectionObserver:n,ResizeObserver:o}=e.ownerDocument.defaultView,r=new n((([e])=>{e.isIntersecting&&t()}),{threshold:1});r.observe(e);const a=!!o&&new o((()=>t()));return a&&a.observe(e),e.addEventListener("load",t),()=>{r.disconnect(),a&&a.disconnect(),e.removeEventListener("load",t)}}),[l]),(0,o.createElement)(o.Fragment,null,!l&&(0,o.createElement)("div",{className:"yith-plugin-fw-blocks__edit-preview-iframe__loading-placeholder"},(0,o.createElement)(b.Spinner,{style:{width:28,height:28}})),(0,o.createElement)("iframe",{ref:s,className:d,title:t,src:u,onLoad:e=>{e.target.contentDocument.body.style.overflow="hidden",i(!0)},height:100}))}A.propTypes={id:j().string,className:j().string,value:j().array,options:j().arrayOf(j().shape({label:j().string,value:j().oneOfType([j().string,j().number])})),onChange:j().func},A.defaultProps={id:"",value:[],className:"",options:[],onChange:h()},$.propTypes={className:j().string,title:j().string.isRequired,block:j().string.isRequired,attributes:j().object,context:j().object},$.defaultProps={className:"",attributes:{},context:{}};const I=$,L=function({blockArgs:e}){const{editor_placeholder:t,title:n,description:r}=e,a=!0===t,s=N()("yith-plugin-fw-blocks__editor-placeholder",a&&"yith-plugin-fw-blocks__editor-placeholder--default");return a?(0,o.createElement)("div",{className:s},(0,o.createElement)("div",{className:"yith-plugin-fw-blocks__editor-placeholder__title"},d,n),r&&(0,o.createElement)("div",{className:"yith-plugin-fw-blocks__editor-placeholder__description"},r)):(0,o.createElement)(o.RawHTML,{className:s},t)},M=window.wp.serverSideRender;var P=n.n(M);function H(){return(0,o.createElement)("div",{className:"yith-plugin-fw-blocks__ssr-loading"},(0,o.createElement)(b.Spinner,null))}const U=function({block:e,attributes:t}){return(0,o.createElement)(P(),{block:e,attributes:t,LoadingResponsePlaceholder:H})},D=({attributeName:e,attributeArgs:t,attributes:n,onChange:r,blockName:a})=>{var s,l,c;const{controlType:i,label:u,wrapper_class:d}=t,p=n[e],h=((e,t)=>{let n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n})(t,p),m=f(t,n),g=N()(`${a}__${e}-field-wrapper`,d);let _=!1;if(m)switch(i){case"select":var y,v,w;_=t.multiple?(0,o.createElement)(B,{className:g,value:p,label:u,options:null!==(y=t?.options)&&void 0!==y?y:[],help:h,onChange:r,messages:null!==(v=t?.messages)&&void 0!==v?v:{}}):(0,o.createElement)(b.SelectControl,{className:g,value:p,label:u,options:null!==(w=t?.options)&&void 0!==w?w:[],help:h,onChange:r});break;case"text":_=(0,o.createElement)(b.TextControl,{className:g,key:e,value:p,label:u,help:h,onChange:r});break;case"textarea":_=(0,o.createElement)(b.TextareaControl,{className:g,key:e,value:p,label:u,help:h,onChange:r});break;case"toggle":_=(0,o.createElement)(b.ToggleControl,{className:g,key:e,label:u,help:h,checked:p,onChange:r});break;case"checkbox":_=(0,o.createElement)(b.CheckboxControl,{className:g,key:e,label:u,help:h,checked:p,onChange:r});break;case"number":case"range":_=(0,o.createElement)(b.RangeControl,{className:g,key:e,value:p,label:u,help:h,min:t?.min,max:t?.max,onChange:r});break;case"color":case"colorpicker":_=(0,o.createElement)(k,{className:g,key:e,label:u,help:h,value:p,disableAlpha:null!==(s=t?.disableAlpha)&&void 0!==s&&s,onChange:r});break;case"color-palette":_=(0,o.createElement)(E,{className:g,key:e,label:u,help:h,value:p,clearable:null!==(l=t?.clearable)&&void 0!==l&&l,onChange:r});break;case"radio":_=(0,o.createElement)(b.RadioControl,{key:e,label:u,options:null!==(c=t?.options)&&void 0!==c?c:[],selected:p,help:h,onChange:r});break;default:_=!1}return _},F=(e,t)=>function({context:n,attributes:r,className:a,setAttributes:s}){var l;let c="shortcode";t.render_callback&&(c=t.use_frontend_preview?"frontend":"ssr"),t.editor_placeholder&&(c="placeholder");const i="shortcode"!==c,u=Boolean(null!==(l=t.should_use_disabled)&&void 0!==l?l:i)?b.Disabled:o.Fragment;return(0,o.createElement)(o.Fragment,null,!!t.attributes&&(0,o.createElement)(_.InspectorControls,null,(0,o.createElement)(b.PanelBody,null,Object.entries(t.attributes).map((([t,n])=>{const{controlType:a}=n;return(0,o.createElement)(D,{key:t,attributeArgs:n,attributeName:t,attributes:r,blockName:e,onChange:e=>((e,t,n)=>{if(["colorpicker","color"].includes(n))if("rgb"in e&&"hex"in e){const{r:t,g:n,b:o,a:r}=e.rgb;e=r<1?`rgba(${t}, ${n}, ${o}, ${r})`:e.hex}else e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString();s({[t]:e})})(e,t,a)})})))),(0,o.createElement)(u,null,"shortcode"===c&&(0,o.createElement)(v,{attributes:r,blockArgs:t,context:n}),"frontend"===c&&(0,o.createElement)(I,{attributes:r,block:e,title:t.title,context:n}),"ssr"===c&&(0,o.createElement)(U,{block:`yith/${e}`,attributes:r}),"placeholder"===c&&(0,o.createElement)(L,{blockArgs:t})))},Q=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];for(const e of Q)(0,y.addAction)(e.key,"yith-plugin-fw/jquery-events",((...t)=>{"jQuery"in window&&(e.delay?setTimeout((()=>{jQuery(document).trigger(e.key,Object.values(t))}),e.delay):jQuery(document).trigger(e.key,Object.values(t)))}));for(const[e,t]of Object.entries(yithGutenbergBlocks))(0,l.registerBlockType)("yith/"+e,{title:t.title,description:t.description,category:t.category,attributes:t.attributes,icon:void 0!==t.icon?t.icon:d,keywords:t.keywords,edit:F(e,t),usesContext:["postId"],save:({attributes:e})=>t?.shortcode_name&&!t.render_callback?g(t,e):null,deprecated:[{attributes:t.attributes,save:({attributes:e})=>{const n=g(t,e),r='<span class="yith_block_'+s()(n)+'">'+n+"</span>";return(0,o.createElement)(o.RawHTML,null,r)}}]})},151:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},939:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,o=0;n<e.length;n++,o+=8)t[o>>>5]|=e[n]<<24-o%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],o=0;o<e.length;o+=3)for(var r=e[o]<<16|e[o+1]<<8|e[o+2],a=0;a<4;a++)8*o+6*a<=8*e.length?n.push(t.charAt(r>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],o=0,r=0;o<e.length;r=++o%4)0!=r&&n.push((t.indexOf(e.charAt(o-1))&Math.pow(2,-2*r+8)-1)<<2*r|t.indexOf(e.charAt(o))>>>6-2*r);return n}},e.exports=n},206:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},503:(e,t,n)=>{var o,r,a,s,l;o=n(939),r=n(151).utf8,a=n(206),s=n(151).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?s.stringToBytes(e):r.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=o.bytesToWords(e),c=8*e.length,i=1732584193,u=-271733879,d=-1732584194,p=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var m=l._ff,f=l._gg,g=l._hh,b=l._ii;for(h=0;h<n.length;h+=16){var _=i,y=u,v=d,w=p;i=m(i,u,d,p,n[h+0],7,-680876936),p=m(p,i,u,d,n[h+1],12,-389564586),d=m(d,p,i,u,n[h+2],17,606105819),u=m(u,d,p,i,n[h+3],22,-1044525330),i=m(i,u,d,p,n[h+4],7,-176418897),p=m(p,i,u,d,n[h+5],12,1200080426),d=m(d,p,i,u,n[h+6],17,-1473231341),u=m(u,d,p,i,n[h+7],22,-45705983),i=m(i,u,d,p,n[h+8],7,1770035416),p=m(p,i,u,d,n[h+9],12,-1958414417),d=m(d,p,i,u,n[h+10],17,-42063),u=m(u,d,p,i,n[h+11],22,-1990404162),i=m(i,u,d,p,n[h+12],7,1804603682),p=m(p,i,u,d,n[h+13],12,-40341101),d=m(d,p,i,u,n[h+14],17,-1502002290),i=f(i,u=m(u,d,p,i,n[h+15],22,1236535329),d,p,n[h+1],5,-165796510),p=f(p,i,u,d,n[h+6],9,-1069501632),d=f(d,p,i,u,n[h+11],14,643717713),u=f(u,d,p,i,n[h+0],20,-373897302),i=f(i,u,d,p,n[h+5],5,-701558691),p=f(p,i,u,d,n[h+10],9,38016083),d=f(d,p,i,u,n[h+15],14,-660478335),u=f(u,d,p,i,n[h+4],20,-405537848),i=f(i,u,d,p,n[h+9],5,568446438),p=f(p,i,u,d,n[h+14],9,-1019803690),d=f(d,p,i,u,n[h+3],14,-187363961),u=f(u,d,p,i,n[h+8],20,1163531501),i=f(i,u,d,p,n[h+13],5,-1444681467),p=f(p,i,u,d,n[h+2],9,-51403784),d=f(d,p,i,u,n[h+7],14,1735328473),i=g(i,u=f(u,d,p,i,n[h+12],20,-1926607734),d,p,n[h+5],4,-378558),p=g(p,i,u,d,n[h+8],11,-2022574463),d=g(d,p,i,u,n[h+11],16,1839030562),u=g(u,d,p,i,n[h+14],23,-35309556),i=g(i,u,d,p,n[h+1],4,-1530992060),p=g(p,i,u,d,n[h+4],11,1272893353),d=g(d,p,i,u,n[h+7],16,-155497632),u=g(u,d,p,i,n[h+10],23,-1094730640),i=g(i,u,d,p,n[h+13],4,681279174),p=g(p,i,u,d,n[h+0],11,-358537222),d=g(d,p,i,u,n[h+3],16,-722521979),u=g(u,d,p,i,n[h+6],23,76029189),i=g(i,u,d,p,n[h+9],4,-640364487),p=g(p,i,u,d,n[h+12],11,-421815835),d=g(d,p,i,u,n[h+15],16,530742520),i=b(i,u=g(u,d,p,i,n[h+2],23,-995338651),d,p,n[h+0],6,-198630844),p=b(p,i,u,d,n[h+7],10,1126891415),d=b(d,p,i,u,n[h+14],15,-1416354905),u=b(u,d,p,i,n[h+5],21,-57434055),i=b(i,u,d,p,n[h+12],6,1700485571),p=b(p,i,u,d,n[h+3],10,-1894986606),d=b(d,p,i,u,n[h+10],15,-1051523),u=b(u,d,p,i,n[h+1],21,-2054922799),i=b(i,u,d,p,n[h+8],6,1873313359),p=b(p,i,u,d,n[h+15],10,-30611744),d=b(d,p,i,u,n[h+6],15,-1560198380),u=b(u,d,p,i,n[h+13],21,1309151649),i=b(i,u,d,p,n[h+4],6,-145523070),p=b(p,i,u,d,n[h+11],10,-1120210379),d=b(d,p,i,u,n[h+2],15,718787259),u=b(u,d,p,i,n[h+9],21,-343485551),i=i+_>>>0,u=u+y>>>0,d=d+v>>>0,p=p+w>>>0}return o.endian([i,u,d,p])})._ff=function(e,t,n,o,r,a,s){var l=e+(t&n|~t&o)+(r>>>0)+s;return(l<<a|l>>>32-a)+t},l._gg=function(e,t,n,o,r,a,s){var l=e+(t&o|n&~o)+(r>>>0)+s;return(l<<a|l>>>32-a)+t},l._hh=function(e,t,n,o,r,a,s){var l=e+(t^n^o)+(r>>>0)+s;return(l<<a|l>>>32-a)+t},l._ii=function(e,t,n,o,r,a,s){var l=e+(n^(t|~o))+(r>>>0)+s;return(l<<a|l>>>32-a)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=o.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?s.bytesToString(n):o.bytesToHex(n)}},694:(e,t,n)=>{"use strict";var o=n(925);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,s){if(s!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,n,r,a)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,r,a]=e[u],l=!0,c=0;c<n.length;c++)(!1&a||s>=a)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(l=!1,a<s&&(s=a));if(l){e.splice(u--,1);var i=r();void 0!==i&&(t=i)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,r,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,533:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[s,l,c]=n,i=0;if(s.some((t=>0!==e[t]))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(c)var u=c(o)}for(t&&t(n);i<s.length;i++)a=s[i],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(u)},n=globalThis.webpackChunkyith_plugin_framewowrk=globalThis.webpackChunkyith_plugin_framewowrk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[533],(()=>o(631)));r=o.O(r)})();