1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3526,8266],{91296:function(e,t,n){var o=0/0,r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),f=Object.prototype.toString,p=Math.max,m=Math.min,g=function(){return d.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return o;if(y(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=y(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var c=i.test(e);return c||s.test(e)?l(e.slice(2),c?2:8):a.test(e)?o:+e}e.exports=function(e,t,n){var o,r,a,i,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=o,a=r;return o=r=void 0,c=t,i=e.apply(a,n)}function b(e){var n=e-l,o=e-c;return void 0===l||n>=t||n<0||d&&o>=a}function E(){var e,n,o,r=g();if(b(r))return T(r);s=setTimeout(E,(e=r-l,n=r-c,o=t-e,d?m(o,a-n):o))}function T(e){return(s=void 0,f&&o)?v(e):(o=r=void 0,i)}function w(){var e,n=g(),a=b(n);if(o=arguments,r=this,l=n,a){if(void 0===s)return c=e=l,s=setTimeout(E,t),u?v(e):i;if(d)return s=setTimeout(E,t),v(l)}return void 0===s&&(s=setTimeout(E,t)),i}return t=h(t)||0,y(n)&&(u=!!n.leading,a=(d="maxWait"in n)?p(h(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},w.flush=function(){return void 0===s?i:T(g())},w}},83454:function(e,t,n){"use strict";var o,r;e.exports=(null==(o=n.g.process)?void 0:o.env)&&"object"==typeof(null==(r=n.g.process)?void 0:r.env)?n.g.process:n(77663)},773:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/explore/green-slider",function(){return n(15882)}])},9595:function(e,t,n){"use strict";var o=n(85893),r=n(67294),a=n(26787);let i=(0,r.forwardRef)((e,t)=>{let{onClose:n}=e,{openSignUp:i,closeSingleProduct:s}=(0,r.useContext)(a.t),l=(0,r.useRef)(null);return(0,r.useEffect)(()=>{t&&("function"==typeof t?t(l.current):t.current=l.current)},[t]),(0,r.useEffect)(()=>{let e=e=>{l.current&&!l.current.contains(e.target)&&(null==n||n())};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n]),(0,o.jsx)("div",{className:"info-popup info-active",id:"free-product-popup",children:(0,o.jsx)("div",{className:"info-popup-outer",children:(0,o.jsxs)("div",{className:"info-popup-wrapper",ref:l,onClick:e=>e.stopPropagation(),children:[(0,o.jsxs)("div",{className:"info-popup-header",children:[(0,o.jsx)("h6",{children:"Free Download Available"}),(0,o.jsx)("button",{type:"button",className:"info-close",onClick:()=>null==n?void 0:n(),children:"â"})]}),(0,o.jsxs)("div",{className:"info-popup-form",children:[(0,o.jsx)("p",{children:"This product is free. Please sign in or create an account to download it â no purchase required."}),(0,o.jsx)("button",{type:"button",className:"primary-btn",onClick:()=>{null==n||n(),s(),i()},children:"Access Free Download"})]})]})})})});i.displayName="FreeProductPopup",t.Z=i},90534:function(e,t,n){"use strict";n.d(t,{p:function(){return a},u:function(){return r}});let o="type_ranking_cache";async function r(){let e=localStorage.getItem(o);if(e)try{let{data:t,timestamp:n}=JSON.parse(e);if(Date.now()-n<864e5&&Array.isArray(t))return t}catch(e){}let t=await fetch("".concat("https://storyloop.com/wp-json","/").concat("wp/v2","/type-ranking")),n=await t.json();return localStorage.setItem(o,JSON.stringify({data:n,timestamp:Date.now()})),n}function a(e){let t=new Map;return e.forEach(e=>t.set(e.id,e)),t}},27569:function(e,t,n){"use strict";function o(e){let t={"’":"'","“":'"',"”":'"',"_":"_","_":"_","&":"&"};return null==e?void 0:e.replace(/&#[0-9]+;/g,e=>t[e]||e)}function r(e){if(!e)return e;let t=new DOMParser,n=t.parseFromString("<!doctype html><body>".concat(e),"text/html").body.textContent;return t.parseFromString("<!doctype html><body>".concat(n),"text/html").body.textContent}n.d(t,{Ez:function(){return i},Fb:function(){return l},Rs:function(){return s},VO:function(){return r},aV:function(){return o},kC:function(){return a}});let a=e=>null==e?void 0:e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");function i(e){return e.replace(/-/g," ")}function s(e){return e.replace(/_/g," ")}function l(e){let t;if(!(t=localStorage.getItem("cart-id")))return!1;try{let n=JSON.parse(t);if(!Array.isArray(n))return!1;return n.includes(Number(e))}catch(e){return!1}}},89942:function(e,t,n){"use strict";var o=n(67294),r=n(26787);t.Z=()=>{let[e,t]=(0,o.useState)([]),{closeAddIntoCollection:n,setSuccessOfCollection:a,collectionAddedSuccess:i}=(0,o.useContext)(r.t),s="https://storyloop.com/wp-json",l="wp/v2",c=async()=>
1{if(localStorage.getItem("token"))try{let e=localStorage.getItem("token"),n=await fetch("".concat(s,"/").concat(l,"/user/wishlists/"),{method:"GET",headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}}),o=await n.json();Array.isArray(o)?(localStorage.setItem("wishlist",JSON.stringify(o)),t(o)):console.error("Unexpected response format:",o)}catch(e){console.error("Error fetching wishlist data:",e)}},u=async(e,t,o)=>{let r=localStorage.getItem("token");try{if(f(t))a(!1);else{let i=await fetch("".concat(s,"/").concat(l,"/user/wishlists/").concat(e,"/products?product_id=").concat(t),{method:"POST",headers:{Authorization:"Bearer ".concat(r),"Content-Type":"application/json"}});if(!i.ok)throw Error("Failed to add product into collection");await i.json(),n(),a(!0),a(!1),o();return}}catch(e){console.error("Error:",e)}c()},d=async e=>{let t=localStorage.getItem("wishlist"),n=t?JSON.parse(t):[];if("undefined"==typeof localStorage)return!1;let o=localStorage.getItem("token"),r=null;for(let t of n)for(let n of t.products)if(String(n.id)===String(e)){r=t.id;break}try{if(null===r)return console.error("Collection ID is null. Cannot delete product."),!1;if((await fetch("".concat(s,"/").concat(l,"/user/wishlists/").concat(r,"/products/").concat(e),{method:"DELETE",headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"}})).ok)return c(),!0;throw Error("Failed to delete product.")}catch(e){return console.error("Error deleting product:",e),!1}},f=e=>{let t=localStorage.getItem("wishlist"),n=t?JSON.parse(t):[];if("undefined"==typeof localStorage)return!1;if(localStorage.getItem("token")){for(let t of n)for(let n of t.products)if(String(n.id)===String(e))return!0}return!1};return{wishlist:e,fetchWishlist1:c,isProductInWishlist1:f,handleDeleteProductFromCollection:d,addProductToCollection:u}}},54847:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});let o=async e=>{let{slug:t,name:n,id:o,filename:r,url:a,detail:i,type:s,typeName:l}=e;try{let e=localStorage.getItem("token");if(!e){console.warn("No token found in local storage");return}let c=await fetch("".concat("https://storyloop.com/wp-json","/").concat("wp/v2","/track-download"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:JSON.stringify({slug:t,name:n,id:o,filename:r,url:a,detail:i,type:s,typeName:l})}),u=await c.json();if(!c.ok)return console.error("Download logging failed with status:",c.status),u;if(!0===u.success)return u}catch(e){console.error("Error while logging the download:",e);return}}},9334:function(e,t,n){"use strict";n(83454);let o=e=>{if("string"==typeof e){let t;return t=e,[{target:"https://staging.storyloop.com/",replacement:"/"},{target:"https://storyloop.com/",replacement:"/"},{target:"https://dev.storyloop.com/",replacement:"/"}].forEach(e=>{let{target:n,replacement:o}=e;t=t.replace(n,o)}),t}return Array.isArray(e)?e.map(e=>o(e)):"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e).map(e=>{let[t,n]=e;return[t,o(n)]})):e};t.ZP=o},58862:function(){},77663:function(e){!function(){var t={229:function(e){var t,n,o,r=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l=[],c=!1,u=-1;function d(){c&&o&&(c=!1,o.length?l=o.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(o=l,l=[];++u<t;)o&&o[u].run();u=-1,t=l.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},n={};function o(e){var r=n[e];
1if(void 0!==r)return r.exports;var a=n[e]={exports:{}},i=!0;try{t[e](a,a.exports,o),i=!1}finally{i&&delete n[e]}return a.exports}o.ab="//";var r=o(229);e.exports=r}()},50549:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(67294);let r=o.createContext({});function a({count:e=1,wrapper:t,className:n,containerClassName:a,containerTestId:i,circle:s=!1,style:l,...c}){var u,d,f;let p=o.useContext(r),m={...c};for(let[e,t]of Object.entries(c))void 0===t&&delete m[e];let g={...p,...m,circle:s},y={...l,...function({baseColor:e,highlightColor:t,width:n,height:o,borderRadius:r,circle:a,direction:i,duration:s,enableAnimation:l=!0}){let c={};return"rtl"===i&&(c["--animation-direction"]="reverse"),"number"==typeof s&&(c["--animation-duration"]=`${s}s`),l||(c["--pseudo-element-display"]="none"),("string"==typeof n||"number"==typeof n)&&(c.width=n),("string"==typeof o||"number"==typeof o)&&(c.height=o),("string"==typeof r||"number"==typeof r)&&(c.borderRadius=r),a&&(c.borderRadius="50%"),void 0!==e&&(c["--base-color"]=e),void 0!==t&&(c["--highlight-color"]=t),c}(g)},h="react-loading-skeleton";n&&(h+=` ${n}`);let v=null!==(u=g.inline)&&void 0!==u&&u,b=[],E=Math.ceil(e);for(let t=0;t<E;t++){let n=y;if(E>e&&t===E-1){let t=null!==(d=n.width)&&void 0!==d?d:"100%",o=e%1,r="number"==typeof t?t*o:`calc(${t} * ${o})`;n={...n,width:r}}let r=o.createElement("span",{className:h,style:n,key:t},"â");v?b.push(r):b.push(o.createElement(o.Fragment,{key:t},r,o.createElement("br",null)))}return o.createElement("span",{className:a,"data-testid":i,"aria-live":"polite","aria-busy":null===(f=g.enableAnimation)||void 0===f||f},t?b.map((e,n)=>o.createElement(t,{key:n},e)):b)}},9134:function(e,t,n){"use strict";n.d(t,{Ix:function(){return P},Am:function(){return N}});var o=n(67294),r=function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=function e(t){var n,o,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t){if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(o=e(t[n]))&&(r&&(r+=" "),r+=o)}else for(o in t)t[o]&&(r&&(r+=" "),r+=o)}return r}(e))&&(o&&(o+=" "),o+=t);return o};let a=e=>"number"==typeof e&&!isNaN(e),i=e=>"string"==typeof e,s=e=>"function"==typeof e,l=e=>i(e)||s(e)?e:null,c=e=>(0,o.isValidElement)(e)||i(e)||s(e)||a(e);function u(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:a=!0,collapseDuration:i=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:f,playToast:p}=e,m=r?`${t}--${l}`:t,g=r?`${n}--${l}`:n,y=(0,o.useRef)(0);return(0,o.useLayoutEffect)(()=>{let e=d.current,t=m.split(" "),n=o=>{o.target===d.current&&(p(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===y.current&&"animationcancel"!==o.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,o.useEffect)(()=>{let e=d.current,t=()=>{e.removeEventListener("animationend",t),a?function(e,t,n){void 0===n&&(n=300);let{scrollHeight:o,style:r}=e;requestAnimationFrame(()=>{r.minHeight="initial",r.height=o+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)})})}(e,u,i):u()};f||(c?t():(y.current=1,e.className+=` ${g}`,e.addEventListener("animationend",t)))},[f]),o.createElement(o.Fragment,null,s)}}function d(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}let f=new Map,p=[],m=new Set,g=e=>m.forEach(t=>t(e)),y=()=>f.size>0;function h(e,t){var n;if(t)return!(null==(n=f.get(t))||!n.isToastActive(e));let o=!1;return f.forEach(t=>{t.isToastActive(e)&&(o=!0)}),o}function v(e,t){c(e)&&(y()||p.push({content:e,options:t}),f.forEach(n=>{n.buildToast(e,t)}))}function b(e,t){f.forEach(n=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===n.id&&n.toggle(e,null==t?void 0:t.id):n.toggle(e,null==t?void 0:t.id)})}function E(e){let{delay:t,isRunning:n,closeToast:a,type:i="default",hide:l,className:c,style:u,controlledProgress:d,progress:f,rtl:p,isIn:m,theme:g}=e,y=l||d&&0===f,h={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};d&&(h.transform=`scaleX(${f})`);let v=r("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":p}),b=s(c)?c({rtl:p,type:i,defaultClassName:v}):r(v,c);return o.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":y},o.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${i}`}),o.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:b,style:h,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{m&&a()}}))}let T=1,w=()=>""+T++;function _(e,t){return v(e,t),t.toastId}function I(e,t){return{...t,type:t&&t.type||e,toastId:t&&(i(t.toastId)||a(t.toastId))?t.toastId:w()}}function C(e){return(t,n)=>_(t,I(e,n))}function N(e,t){return _(e,I("default",t))}N.loading=(e,t)=>
1_(e,I("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),N.promise=function(e,t,n){let o,{pending:r,error:a,success:l}=t;r&&(o=i(r)?N.loading(r,n):N.loading(r.render,{...n,...r}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,r)=>{if(null==t)return void N.dismiss(o);let a={type:e,...c,...n,data:r},s=i(t)?{render:t}:t;return o?N.update(o,{...a,...s}):N(s.render,{...a,...s}),r},d=s(e)?e():e;return d.then(e=>u("success",l,e)).catch(e=>u("error",a,e)),d},N.success=C("success"),N.info=C("info"),N.error=C("error"),N.warning=C("warning"),N.warn=N.warning,N.dark=(e,t)=>_(e,I("default",{theme:"dark",...t})),N.dismiss=function(e){!function(e){var t;if(y()){if(null==e||i(t=e)||a(t))f.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=f.get(e.containerId);t?t.removeToast(e.id):f.forEach(t=>{t.removeToast(e.id)})}}else p=p.filter(t=>null!=e&&t.options.toastId!==e)}(e)},N.clearWaitingQueue=function(e){void 0===e&&(e={}),f.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},N.isActive=h,N.update=function(e,t){void 0===t&&(t={});let n=((e,t)=>{var n;let{containerId:o}=t;return null==(n=f.get(o||1))?void 0:n.toasts.get(e)})(e,t);if(n){let{props:o,content:r}=n,a={delay:100,...o,...t,toastId:t.toastId||e,updateId:w()};a.toastId!==e&&(a.staleId=e);let i=a.render||r;delete a.render,_(i,a)}},N.done=e=>{N.update(e,{progress:1})},N.onChange=function(e){return m.add(e),()=>{m.delete(e)}},N.play=e=>b(!0,e),N.pause=e=>b(!1,e);let k="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,x=e=>{let{theme:t,type:n,isLoading:r,...a}=e;return o.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...a})},S={info:function(e){return o.createElement(x,{...e},o.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return o.createElement(x,{...e},o.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return o.createElement(x,{...e},o.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return o.createElement(x,{...e},o.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return o.createElement("div",{className:"Toastify__spinner"})}},L=e=>{let{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:i,playToast:l}=function(e){var t,n;let[r,a]=(0,o.useState)(!1),[i,s]=(0,o.useState)(!1),l=(0,o.useRef)(null),c=(0,o.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:d,closeToast:p,onClick:m,closeOnClick:g}=e;function y(){a(!0)}function h(){a(!1)}function v(t){let n=l.current;c.canDrag&&n&&(c.didMove=!0,r&&h(),c.delta="x"===e.draggableDirection?t.clientX-c.start:t.clientY-c.start,c.start!==t.clientX&&(c.canCloseOnClick=!1),n.style.transform=`translate3d(${"x"===e.draggableDirection?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`},0)`,n.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function b(){document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",b);let t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return s(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(n=f.get((t={id:e.toastId,containerId:e.containerId,fn:a}).containerId||1))||n.setToggle(t.id,t.fn),(0,o.useEffect)(()=>
1{if(e.pauseOnFocusLoss)return document.hasFocus()||h(),window.addEventListener("focus",y),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",y),window.removeEventListener("blur",h)}},[e.pauseOnFocusLoss]);let E={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){c.didMove=!1,document.addEventListener("pointermove",v),document.addEventListener("pointerup",b);let n=l.current;c.canCloseOnClick=!0,c.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(c.start=t.clientX,c.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(c.start=t.clientY,c.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:o,left:r,right:a}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=r&&t.clientX<=a&&t.clientY>=n&&t.clientY<=o?h():y()}};return u&&d&&(E.onMouseEnter=h,e.stacked||(E.onMouseLeave=y)),g&&(E.onClick=e=>{m&&m(e),c.canCloseOnClick&&p()}),{playToast:y,pauseToast:h,isRunning:r,preventExitTransition:i,toastRef:l,eventHandlers:E}}(e),{closeButton:c,children:u,autoClose:d,onClick:p,type:m,hideProgressBar:g,closeToast:y,transition:h,position:v,className:b,style:T,bodyClassName:w,bodyStyle:_,progressClassName:I,progressStyle:C,updateId:N,role:k,progress:x,rtl:L,toastId:O,deleteToast:A,isIn:j,isLoading:P,closeOnClick:$,theme:D}=e,M=r("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${m}`,{"Toastify__toast--rtl":L},{"Toastify__toast--close-on-click":$}),B=s(b)?b({rtl:L,position:v,type:m,defaultClassName:M}):r(M,b),R=function(e){let{theme:t,type:n,isLoading:r,icon:a}=e,i=null,l={theme:t,type:n};return!1===a||(s(a)?i=a({...l,isLoading:r}):(0,o.isValidElement)(a)?i=(0,o.cloneElement)(a,l):r?i=S.spinner():n in S&&(i=S[n](l))),i}(e),z=!!x||!d,F={closeToast:y,type:m,theme:D},H=null;return!1===c||(H=s(c)?c(F):(0,o.isValidElement)(c)?(0,o.cloneElement)(c,F):function(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return o.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},o.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(F)),o.createElement(h,{isIn:j,done:A,position:v,preventExitTransition:n,nodeRef:a,playToast:l},o.createElement("div",{id:O,onClick:p,"data-in":j,className:B,...i,style:T,ref:a},o.createElement("div",{...j&&{role:k},className:s(w)?w({type:m}):r("Toastify__toast-body",w),style:_},null!=R&&o.createElement("div",{className:r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},R),o.createElement("div",null,u)),H,o.createElement(E,{...N&&!z?{key:`pb-${N}`}:{},rtl:L,theme:D,delay:d,isRunning:t,isIn:j,closeToast:y,hide:g,type:m,style:C,className:I,controlledProgress:z,progress:x||0})))}
1,O=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},A=u(O("bounce",!0)),j=(u(O("slide",!0)),u(O("zoom")),u(O("flip")),{position:"top-right",transition:A,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"});function P(e){let t={...j,...e},n=e.stacked,[u,m]=(0,o.useState)(!0),y=(0,o.useRef)(null),{getToastToRender:b,isToastActive:E,count:T}=function(e){let{subscribe:t,getSnapshot:n,setProps:r}=(0,o.useRef)(function(e){let t=e.containerId||1;return{subscribe(n){let r=function(e,t,n){let r=1,u=0,f=[],p=[],m=[],g=t,y=new Map,h=new Set,v=()=>{m=Array.from(y.values()),h.forEach(e=>e())},b=e=>{p=null==e?[]:p.filter(t=>t!==e),v()},E=e=>{let{toastId:t,onOpen:r,updateId:a,children:i}=e.props,l=null==a;e.staleId&&y.delete(e.staleId),y.set(t,e),p=[...p,e.props.toastId].filter(t=>t!==e.staleId),v(),n(d(e,l?"added":"updated")),l&&s(r)&&r((0,o.isValidElement)(i)&&i.props)};return{id:e,props:g,observe:e=>(h.add(e),()=>h.delete(e)),toggle:(e,t)=>{y.forEach(n=>{null!=t&&t!==n.props.toastId||s(n.toggle)&&n.toggle(e)})},removeToast:b,toasts:y,clearQueue:()=>{u-=f.length,f=[]},buildToast:(t,p)=>{var m,h;if((t=>{let{containerId:n,toastId:o,updateId:r}=t,a=y.has(o)&&null==r;return(n?n!==e:1!==e)||a})(p))return;let{toastId:T,updateId:w,data:_,staleId:I,delay:C}=p,N=()=>{b(T)},k=null==w;k&&u++;let x={...g,style:g.toastStyle,key:r++,...Object.fromEntries(Object.entries(p).filter(e=>{let[t,n]=e;return null!=n})),toastId:T,updateId:w,data:_,closeToast:N,isIn:!1,className:l(p.className||g.toastClassName),bodyClassName:l(p.bodyClassName||g.bodyClassName),progressClassName:l(p.progressClassName||g.progressClassName),autoClose:!p.isLoading&&(m=p.autoClose,h=g.autoClose,!1===m||a(m)&&m>0?m:h),deleteToast(){let e=y.get(T),{onClose:t,children:r}=e.props;s(t)&&t((0,o.isValidElement)(r)&&r.props),n(d(e,"removed")),y.delete(T),--u<0&&(u=0),f.length>0?E(f.shift()):v()}};x.closeButton=g.closeButton,!1===p.closeButton||c(p.closeButton)?x.closeButton=p.closeButton:!0===p.closeButton&&(x.closeButton=!c(g.closeButton)||g.closeButton);let S=t;(0,o.isValidElement)(t)&&!i(t.type)?S=(0,o.cloneElement)(t,{closeToast:N,toastProps:x,data:_}):s(t)&&(S=t({closeToast:N,toastProps:x,data:_}));let L={content:S,props:x,staleId:I};g.limit&&g.limit>0&&u>g.limit&&k?f.push(L):a(C)?setTimeout(()=>{E(L)},C):E(L)},setProps(e){g=e},setToggle:(e,t)=>{y.get(e).toggle=t},isToastActive:e=>p.some(t=>t===e),getSnapshot:()=>g.newestOnTop?m.reverse():m}}(t,e,g);f.set(t,r);let u=r.observe(n);return p.forEach(e=>v(e.content,e.options)),p=[],()=>{u(),f.delete(t)}},setProps(e){var n;null==(n=f.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=f.get(t))?void 0:e.getSnapshot()}}}(e)).current;r(e);let u=(0,o.useSyncExternalStore)(t,n,n);return{getToastToRender:function(e){if(!u)return[];let t=new Map;return u.forEach(e=>{let{position:n}=e.props;t.has(n)||t.set(n,[]),t.get(n).push(e)}),Array.from(t,t=>e(t[0],t[1]))},isToastActive:h,count:null==u?void 0:u.length}}(t),{className:w,style:_,rtl:I,containerId:C}=t;function x(){n&&(m(!0),N.play())}return k(()=>{if(n){var e;let n=y.current.querySelectorAll('[data-in="true"]'),o=null==(e=t.position)?void 0:e.includes("top"),r=0,a=0;Array.from(n).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${u}`),e.dataset.pos||(e.dataset.pos=o?"top":"bot");let n=r*(u?.2:1)+(u?0:12*t);e.style.setProperty("--y",`${o?n:-1*n}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",""+(1-(u?a:0))),r+=e.offsetHeight,a+=.025})}},[u,T,n]),o.createElement("div",{ref:y,className:"Toastify",id:C,onMouseEnter:()=>{n&&(m(!1),N.pause())},onMouseLeave:x},b((e,t)=>{let a=t.length?{..._}:{..._,pointerEvents:"none"};return o.createElement("div",{className:function(e){let t=r("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":I});return s(w)?w({position:e,rtl:I,defaultClassName:t}):r(t,l(w))}(e),style:a,key:`container-${e}`},t.map(e=>{let{content:t,props:r}=e;return o.createElement(L,{...r,stacked:n,collapseAll:x,isIn:E(r.toastId,r.containerId),style:r.style,key:`toast-${r.key}`},t)}))}))}}},function(e){e.O(0,[1664,5675,6066,6787,5882,2888,9774,179],function(){return e(e.s=773)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.