PageSourceSearch

https://cdn-useast1.kapwing.com/static-pages/prod/_next/static/chunks/9324-46b501a108b01816.js

js kapwing.com collected 2026-10-01 10:14:17 UTC 9,883 bytes, 9 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9324],{74072:function(e,t,r){/**
2 * @license React
3 * use-sync-external-store-shim.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var n=r(73732),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=n.useState,a=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=u({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return o(function(){i.value=r,i.getSnapshot=t,s(i)&&c({inst:i})},[e,r,t]),a(function(){return s(i)&&c({inst:i}),e(function(){s(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},96134:function(e,t,r){e.exports=r(74072)},39324:function(e,t,r){r.d(t,{ZP:function(){return ee},kY:function(){return G}});var n,i=r(73732),u=r(96134);let a=()=>{},o=a(),l=Object,s=e=>e===o,c=e=>"function"==typeof e,d=(e,t)=>({...e,...t}),f=e=>c(e.then),E=new WeakMap,g=0,w=e=>{let t,r;let n=typeof e,i=e&&e.constructor,u=i==Date;if(l(e)!==e||u||i==RegExp)t=u?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=E.get(e))return t;if(t=++g+"~",E.set(e,t),i==Array){for(r=0,t="@";r<e.length;r++)t+=w(e[r])+",";E.set(e,t)}if(i==l){t="#";let n=l.keys(e).sort();for(;!s(r=n.pop());)s(e[r])||(t+=r+":"+w(e[r])+",");E.set(e,t)}}return t},h=new WeakMap,p={},v={},y="undefined",_=typeof window!=y,R=typeof document!=y,m=()=>_&&typeof window.requestAnimationFrame!=y,T=(e,t)=>
9{let r=h.get(e);return[()=>!s(t)&&e.get(t)||p,n=>{if(!s(t)){let i=e.get(t);t in v||(v[t]=i),r[5](t,d(i,n),i||p)}},r[6],()=>!s(t)&&t in v?v[t]:!s(t)&&e.get(t)||p]},b=!0,[S,O]=_&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],V={initFocus:e=>(R&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{R&&document.removeEventListener("visibilitychange",e),O("focus",e)}),initReconnect:e=>{let t=()=>{b=!0,e()},r=()=>{b=!1};return S("online",t),S("offline",r),()=>{O("online",t),O("offline",r)}}},L=!i.useId,k=!_||"Deno"in window,C=e=>m()?window.requestAnimationFrame(e):setTimeout(e,1),N=k?i.useEffect:i.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,A=!k&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),x=e=>{if(c(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?w(e):"",t]},I=0,F=()=>++I;var M={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function P(...e){let[t,r,n,i]=e,u=d({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),a=u.populateCache,l=u.rollbackOnError,E=u.optimisticData,g=!1!==u.revalidate,w=e=>"function"==typeof l?l(e):!1!==l,p=u.throwOnError;if(c(r)){let e=[],n=t.keys();for(let i of n)!/^\$(inf|sub)\$/.test(i)&&r(t.get(i)._k)&&e.push(i);return Promise.all(e.map(v))}return v(r);async function v(r){let i;let[u]=x(r);if(!u)return;let[l,d]=T(t,u),[v,y,_,R]=h.get(t),m=v[u],b=()=>g&&(delete _[u],delete R[u],m&&m[0])?m[0](2).then(()=>l().data):l().data;if(e.length<3)return b();let S=n,O=F();y[u]=[O,0];let V=!s(E),L=l(),k=L.data,C=L._c,N=s(C)?k:C;if(V&&d({data:E=c(E)?E(N,k):E,_c:N}),c(S))try{S=S(N)}catch(e){i=e}if(S&&f(S)){if(S=await S.catch(e=>{i=e}),O!==y[u][0]){if(i)throw i;return S}i&&V&&w(i)&&(a=!0,d({data:S=N,_c:o}))}a&&!i&&(c(a)&&(S=a(S,N)),d({data:S,error:o,_c:o})),y[u][1]=F();let D=await b();if(d({_c:o}),i){if(p)throw i;return}return a?D:S}}let U=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},j=(e,t)=>{if(!h.has(e)){let r=d(V,t),n={},i=P.bind(o,e),u=a,l={},s=(e,t)=>{let r=l[e]||[];return l[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},c=(t,r,n)=>{e.set(t,r);let i=l[t];if(i)for(let e of i)e(r,n)},f=()=>{if(!h.has(e)&&(h.set(e,[n,{},{},{},i,c,s]),!k)){let t=r.initFocus(setTimeout.bind(o,U.bind(o,n,0))),i=r.initReconnect(setTimeout.bind(o,U.bind(o,n,1)));u=()=>{t&&t(),i&&i(),h.delete(e)}}};return f(),[e,i,f,u]}return[e,h.get(e)[4]]},[W,q]=j(new Map),J=d({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:(e,t,r,n,i)=>{let u=r.errorRetryCount,a=i.retryCount,o=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(s(u)||!(a>u))&&setTimeout(n,o,i)},onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A?5e3:3e3,compare:(e,t)=>w(e)==w(t),isPaused:()=>!1,cache:W,mutate:q,fallback:{}},{isOnline:()=>b,isVisible:()=>{let e=R&&document.visibilityState;return s(e)||"hidden"!==e}}),$=(e,t)=>{let r=d(e,t);if(t){let{use:n,fallback:i}=e,{use:u,fallback:a}=t;n&&u&&(r.use=n.concat(u)),i&&a&&(r.fallback=d(i,a))}return r},Y=(0,i.createContext)({}),Z=_&&window.__SWR_DEVTOOLS_USE__,z=Z?window.__SWR_DEVTOOLS_USE__:[],B=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],G=()=>d(J,(0,i.useContext)(Y)),H=z.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=x(t),[,,,i]=h.get(W),u=i[n];return s(u)?r(...e):(delete i[n],u)});return e(t,i,n)}),K=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};Z&&(window.__SWR_DEVTOOLS_REACT__=i);let Q=i.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),X={dedupe:!0};l.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)(Y),n=c(t),u=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),a=(0,i.useMemo)(()=>n?u:$(r,u),[n,r,u]),l=u&&u.provider,s=(0,i.useRef)(o);l&&!s.current&&(s.current=j(l(a.cache||W),u));let f=s.current;return f&&(a.cache=f[0],a.mutate=f[1]),N(()=>
9{if(f)return f[2]&&f[2](),f[3]},[]),(0,i.createElement)(Y.Provider,d(e,{value:a}))},"defaultValue",{value:J});let ee=(n=(e,t,r)=>{let{cache:n,compare:a,suspense:l,fallbackData:f,revalidateOnMount:E,revalidateIfStale:g,refreshInterval:w,refreshWhenHidden:p,refreshWhenOffline:v,keepPreviousData:y}=r,[_,R,m,b]=h.get(n),[S,O]=x(e),V=(0,i.useRef)(!1),D=(0,i.useRef)(!1),A=(0,i.useRef)(S),I=(0,i.useRef)(t),U=(0,i.useRef)(r),j=()=>U.current,W=()=>j().isVisible()&&j().isOnline(),[q,J,$,Y]=T(n,S),Z=(0,i.useRef)({}).current,z=s(f)?r.fallback[S]:f,B=(e,t)=>{for(let r in Z)if("data"===r){if(!a(e[r],t[r])&&(!s(e[r])||!a(ea,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},G=(0,i.useMemo)(()=>{let e=!!S&&!!t&&(s(E)?!j().isPaused()&&!l&&(!!s(g)||g):E),r=t=>{let r=d(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=q(),i=Y(),u=r(n),a=n===i?u:r(i),o=u;return[()=>{let e=r(q()),t=B(e,o);return t?(o.data=e.data,o.isLoading=e.isLoading,o.isValidating=e.isValidating,o.error=e.error,o):(o=e,e)},()=>a]},[n,S]),H=(0,u.useSyncExternalStore)((0,i.useCallback)(e=>$(S,(t,r)=>{B(r,t)||e()}),[n,S]),G[0],G[1]),ee=!V.current,et=_[S]&&_[S].length>0,er=H.data,en=s(er)?z:er,ei=H.error,eu=(0,i.useRef)(en),ea=y?s(er)?eu.current:er:en,eo=(!et||!!s(ei))&&(ee&&!s(E)?E:!j().isPaused()&&(l?!s(en)&&g:s(en)||g)),el=!!(S&&t&&ee&&eo),es=s(H.isValidating)?el:H.isValidating,ec=s(H.isLoading)?el:H.isLoading,ed=(0,i.useCallback)(async e=>{let t,n;let i=I.current;if(!S||!i||D.current||j().isPaused())return!1;let u=!0,l=e||{},d=!m[S]||!l.dedupe,f=()=>L?!D.current&&S===A.current&&V.current:S===A.current,E={isValidating:!1,isLoading:!1},g=()=>{J(E)},w=()=>{let e=m[S];e&&e[1]===n&&delete m[S]},h={isValidating:!0};s(q().data)&&(h.isLoading=!0);try{if(d&&(J(h),r.loadingTimeout&&s(q().data)&&setTimeout(()=>{u&&f()&&j().onLoadingSlow(S,r)},r.loadingTimeout),m[S]=[i(O),F()]),[t,n]=m[S],t=await t,d&&setTimeout(w,r.dedupingInterval),!m[S]||m[S][1]!==n)return d&&f()&&j().onDiscarded(S),!1;E.error=o;let e=R[S];if(!s(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return g(),d&&f()&&j().onDiscarded(S),!1;let l=q().data;E.data=a(l,t)?l:t,d&&f()&&j().onSuccess(t,S,r)}catch(r){w();let e=j(),{shouldRetryOnError:t}=e;!e.isPaused()&&(E.error=r,d&&f()&&(e.onError(r,S,e),(!0===t||c(t)&&t(r))&&W()&&e.onErrorRetry(r,S,e,e=>{let t=_[S];t&&t[0]&&t[0](M.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return u=!1,g(),!0},[S,n]),ef=(0,i.useCallback)((...e)=>P(n,A.current,...e),[]);if(N(()=>{I.current=t,U.current=r,s(er)||(eu.current=er)}),N(()=>{if(!S)return;let e=ed.bind(o,X),t=0,r=K(S,_,(r,n={})=>{if(r==M.FOCUS_EVENT){let r=Date.now();j().revalidateOnFocus&&r>t&&W()&&(t=r+j().focusThrottleInterval,e())}else if(r==M.RECONNECT_EVENT)j().revalidateOnReconnect&&W()&&e();else if(r==M.MUTATE_EVENT)return ed();else if(r==M.ERROR_REVALIDATE_EVENT)return ed(n)});return D.current=!1,A.current=S,V.current=!0,J({_k:O}),eo&&(s(en)||k?e():C(e)),()=>{D.current=!0,r()}},[S]),N(()=>{let e;function t(){let t=c(w)?w(q().data):w;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!q().error&&(p||j().isVisible())&&(v||j().isOnline())?ed(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[w,p,v,S]),(0,i.useDebugValue)(ea),l&&s(en)&&S){if(!L&&k)throw Error("Fallback data is required when using suspense in SSR.");I.current=t,U.current=r,D.current=!1;let e=b[S];if(!s(e)){let t=ef(e);Q(t)}if(s(ei)){let e=ed(X);s(ea)||(e.status="fulfilled",e.value=!0),Q(e)}else throw ei}return{mutate:ef,get data(){return Z.data=!0,ea},get error(){return Z.error=!0,ei},get isValidating(){return Z.isValidating=!0,es},get isLoading(){return Z.isLoading=!0,ec}}},function(...e){let t=G(),[r,i,u]=B(e),a=$(t,u),o=n,{use:l}=a,s=(l||[]).concat(H);for(let e=s.length;e--;)o=s[e](o);return o(r,i||a.fetcher||null,a)})}}]);

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.