PageSourceSearch

https://yokaichi.com/_next/static/chunks/image-CPrP-rEL.js

js yokaichi.com collected 2026-10-04 01:33:20 UTC 45,239 bytes, 2 lines download raw bytes

1import{r as e,t}from"./rolldown-runtime-C60lm6uB.js";import{i as n,n as r,r as i}from"./framework-D_rUT4EX.js";import{i as a}from"./index-D8cnVbwd.js";var o=e(n(),1);function s(e,t){let n=(0,o.useRef)(null),r=(0,o.useRef)(null);return(0,o.useCallback)(i=>{if(i===null){let e=n.current;e&&(n.current=null,e());let t=r.current;t&&(r.current=null,t())}else e&&(n.current=c(e,i)),t&&(r.current=c(t,i))},[e,t])}function c(e,t){if(typeof e==`function`){let n=e(t);return typeof n==`function`?n:()=>e(null)}else return e.current=t,()=>{e.current=null}}var l=e(t(((e,t)=>{(function(e){let n=`(0?\\d+|0x[a-f0-9]+)`,r={fourOctet:RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,`i`),threeOctet:RegExp(`^${n}\\.${n}\\.${n}$`,`i`),twoOctet:RegExp(`^${n}\\.${n}$`,`i`),longValue:RegExp(`^${n}$`,`i`)},i=RegExp(`^0[0-7]+$`,`i`),a=RegExp(`^0x[a-f0-9]+$`,`i`),o=`%[0-9a-z]{1,}`,s=`(?:[0-9a-f]+::?)+`,c={zoneIndex:new RegExp(o,`i`),native:RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${o})?$`,`i`),deprecatedTransitional:RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${o})?)$`,`i`),transitional:RegExp(`^((?:${s})|(?:::)(?:${s})?)${n}\\.${n}\\.${n}\\.${n}(${o})?$`,`i`)};function l(e,t){if(e.indexOf(`::`)!==e.lastIndexOf(`::`))return null;let n=0,r=-1,i=(e.match(c.zoneIndex)||[])[0],a,o;for(i&&(i=i.substring(1),e=e.replace(/%.+$/,``));(r=e.indexOf(`:`,r+1))>=0;)n++;if(e.substr(0,2)===`::`&&n--,e.substr(-2,2)===`::`&&n--,n>=t)return null;for(o=t-n,a=`:`;o--;)a+=`0:`;return e=e.replace(`::`,a),e[0]===`:`&&(e=e.slice(1)),e[e.length-1]===`:`&&(e=e.slice(0,-1)),t=(function(){let t=e.split(`:`),n=[];for(let e=0;e<t.length;e++)n.push(t[e].length>4?NaN:parseInt(t[e],16));return n})(),{parts:t,zoneId:i}}function u(e,t,n,r){if(e.length!==t.length)throw Error(`ipaddr: cannot match CIDR for objects with different lengths`);let i=0,a;for(;r>0;){if(a=n-r,a<0&&(a=0),e[i]>>a!==t[i]>>a)return!1;r-=n,i+=1}return!0}function d(e){if(a.test(e))return parseInt(e,16);if(e[0]===`0`&&!isNaN(parseInt(e[1],10))){if(i.test(e))return parseInt(e,8);throw Error(`ipaddr: cannot parse ${e} as octal`)}return parseInt(e,10)}function f(e,t){for(;e.length<t;)e=`0${e}`;return e}let p={};p.IPv4=(function(){function e(e){if(e.length!==4)throw Error(`ipaddr: ipv4 octet count should be 4`);let t,n;for(t=0;t<e.length;t++)if(n=e[t],!(0<=n&&n<=255))throw Error(`ipaddr: ipv4 octet should fit in 8 bits`);this.octets=e}return e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,18,0,0]),15],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]],as112:[[new e([192,175,48,0]),24],[new e([192,31,196,0]),24]],amt:[[new e([192,52,193,0]),24]]},e.prototype.kind=function(){return`ipv4`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv4`)throw Error(`ipaddr: cannot match ipv4 address with non-ipv4 one`);return u(this.octets,e.octets,8,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},r,i,a;for(r=3;r>=0;--r)if(i=this.octets[r],i in n){if(a=n[i],t&&a!==0)return null;a!==8&&(t=!0),e+=a}else return null;return 32-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.toIPv4MappedAddress=function(){return p.IPv6.parse(`::ffff:${this.toString()}`)},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toString=function(){return this.octets.join(`.`)},e})(),p.IPv4.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<4;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.isIPv4=function(e){return this.parser(e)!==null},p.IPv4.isValid=function(e){try{return new this(this.parser(e)),!0}catch{return!1}},p.IPv4.isValidCIDR=function(e){try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv4.isValidFourPartDecimal=function(e){return!!(p.IPv4.isValid(e)&&e.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},p.IPv4.isValidCIDRFourPartDecimal=function(e){let t=e.match(/^(.+)\/(\d+)$/);return!p.IPv4.isValidCIDR(e)||!t?!1:p.IPv4.isValidFourPartDecimal(t[1])},p.IPv4.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<4;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv4 CIDR format`,{cause:e})}},p.IPv4.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv4 Address`);return new this(t)},p.IPv4.parseCIDR=function(e){let t;if(t=e.match(/^(.+)\/(\d+)$/)){let e=parseInt(t[2]);if(e>=0&&e<=32){let n=[this.parse(t[1]),e];return Object.defineProperty(n,`toString`,{value:function(){return this.join(`/`)}}),n}}throw Error(`ipaddr: string is not formatted like an IPv4 CIDR range`)},p.IPv4.parser=function(e){let t,n,i;if(t=e.match(r.fourOctet))return(function(){let e=t.slice(1,6),r=[];for(let t=0;t<e.length;t++)n=e[t],r.push(d(n));return r})();if(t=e.match(r.longValue)){if(i=d(t[1]),i>4294967295||i<0)throw Error(`ipaddr: address outside defined range`);return(function(){let e=[],t;for(t=0;t<=24;t+=8)e.push(i>>t&255);return e})().reverse()}else if(t=e.match(r.twoOctet))return(function(){let e=t.slice(1,4),n=[];if(i=d(e[1]),i>16777215||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(i>
1>16&255),n.push(i>>8&255),n.push(i&255),n})();else if(t=e.match(r.threeOctet))return(function(){let e=t.slice(1,5),n=[];if(i=d(e[2]),i>65535||i<0)throw Error(`ipaddr: address outside defined range`);return n.push(d(e[0])),n.push(d(e[1])),n.push(i>>8&255),n.push(i&255),n})();else return null},p.IPv4.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>32)throw Error(`ipaddr: invalid IPv4 prefix length`);let t=[0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<4&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.IPv6=(function(){function e(e,t){let n,r;if(e.length===16)for(this.parts=[],n=0;n<=14;n+=2)this.parts.push(e[n]<<8|e[n+1]);else if(e.length===8)this.parts=e;else throw Error(`ipaddr: ipv6 part count should be 8 or 16`);for(n=0;n<this.parts.length;n++)if(r=this.parts[n],!(0<=r&&r<=65535))throw Error(`ipaddr: ipv6 part should fit in 16 bits`);t&&(this.zoneId=t)}return e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],deprecatedSiteLocal:[new e([65216,0,0,0,0,0,0,0]),10],discard:[new e([256,0,0,0,0,0,0,0]),64],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[[new e([100,65435,0,0,0,0,0,0]),96],[new e([100,65435,1,0,0,0,0,0]),48]],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],benchmarking:[new e([8193,2,0,0,0,0,0,0]),48],amt:[new e([8193,3,0,0,0,0,0,0]),32],as112v6:[[new e([8193,4,274,0,0,0,0,0]),48],[new e([9760,79,32768,0,0,0,0,0]),48]],deprecatedOrchid:[new e([8193,16,0,0,0,0,0,0]),28],orchid2:[new e([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new e([8193,48,0,0,0,0,0,0]),28],segmentRouting:[new e([24320,0,0,0,0,0,0,0]),16],reserved:[[new e([8193,0,0,0,0,0,0,0]),23],[new e([8193,3512,0,0,0,0,0,0]),32],[new e([16383,0,0,0,0,0,0,0]),20]]},e.prototype.isIPv4MappedAddress=function(){return this.range()===`ipv4Mapped`},e.prototype.kind=function(){return`ipv6`},e.prototype.match=function(e,t){let n;if(t===void 0&&(n=e,e=n[0],t=n[1]),e.kind()!==`ipv6`)throw Error(`ipaddr: cannot match ipv6 address with non-ipv6 one`);return u(this.parts,e.parts,16,t)},e.prototype.prefixLengthFromSubnetMask=function(){let e=0,t=!1,n={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},r,i;for(let a=7;a>=0;--a)if(r=this.parts[a],r in n){if(i=n[r],t&&i!==0)return null;i!==16&&(t=!0),e+=i}else return null;return 128-e},e.prototype.range=function(){return p.subnetMatch(this,this.SpecialRanges)},e.prototype.toByteArray=function(){let e,t=[],n=this.parts;for(let r=0;r<n.length;r++)e=n[r],t.push(e>>8),t.push(e&255);return t},e.prototype.toFixedLengthString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(f(this.parts[t].toString(16),4));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw Error(`ipaddr: trying to convert a generic ipv6 address to ipv4`);let e=this.parts.slice(-2),t=e[0],n=e[1];return new p.IPv4([t>>8,t&255,n>>8,n&255])},e.prototype.toNormalizedString=function(){let e=(function(){let e=[];for(let t=0;t<this.parts.length;t++)e.push(this.parts[t].toString(16));return e}).call(this).join(`:`),t=``;return this.zoneId&&(t=`%${this.zoneId}`),e+t},e.prototype.toRFC5952String=function(){let e=/((^|:)(0(:|$)){2,})/g,t=``;this.zoneId&&(t=`%${this.zoneId}`);let n=this.toNormalizedString(),r=n.slice(0,n.length-t.length),i=0,a=-1,o=-1,s;for(;s=e.exec(r);){let e=(s[0].match(/0/g)||[]).length;e>o&&(o=e,i=s.index,a=s[0].length)}return a<0?r+t:`${r.substring(0,i)}::${r.substring(i+a)}${t}`},e.prototype.toString=function(){return this.toRFC5952String()},e})(),p.IPv6.broadcastAddressFromCIDR=function(e){try{let t=this.parseCIDR(e),n=t[0].toByteArray(),r=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],a=0;for(;a<16;)i.push(parseInt(n[a],10)|parseInt(r[a],10)^255),a++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.isIPv6=function(e){return this.parser(e)!==null},p.IPv6.isValid=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{let t=this.parser(e);return new this(t.parts,t.zoneId),!0}catch{return!1}},p.IPv6.isValidCIDR=function(e){if(typeof e==`string`&&e.indexOf(`:`)===-1)return!1;try{return this.parseCIDR(e),!0}catch{return!1}},p.IPv6.networkAddressFromCIDR=function(e){let t,n,r,i,a;try{for(t=this.parseCIDR(e),r=t[0].toByteArray(),a=this.subnetMaskFromPrefixLength(t[1]).toByteArray(),i=[],n=0;n<16;)i.push(parseInt(r[n],10)&parseInt(a[n],10)),n++;return new this(i)}catch(e){throw Error(`ipaddr: the address does not have IPv6 CIDR format`,{cause:e})}},p.IPv6.parse=function(e){let t=this.parser(e);if(t===null)throw Error(`ipaddr: string is not formatted like an IPv6 Address`);return new this(t.parts,t.zoneId)},p.IPv6.parseCIDR=function(e){let t,n,r;if((n=e.match(/^(.+)\/(\d+)$/))&&(t=parseInt(n[2]),t>=0&&t<=128))return r=[this.parse(n[1]),t],Object.defineProperty(r,`toString`,{value:function(){return this.join(`/`)}}),r;throw Error(`ipaddr: string is not formatted like an IPv6 CIDR range`)},p.IPv6.parser=function(e){let t,n,r,i,a,o;if(r=e.match(c.deprecatedTransitional))return this.parser(`::ffff:${r[1]}`);if(c.native.test(e))return l(e,8);if((r=e.match(c.transitional))&&(o=r[6]||``,t=r[1],r[1].endsWith(`::`)||(t=t.
1slice(0,-1)),t=l(t+o,6),t&&t.parts)){for(a=[parseInt(r[2]),parseInt(r[3]),parseInt(r[4]),parseInt(r[5])],n=0;n<a.length;n++)if(i=a[n],!(0<=i&&i<=255))return null;return t.parts.push(a[0]<<8|a[1]),t.parts.push(a[2]<<8|a[3]),{parts:t.parts,zoneId:t.zoneId}}return null},p.IPv6.subnetMaskFromPrefixLength=function(e){if(e=parseInt(e),Number.isNaN(e)||e<0||e>128)throw Error(`ipaddr: invalid IPv6 prefix length`);let t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0,r=Math.floor(e/8);for(;n<r;)t[n]=255,n++;return r<16&&(t[r]=2**(e%8)-1<<8-e%8),new this(t)},p.fromByteArray=function(e){let t=e.length;if(t===4)return new p.IPv4(e);if(t===16)return new p.IPv6(e);throw Error(`ipaddr: the binary input is neither an IPv6 nor IPv4 address`)},p.isValid=function(e){return p.IPv6.isValid(e)||p.IPv4.isValid(e)},p.isValidCIDR=function(e){return p.IPv6.isValidCIDR(e)||p.IPv4.isValidCIDR(e)},p.parse=function(e){if(p.IPv6.isValid(e))return p.IPv6.parse(e);if(p.IPv4.isValid(e))return p.IPv4.parse(e);throw Error(`ipaddr: the address has neither IPv6 nor IPv4 format`)},p.parseCIDR=function(e){try{return p.IPv6.parseCIDR(e)}catch{try{return p.IPv4.parseCIDR(e)}catch(e){throw Error(`ipaddr: the address has neither IPv6 nor IPv4 CIDR format`,{cause:e})}}},p.process=function(e){let t=this.parse(e);return t.kind()===`ipv6`&&t.isIPv4MappedAddress()?t.toIPv4Address():t},p.subnetMatch=function(e,t,n){let r,i,a,o;for(i in n??=`unicast`,t)if(Object.prototype.hasOwnProperty.call(t,i)){for(a=t[i],a[0]&&!(a[0]instanceof Array)&&(a=[a]),r=0;r<a.length;r++)if(o=a[r],e.kind()===o[0].kind()&&e.match.apply(e,o))return i}return n},t!==void 0&&t.exports?t.exports=p:e.ipaddr=p})(e)}))(),1),u=new Map;function d(e,t){let n=`${t}\0${e}`,r=u.get(n);if(r!==void 0)return r;let i=`^`,a=t===`.`?`.+`:`.*`,o=t===`.`?`[^.]+`:`[^/]+`,s=e.split(`**`);for(let e=0;e<s.length;e++){e>0&&(i+=a);let t=s[e].split(`*`);for(let e=0;e<t.length;e++)e>0&&(i+=o),i+=t[e].replace(/[.+?^${}()|[\]\\]/g,`\\$&`)}i+=`$`;let c=new RegExp(i);return u.set(n,c),c}function f(e,t){return!(e.protocol!==void 0&&e.protocol.replace(/:$/,``)!==t.protocol.replace(/:$/,``)||e.port!==void 0&&e.port!==t.port||!d(e.hostname,`.`).test(t.hostname)||e.search!==void 0&&e.search!==t.search||!d(e.pathname??`**`,`/`).test(t.pathname))}function p(e,t,n){return e.some(e=>n.hostname===e)||t.some(e=>f(e,n))}function m(e){e.startsWith(`[`)&&e.endsWith(`]`)&&(e=e.slice(1,-1));try{let t=l.default.parse(e);return t instanceof l.default.IPv6&&t.isIPv4MappedAddress()?t.toIPv4Address().range()!==`unicast`:t.range()!==`unicast`}catch{return!1}}var h=i(),g=e(r(),1),_=new Set([`style`]),v={srcset:`srcSet`,fetchpriority:`use`in o?`fetchPriority`:`fetchpriority`},y=e=>e.startsWith(`data-`)||e.startsWith(`aria-`)?e:v[e]||e.replace(/-./g,e=>e[1].toUpperCase());function b(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[y(e),_.has(e)&&t&&typeof t!=`string`?b(t):t]))}var ee=(e,t)=>{if(!(!e||!t))switch(t){case`constrained`:return`(min-width: ${e}px) ${e}px, 100vw`;case`fixed`:return`${e}px`;case`fullWidth`:return`100vw`;default:return}},x=e=>e||e===0?`${e}px`:void 0,S=({width:e,height:t,aspectRatio:n,layout:r,objectFit:i=`cover`,background:a})=>{let o=[[`object-fit`,i]];return a?.startsWith(`https:`)||a?.startsWith(`http:`)||a?.startsWith(`data:`)||a?.startsWith(`/`)?(o.push([`background-image`,`url(${a})`]),o.push([`background-size`,`cover`]),o.push([`background-repeat`,`no-repeat`])):o.push([`background`,a]),r===`fixed`&&(o.push([`width`,x(e)]),o.push([`height`,x(t)])),r===`constrained`&&(o.push([`max-width`,x(e)]),o.push([`max-height`,x(t)]),o.push([`aspect-ratio`,n?`${n}`:void 0]),o.push([`width`,`100%`])),r===`fullWidth`&&(o.push([`width`,`100%`]),o.push([`aspect-ratio`,n?`${n}`:void 0]),o.push([`height`,x(t)])),Object.fromEntries(o.filter(([,e])=>e))},te=[6016,5120,4480,3840,3200,2560,2048,1920,1668,1280,1080,960,828,750,640],C=24,w=({width:e,layout:t,resolutions:n=te})=>{if(t===`fullWidth`)return n;if(!e)return[];let r=e*2;return t===`fixed`?[e,r]:t===`constrained`?[e,r,...n.filter(e=>e<r)]:[]},T=({src:e,width:t,layout:n=`constrained`,height:r,aspectRatio:i,breakpoints:a,format:o})=>(a||=w({width:t,layout:n}),a.sort((e,t)=>
1e-t).map(t=>{let n;return r&&i&&(n=Math.round(t/i)),{url:e,width:t,height:n,format:o}})),E=e=>{let{src:t,transformer:n,operations:r}=e;return n?T(e).map(({url:i,...a})=>`${n(t,{...r,...a},e.options)?.toString()} ${a.width}w`).join(`,
2`):``};function D({width:e,height:t,priority:n,layout:r=`constrained`,aspectRatio:i,...a}){return e=e&&Number(e)||void 0,t=t&&Number(t)||void 0,n?(a.loading||=`eager`,a.fetchpriority||=`high`):(a.loading||=`lazy`,a.decoding||=`async`),a.alt===``&&(a.role||=`presentation`),i?e?t||=Math.round(e/i):t&&(e=Math.round(t*i)):e&&t&&(i=e/t),{width:e,height:t,aspectRatio:i,layout:r,...a}}function ne(e){let{src:t,transformer:n,background:r,layout:i,objectFit:a,breakpoints:o,width:s,height:c,aspectRatio:l,unstyled:u,operations:d,options:f,...p}=D(e);if(n&&r===`auto`){let e=l?Math.round(C/l):void 0,i=n(t,{width:C,height:e},f);i&&(r=i.toString())}let m={width:s,height:c,aspectRatio:l,layout:i,objectFit:a,background:r};if(p.sizes||=ee(s,i),u||(p.style={...S(m),...p.style}),n){p.srcset=E({src:t,width:s,height:c,aspectRatio:l,layout:i,breakpoints:o,transformer:n,operations:d,options:f});let e=n(t,{...d,width:s,height:c},f);e&&(t=e),(i===`fullWidth`||i===`constrained`)&&(s=void 0,c=void 0)}return{...p,src:t?.toString(),width:s,height:c}}function re(e){return e?e.startsWith(`image/`)?{format:e.slice(6),mimeType:e}:{format:e,mimeType:`image/${e===`jpg`?`jpeg`:e}`}:{}}function ie({media:e,type:t,...n}){let{src:r,transformer:i,layout:a,breakpoints:o,width:s,height:c,aspectRatio:l,sizes:u,loading:d,decoding:f,operations:p,options:m,...h}=D(n);if(!i)return{};let{format:g,mimeType:_}=re(t);u||=ee(s,a);let v=E({src:r,width:s,height:c,aspectRatio:l,layout:a,breakpoints:o,transformer:i,format:g,operations:p,options:m}),y=i(r,{...p,width:s,height:c},m);y&&(r=y);let b={...h,sizes:u,srcset:v};return e&&(b.media=e),_&&(b.type=_),b}var O={"images.ctfassets.net":`contentful`,"cdn.builder.io":`builder.io`,"images.prismic.io":`imgix`,"www.datocms-assets.com":`imgix`,"cdn.sanity.io":`imgix`,"images.unsplash.com":`imgix`,"cdn.shopify.com":`shopify`,"s7d1.scene7.com":`scene7`,"ip.keycdn.com":`keycdn`,"assets.caisy.io":`bunny`,"images.contentstack.io":`contentstack`,"ucarecdn.com":`uploadcare`,"imagedelivery.net":`cloudflare_images`,"wsrv.nl":`wsrv`},k={"imgix.net":`imgix`,"wp.com":`wordpress`,"files.wordpress.com":`wordpress`,"b-cdn.net":`bunny`,"storyblok.com":`storyblok`,"kc-usercontent.com":`kontent.ai`,"cloudinary.com":`cloudinary`,"kxcdn.com":`keycdn`,"imgeng.in":`imageengine`,"imagekit.io":`imagekit`,"cloudimg.io":`cloudimage`,"ucarecdn.com":`uploadcare`,"supabase.co":`supabase`,"graphassets.com":`hygraph`},A={"/cdn-cgi/image/":`cloudflare`,"/cdn-cgi/imagedelivery/":`cloudflare_images`,"/_next/image":`nextjs`,"/_vercel/image":`vercel`,"/is/image":`scene7`,"/_ipx/":`ipx`,"/_image":`astro`,"/.netlify/images":`netlify`,"/storage/v1/object/public/":`supabase`,"/storage/v1/render/image/public/":`supabase`,"/v1/storage/buckets/":`appwrite`};function j(e){if(!e)return e;let t=Number(e);return isNaN(t)?e:Math.round(t)}var M=e=>{let{pathname:t,search:n}=e;return`${t}${n}`},N=e=>e.hostname===`n`?M(e):e.toString(),P=(e,t)=>typeof e==`string`?new URL(e,t??`http://n/`):e,ae=e=>e===` `?`+`:`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`),oe=e=>e?.startsWith(`/`)?e.slice(1):e,F=e=>e?.endsWith(`/`)?e.slice(0,-1):e,I=e=>e?.endsWith(`/`)?e:`${e}/`,L=(e,t)=>{let n=ae(e),r=ae(t);function i(i){return encodeURIComponent(i).replaceAll(e,n).replaceAll(t,r)}function a(t,n){return`${i(t)}${e}${i(String(n))}`}return e=>(Array.isArray(e)?e:Object.entries(e)).flatMap(([e,t])=>t==null?[]:Array.isArray(t)?t.map(t=>a(e,t)):a(e,t)).join(t)},R=(e,t)=>e===`=`&&t===`&`?le:n=>{let r=n.toString();return Object.fromEntries(r.split(t).map(t=>{let[n,r]=t.split(e);return[decodeURI(n),decodeURI(r)]}))};function se(e,t=4e3,n=4e3){let{width:r,height:i}=e;return r=Number(r)||void 0,i=Number(i)||void 0,r&&r>t&&(i&&=Math.round(i*t/r),r=t),i&&i>n&&(r&&=Math.round(r*n/i),i=n),{width:r,height:i}}function z(e){let t=P(e),n=Object.fromEntries(t.searchParams.entr
2ies());for(let e in[`width`,`height`,`quality`]){let t=n[e];if(t){let r=Number(t);isNaN(r)||(n[e]=r)}}return t.search=``,{operations:n,src:N(t)}}function B({keyMap:e={},formatMap:t={},defaults:n={}},r){r.format&&r.format in t&&(r.format=t[r.format]),r.width&&=j(r.width),r.height&&=j(r.height);for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;let n=t;if(e[n]===!1){delete r[n];continue}e[n]&&r[n]&&(r[e[n]]=r[n],delete r[n])}for(let t in n){if(!Object.prototype.hasOwnProperty.call(n,t))continue;let i=t,a=n[i];if(!r[i]&&a!==void 0){if(e[i]===!1)continue;let t=e[i]??i;if(t in r)continue;r[t]=a}}return r}var V=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e]));function ce({keyMap:e={},formatMap:t={},defaults:n={}},r){let i=B({keyMap:V(e),formatMap:V(t),defaults:n},r);i.width&&=j(i.width),i.height&&=j(i.height);let a=Number(i.quality);return isNaN(a)||(i.quality=a),i}var le=e=>{let t=P(e);return Object.fromEntries(t.searchParams.entries())};function H({kvSeparator:e=`=`,paramSeparator:t=`&`,...n}={}){let r=L(e,t);return e=>r(B(n,e))}function ue({kvSeparator:e=`=`,paramSeparator:t=`&`,defaults:n,...r}={}){let i=R(e,t);return e=>ce(r,e?i(e):{})}function U(e){return{operationsGenerator:H(e),operationsParser:ue(e)}}function de(e){if(e!=null)try{return!!JSON.parse(e?.toString())}catch{return!!e}}var fe=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));function W(e,t){return((n,r,i)=>{let a=e(n,i);return a?t(a.src,{...a.operations,...fe(r)},{...a.options,...i}):t(n,r,i)})}var pe=new Map(Object.entries(O)),me=Object.entries(k),he=Object.entries(A);function G(e){return ge(e)||K(e)}function ge(e){if(typeof e==`string`&&!e.startsWith(`https://`))return!1;let{hostname:t}=P(e);return pe.get(t)||me.find(([e])=>t.endsWith(e))?.[1]||!1}function K(e){let{pathname:t}=P(e);return he.find(([e])=>t.startsWith(e))?.[1]||!1}var _e=`/view?`,ve=`/preview?`,{operationsGenerator:ye,operationsParser:be}=U({keyMap:{format:`output`},kvSeparator:`=`,paramSeparator:`&`}),xe=W(e=>{if(K(e)!==`appwrite`)return null;let t=P(e),n=be(t);delete n.project;let r=t.searchParams.get(`project`)??``;return t.search=``,t.searchParams.append(`project`,r),{src:t.href,operations:n}},(e,t)=>{let n=P(e.toString().replace(_e,ve)),r=n.searchParams.get(`project`)??``;return n.search=ye(t),n.searchParams.append(`project`,r),N(n)}),Se=`/_image`,{operationsParser:Ce,operationsGenerator:we}=U({keyMap:{format:`f`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`cover`}}),Te=(e,t,n)=>{let r=P(`${F(n?.baseUrl??``)}${n?.endpoint??Se}`);return r.search=we(t),r.searchParams.set(`href`,e.toString()),N(r)},Ee=e=>{let t=P(e),n=t.searchParams.get(`href`);return n?(t.searchParams.delete(`href`),{src:n,operations:Ce(t),options:{baseUrl:t.origin}}):null},De=(e,t,n={})=>{if(P(e).pathname!==(n?.endpoint??Se))return Te(e,t,n);let r=Ee(e);return r?(n.baseUrl??=r.options.baseUrl,Te(r.src,{...r.operations,...t},n)):Te(e,t,n)},Oe=H({defaults:{fit:`cover`,format:`webp`,sharp:!0}}),ke=W(z,(e,t)=>{let n=Oe(t),r=P(e);return r.search=n,N(r)}),Ae=H({keyMap:{format:`output`}}),je=W(z,(e,t)=>{let n=Ae(t),r=P(e);return r.search=n,N(r)}),Me=(e,t)=>{let{width:n,height:r}=t;return n&&r&&(t.aspect_ratio??=`${Math.round(Number(n))}:${Math.round(Number(r))}`),je(e,t)},{operationsGenerator:Ne,operationsParser:Pe}=U({keyMap:{format:`f`},defaults:{format:`auto`,fit:`cover`},formatMap:{jpg:`jpeg`},kvSeparator:`=`,paramSeparator:`,`}),Fe=W((e,t)=>{if(K(e)!==`cloudflare`)return null;let n=P(e),[,,,r,...i]=n.pathname.split(`/`),a=Pe(r);return{src:N(P(i.join(`/`))),operations:a,options:{domain:t?.domain??(n.hostname===`n`?void 0:n.hostname)}}},(e,t,n)=>{let r=Ne(t),i=P(n?.domain?`https://${n.domain}`:`/`);return i.pathname=`/cdn-cgi/image/${r}/${oe(e.toString())}`,N(i)}),Ie=/https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/imagedelivery\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,Le=/https?:\/\/(?<host>imagedelivery.net)\/(?<accountHash>[^\/]+)\/(?<imageId>[^\/]+)\/*(?<transformations>[^\/]+)*$/g,{operationsGenerator:Re,operationsParser:ze}=U({keyMap:{width:`w`,height:`h`,format:`f`},defaults:{fit:`cover`},kvSeparator:`=`,paramSeparator:`,`});function Be(e,t){let{host:n,accountHash:r,imageId:i}=e;if(!n||!r||!i)throw Error(`Missing required Cloudflare Images options`);return[`https:/`,...n===`imagedelivery.net`?[n]:[n,`cdn-cgi`,`imagedelivery`],r,i,t].filter(
2Boolean).join(`/`)}var Ve=(e,t,n={})=>N(P(Be(n,Re(t)))),He=e=>{let t=P(e),n=[...t.toString().matchAll(Ie),...t.toString().matchAll(Le)];if(!n[0]?.groups)return null;let{host:r,accountHash:i,imageId:a,transformations:o}=n[0].groups,s=ze(o||``),c={host:r,accountHash:i,imageId:a};return{src:Be(c),operations:s,options:c}},Ue=(e,t,n={})=>{let r=He(e);if(!r)throw Error(`Invalid Cloudflare Images URL`);let i={...r.operations,...t};return Ve(r.src,i,{...r.options,...n})},{operationsGenerator:We,operationsParser:Ge}=U({keyMap:{format:`force_format`,width:`w`,height:`h`,quality:`q`},defaults:{org_if_sml:1}}),Ke=W((e,t={})=>{let n=P(e);if(G(n)!==`cloudimage`)return null;let r=Ge(n),i=n.pathname;return r.ci_url_encoded&&(i=decodeURIComponent(i),delete r.ci_url_encoded),t.token??=n.hostname.replace(`.cloudimg.io`,``),{src:`${n.protocol}/${i}`,operations:r,options:t}},(e,t={},{token:n}={})=>{if(!n)throw Error(`Token is required for Cloudimage URLs`+e);let r=e.toString();r=r.replace(/^https?:\/\//,``),r.includes(`?`)&&(t.ci_url_encoded=1,r=encodeURIComponent(r));let i=We(t),a=new URL(`https://${n}.cloudimg.io/`);return a.pathname=r,a.search=i,a.toString()}),qe=/https?:\/\/(?<host>res\.cloudinary\.com)\/(?<cloudName>[a-zA-Z0-9-]+)\/(?<assetType>image|video|raw)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)\/?(?<signature>s\-\-[a-zA-Z0-9]+\-\-)?\/?(?<transformations>(?:[^_\/]+_[^,\/]+,?)*)?\/(?:(?<version>v\d+)\/)?(?<id>(?:[^\s\/]+\/)*[^\s\/]+(?:\.[a-zA-Z0-9]+)?)$/,Je=/https?:\/\/(?<host>(?<cloudName>[a-zA-Z0-9-]+)-res\.cloudinary\.com|[a-zA-Z0-9.-]+)\/(?<assetType>image|video|raw)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)\/?(?<signature>s\-\-[a-zA-Z0-9]+\-\-)?\/?(?<transformations>(?:[^_\/]+_[^,\/]+,?)*)?\/(?:(?<version>v\d+)\/)?(?<id>(?:[^\s\/]+\/)*[^\s\/]+(?:\.[a-zA-Z0-9]+)?)$/,{operationsGenerator:Ye,operationsParser:Xe}=U({keyMap:{width:`w`,height:`h`,format:`f`,quality:`q`},defaults:{format:`auto`,c:`lfill`},kvSeparator:`_`,paramSeparator:`,`});function Ze({host:e,cloudName:t,assetType:n,deliveryType:r,signature:i,transformations:a,version:o,id:s}){return[`https:/`,e,e===`res.cloudinary.com`?t:void 0,n,r,i,a,o,s].filter(Boolean).join(`/`)}function Qe(e){let t=e.toString().match(qe);return t?.length||(t=e.toString().match(Je)),t?.length?t.groups||{}:null}var $e=(e,t)=>{let n=Qe(e.toString());return n?(n.transformations=Ye({...Xe(n.transformations||``),...t}),Ze(n)):e.toString()},et=H({keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`fill`}}),tt=W(z,(e,t)=>{let n=et(t),r=new URL(e);return r.search=n,N(r)}),nt=(e,t)=>{let{width:n,height:r}=se(t,4e3,4e3);return tt(e,{...t,width:n,height:r})},rt=H({defaults:{auto:`webp`,disable:`upscale`}}),it=W(e=>{let{src:t,operations:n}=z(e)??{};if(!n||!t)return null;let{origin:r}=P(e);return{src:t,operations:n,options:{baseURL:r}}},(e,t,{baseURL:n=`https://images.contentstack.io/`}={})=>{t.width&&t.height&&(t.fit??=`crop`);let r=rt(t),i=P(e);return i.hostname===`n`&&(i.protocol=`https:`,i.hostname=new URL(n).hostname),i.search=r,N(i)}),at=H({defaults:{withoutEnlargement:!0,fit:`cover`}}),ot=W(e=>{let t=z(e);
2if(t?.operations?.transforms&&typeof t.operations.transforms==`string`)try{t.operations.transforms=JSON.parse(t.operations.transforms)}catch{return null}return t},(e,t)=>{Array.isArray(t.transforms)&&(t.transforms=JSON.stringify(t.transforms));let n=at(t),r=P(e);return r.search=n,N(r)}),st=/https:\/\/(?<region>[a-z0-9-]+)\.graphassets\.com\/(?<envId>[a-zA-Z0-9]+)(?:\/(?<transformations>.*?))?\/(?<handle>[a-zA-Z0-9]+)$/,{operationsGenerator:ct,operationsParser:lt}=U({keyMap:{width:`width`,height:`height`,format:`format`},defaults:{format:`auto`,fit:`crop`}}),ut=e=>{let t=P(e).toString().match(st);if(!t?.groups)return null;let{region:n,envId:r,handle:i,transformations:a}=t.groups,o={};return a&&a.split(`/`).forEach(e=>{let[t,n]=e.split(`=`);t===`resize`&&n?n.split(`,`).forEach(e=>{let[t,n]=e.split(`:`);t===`width`||t===`height`?o[t]=Number(n):t===`fit`&&(o.fit=n)}):t===`output`&&n?n.split(`,`).forEach(e=>{let[t,n]=e.split(`:`);t===`format`&&(o.format=n)}):t===`auto_image`&&(o.format=`auto`)}),{src:`https://${n}.graphassets.com/${r}/${i}`,operations:o,options:{region:n,envId:r,handle:i}}},dt=W(ut,(e,t,n={})=>{let r=ut(e);if(!r)throw Error(`Invalid Hygraph URL`);let{region:i,envId:a,handle:o}={...r.options,...n},s=[];if(t.width||t.height){let e=[];t.width&&t.height?e.push(`fit:crop`):t.fit&&e.push(`fit:${t.fit}`),t.width&&e.push(`width:${t.width}`),t.height&&e.push(`height:${t.height}`),e.length&&s.push(`resize=${e.join(`,`)}`)}return t.format===`auto`||!t.format&&!r.operations.format?s.push(`auto_image`):t.format&&s.push(`output=format:${t.format}`),N(P(`${`https://${i}.graphassets.com/${a}`}${s.length>0?`/`+s.join(`/`):``}/${o}`))}),{operationsGenerator:ft,operationsParser:pt}=U({keyMap:{width:`w`,height:`h`,format:`f`},defaults:{m:`cropbox`},kvSeparator:`_`,paramSeparator:`/`}),mt=W(e=>{let t=P(e),n=t.searchParams.get(`imgeng`);if(!n)return null;let r=pt(n);return t.searchParams.delete(`imgeng`),{src:N(t),operations:r}},(e,t)=>{let n=ft(t),r=P(e);return r.searchParams.set(`imgeng`,n),N(r)}),{operationsGenerator:ht,operationsParser:gt}=U({keyMap:{width:`w`,height:`h`,format:`f`,quality:`q`},defaults:{c:`maintain_ratio`,fo:`auto`},kvSeparator:`-`,paramSeparator:`,`}),_t=W(e=>{let t=P(e),n=null,r=t.pathname;if(t.searchParams.has(`tr`))n=t.searchParams.get(`tr`),t.searchParams.delete(`tr`);else{let e=t.pathname.split(`/`),i=e.findIndex(e=>e.startsWith(`tr:`));i!==-1&&(n=e[i].slice(3),r=e.slice(0,i).concat(e.slice(i+1)).join(`/`))}if(!n)return null;t.pathname=r;let i=gt(n);return{src:N(t),operations:i}},(e,t)=>{let n=ht(t),r=P(e);return r.searchParams.set(`tr`,n),N(r)}),{operationsGenerator:vt,operationsParser:yt}=U({keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`},defaults:{fit:`min`,auto:`format`}}),bt=W(e=>{let t=P(e),n=yt(e);return t.search=``,{src:N(t),operations:n}},(e,t)=>{let n=vt(t),r=P(e);return r.search=n,r.searchParams.has(`fm`)&&r.searchParams.get(`auto`)===`format`&&r.searchParams.delete(`auto`),N(r)}),{operationsGenerator:xt,operationsParser:St}=U({keyMap:{width:`w`,height:`h`,quality:`q`,format:`f`},defaults:{f:`auto`},kvSeparator:`_`,paramSeparator:`,`}),Ct=(e,t,n)=>{t.width&&t.height&&(t.s=`${t.width}x${t.height}`,delete t.width,delete t.height);let r=xt(t),i=P(n?.baseURL??`/_ipx`);return i.pathname=`${F(i.pathname)}/${r}/${oe(e.toString())}`,N(i)},wt=e=>{let t=P(e),[,n,r,...i]=t.pathname.split(`/`);if(!r||!i.length)return null;let a=St(r);if(a.s){let[e,t]=a.s.split(`x`).map(Number);a.width=e,a.height=t,delete a.s}return{src:`/`+i.join(`/`),operations:a,options:{baseURL:`${t.origin}/${n}`}}},Tt=(e,t,n)=>{let r=P(e),i=n?.baseURL;if(i&&r.toString().startsWith(i)||r.pathname.startsWith(`/_ipx`)){let n=wt(e);if(n)return Ct(n.src,{...n.operations,...t},{baseURL:n.options.baseURL})}return Ct(e,t,{baseURL:i})},Et=[`enlarge`,`flip`,`flop`,`negate`,`normalize`,`grayscale`,`removealpha`,`olrepeat`,`progressive`,`adaptive`,`lossless`,`nearlossless`,`metadata`],{operationsGenerator:Dt,operationsParser:Ot}=U({defaults:{fit:`cover`},formatMap:{jpg:`jpeg`}}),kt=W(e=>{let t=P(e),n=Ot(t);for(let e of Et)n[e]!==void 0&&(n[e]=de(n[e]));return t.search=``,{src:N(t),operations:n}},(e,t)=>{let n=P(e);for(let e of Et)t[e]!==void 0&&(t[e]=+!!t[e]);return n.search=Dt(t),N(n)}),{operationsGenerator:At,operationsParser:jt}=U({formatMap:{jpg:`jpeg`},keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`}}),Mt=W(e=>{let t=P(e),n=jt(t);return n.lossless!==void 0&&(n.lossless=de(n.lossless)),t.search=``,{src:N(t),operations:n}},(e,t)=>{let n=P(e);return t.lossless!==void 0&&(t.lossless=+!!t.lossless),t.width&&t.height&&(t.fit=`crop`),n.search=At(t),N(n)}),{operationsGenerator:Nt,operationsParser:Pt}=U({defaults:{fit:`cover`},keyMap:{format:`fm`,width:`w`,height:`h`,quality:`q`}}),Ft=W(e=>{if(K(e)!==`netlify`)return null;let t=P(e),n=Pt(t);delete n.url;let r=t.searchParams.get(`url`)||``;return t.search=``,{src:r,operations:n,options:{baseUrl:t.hostname===`n`?void 0:t.origin}}},(e,t,n={})=>{let r=P(`${n.baseUrl||``}/.netlify/images`);return r.search=Nt(t),r.searchParams.set(`url`,e.toString()),N(r)}),{operationsGenerator:It,operationsParser:Lt}=U({keyMap:{width:`w`,quality:`q`,height:!1,format:!1},defaults:{q:75}}),Rt=(e,t,n={})=>{let r=P(`${n.baseUrl||``}/${n.prefix||`_vercel`}/image`);return r.search=It(t),r.searchParams.append(`url`,e.toString()),N(r)},zt=(e,t={})=>
2{if(![`vercel`,`nextjs`].includes(K(e)||``))return null;let n=P(e),r=n.searchParams.get(`url`)||``;n.searchParams.delete(`url`);let i=Lt(n);return n.search=``,{src:r,operations:i,options:{baseUrl:t.baseUrl??n.origin}}},Bt=W(zt,Rt),Vt=W((e,t)=>zt(e,t),(e,t,n={})=>Rt(e,t,{...n,prefix:`_next`})),{operationsGenerator:Ht,operationsParser:Ut}=U({keyMap:{width:`wid`,height:`hei`,quality:`qlt`,format:`fmt`},defaults:{fit:`crop,0`}}),Wt=`https://s7d1.scene7.com/is/image/`,Gt=W(e=>{if(G(e)!==`scene7`)return null;let t=new URL(e,Wt),n=Ut(t);return t.search=``,{src:t.toString(),operations:n}},(e,t)=>{let n=new URL(e,Wt);return n.search=Ht(t),N(n)}),Kt=/(.+?)(?:_(?:(pico|icon|thumb|small|compact|medium|large|grande|original|master)|(\d*)x(\d*)))?(?:_crop_([a-z]+))?(\.[a-zA-Z]+)(\.png|\.jpg|\.webp|\.avif)?$/,{operationsGenerator:qt,operationsParser:Jt}=U({keyMap:{format:!1}}),Yt=W(e=>{let t=P(e),n=Kt.exec(t.pathname),r=Jt(t);if(n){let[,,,e,t,i]=n;e&&t&&!r.width&&!r.height&&(r.width=parseInt(e,10),r.height=parseInt(t,10)),i&&(r.crop??=i)}t.pathname=t.pathname.replace(Kt,`$1$6`);for(let e of[`width`,`height`,`crop`,`pad_color`,`format`])t.searchParams.delete(e);return{src:t.toString(),operations:r}},(e,t)=>{let n=P(e);return n.pathname=n.pathname.replace(Kt,`$1$6`),n.search=qt(t),N(n)}),Xt=/(?<id>\/f\/\d+\/\d+x\d+\/\w+\/[^\/]+)\/?(?<modifiers>m\/?(?<crop>\d+x\d+:\d+x\d+)?\/?(?<resize>(?<flipx>\-)?(?<width>\d+)x(?<flipy>\-)?(?<height>\d+))?\/?(filters\:(?<filters>[^\/]+))?)?$/,Zt=/^(?<modifiers>\/(?<crop>\d+x\d+:\d+x\d+)?\/?(?<resize>(?<flipx>\-)?(?<width>\d+)x(?<flipy>\-)?(?<height>\d+))?\/?(filters\:(?<filters>[^\/]+))?\/?)?(?<id>\/f\/.+)$/,Qt=/:(?![^(]*\))/,$t=e=>e?Object.fromEntries(e.split(Qt).map(e=>{if(!e)return[];let[t,n]=e.split(`(`);return[t,n.replace(`)`,``)]})):{},en=e=>{if(!e)return;let t=Object.entries(e).map(([e,t])=>`${e}(${t??``})`);if(t.length!==0)return`filters:${t.join(`:`)}`},tn=W(e=>{let t=P(e),n=(t.hostname===`img2.storyblok.com`?Zt:Xt).exec(t.pathname);if(!n||!n.groups)return null;let{id:r,crop:i,width:a,height:o,filters:s,flipx:c,flipy:l}=n.groups,{format:u,...d}=$t(s??``);t.hostname===`img2.storyblok.com`&&(t.hostname=`a.storyblok.com`);let f=Object.fromEntries([[`width`,Number(a)||void 0],[`height`,Number(o)||void 0],[`format`,u],[`crop`,i],[`filters`,d],[`flipx`,c],[`flipy`,l]].filter(([e,t])=>t!==void 0));return{src:`${t.origin}${r}`,operations:f}},(e,t)=>{let n=P(e),{width:r=0,height:i=0,format:a,crop:o,filters:s={},flipx:c=``,flipy:l=``}=t,u=`${c}${r}x${l}${i}`;return a&&(s.format=a),n.pathname=[n.pathname,`m`,o,u,en(s)].filter(Boolean).join(`/`),N(n)}),q=`/storage/v1/object/public/`,J=`/storage/v1/render/image/public/`,nn=e=>e.pathname.startsWith(J),{operationsGenerator:rn,operationsParser:an}=U({}),on=W(e=>{let t=P(e),n=an(t),r=nn(t),i=t.pathname.replace(J,``).replace(q,``);return r?{src:`${t.origin}${q}${i}`,operations:n}:{src:N(t),operations:n}},(e,t)=>{let n=P(e);return n.pathname=n.pathname.replace(J,q),t.format&&t.format!==`origin`&&delete t.format,n.search=rn(t),N(n).replace(q,J)}),sn=/^https?:\/\/(?<host>[^\/]+)\/(?<uuid>[^\/]+)(?:\/(?<filename>[^\/]+)?)?/,{operationsGenerator:cn,operationsParser:ln}=U({keyMap:{width:!1,height:!1},defaults:{format:`auto`},kvSeparator:`/`,paramSeparator:`/-/`}),un=W(e=>{let t=P(e),n=sn.exec(t.toString());if(!n||!n.groups)return null;let{host:r,uuid:i}=n.groups,[,...a]=t.pathname.split(`/-/`),o=ln(a.join(`/-/`)||``);if(o.resize){let[e,t]=o.resize.split(`x`);e&&(o.width=parseInt(e)),t&&(o.height=parseInt(t)),delete o.resize}return{src:`https://${r}/${i}/`,operations:o,options:{host:r}}},(e,t,n={})=>{let r=P(e),i=n.host||r.hostname,a=sn.exec(r.toString());a?.groups&&(r.pathname=`/${a.groups.uuid}/`),t.resize=t.resize||`${t.width??``}x${t.height??``}`,delete t.width,delete t.height;let o=I(cn(t));return r.hostname=i,r.pathname=F(r.pathname)+(o?`/-/${o}`:``)+(a?.groups?.filename??``),N(r)}),{operationsGenerator:dn,operationsParser:fn}=U({keyMap:{width:`w`,height:`h`},defaults:{crop:`1`}}),pn=W(e=>{let t=P(e),n=fn(t);return n.crop!==void 0&&(n.crop=n.crop===`1`),t.search=``,{src:N(t),operations:n}},(e,t)=>{let n=P(e),{crop:r}=t;return r!==void 0&&r!==`0`&&(t.crop=r?`1`:`0`),n.search=dn(t),N(n)}),{operationsGenerator:mn,operationsParser:hn}=U({keyMap:{width:`w`,height:`h`,format:`output`,quality:`q`},defaults:{fit:`cover`}}),gn={appwrite:xe,astro:De,"builder.io":ke,bunny:Me,cloudflare:Fe,cloudflare_images:Ue,cloudimage:Ke,cloudinary:$e,contentful:nt,contentstack:it,directus:ot,hygraph:dt,imageengine:mt,imagekit:_t,imgix:bt,ipx:Tt,keycdn:kt,"kontent.ai":Mt,netlify:Ft,nextjs:Vt,sce
2ne7:Gt,shopify:Yt,storyblok:tn,supabase:on,uploadcare:un,vercel:Bt,wordpress:pn,wsrv:W(e=>{let t=P(e),n=t.searchParams.get(`url`);if(!n)return null;let r=n;!r.startsWith(`http://`)&&!r.startsWith(`https://`)&&(r=`https://`+r),t.searchParams.delete(`url`);let i=hn(t);return{src:r,operations:i}},(e,t)=>{let n=new URL(`https://wsrv.nl/`),r=(typeof e==`string`?e:e.toString()).replace(/^https?:\/\//,``);n.searchParams.set(`url`,r);let i=mn(t),a=new URLSearchParams(i);for(let[e,t]of a)e!==`url`&&n.searchParams.set(e,t);return N(n)})};function _n(e){if(e)return gn[e]}function vn({cdn:e,fallback:t,operations:n={},options:r,...i}){if(e??=G(i.src)||t,!e)return i;let a=_n(e);return a?ne({...i,operations:n?.[e],options:r?.[e],transformer:a}):i}function yn({cdn:e,fallback:t,operations:n,options:r,...i}){if(e??=G(i.src)||t,!e)return i;let a=_n(e);return a?ie({...i,operations:n?.[e],options:r?.[e],transformer:a}):i}var bn=o.forwardRef(function(e,t){return(0,h.jsx)(`img`,{...b(vn(e)),ref:t})});o.forwardRef(function(e,t){return(0,h.jsx)(`source`,{...b(yn(e)),ref:t})});var xn=(()=>{try{return JSON.parse(`[]`)}catch{return[]}})(),Sn=(()=>{try{return JSON.parse(`[]`)}catch{return[]}})(),Cn=xn.length>0||Sn.length>0,wn=(()=>{try{return JSON.parse(`[640,750,828,1080,1200,1920,2048,3840]`)}catch{return[640,750,828,1080,1200,1920,2048,3840]}})(),Tn=(()=>{try{return JSON.parse(`[32,48,64,96,128,256,384]`)}catch{return[32,48,64,96,128,256,384]}})(),En=!1;function Dn(e){let t;try{t=new URL(e,`http://n`)}catch{return{allowed:!1,reason:`Invalid URL: ${e}`}}return m(t.hostname)?{allowed:!1,reason:`Image URL "${e}" resolved to private IP. If this is expected and you understand SSRF risk, use images.dangerouslyAllowLocalIP = true to continue.`}:!Cn||p(Sn,xn,t)?{allowed:!0}:{allowed:!1,reason:`Image URL "${e}" is not configured in images.remotePatterns or images.domains in next.config.js. See: https://nextjs.org/docs/messages/next-image-unconfigured-host`}}var On=o.useLayoutEffect;function kn(e){let t=new Event(`load`);Object.defineProperty(t,`target`,{writable:!1,value:e});let n=!1,r=!1;return{bubbles:t.bubbles,cancelable:t.cancelable,currentTarget:e,defaultPrevented:!1,eventPhase:t.eventPhase,isTrusted:!1,nativeEvent:t,target:e,timeStamp:t.timeStamp,type:`load`,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}}}function An(e){if(e.startsWith(`data:image/`)&&!/[)(}{\\'"\n\r]/.test(e))return e}function jn(e){return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`)}function Mn(e){try{return new URL(e,`http://vinext.local`).pathname.toLowerCase().endsWith(`.svg`)}catch{return!1}}function Y(e,t){return{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,...t,...e}}function Nn(e){let t=typeof e.src==`object`&&`default`in e.src?e.src.default:e.src,n=typeof t==`string`?t:t.src,r=e.width??(typeof t==`object`?t.width:void 0),i=e.height??(typeof t==`object`?t.height:void 0);return{src:n,width:typeof r==`string`?Number(r):r,height:typeof i==`string`?Number(i):i,blurDataURL:e.blurDataURL??(typeof t==`object`?t.blurDataURL:void 0)}}var X=[...wn].sort((e,t)=>e-t),Z=[...X,...Tn].sort((e,t)=>e-t);function Pn(e){let t=a();if(!e.startsWith(`/`)||e.startsWith(`//`))return{src:e,deploymentId:t};let n=e.indexOf(`?`);if(n===-1)return{src:e,deploymentId:t};let r=new URLSearchParams(e.slice(n+1)),i=r.get(`dpl`);if(!i)return{src:e,deploymentId:t};t=i,r.delete(`dpl`);let o=r.toString();return{src:e.slice(0,n)+(o?`?${o}`:``),deploymentId:t}}function Q(e,t,n=75){let r=Pn(e),i=r.src.startsWith(`/`)&&r.deploymentId?`&dpl=${r.deploymentId}`:``;return`/_next/image?url=${encodeURIComponent(r.src)}&w=${t}&q=${n}${i}`}function $(e){e.shouldPreload&&typeof g.preload==`function`&&g.preload(e.src,{as:`image`,imageSrcSet:e.srcSet,imageSizes:e.sizes,fetchPriority:e.fetchPriority})}function Fn(e){return[...new Set([e,e*2].map(e=>Z.find(t=>t>=e)??Z[Z.length-1]))]}function In(e,t,n=75,r){if(r){let t=Array.from(r.matchAll(/(^|\s)(1?\d?\d)vw/g),e=>Number.parseInt(e[2],10)),i=t.length>0?X[0]*(Math.min(...t)*.01):0,a=Z.filter(e=>e>=i);return{src:Q(e,a[a.length-1],n),srcSet:a.map(t=>`${Q(e,t,n)} ${t}w`).join(`, `)}}let i=Fn(t);return{src:Q(e,i[i.length-1],n),srcSet:i.map((t,r)=>`${Q(e,t,n)} ${r+1}x`).join(`, `)}}var Ln=(0,o.forwardRef)(function({src:e,alt:t,width:n,height:r,fill:i,preload:a,priority:c,qual
2ity:l,placeholder:u,blurDataURL:d,loader:f,sizes:p,className:m,style:g,onLoad:_,onLoadingComplete:v,onError:y,unoptimized:b,overrideSrc:ee,loading:x,...S},te){let C=(0,o.useRef)(void 0),w=(0,o.useRef)(void 0),T=(0,o.useRef)(!1),E=(0,o.useRef)(null),D=s(te,E),ne=(0,o.useRef)(_);(0,o.useEffect)(()=>{ne.current=_},[_]);let re=(0,o.useRef)(y);(0,o.useEffect)(()=>{re.current=y},[y]);let ie=(0,o.useRef)(v);(0,o.useEffect)(()=>{ie.current=v},[v]);let{src:O,width:k,height:A,blurDataURL:j}=Nn({src:e,width:n,height:r,blurDataURL:d}),M=a===!0||c===!0,N=c?`high`:void 0,P=c?`eager`:M?x:x??`lazy`,[ae,oe]=(0,o.useState)(void 0),F=ae===O,I=()=>{u===`blur`&&oe(e=>e===O?e:O)};On(()=>{if(!T.current&&E.current!==null){let e=E.current;if(re.current&&(e.src=e.src),e.complete&&e.naturalWidth>0){I();let t=ne.current,n=ie.current;if((t||n)&&C.current!==O){C.current=O;let r=kn(e);t?.(r),n?.(e)}}T.current=!0}},[u,p,b]);let L=v?e=>{C.current!==O&&(C.current=O,I(),_?.(e),v(e.currentTarget))}:_?e=>{C.current!==O&&(C.current=O,I(),_(e))}:u===`blur`?()=>{C.current!==O&&(C.current=O,I())}:void 0,R=y?e=>{w.current!==O&&(w.current=O,I(),y(e))}:u===`blur`?()=>{w.current!==O&&(w.current=O,I())}:void 0;if(b===!0||En){let e=ee||O,n=j?An(j):void 0,r=!F&&u===`blur`&&n?{backgroundImage:`url(${n})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0;return $({shouldPreload:M,src:e,fetchPriority:N}),(0,h.jsx)(`img`,{ref:D,src:e,alt:t,width:i?void 0:k,height:i?void 0:A,loading:P,fetchPriority:N,decoding:`async`,className:m,"data-nimg":i?`fill`:`1`,onLoad:L,onError:R,style:i?Y(g,r):{...r,...g},...S})}if(f){let e=typeof l==`string`?Number(l):l??75,n=f({src:O,width:k??0,quality:e});return $({shouldPreload:M,src:n,sizes:p,fetchPriority:N}),(0,h.jsx)(`img`,{ref:D,src:n,alt:t,width:i?void 0:k,height:i?void 0:A,loading:P,decoding:`async`,sizes:p,className:m,onLoad:L,onError:R,style:i?Y(g):g,...S})}if(jn(O)){let e=Dn(O);if(!e.allowed)return console.error(`[next/image] ${e.reason}`),null;let n=j?An(j):void 0,r=!F&&u===`blur`&&n,a=r?{backgroundImage:`url(${n})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0,o=r?`url(${n})`:void 0;if(i){let e=p??`100vw`;return $({shouldPreload:M,src:O,sizes:e,fetchPriority:N}),(0,h.jsx)(`img`,{ref:D,src:O,alt:t,loading:P,fetchPriority:N,decoding:`async`,sizes:e,className:m,"data-nimg":`fill`,onLoad:L,onError:R,style:Y(g,a),...S})}if(k&&A){let e={style:g};return $({shouldPreload:M,src:O,sizes:p,fetchPriority:N}),(0,h.jsx)(bn,{src:O,alt:t,width:k,height:A,layout:`constrained`,loading:P,fetchPriority:N,sizes:p,className:m,...e,background:o,onLoad:L,onError:R,ref:D})}}let se=typeof l==`string`?Number(l):l??75,z=Mn(O)&&!0,B=k&&!i&&!z?In(O,k,se,p):void 0,V=B?B.srcSet:k&&!i?X.filter(e=>e<=k*2).map(e=>`${O} ${e}w`).join(`, `)||`${O} ${k}w`:void 0,ce=z?O:B?B.src:Q(O,X[0],se),le=j?An(j):void 0,H=!F&&u===`blur`&&le?{backgroundImage:`url(${le})`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`}:void 0,ue=p??(i?`100vw`:void 0);return $({shouldPreload:M,src:ce,srcSet:V,sizes:ue,fetchPriority:N}),(0,h.jsx)(`img`,{ref:D,src:ce,alt:t,width:i?void 0:k,height:i?void 0:A,loading:P,fetchPriority:N,decoding:`async`,srcSet:V,sizes:ue,className:m,"data-nimg":i?`fill`:`1`,onLoad:L,onError:R,style:i?Y(g,H):{...H,...g},...S})});export{Ln as t};

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.