PageSourceSearch

https://photocat.com/_next/static/chunks/9378.9cf2d900f84efc1b.js

js photocat.com collected 2026-10-02 05:01:59 UTC 20,238 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e8abc905-8fc5-4271-b489-e229ba2f4588",e._sentryDebugIdIdentifier="sentry-dbid-e8abc905-8fc5-4271-b489-e229ba2f4588")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9378,9612],{21072:function(e,t,n){"use strict";var r,a=n(75271);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",l({width:"1em",height:"1em",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),r||(r=a.createElement("g",{id:"heroicons-solid/cloud-arrow-up"},a.createElement("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 2.5C5.29086 2.5 3.5 4.29086 3.5 6.5C3.5 6.61124 3.50455 6.7215 3.51349 6.8306C2.32418 7.38936 1.5 8.5979 1.5 10C1.5 11.933 3.067 13.5 5 13.5H12.5C14.1569 13.5 15.5 12.1569 15.5 10.5C15.5 9.37684 14.883 8.39876 13.9705 7.88466C13.9899 7.7591 14 7.63062 14 7.5C14 6.11929 12.8807 5 11.5 5C11.4039 5 11.309 5.00544 11.2155 5.01605C10.6262 3.54188 9.1853 2.5 7.5 2.5ZM8.85355 6.14645C8.65829 5.95118 8.34171 5.95118 8.14645 6.14645L6.14645 8.14645C5.95118 8.34171 5.95118 8.65829 6.14645 8.85355C6.34171 9.04882 6.65829 9.04882 6.85355 8.85355L8 7.70711L8 11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V7.70711L10.1464 8.85355C10.3417 9.04882 10.6583 9.04882 10.8536 8.85355C11.0488 8.65829 11.0488 8.34171 10.8536 8.14645L8.85355 6.14645Z"}))))}},87846:function(e,t,n){"use strict";var r,a,l,o,i,c=n(75271);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return c.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},e),r||(r=c.createElement("path",{d:"M9 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V4.99997C2 4.46954 2.21071 3.96083 2.58579 3.58576C2.96086 3.21069 3.46957 2.99997 4 2.99997H7.9C8.23449 2.99669 8.56445 3.07736 8.8597 3.23459C9.15494 3.39183 9.40604 3.6206 9.59 3.89997L10.4 5.09997C10.5821 5.3765 10.83 5.60349 11.1215 5.76058C11.413 5.91766 11.7389 5.99992 12.07 5.99997H20C20.5304 5.99997 21.0391 6.21069 21.4142 6.58576C21.7893 6.96083 22 7.46954 22 7.99997V8.49997",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),a||(a=c.createElement("path",{d:"M12 10V14H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=c.createElement("path",{d:"M12 14L13.535 12.395C14.109 11.8433 14.8065 11.4367 15.5694 11.2089C16.3323 10.9812 17.1386 10.9389 17.9211 11.0856C18.7037 11.2324 19.4399 11.5638 20.0684 12.0525C20.697 12.5411 21.1998 13.1728 21.535 13.895",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=c.createElement("path",{d:"M22 22V18H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),i||(i=c.createElement("path",{d:"M22 18L20.465 19.605C19.8909 20.1567 19.1934 20.5633 18.4305 20.7911C17.6676 21.0188 16.8614 21.0611 16.0788 20.9144C15.2963 20.7676 14.5601 20.4362 13.9315 19.9475C13.303 19.4589 12.8002 18.8272 12.465 18.105",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})))}},24641:function(e,t,n){"use strict";n.d(t,{oz:function(){return b},Yh:function(){return w},Lc:function(){return v},ZP:function(){return y}});var r,a,l,o=n(52676),i=n(52890),c=n(23545),s=n(86962),d=n.n(s),u=n(21872),p=n(75271);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var h=function(e){return p.createElement("svg",f({width:"1em",height:"1em",viewBox:"0 0 41 40",xmlns:"http://www.w3.org/2000/svg",fill:"
1currentColor"},e),r||(r=p.createElement("g",{filter:"url(#filter0_d_253_5405)"},p.createElement("path",{d:"M18.4175 2.5C16.3613 2.5 14.6675 4.19375 14.6675 6.25V23.2829C13.4437 22.5924 11.9458 21.7475 10.8882 21.2874V21.2891C10.2789 21.0233 9.60479 20.848 8.88954 20.848C7.17951 20.848 5.95965 21.7407 5.39345 22.6139C4.82724 23.4871 4.75705 24.3783 4.75705 24.3783C4.73949 24.5721 4.76743 24.7673 4.83863 24.9485C4.90984 25.1296 5.02235 25.2916 5.16721 25.4216C5.16721 25.4216 12.0784 31.6253 14.036 33.6963C15.6809 35.4359 17.9188 36.6667 20.452 36.6667H25.9175C31.1955 36.6667 35.5009 32.3613 35.5009 27.0833V20.6641C35.5009 17.5219 33.1435 14.8533 30.0256 14.4629L22.1675 13.4798V6.25C22.1675 4.19375 20.4738 2.5 18.4175 2.5ZM18.4175 5C19.123 5 19.6675 5.54458 19.6675 6.25V14.5833C19.6676 14.888 19.779 15.1822 19.9807 15.4106C20.1824 15.639 20.4606 15.7859 20.7629 15.8236L29.7164 16.9434C31.6035 17.1796 33.0009 18.7629 33.0009 20.6641V27.0833C33.0009 31.0103 29.8445 34.1667 25.9175 34.1667H20.452C18.7286 34.1667 17.1309 33.3296 15.8541 31.9792C13.7593 29.7631 8.23091 24.8288 7.43609 24.1178C7.4674 24.0495 7.44366 24.0483 7.49143 23.9746C7.70064 23.652 7.92457 23.348 8.88954 23.348C9.19762 23.348 9.53158 23.4232 9.88889 23.5791L9.89052 23.5807C10.8527 23.9993 12.8049 25.0729 14.0572 25.7861C15.3946 26.5472 17.1675 25.5101 17.1675 23.9746V6.25C17.1675 5.54458 17.7121 5 18.4175 5Z"}))),a||(a=p.createElement("defs",null,p.createElement("filter",{id:"filter0_d_253_5405",x:2.75195,y:.5,width:34.748,height:38.166,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},p.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),p.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),p.createElement("feOffset",null),p.createElement("feGaussianBlur",{stdDeviation:1}),p.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),p.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),p.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_253_5405"}),p.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_253_5405",result:"shape"})))))};function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var g=function(e){return p.createElement("svg",m({width:"1em",height:"1em",viewBox:"0 0 107 72",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),l||(l=p.createElement("path",{opacity:.5,d:"M8.5 64L61.3689 8L35.0574 64L98.5 15.8552",stroke:"var(--theme-color)",strokeWidth:16,strokeLinecap:"round",strokeLinejoin:"round"})))},x=n(71477);function w(e){let{tips:t}=e;return(0,o.jsxs)("div",{className:"pointer-events-none absolute left-1/2 top-1/2 z-[1] flex w-full -translate-x-1/2 -translate-y-1/2  cursor-pointer flex-col items-center justify-center",children:[(0,o.jsx)(g,{className:"relative top-[26px] h-[86px] w-[120px]"}),(0,o.jsx)(h,{className:"relative z-[1] h-10 w-10 text-white"}),(0,o.jsx)("div",{className:"mt-[17px] rounded-[20px] bg-black/60 px-3 py-[9px] text-sm font-light text-[rgba(255,255,255,0.8)]",children:null!=t?t:(0,c.t)("or.text.drawtoremove")})]})}function b(e){let{cls:t}=e;return(0,o.jsx)("div",{className:(0,i.cn)("absolute left-0 top-0 z-[2] flex h-full w-full items-center justify-center bg-transparent bg-opacity-60",t),children:(0,o.jsxs)("div",{className:"backdrop-blur-xs flex max-w-[300px] flex-col items-center justify-center rounded-[12px] bg-[rgba(0,0,0,0.40)] bg-opacity-40 px-4 py-12 text-center text-white",children:[(0,o.jsx)(u.Z,{width:40,height:40}),(0,o.jsx)("div",{className:"mt-2 text-sm font-medium",children:(0,c.t)("gen.processing.failed.content")})]})})}let v=e=>{let{text:t,showProgress:n=!0,progress:r=0,btn:a,contentText:l}=e,s=Math.min(100,Math.max(0,r)),u=2*Math.PI*14,p=s>=100?u+.1:s/100*u,f="".concat(p,", ").concat(u);return(0,o.jsx)("div",{className:(0,i.cn)("absolute left-0 top-0 z-[2] flex h-full w-full items-center justify-center bg-transparent bg-opacity-60"),children:(0,o.jsx)("div",{className:"w-[257px] rounded-[12px] bg-[rgba(0,0,0,0.40)] bg-
1opacity-40 p-6 text-center text-white backdrop-blur-[8px]",children:(0,o.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[n&&(0,o.jsx)("div",{className:"relative mb-2 flex items-center justify-center",children:(0,o.jsxs)("svg",{viewBox:"0 0 36 36",style:{width:"48px",height:"48px"},children:[(0,o.jsx)("circle",{cx:"18",cy:"18",r:14,fill:"none",stroke:"rgba(255, 255, 255, 0.2)",strokeWidth:"7"}),(0,o.jsx)("circle",{cx:"18",cy:"18",r:14,fill:"none",stroke:"#BAE257",strokeWidth:"7",strokeDasharray:f,strokeLinecap:"round",transform:"rotate(-90 18 18)"})]})}),(0,o.jsx)("div",{className:(0,i.cn)("text-base font-medium",d()["ellipsis-loading"]),children:null!=t?t:(0,c.t)("gen.processing")}),(0,o.jsx)("div",{className:"mt-2 text-xs font-normal opacity-80",children:null!=l?l:(0,c.t)("gen.result.processing.wait")}),a&&(0,o.jsx)(x.z,{onClick:()=>a.onClick(),className:"relative mt-3 h-[40px] w-full bg-[#171717]",children:(0,o.jsx)("div",{className:"text-md font-interSemiBold leading-6 text-white",children:a.text})})]})})})};var y=e=>{let{text:t}=e;return(0,o.jsx)("div",{className:(0,i.cn)("absolute left-0 top-0 z-[2] flex h-full w-full items-center justify-center bg-transparent bg-opacity-60"),children:(0,o.jsxs)("div",{className:"w-[300px] rounded-[12px] bg-[rgba(0,0,0,0.40)] bg-opacity-40 p-6 text-center text-white backdrop-blur-[8px]",children:[(0,o.jsx)("div",{className:(0,i.cn)("text-base font-medium",d()["ellipsis-loading"]),children:null!=t?t:(0,c.t)("gen.processing")}),(0,o.jsx)("div",{className:"mt-3 text-xs font-normal opacity-80",children:(0,c.t)("gen.result.processing.wait")})]})})}},89612:function(e,t,n){"use strict";n.r(t);var r=n(52676),a=n(75271),l=n(67199),o=n(34758),i=n(52890),c=n(70957),s=n(75491),d=n(23545),u=n(65051),p=n(46653),f=n(21072),h=n(89366),m=n(63543);let g=(0,a.forwardRef)((e,t)=>{let{isUploadAnoter:n,onUploadAnotherClose:g,module:x,type:w=p.DD.IMAGE,btnName:b,useHandler:v,formatDesc:y,strictAccept:C,sceneId:_,onConfirm:j}=e,[k,E]=(0,a.useState)(!1),{files:L,openFilePicker:I,dropEvents:N,Input:D,handlePaste:O}=(0,c.Y)({dataType:"raw",maxFileCount:1,pasteUrl:!0,accept:w===p.DD.IMAGE?m.pP:m.kw}),M=(0,a.useRef)("click"),{report:R}=(0,s.n)(),{processor:U}=v({mediaImportType:M}),P=null==L?void 0:L[0],A={status:"pending"},B=(0,a.useCallback)(()=>{E(!1),null==g||g()},[g]);(0,a.useEffect)(()=>{if(!P||C&&!P.accepted)return;let e=(P.type,P.file),t=new Blob([e]),n=URL.createObjectURL(t);j&&j(n,e,{type:M.current}),U(L[0].file,M.current),B()},[B,L,P,U,j,C]);let S=(0,a.useCallback)(()=>{I(),M.current="click",R(u.B_.IMPORT_MEDIA_CLICK,{from_tab:o.MU[x],type:M.current,scene_id:_})},[x,I,R,_]),Z=(0,a.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),M.current="drag",R(u.B_.IMPORT_MEDIA_CLICK,{from_tab:o.MU[x],type:"drag",scene_id:_}),N.onDrop(e)},[N,x,R,_]),V=(0,a.useCallback)(e=>{M.current="paste",R(u.B_.IMPORT_MEDIA_CLICK,{from_tab:o.MU[x],type:"paste",scene_id:_}),O(e)},[x,O,R,_]);return(0,a.useEffect)(()=>{let e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null==navigator?void 0:navigator.userAgent);e||E(n)},[n]),(0,a.useImperativeHandle)(t,()=>({handleUploadClick:S}),[S]),(0,r.jsxs)(r.Fragment,{children:[D,(0,r.jsx)(h.Vq,{modal:!0,open:k,onOpenChange:e=>{e||B()},children:(0,r.jsxs)(h.cZ,{autoFocus:!1,onPointerDownOutside:e=>{e.preventDefault()},onEscapeKeyDown:e=>{e.preventDefault()},className:(0,i.cn)("p-10 md:h-[600px] md:w-[570px]"),closeIcon:(0,r.jsx)(l.Z,{className:"h-6 w-6 text-[var(--b-text-black)]"}),"aria-describedby":void 0,onOpenAutoFocus:e=>e.preventDefault(),maskClassName:"bg-[var(--overlay-popup-dark)]",children:[(0,r.jsx)(h.$N,{className:"hidden"}),(0,r.jsx)("div",{className:(0,i.cn)("flex w-full flex-1 flex-col items-center justify-center"),children:("pending"===A.status||"expired"===A.status)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"md: m-auto mb-3 justify-center",children:(0,r.jsx)(f.Z,{fill:"white",className:"text-[60px]"})}),(0,r.jsx)("div",{className:"flex flex-col items-center justify-center gap-2",children:(0,r.jsx)("p",{className:"text-center text-2xl font-bold text-[var(--up-another-modal-title)] ",children:w===p.DD.IMAGE?(0,d.t)("img.upload.button"):(0,d.t)("video.upload.button")})}),(0,r.jsxs)("div",{onDragOver:N.onDragOver,onDragLeave:N.onDragLeave,onDrop:Z,onPaste:V,onClick:S,className:"md: mt-8 hidden h-[199px] w-full flex-1 cursor-pointer flex-col items-center justify-center rounded-[20px] border border-dashed border-[var(--theme-color)] px-[115px] py-[30px] text-center md:flex",style:{background:"var(--theme-color-rgb)"},children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,r.jsx)("p",{className:"mb-2 text-center text-lg font-semibold leading-5 text-[var(--c-text-intro-upload2)] ",children:w===p.DD.IMAGE?(0,d.t)("general.upload.dragimage"):(0,d.t)("general.upload.dragvideo")}),(0,r.jsx)("span",{className:"block w-auto max-w-xs text-center text-base font-light leading-5 text-[var(--c-text-intro-upload-desc2)]",children:y||(w===p.DD.IMAGE?(0,d.t)("gen.supported.image.types"):(0,d.t)("gen.supported.video.types"))})]}),(0,r.jsx)("div",{className:"mt-6 flex flex-col items-start justify-center gap-6",children:(0,r.jsx)("div",{className:"inline-flex w-auto flex-1 rounded-full bg-[var(--theme-color)] px-6 py-3 text-center font-semibold leading-[22px] text-black",children:b||(0,d.t)("gen.upload.apply")})})]})]})})]})})]})});g.displayName="UploadAnotherModal",t.default=g},1129:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(52676),a=n(75271),l=n(52890),o=n(19328),i=n(78212);function c(){let{modalClassName:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,a.useState)(""),[c,s]=(0,a.useState)(!1),d=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;s(!0),n(e),setTimeout(()=>{s(!1)},t)},[]),u=(0,a.useMemo)(()=>(0,r.jsx)(o.u,{className:(0,l.cn)(e,"z-[10000] bg-transparent backdrop-blur-none"),open:c,children:(0,r.jsxs)("div",{className:"absolute left-1/2 top-1/2 flex h-44 w-44 -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center gap-2 rounded-[20px] bg-[var(--surface-Layer4)] px-3 backdrop-blur-[8px]",children:[(0,r.jsx)(i.Z,{}),(0,r.jsx)("p",{className:"text-center text-sm text-[var(--normal-text-color-5)]",children:t})]})}),[t,e,c]);return[d,u]}},76284:function(e,t,n){"use strict";n.d(t,{LR:function(){return s},RZ:function(){return f},XC:function(){return d},me:function(){return u},t5:function(){return p}});var r=n(92868),a=n(34210),l=n.n(a),o=n(11227),i=n.n(o),c=n(34758);let s=(e,t,n)=>fetch(e).then(e=>e.blob()).then(async e=>{await (null==n?void 0:n());let r=window.URL.createObjectURL(e),a=document.createElement("a");a.style.display="none",a.href=r,a.download="".concat(t||"file","-").concat(Date.now()),document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(r)}),d=(e,t,n)=>{let r=window.URL.createObjectURL(new Blob([e],{type:t})),a=document.createElement("a");a.style.display="none",a.href=r,a.download="".concat(n||"file","-").concat(Date.now()),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(r)},u=async(e,t,n,a)=>{var l;let o=null==a?void 0:a.width,i=null==a?void 0:a.height;if(!o||!i){let t=await (0,r.I4)(e);t&&(o=t.width,i=t.height)}let c=await (0,r.po)(e);if(!o||!i||!c)return null;let d=o*t,u=i*t,p=document.createElement("canvas");p.width=d,p.height=u;let f=p.getContext("2d");if(!f)return null;f.drawImage(c,0,0,d,u);let h=null===(l=e.split(".").pop())||void 0===l?void 0:l.toLowerCase(),m=await new Promise(e=>{p.toBlob(t=>{if(t){let n=window.URL.createObjectURL(t);e(n)}else e(null)},"image/".concat(h))});return m&&(await s(m,n),window.URL.revokeObjectURL(m)),null},p=e=>{let t=e.split(".");return t[t.length-1]},f=async e=>{let t="".concat(c.aI.photocat,"-batch"),n=new(l()),r=n.folder(t);await Promise.all(e.map(async(e,t)=>{let n=await fetch(e.url,{method:"get"}),a=await n.blob(),l=a.type.split("/")[1],o="".concat(e.name||"result","-").concat(Date.now(),"_").concat(t,".").concat(l);return r.file(o,a,{binary:!0}),e.url}));let a=await n.generateAsync({type:"blob"});i().saveAs(a,"".concat(t,".zip"))}},92868:function(e,t,n){"use strict";n.d(t,{G1:function(){return c},I4:function(){return i},IZ:function(){return a},QL:function(){return s},Ut:function(){return f},h_:function(){return p},po:function(){return d},sX:function(){return h},yo:function(){return o}});
1var r=n(34758);function a(e){let t=document.createElement("canvas"),n=t.getContext("2d");t.width=e.width,t.height=e.height,n.drawImage(e,0,0);let r=n.getImageData(0,0,e.width,e.height),{data:a}=r,l=0,o=0,i=0;for(let e=0;e<a.length;e+=4)l+=a[e],o+=a[e+1],i+=a[e+2];let c=e.width*e.height,s=Math.floor(l/c),d=Math.floor(o/c),u=Math.floor(i/c);return{r:s,g:d,b:u}}let l=e=>/image\/(png|jpeg|jpg)$/.test(e.type),o=async e=>l(e)?{code:0}:{code:1,type:r.Q7.format},i=async e=>{try{let t=new Image;t.crossOrigin="Anonymous",t.src=e,await new Promise(e=>{t.onload=()=>e(t),t.onerror=()=>e(null)});let n=document.createElement("canvas");n.width=t.width,n.height=t.height;let r=n.getContext("2d");if(!r)return null;return r.drawImage(t,0,0),r.getImageData(0,0,t.width,t.height)}catch(e){return null}},c=async e=>{try{let t=new Image;if(t.crossOrigin="Anonymous",t.decoding="async",t.src=e,await new Promise(e=>{t.onload=()=>e(t),t.onerror=()=>e(null)}),!t.naturalWidth||!t.naturalHeight)return null;return{width:t.naturalWidth,height:t.naturalHeight}}catch(e){return console.error(e),null}},s=async(e,t)=>{let n=await fetch(e),r=await n.blob(),a=new File([r],t,{type:r.type});return a},d=e=>new Promise((t,n)=>{let r=new Image;r.src=e,r.crossOrigin="Anonymous",r.onload=()=>t(r),r.onerror=e=>n(e)}),u=e=>{let t=document.createElement("canvas");t.width=e.width,t.height=e.height;let n=t.getContext("2d");return n.drawImage(e,0,0),{canvas:t,ctx:n}},p=async(e,t)=>{let n=t.match(/rgba?\((\d+), (\d+), (\d+)(?:, ([\d.]+))?\)/),r=await d(e),{canvas:a,ctx:l}=u(r),o=l.getImageData(0,0,r.width,r.height);for(let e=0;e<o.data.length;e+=4)o.data[e]>100?n&&(o.data[e]=parseInt(n[1],10),o.data[e+1]=parseInt(n[2],10),o.data[e+2]=parseInt(n[3],10),o.data[e+3]=n[4]?Math.round(255*parseFloat(n[4])):255):o.data[e+3]=0;l.putImageData(o,0,0);let i=a.toDataURL("image/png"),c=await d(i);return c},f=async e=>{let t=await d(URL.createObjectURL(e)),{canvas:n,ctx:r}=u(t),a=r.getImageData(0,0,t.width,t.height);for(let e=0;e<a.data.length;e+=4)0===a.data[e+3]&&(a.data[e]=0,a.data[e+1]=0,a.data[e+2]=0,a.data[e+3]=255);r.putImageData(a,0,0);let l=await new Promise(e=>{n.toBlob(t=>{t?e(t):e(new Blob)},"image/png")});return l},h=(e,t,n)=>"https://storage-seawave.pixocial.com/cdn-cgi/image/format=jpeg,width=".concat(t,",height=").concat(n,",fit=cover/").concat(e)},46653:function(e,t,n){"use strict";var r,a,l,o,i,c,s;n.d(t,{$:function(){return l},DD:function(){return o},TE:function(){return a},Tr:function(){return r}}),(i=r||(r={})).INIT="init",i.SUCCESS="success",i.ERROR="error",i.RUNNING="running",i.PENDING="pending",(c=a||(a={})).PENDING="pending",c.SUCCESS="success",c.ERROR="error",(l||(l={})).closeWhatsNew="closeWhatsNew",(s=o||(o={})).IMAGE="image",s.VIDEO="video"},86962:function(e){e.exports={homepage_title:"style_homepage_title__E5IFJ",content_title:"style_content_title__N45WV",content_title_v2:"style_content_title_v2__fNmtC",card_title:"style_card_title__2hLmO",card_title_v2_mobile:"style_card_title_v2_mobile__Z9psM",content_text:"style_content_text__zWsYF",content_text_v2_mobile:"style_content_text_v2_mobile__PtqbN","ellipsis-loading":"style_ellipsis-loading__Gkank",dots:"style_dots__yApPJ"}}}]);

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.