PageSourceSearch

https://moryext.com/_next/static/chunks/42aw8pnre29yy.js

js moryext.com collected 2026-10-02 01:36:37 UTC 56,242 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,4679,e=>{"use strict";let t=(0,e.i(35310).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],4679)},79396,e=>{"use strict";let t=(0,e.i(35310).default)("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);e.s(["PenLine",0,t],79396)},30866,(e,t,r)=>{var a={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],a=t[1];return(r+a)*3/4-a},t.toByteArray=function(e){var t,r,n=s(e),i=n[0],l=n[1],u=new o((i+l)*3/4-l),c=0,f=l>0?i-4:i;for(r=0;r<f;r+=4)t=a[e.charCodeAt(r)]<<18|a[e.charCodeAt(r+1)]<<12|a[e.charCodeAt(r+2)]<<6|a[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===l&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,a=e.length,o=a%3,n=[],i=0,l=a-o;i<l;i+=16383)n.push(function(e,t,a){for(var o,n=[],i=t;i<a;i+=3)o=(e[i]<<16&0xff0000)+(e[i+1]<<8&65280)+(255&e[i+2]),n.push(r[o>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return n.join("")}(e,i,i+16383>l?l:i+16383));return 1===o?n.push(r[(t=e[a-1])>>2]+r[t<<4&63]+"=="):2===o&&n.push(r[(t=(e[a-2]<<8)+e[a-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),n.join("")};for(var r=[],a=[],o="u">typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=n.length;i<l;++i)r[i]=n[i],a[n.charCodeAt(i)]=i;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var a=r===t?0:4-r%4;return[r,a]}a[45]=62,a[95]=63},72:function(e,t,r){"use strict";var a=r(675),o=r(783),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function i(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e){var a=e,o=t;if(("string"!=typeof o||""===o)&&(o="utf8"),!l.isEncoding(o))throw TypeError("Unknown encoding: "+o);var n=0|d(a,o),s=i(n),u=s.write(a,o);return u!==n&&(s=s.slice(0,u)),s}if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return function(e,t,r){var a;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(a=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),l.prototype),a}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return l.from(c,t,r);var h=function(e){if(l.isBuffer(e)){var t=0|p(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?i(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(h)return h;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 16,509 bytes, line 1
1if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),i(e<0?0:0|p(e))}function f(e){for(var t=e.length<0?0:0|p(e.length),r=i(t),a=0;a<t;a+=1)r[a]=255&e[a];return r}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return(u(e),e<=0)?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)},l.allocUnsafe=function(e){return c(e)},l.allocUnsafeSlow=function(e){return c(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return E(e).length;default:if(o)return a?-1:k(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var o,n,i,l=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var a=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>a)&&(r=a);for(var o="",n=t;n<r;++n)o+=M[e[n]];return o}(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return function(e,t,r){var a="";r=Math.min(e.length,r);for(var o=t;o<r;++o)a+=String.fromCharCode(127&e[o]);return a}(this,t,r);case"latin1":case"binary":return function(e,t,r){var a="";r=Math.min(e.length,r);for(var o=t;o<r;++o)a+=String.fromCharCode(e[o]);return a}(this,t,r);case"base64":return o=this,n=t,i=r,0===n&&i===o.length?a.fromByteArray(o):a.fromByteArray(o.slice(n,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var a=e.slice(t,r),o="",n=0;n<a.length;n+=2)o+=String.fromCharCode(a[n]+256*a[n+1]);return o}(this,t,r);default:if(l)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function m(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function y(e,t,r,a,o){var n;if(0===e.length)return -1;if("string"==typeof r?(a=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(n=r*=1)!=n&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(o)return -1;else r=e.length-1;else if(r<0)if(!o)return -1;else r=0;if("string"==typeof t&&(t=l.from(t,a)),l.isBuffer(t))return 0===t.length?-1:g(e,t,r,a,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return g(e,[t],r,a,o)}throw TypeError("val must be string, number or Buffer")}function g(e,t,r,a,o){var n,i=1,l=e.length,s=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return -1;i=2,l/=2,s/=2,r/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var c=-1;for(n=r;n<l;n++)if(u(e,n)===u(t,-1===c?0:n-c)){if(-1===c&&(c=n),n-c+1===s)return c*i}else -1!==c&&(n-=n-c),c=-1}else for(r+s>l&&(r=l-s),n=r;n>=0;n--){for(var f=!0,p=0;p<s;p++)if(u(e,n+p)!==u(t,p)){f=!1;break}if(f)return n}return -1}l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(j(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,a=t.length,o=0,n=Math.min(r,a);o<n;++o)if(e[o]!==t[o]){r=e[o],a=t[o];break}return r<a?-1:+(a<r)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,a=l.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var n=e[r];if(j(n,Uint8Array)&&(n=l.from(n)),!l.isBuffer(n))throw TypeError('"list" argument must be an Array of Buffers');n.copy(a,o),o+=n.length}return a},l.byteLength=d,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?_(this,0,e):h.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(e,t,r,a,o){if(j(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===o&&(o=this.length),t<0||r>e.length||a<0||o>this.length)throw RangeError("out of range index");if(a>=o&&t>=r)return 0;if(a>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,a>>>=0,o>>>=0,this===e)return 0;for(var n=o-a,i=r-t,s=Math.min(n,i),u=this.slice(a,o),c=e.slice(t,r),f=0;f<s;++f)if(u[f]!==c[f]){n=u[f],i=c[f];break}return n<i?-1:+(i<n)},l.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function _(e,t,r){r=Math.min(e.length,r);for(var a=[],o=t;o<r;){var n,i,l,s,u=e[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(n=e[o+1]))==128&&(s=(31&u)<<6|63&n)>127&&(c=s);break;case 3:n=e[o+1],i=e[o+2],(192&n)==128&&(192&i)==128&&(s=(15&u)<<12|(63&n)<<6|63&i)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:n=e[o+1],i=e[o+2],l=e[o+3],(192&n)==128&&(192&i)==128&&(192&l)==128&&(s=(15&u)<<18|(63&n)<<12|(63&i)<<6|63&l)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,a.push(c>>>10&1023|55296),c=56320|1023&c),a.push(c),o+=f}var p=a,d=p.length;if(d<=4096)return String.fromCharCode.apply(String,p);for(var h="",m=0;m<d;)h+=String.fromCharCode.apply(String,p.slice(m,m+=4096));return h}function v(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,a,o,n){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<n)throw RangeError('"value" argument is out of bounds');if(r+a>e.length)throw RangeError("Index out of range")}function b(e,t,r,a,o,n){if(r+a>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,a,n){return t*=1,r>>>=0,n||b(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,a,23,4),r+4}function S(e,t,r,a,n){return t*=1,r>>>=0,n||b(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,a,52,8),r+8}l.prototype.write=function(e,t,r,a){if(void 0===t)a="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)a=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===a&&(a="utf8")):(a=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,n,i,l,s,u,c,f,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var d=!1;;)switch(a){case"hex":return function(e,t,r,a){r=Number(r)||0;var o=e.length-r;a?(a=Number(a))>o&&(a=o):a=o;var n=t.length;a>n/2&&(a=n/2);for(var i=0;i<a;++i){var l,s=parseInt(t.substr(2*i,2),16);if((l=s)!=l)break;e[r+i]=s}return i}(this,e,t,r);case"utf8":case"utf-8":return o=t,n=r,T(k(e,this.length-o),this,o,n);case"ascii":return i=t,l=r,T(A(e),this,i,l);case"latin1":case"binary":return function(e,t,r,a){return T(A(t),e,r,a)}(this,e,t,r);case"base64":return s=t,u=r,T(E(e),this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,f=r,T(function(e,t){for(var r,a,o=[],n=0;n<e.length&&!((t-=2)<0);++n)a=(r=e.charCodeAt(n))>>8,o.push(r%256),o.push(a);return o}(e,this.length-c),this,c,f);default:if(d)throw TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),d=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var a=this.subarray(e,t);return Object.setPrototypeOf(a,l.prototype),a},l.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var a=this[e],o=1,n=0;++n<t&&(o*=256);)a+=this[e+n]*o;return a},l.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var a=this[e+--t],o=1;t>0&&(o*=256);)a+=this[e+--t]*o;return a},l.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var a=this[e],o=1,n=0;++n<t&&(o*=256);)a+=this[e+n]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var a=t,o=1,n=this[e+--a];a>0&&(o*=256);)n+=this[e+--a]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,a){if(e*=1,t>>>=0,r>>>=0,!a){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var n=1,i=0;for(this[t]=255&e;++i<r&&(n*=256);)this[t+i]=e/n&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,a){if(e*=1,t>>>=0,r>>>=0,!a){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var n=r-1,i=1;for(this[t+n]=255&e;--n>=0&&(i*=256);)this[t+n]=e/i&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,a){if(e*=1,t>>>=0,!a){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var n=0,i=1,l=0;for(this[t]=255&e;++n<r&&(i*=256);)e<0&&0===l&&0!==this[t+n-1]&&(l=1),this[t+n]=(e/i|0)-l&255;return t+r},l.prototype.writeIntBE=function(e,t,r,a){if(e*=1,t>>>=0,!a){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var n=r-1,i=1,l=0;for(this[t+n]=255&e;--n>=0&&(i*=256);)e<0&&0===l&&0!==this[t+n+1]&&(l=1),this[t+n]=(e/i|0)-l&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,a){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a<r&&(a=r),a===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(a<0)throw RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t<a-r&&(a=e.length-t+r);var o=a-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,a);else if(this===e&&r<t&&t<a)for(var n=o-1;n>=0;--n)e[n+t]=this[n+r];else Uint8Array.prototype.set.call(e,this.subarray(r,a),t);return o},l.prototype.fill=function(e,t,r,a){if("string"==typeof e){if("string"==typeof t?(a=t,t=0,r=this.length):"string"==typeof r&&(a=r,r=this.length),void 0!==a&&"string"!=typeof a)throw TypeError("encoding must be a string");if("string"==typeof a&&!l.isEncoding(a))throw TypeError("Unknown encoding: "+a);if(1===e.length){var o,n=e.charCodeAt(0);("utf8"===a&&n<128||"latin1"===a)&&(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var i=l.isBuffer(e)?e:l.from(e,a),s=i.length;
1if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%s]}return this};var R=/[^+/0-9A-Za-z-_]/g;function k(e,t){t=t||1/0;for(var r,a=e.length,o=null,n=[],i=0;i<a;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319||i+1===a){(t-=3)>-1&&n.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&n.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&n.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;n.push(r)}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;n.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return n}function A(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function E(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,r,a){for(var o=0;o<a&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var M=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var a=16*r,o=0;o<16;++o)t[a+o]=e[r]+e[o];return t}()},783:function(e,t){t.read=function(e,t,r,a,o){var n,i,l=8*o-a-1,s=(1<<l)-1,u=s>>1,c=-7,f=r?o-1:0,p=r?-1:1,d=e[t+f];for(f+=p,n=d&(1<<-c)-1,d>>=-c,c+=l;c>0;n=256*n+e[t+f],f+=p,c-=8);for(i=n&(1<<-c)-1,n>>=-c,c+=a;c>0;i=256*i+e[t+f],f+=p,c-=8);if(0===n)n=1-u;else{if(n===s)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,a),n-=u}return(d?-1:1)*i*Math.pow(2,n-a)},t.write=function(e,t,r,a,o,n){var i,l,s,u=8*n-o-1,c=(1<<u)-1,f=c>>1,p=5960464477539062e-23*(23===o),d=a?0:n-1,h=a?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(l=+!!isNaN(t),i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),i+f>=1?t+=p/s:t+=p*Math.pow(2,1-f),t*s>=2&&(i++,s/=2),i+f>=c?(l=0,i=c):i+f>=1?(l=(t*s-1)*Math.pow(2,o),i+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[r+d]=255&l,d+=h,l/=256,o-=8);for(i=i<<o|l,u+=o;u>0;e[r+d]=255&i,d+=h,i/=256,u-=8);e[r+d-h]|=128*m}}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},i=!0;try{a[e](r,r.exports,n),i=!1}finally{i&&delete o[e]}return r.exports}n.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/buffer/",t.exports=n(72)},28041,e=>{"use strict";e.i(33202);var t=e.i(37581),r=e.i(48071);e.s(["bigint",0,function(e){return t._coercedBigint(r.ZodBigInt,e)},"boolean",0,function(e){return t._coercedBoolean(r.ZodBoolean,e)},"date",0,function(e){return t._coercedDate(r.ZodDate,e)},"number",0,function(e){return t._coercedNumber(r.ZodNumber,e)},"string",0,function(e){return t._coercedString(r.ZodString,e)}],12590);var a=e.i(12590);e.s(["coerce",0,a],28041)},4390,e=>{"use strict";let t=(0,e.i(35310).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],4390)},89716,e=>{"use strict";let t=(0,e.i(35310).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["Image",0,t],89716)},92363,e=>{"use strict";let t=(0,e.i(35310).default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);e.s(["Heart",0,t],92363)},67879,e=>{"use strict";let t=(0,e.i(35310).default)("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]);e.s(["LayoutTemplate",0,t],67879)},5924,e=>{"use strict";let t={cover:[320,480,640,960],marquee:[320,480,640],detail:[480,960,1440],avatar:[64,96]},r={cover:{fit:"cover",quality:76,slowConnectionQuality:55},marquee:{fit:"scale-down",quality:76,slowConnectionQuality:55},detail:{fit:"scale-down",quality:80,slowConnectionQuality:58}
1,avatar:{fit:"cover",quality:70,slowConnectionQuality:50}};function a(e,a,o){if(!/^https:\/\//.test(e))return e;if(!t[a].includes(o))throw Error(`Unsupported ${a} image width: ${o}`);let n=r[a],i=[`width=${o}`,..."cover"===a?[`height=${Math.round(3*o/4)}`,"gravity=0.5x0.5"]:"avatar"===a?[`height=${o}`,"gravity=auto"]:[],`quality=${n.quality}`,`scq=${n.slowConnectionQuality}`,`fit=${n.fit}`,"format=auto"];return`/cdn-cgi/image/${i.join(",")}/${e}`}e.s(["promptImageSrcSet",0,function(e,r){if(/^https:\/\//.test(e))return t[r].map(t=>`${a(e,r,t)} ${t}w`).join(", ")},"promptImageVariantUrl",0,a])},23537,16705,e=>{"use strict";var t=e.i(43961);function r(){if("u"<typeof navigator)return;let e=navigator;return e.connection||e.mozConnection||e.webkitConnection}function a(e){let t=0x811c9dc5;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,0x1000193);return t>>>0}function o(e){let t=120+a(`views:${e}`)%781;return{liked:!1,likes:Math.max(2,Math.round(t*(180+a(`likes:${e}`)%241)/1e4)),views:t}}function n(e,t){let r=Number.isFinite(t)?Math.max(0,Math.floor(t)):0;return o(e).likes+r}e.s(["usePromptNetworkPolicy",0,function(){let[e,a]=(0,t.useState)({constrained:!1,saveData:!1});return(0,t.useEffect)(()=>{let e=r(),t=window.matchMedia?.("(prefers-reduced-data: reduce)"),o=()=>{let e,t,o,n,i,l;return a((e=r(),t=!!e?.saveData,o=e?.effectiveType?.toLowerCase()||"",n=/(^|-)2g$|3g$/.test(o),i="number"==typeof e?.downlink&&e.downlink<1.5,l=window.matchMedia?.("(prefers-reduced-data: reduce)").matches,{constrained:t||n||i||l,saveData:t}))};return o(),e?.addEventListener("change",o),t?.addEventListener?.("change",o),()=>{e?.removeEventListener("change",o),t?.removeEventListener?.("change",o)}},[]),e}],23537);let i="mory:prompt-social-stats";function l(e){if(!e||"object"!=typeof e||Array.isArray(e)||"boolean"!=typeof e.liked)return null;let t=Number(e.likes);return!Number.isInteger(t)||t<0?null:{liked:e.liked,likes:t}}async function s(e,t){let r=await fetch(`/api/prompts/${encodeURIComponent(e)}/like`,{cache:"no-store",...t});if(!r.ok){let e=Error(401===r.status?"auth_required":"prompt_like_failed");throw Object.assign(e,{status:r.status}),e}let a=l(await r.json());if(!a)throw Error("prompt_like_invalid_response");return a}function u(e){return(Math.round(10*e)/10).toFixed(1).replace(/\.0$/,"")}e.s(["formatPromptStatCount",0,function(e,t){let r=Math.max(0,Math.floor(e));return"zh"===t?r>=1e8?`${u(r/1e8)}亿`:r>=1e4?`${u(r/1e4)}万`:r.toLocaleString("zh-CN"):r>=1e6?`${u(r/1e6)}M`:r>=1e3?`${u(r/1e3)}K`:r.toLocaleString("en-US")},"usePromptSocialStats",0,function(e,{countView:r=!1,initialLikes:a=0}={}){let u=Number.isFinite(a)?Math.max(0,Math.floor(a)):0,[c,f]=(0,t.useState)(()=>({...o(e),likes:n(e,u)})),[p,d]=(0,t.useState)(!1),h=(0,t.useRef)(c),m=(0,t.useRef)(!1);(0,t.useEffect)(()=>{h.current=c},[c]);let y=(0,t.useCallback)(t=>{f(r=>({...r,liked:t.liked,likes:n(e,t.likes)}))},[e]),g=(0,t.useCallback)(async()=>{let t=await s(e);return y(t),t},[y,e]);(0,t.useEffect)(()=>{let t=window.setTimeout(()=>{let t=o(e);f({...t,likes:n(e,u),views:r?function(e,t){let r=`mory_prompt_viewed_v1:${e}`;try{if(window.sessionStorage.getItem(r))return t;return window.sessionStorage.setItem(r,"1"),t+1}catch{return t}}(e,t.views):t.views}),r&&g().catch(()=>void 0)},0),a=t=>{if(!(t instanceof CustomEvent)||t.type!==i||t.detail?.id!==e)return;let r=l(t.detail?.state);r&&y(r)},s=()=>{r&&g().catch(()=>void 0)};return window.addEventListener(i,a),window.addEventListener("focus",s),()=>{window.clearTimeout(t),window.removeEventListener(i,a),window.removeEventListener("focus",s)}},[y,r,e,u,g]);let _=(0,t.useCallback)(async()=>{if(m.current)return h.current;m.current=!0,d(!0);let t=h.current,r=!t.liked;f(e=>({...e,liked:r,likes:Math.max(0,e.likes+(r?1:-1))}));try{let t=await s(e,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({liked:r})});return y(t),window.dispatchEvent(new CustomEvent(i,{detail:{id:e,state:t}})),{...h.current,liked:t.liked,likes:n(e,t.likes)}}catch(e){throw f(t),e}finally{m.current=!1,d(!1)}},[y,e]);return{...c,pending:p,toggleLike:_}}],16705)},72630,e=>
1{e.v({accessPanel:"prompts-module__Rao21a__accessPanel",actionWrapper:"prompts-module__Rao21a__actionWrapper",authorRow:"prompts-module__Rao21a__authorRow",authorSection:"prompts-module__Rao21a__authorSection",avatarFallback:"prompts-module__Rao21a__avatarFallback",backToLibrary:"prompts-module__Rao21a__backToLibrary",breadcrumbs:"prompts-module__Rao21a__breadcrumbs",card:"prompts-module__Rao21a__card",cardAuthor:"prompts-module__Rao21a__cardAuthor",cardAuthorName:"prompts-module__Rao21a__cardAuthorName",cardBody:"prompts-module__Rao21a__cardBody",cardFooter:"prompts-module__Rao21a__cardFooter",cardLink:"prompts-module__Rao21a__cardLink",cardMedia:"prompts-module__Rao21a__cardMedia",cardMediaHitArea:"prompts-module__Rao21a__cardMediaHitArea",cardStat:"prompts-module__Rao21a__cardStat",cardStats:"prompts-module__Rao21a__cardStats",cardSummary:"prompts-module__Rao21a__cardSummary",copyButton:"prompts-module__Rao21a__copyButton",copyError:"prompts-module__Rao21a__copyError",copyToast:"prompts-module__Rao21a__copyToast",copyToastIn:"prompts-module__Rao21a__copyToastIn",detailActions:"prompts-module__Rao21a__detailActions",detailContainer:"prompts-module__Rao21a__detailContainer",detailError:"prompts-module__Rao21a__detailError",detailGallery:"prompts-module__Rao21a__detailGallery",detailHeading:"prompts-module__Rao21a__detailHeading",detailInfo:"prompts-module__Rao21a__detailInfo",detailIntent:"prompts-module__Rao21a__detailIntent",detailLayout:"prompts-module__Rao21a__detailLayout",detailLoading:"prompts-module__Rao21a__detailLoading",detailModel:"prompts-module__Rao21a__detailModel",detailPage:"prompts-module__Rao21a__detailPage",detailSkeletonActions:"prompts-module__Rao21a__detailSkeletonActions",detailSkeletonAuthor:"prompts-module__Rao21a__detailSkeletonAuthor",detailSkeletonBack:"prompts-module__Rao21a__detailSkeletonBack",detailSkeletonBreadcrumb:"prompts-module__Rao21a__detailSkeletonBreadcrumb",detailSkeletonContainer:"prompts-module__Rao21a__detailSkeletonContainer",detailSkeletonInfo:"prompts-module__Rao21a__detailSkeletonInfo",detailSkeletonLayout:"prompts-module__Rao21a__detailSkeletonLayout",detailSkeletonMedia:"prompts-module__Rao21a__detailSkeletonMedia",detailSkeletonPage:"prompts-module__Rao21a__detailSkeletonPage",detailSkeletonSummary:"prompts-module__Rao21a__detailSkeletonSummary",detailSkeletonText:"prompts-module__Rao21a__detailSkeletonText",detailSkeletonTitle:"prompts-module__Rao21a__detailSkeletonTitle",detailSkeletonType:"prompts-module__Rao21a__detailSkeletonType",detailType:"prompts-module__Rao21a__detailType",downloadFileCard:"prompts-module__Rao21a__downloadFileCard",downloadFileMark:"prompts-module__Rao21a__downloadFileMark",emptyState:"prompts-module__Rao21a__emptyState",explore:"prompts-module__Rao21a__explore",featured:"prompts-module__Rao21a__featured",filterActive:"prompts-module__Rao21a__filterActive",filters:"prompts-module__Rao21a__filters",galleryArrow:"prompts-module__Rao21a__galleryArrow",galleryCount:"prompts-module__Rao21a__galleryCount",galleryEnterFromLeft:"prompts-module__Rao21a__galleryEnterFromLeft",galleryEnterFromRight:"prompts-module__Rao21a__galleryEnterFromRight",galleryExitToLeft:"prompts-module__Rao21a__galleryExitToLeft",galleryExitToRight:"prompts-module__Rao21a__galleryExitToRight",galleryNext:"prompts-module__Rao21a__galleryNext",galleryPrevious:"prompts-module__Rao21a__galleryPrevious",gallerySlide:"prompts-module__Rao21a__gallerySlide",gallerySlideEnterFromLeft:"prompts-module__Rao21a__gallerySlideEnterFromLeft",gallerySlideEnterFromRight:"prompts-module__Rao21a__gallerySlideEnterFromRight",gallerySlideExitToLeft:"prompts-module__Rao21a__gallerySlideExitToLeft",gallerySlideExitToRight:"prompts-module__Rao21a__gallerySlideExitToRight",grid:"prompts-module__Rao21a__grid",hero:"prompts-module__Rao21a__hero",heroWithMarquee:"prompts-module__Rao21a__heroWithMarquee",imageForeground:"prompts-module__Rao21a__imageForeground",imageFrame:"prompts-module__Rao21a__imageFrame",imageRetry:"prompts-module__Rao21a__imageRetry",likeButton:"prompts-module__Rao21a__likeButton",loadState:"prompts-module__Rao2
11a__loadState",loadingDescription:"prompts-module__Rao21a__loadingDescription",loadingGrid:"prompts-module__Rao21a__loadingGrid",loadingMarquee:"prompts-module__Rao21a__loadingMarquee",loadingMarqueeBlocks:"prompts-module__Rao21a__loadingMarqueeBlocks",loadingPage:"prompts-module__Rao21a__loadingPage",loadingSection:"prompts-module__Rao21a__loadingSection",loadingSectionTitle:"prompts-module__Rao21a__loadingSectionTitle",loadingTitle:"prompts-module__Rao21a__loadingTitle",modelBadge:"prompts-module__Rao21a__modelBadge",page:"prompts-module__Rao21a__page",promptFacts:"prompts-module__Rao21a__promptFacts",promptLocked:"prompts-module__Rao21a__promptLocked",promptMarquee:"prompts-module__Rao21a__promptMarquee",promptMarqueeGroup:"prompts-module__Rao21a__promptMarqueeGroup",promptMarqueeItem:"prompts-module__Rao21a__promptMarqueeItem",promptMarqueeScroll:"prompts-module__Rao21a__promptMarqueeScroll",promptMarqueeTitle:"prompts-module__Rao21a__promptMarqueeTitle",promptMarqueeTrack:"prompts-module__Rao21a__promptMarqueeTrack",promptRefresh:"prompts-module__Rao21a__promptRefresh",promptTextPanel:"prompts-module__Rao21a__promptTextPanel",refreshIndicator:"prompts-module__Rao21a__refreshIndicator",refreshIndicatorSlot:"prompts-module__Rao21a__refreshIndicatorSlot",relatedPromptGrid:"prompts-module__Rao21a__relatedPromptGrid",relatedPrompts:"prompts-module__Rao21a__relatedPrompts",search:"prompts-module__Rao21a__search",section:"prompts-module__Rao21a__section",shimmer:"prompts-module__Rao21a__shimmer",spin:"prompts-module__Rao21a__spin",spinner:"prompts-module__Rao21a__spinner",toolbar:"prompts-module__Rao21a__toolbar",typeBadge:"prompts-module__Rao21a__typeBadge"})},49085,e=>{"use strict";var t=e.i(9567),r=e.i(89716),a=e.i(67879),o=e.i(79396);let n=(0,e.i(35310).default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var i=e.i(40084),l=e.i(43961),s=e.i(5924);e.i(63263);var u=e.i(69495),c=e.i(72630);let f={image:r.Image,web:a.LayoutTemplate,writing:o.PenLine,persona:i.UserRound},p={cover:640,marquee:480,detail:960,avatar:64};e.s(["PromptImage",0,function({alt:e,eager:r=!1,height:a,onLoad:o,original:i,placeholder:u,retryLabel:f="Retry image",sizes:d,usage:h,width:m}){let[y,g]=(0,l.useState)(0),[_,v]=(0,l.useState)(null),w=_===i,b=/^https:\/\//.test(i),x=u?{backgroundImage:`url("${u.replaceAll('"',"%22")}")`}:void 0;return(0,t.jsx)("span",{className:c.default.imageFrame,"data-image-state":w?"error":"loading",style:x,children:w?(0,t.jsxs)("button",{"aria-label":f,className:c.default.imageRetry,onClick:e=>{e.preventDefault(),e.stopPropagation(),v(null),g(e=>e+1)},type:"button",children:[(0,t.jsx)(n,{"aria-hidden":"true",size:16}),f]}):(0,t.jsx)("img",{alt:e,className:"detail"===h?c.default.imageForeground:void 0,decoding:"async",fetchPriority:r?"high":"low",height:a,loading:r?"eager":"lazy",onError:()=>v(i),onLoad:e=>{let t=e.currentTarget;t.parentElement?.setAttribute("data-image-state","loaded"),o&&t.decode().catch(()=>void 0).then(()=>o())},sizes:d,src:b?(0,s.promptImageVariantUrl)(i,h,p[h]):i,srcSet:(0,s.promptImageSrcSet)(i,h),width:m},`${i}:${y}`)})},"TypeBadge",0,function({locale:e,type:r}){let a=f[r],o={image:(0,u.translateText)(e,"Image","图片"),web:(0,u.translateText)(e,"Web","网页"),writing:(0,u.translateText)(e,"Writing","写作"),persona:(0,u.translateText)(e,"Persona","人设")};return(0,t.jsxs)("span",{className:c.default.typeBadge,"data-prompt-type":r,children:[(0,t.jsx)(a,{"aria-hidden":"true",size:14,strokeWidth:1.8}),o[r]]})}],49085)},83253,e=>{"use strict";var t=e.i(9567),r=e.i(16182),a=e.i(83893),o=e.i(4679),n=e.i(92363),i=e.i(89716);let l=(0,e.i(35310).default)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);var s=e.i(67879),u=e.i(79396),c=e.i(4390),f=e.i(40084),p=e.i(43961),d=e.i(5924);e.i(30866);var h=e.i(48071),m=e.i(28041);let y=["image","web","writing","persona"],g=["gpt-image","seedream","flux","
1stable-diffusion","midjourney","wan"],_=Object.fromEntries([{value:"gpt-image",label:"GPT Image"},{value:"seedream",label:"Seedream"},{value:"flux",label:"FLUX"},{value:"stable-diffusion",label:"Stable Diffusion"},{value:"midjourney",label:"Midjourney"},{value:"wan",label:"Wan"}].map(({label:e,value:t})=>[t,e]));h.object({locale:h.string().min(2).max(10),type:h.enum(y).optional(),q:h.string().trim().max(80).default(""),cursor:h.string().max(400).optional(),limit:m.coerce.number().int().min(1).max(24).default(12),delivery:h.enum(["prompt","all"]).default("prompt")});let v=e=>h.preprocess(e=>String(e||"").trim()||null,h.string().max(e).nullable()),w=h.preprocess(e=>String(e||"").trim(),h.string().max(600)),b=h.preprocess(e=>String(e||"").trim()||null,h.enum(g).nullable());h.object({titleZh:h.string().trim().max(160),titleEn:h.string().trim().max(160),summaryZh:w,summaryEn:w,promptText:h.string().trim().max(1e5),promptLanguage:h.string().trim().min(2).max(40),deliveryKind:h.enum(["prompt","file"]).default("prompt"),type:h.enum(y),model:b,accessLevel:h.enum(["authenticated","member"]),authorName:v(160),sourceUrl:h.preprocess(e=>String(e||"").trim()||null,h.string().url().max(2e3).refine(e=>/^https?:\/\//i.test(e),{message:"Author URL must use HTTP or HTTPS"}).nullable()),rightsNote:v(2e3),featuredOrder:h.preprocess(e=>{let t=String(e||"").trim();return t?Number(t):null},h.number().int().min(1).max(4).nullable())});var x=e.i(23537),S=e.i(16705);let R="prompt_pages",k=new Map,A=null;function E(e){return{locale:e.locale,type:e.type||"all",q:String(e.q||"").trim(),cursor:e.cursor||"first",limit:Math.min(24,Math.max(1,e.limit||12))}}function T(e){let t=E(e);return JSON.stringify([t.locale,t.type,t.q,t.cursor,t.limit])}function j(e){if(!e||"object"!=typeof e||Array.isArray(e)||!Array.isArray(e.items)||"boolean"!=typeof e.hasMore||null!==e.nextCursor&&"string"!=typeof e.nextCursor)return null;let t=e.items.flatMap(e=>{var t,r;if(!e||"object"!=typeof e||Array.isArray(e))return[];let a=e.cover,o=(t=e.model,g.includes(t)?t:null),n="file"===e.deliveryKind?"file":"prompt",i=!(r=e.downloadAsset)||"object"!=typeof r||Array.isArray(r)?null:"string"==typeof r.fileName&&["png","jpg","jpeg","svg","html","htm","pdf"].includes(String(r.extension))&&["image/png","image/jpeg","image/svg+xml","text/html","application/pdf"].includes(String(r.mimeType))&&"number"==typeof r.bytes&&Number.isSafeInteger(r.bytes)&&!(r.bytes<=0)?r:null;return"string"==typeof e.id&&"string"==typeof e.slug&&y.includes(e.type)&&["authenticated","member"].includes(String(e.accessLevel))&&"string"==typeof e.title&&"string"==typeof e.summary&&"number"==typeof e.likes&&(void 0===e.model||null===e.model||null!==o)&&(null===e.authorName||"string"==typeof e.authorName)&&(null===e.authorAvatarUrl||"string"==typeof e.authorAvatarUrl)&&void 0!==a&&"string"==typeof a.id&&"string"==typeof a.url&&"number"==typeof a.width&&"number"==typeof a.height&&"string"==typeof a.alt&&(null===a.placeholder||"string"==typeof a.placeholder)&&("file"!==n||i)?[{accessLevel:e.accessLevel,authorName:e.authorName,authorAvatarUrl:e.authorAvatarUrl,cover:{alt:a.alt,height:a.height,id:a.id,placeholder:a.placeholder,url:a.url,width:a.width},deliveryKind:n,downloadAsset:"file"===n?i:null,id:e.id,likes:e.likes,model:o,slug:e.slug,summary:e.summary,title:e.title,type:e.type}]:[]});return t.length!==e.items.length?null:{hasMore:e.hasMore,items:t,nextCursor:e.nextCursor}}function M(e,t){k.delete(e),k.set(e,t)}function B(e,t,r){let a=T(e);for(M(a,{cachedAt:r,data:t,key:a});k.size>20;){let e=k.keys().next().value;if("string"!=typeof e)break;k.delete(e)}}function L(){return"u"<typeof indexedDB?Promise.resolve(null):A||(A=new Promise(e=>{let t;try{t=indexedDB.open("mory_prompt_library_v1",1)}catch{e(null);return}t.onupgradeneeded=()=>{let e=t.result;e.objectStoreNames.contains(R)||e.createObjectStore(R,{keyPath:"key"})},t.onsuccess=()=>{let r=t.result;r.onversionchange=()=>{r.close(),A=null},e(r)},t.onerror=()=>{A=null,e(null)},t.onblocked=()=>e(null)}))}function I(e){return new Promise((t,r)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>r(e.error)})}function N(e){return new Promise((t,r)=>{e.oncomplete=()=>t(),e.onerror=()=>r(e.error),e.onabort=()=>r(e.error)})}async function C(e){let t=await L();if(!t)return;let r=t.transaction(R,"readwrite");r.objectStore(R).delete(e),await N(r)}async function P(e,t){if(E(e).q)return null;let r=await L();if(!r)return null;let a=T(e);try{let o=r.transaction(R,"readonly"),n=await I(o.objectStore(R).get(a));if(!n||"object"!=typeof n||"number"!=typeof n.cachedAt||!j(n.data))return null;let i=j(n.data);if(!i)return null;if(t-n.cachedAt>864e5)return C(a).catch(()=>void 0),null;return B(e,i,n.cachedAt),{data:i,cachedAt:n.cachedAt,fresh:t-n.cachedAt<=3e5,source:"indexeddb"}}catch{return null}}async function U(e){try{let t=e.transaction(R,"readonly"),r=await I(t.objectStore(R).getAll()),a=r.length-50;if(a<=0)return;let o=r.filter(e=>"number"==typeof e.cachedAt).sort((e,t)=>
1e.cachedAt-t.cachedAt).slice(0,a).map(e=>e.key);if(!o.length)return;let n=e.transaction(R,"readwrite"),i=n.objectStore(R);for(let e of o)i.delete(e);await N(n)}catch{}}async function q(e,t,r){if(E(e).q)return;let a=await L();if(a)try{let o=a.transaction(R,"readwrite");o.objectStore(R).put({cachedAt:r,data:t,key:T(e)}),await N(o),U(a)}catch{}}async function O(e,t=Date.now()){return function(e,t){let r=T(e),a=k.get(r);if(!a)return null;let o=E(e).q?3e4:864e5;return t-a.cachedAt>o?(k.delete(r),null):(M(r,a),{data:a.data,cachedAt:a.cachedAt,fresh:t-a.cachedAt<=3e4,source:"memory"})}(e,t)||P(e,t)}async function $(e,t,r=Date.now()){let a=j(t);a&&(B(e,a,r),await q(e,a,r))}function F(e){return`mory_prompt_list_view_v1:${e}`}function z(e){return`mory_prompt_list_scroll_v1:${e}`}function D(e){return`mory_prompt_list_return_v1:${e}`}function W(e,t){try{window.sessionStorage.setItem(z(e),String(Math.max(0,Math.round(t))))}catch{}}e.i(63263);var Y=e.i(54514),G=e.i(69495),H=e.i(50669),Z=e.i(49085),J=e.i(72630);function K({duplicate:e,items:a,locale:o}){let n=(0,G.translateText)(o,"Retry image","重试图片");return(0,t.jsx)("div",{"aria-hidden":e||void 0,className:J.default.promptMarqueeGroup,inert:e||void 0,children:a.map((a,i)=>(0,t.jsxs)(r.default,{"aria-label":e?void 0:a.title,className:J.default.promptMarqueeItem,href:`/${o}/prompts/${a.slug}`,prefetch:!1,tabIndex:e?-1:void 0,children:[(0,t.jsx)(Z.PromptImage,{alt:e?"":a.image.alt,eager:!e&&i<3,height:a.image.height,original:a.image.url,placeholder:a.image.placeholder,retryLabel:n,sizes:"(max-width: 560px) 42vw, (max-width: 1200px) 22vw, 230px",usage:"marquee",width:a.image.width}),(0,t.jsx)("span",{className:J.default.promptMarqueeTitle,children:a.title})]},`${e?"duplicate":"source"}:${a.id}:${i}`))})}function Q({items:e,locale:r}){let a=e.length?Array.from({length:Math.max(18,e.length)},(t,r)=>e[r%e.length]):[];return a.length?(0,t.jsx)("div",{"aria-label":(0,G.translateText)(r,"Featured prompt images","精选提示词图片"),className:J.default.promptMarquee,role:"region",children:(0,t.jsxs)("div",{className:J.default.promptMarqueeTrack,children:[(0,t.jsx)(K,{duplicate:!1,items:a,locale:r}),(0,t.jsx)(K,{duplicate:!0,items:a,locale:r})]})}):null}function V({locale:e}){return(0,t.jsxs)("div",{className:J.default.emptyState,children:[(0,t.jsx)(l,{"aria-hidden":"true",size:30,strokeWidth:1.5}),(0,t.jsx)("span",{children:(0,G.translateText)(e,"Nothing here yet","这里还没有内容")})]})}function X({hasMore:e,itemCount:t,loadError:r,loading:a,saveData:o}){return a?"loading":r?"error":o&&e?"load_more":!e&&t>0?"end":"idle"}function ee({card:e,allowPrefetch:i,eager:l,locale:s}){let u=(0,a.useRouter)(),c=`/${s}/prompts/${e.slug}`,{likes:f,views:p}=(0,S.usePromptSocialStats)(e.id,{initialLikes:e.likes}),h="zh"===s,m=()=>{i&&u.prefetch(c)};return(0,t.jsxs)("article",{className:J.default.card,onFocus:m,onMouseEnter:m,children:[(0,t.jsxs)("span",{className:J.default.cardMedia,children:[(0,t.jsx)(Z.PromptImage,{alt:e.cover.alt,eager:l,height:e.cover.height,original:e.cover.url,placeholder:e.cover.placeholder,retryLabel:(0,G.translateText)(s,"Retry image","重试图片"),sizes:"(max-width: 720px) 48vw, (max-width: 1180px) 31vw, 270px",usage:"cover",width:e.cover.width}),(0,t.jsx)(Z.TypeBadge,{locale:s,type:e.type}),e.model?(0,t.jsx)("span",{className:J.default.modelBadge,children:_[e.model]}):null]}),(0,t.jsxs)("span",{className:J.default.cardBody,children:[(0,t.jsx)("strong",{children:e.title}),e.summary.trim()?(0,t.jsx)("span",{className:J.default.cardSummary,children:e.summary}):null,(0,t.jsxs)("span",{className:J.default.cardFooter,children:[(0,t.jsxs)("span",{className:J.default.cardAuthor,children:[e.authorAvatarUrl?(0,t.jsx)("img",{alt:"",decoding:"async",fetchPriority:"low",height:"30",loading:"lazy",src:(0,d.promptImageVariantUrl)(e.authorAvatarUrl,"avatar",64),width:"30"}):null,(0,t.jsx)("span",{className:J.default.cardAuthorName,title:e.authorName||"Mory",children:e.authorName||"Mory"})]}),(0,t.jsxs)("span",{"aria-label":(0,G.translateText)(s,"{views} views, {likes} likes","{views} 次浏览,{likes} 个赞").replace("{views}
1",p.toLocaleString(Y.localeIntlTags[s])).replace("{likes}",f.toLocaleString(Y.localeIntlTags[s])),className:J.default.cardStats,children:[(0,t.jsxs)("span",{"aria-hidden":"true",className:J.default.cardStat,children:[(0,t.jsx)(o.Eye,{size:15,strokeWidth:1.8}),(0,S.formatPromptStatCount)(p,h?"zh":"en")]}),(0,t.jsxs)("span",{"aria-hidden":"true",className:J.default.cardStat,children:[(0,t.jsx)(n.Heart,{size:15,strokeWidth:1.8}),(0,S.formatPromptStatCount)(f,h?"zh":"en")]})]})]})]}),(0,t.jsx)(r.default,{"aria-label":e.title,className:J.default.cardLink,href:c,onClick:()=>{!function(e,t=Date.now()){try{window.sessionStorage.setItem(D(e),String(t))}catch{}}(s),W(s,window.scrollY)},prefetch:!1,children:(0,t.jsx)("span",{"aria-hidden":"true",className:J.default.cardMediaHitArea})})]})}e.s(["PromptsPageClient",0,function({featured:e,initialExplore:r,initialQuery:a,initialType:o,locale:n,marquee:l=[]}){let d=(0,x.usePromptNetworkPolicy)(),{showStatusToast:h}=(0,H.useStatusToast)(),[m,g]=(0,p.useState)(o),[_,v]=(0,p.useState)(a),[w,b]=(0,p.useState)(a),[S,R]=(0,p.useState)(r.items),[k,A]=(0,p.useState)(r.nextCursor),[E,T]=(0,p.useState)(r.hasMore),[M,B]=(0,p.useState)(!1),[L,I]=(0,p.useState)(!1),[N,C]=(0,p.useState)(0),[P,U]=(0,p.useState)(!1),[q,Y]=(0,p.useState)(!1),Z=(0,p.useRef)(null),K=(0,p.useRef)(null),et=(0,p.useRef)(0),er=(0,p.useRef)(!0),ea=(0,p.useRef)(!1),eo=M&&!k&&!q,en=X({hasMore:E,itemCount:S.length,loadError:L,loading:M,saveData:d.saveData}),ei=(0,p.useMemo)(()=>[{label:(0,G.translateText)(n,"All","全部"),type:void 0},{label:(0,G.translateText)(n,"Image","图片"),type:"image",icon:i.Image},{label:(0,G.translateText)(n,"Web","网页"),type:"web",icon:s.LayoutTemplate},{label:(0,G.translateText)(n,"Writing","写作"),type:"writing",icon:u.PenLine},{label:(0,G.translateText)(n,"Persona","人设"),type:"persona",icon:f.UserRound}],[n]);(0,p.useEffect)(()=>{let e=window.setTimeout(()=>b(_.trim()),250);return()=>window.clearTimeout(e)},[_]);let el=(0,p.useCallback)(e=>({cursor:e,limit:12,locale:n,q:w,type:m}),[w,n,m]),es=(0,p.useCallback)(async e=>{let t=new URLSearchParams({locale:n,limit:"12"});t.set("delivery","all"),m&&t.set("type",m),w&&t.set("q",w),e&&t.set("cursor",e);let r=new AbortController;K.current?.abort(),K.current=r;let a=await fetch(`/api/prompts?${t}`,{signal:r.signal});if(!a.ok)throw Error("prompt_list_failed");let o=await a.json();return $(el(e),o).catch(()=>void 0),o},[w,n,el,m]);(0,p.useEffect)(()=>{$({limit:12,locale:n,q:a,type:o},r).catch(()=>void 0)},[r,a,o,n]),(0,p.useEffect)(()=>{let e,t,r=function(e,t=Date.now()){try{let r=window.sessionStorage.getItem(F(e));if(!r)return null;let a=JSON.parse(r),o=a.query,n=a.savedAt,i=a.scrollY,l=j(a);if(1!==a.version||a.locale!==e||"string"!=typeof o||o.length>80||void 0!==a.type&&!y.includes(a.type)||"number"!=typeof n||t-n>216e5||!l||l.items.length>500)return window.sessionStorage.removeItem(F(e)),null;let s=window.sessionStorage.getItem(z(e)),u=null===s?NaN:Number(s);return{...l,locale:e,query:o,savedAt:n,scrollY:Number.isFinite(u)?Math.max(0,u):Math.max(0,Number(i)||0),type:a.type,version:1}}catch{return null}}(n),i=function(e,t=Date.now()){try{let r=D(e),a=Number(window.sessionStorage.getItem(r));return window.sessionStorage.removeItem(r),Number.isFinite(a)&&a>0&&t>=a&&t-a<=6e5}catch{return!1}}(n),l=!!(r&&(r.query.trim()===a&&r.type===o||i&&!a&&!o)),s=!1;return queueMicrotask(()=>{if(!s){if(!r||!l)return void U(!0);ea.current=!0,g(r.type),v(r.query),b(r.query.trim()),R(r.items),A(r.nextCursor),T(r.hasMore),Y(!0),U(!0),C(e=>e+1),e=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{window.scrollTo({behavior:"auto",top:r.scrollY})})})}}),()=>{s=!0,void 0!==e&&window.cancelAnimationFrame(e),void 0!==t&&window.cancelAnimationFrame(t)}},[a,o,n]),(0,p.useEffect)(()=>{P&&function(e,t=Date.now()){let r=j(e);if(r&&!(r.items.length>500))try{window.sessionStorage.setItem(F(e.locale),JSON.stringify({...r,locale:e.locale,query:e.query.slice(0,80),savedAt:t,scrollY:Math.max(0,e.scrollY),type:e.type,version:1}))}catch{}}({hasMore:E,items:S,locale:n,nextCursor:k,query:w,scrollY:window.scrollY,type:m})},[k,w,E,S,n,P,m]),(0,p.useEffect)(()=>{let e;if(!P)return;let t=()=>{W(n,window.scrollY)},r=()=>{void 0!==e&&window.clearTimeout(e),e=window.setTimeout(t,150)};return window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("pagehide",t),()=>{void 0!==e&&window.clearTimeout(e),t(),window.removeEventListener("scroll",r),window.removeEventListener("pagehide",t)}},[n,P]),(0,p.useEffect)(()=>
1{if(er.current){er.current=!1;return}let e=++et.current,t=ea.current;ea.current=!1,K.current?.abort(),B(!0),I(!1),t||(A(null),T(!1),Y(!1));let r=new URL(window.location.href);m?r.searchParams.set("type",m):r.searchParams.delete("type"),w?r.searchParams.set("q",w):r.searchParams.delete("q"),window.history.replaceState(window.history.state,"",r);let a=!1,o=(r,a)=>{e===et.current&&(R(e=>{var a;let o;return t?(o=new Set((a=r.items).map(e=>e.id)),[...a,...e.slice(12).filter(e=>!o.has(e.id))]):r.items}),t||(A(r.nextCursor),T(r.hasMore)),Y(a))};return(async()=>{try{let t=await O(el());t&&e===et.current&&(a=!0,o(t.data,!0));let r=await es();o(r,!1)}catch(t){"AbortError"===t.name||a||e!==et.current||I(!0)}finally{e===et.current&&B(!1)}})(),()=>K.current?.abort()},[w,es,el,N,m]);let eu=(0,p.useCallback)(()=>{if(!E||M||!k)return;let e=et.current;B(!0),I(!1);let t=!1,r=t=>{e===et.current&&(R(e=>{let r=new Set(e.map(e=>e.id));return[...e,...t.items.filter(e=>!r.has(e.id))]}),A(t.nextCursor),T(t.hasMore))};(async()=>{try{let a=await O(el(k));a&&e===et.current&&(t=!0,r(a.data));let o=await es(k);r(o),Y(!1)}catch(r){"AbortError"===r.name||t||e!==et.current||I(!0)}finally{e===et.current&&B(!1)}})()},[k,es,E,M,el]);return(0,p.useEffect)(()=>{let e=Z.current;if(!e||!E||d.saveData)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&eu()},{rootMargin:`${d.constrained?300:1e3}px 0px`});return t.observe(e),()=>t.disconnect()},[E,eu,d.constrained,d.saveData]),(0,p.useEffect)(()=>{!L||M||k||h({id:"prompt-list-error",message:(0,G.translateText)(n,"Loading failed. Try again.","加载失败,请重试"),tone:"error"})},[k,L,M,n,h]),(0,t.jsxs)("main",{className:J.default.page,children:[(0,t.jsxs)("section",{className:`${J.default.hero}${l.length?` ${J.default.heroWithMarquee}`:""}`,children:[(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("h1",{children:(0,G.translateText)(n,"AI Prompt Library","AI 提示词库")}),(0,t.jsx)("p",{children:(0,G.translateText)(n,"Browse image generation, web design, writing, and AI persona prompts with example outputs, model details, and one-click copy after sign-in.","浏览图片生成、网页设计、写作与 AI 人设提示词,查看效果示例和适用模型,登录后一键复制。")})]}),(0,t.jsx)(Q,{items:l,locale:n})]}),(0,t.jsx)("section",{className:`${J.default.section} ${J.default.featured}`,"aria-labelledby":"featured-prompts-title",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("h2",{id:"featured-prompts-title",children:(0,G.translateText)(n,"Editor’s picks","编辑精选")}),e.length?(0,t.jsx)("div",{className:J.default.grid,children:e.map((e,r)=>(0,t.jsx)(ee,{allowPrefetch:!d.constrained,card:e,eager:0===r,locale:n},e.id))}):(0,t.jsx)(V,{locale:n})]})}),(0,t.jsx)("section",{className:`${J.default.section} ${J.default.explore}`,"aria-labelledby":"explore-prompts-title",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("h2",{id:"explore-prompts-title",children:(0,G.translateText)(n,"Explore prompts","探索提示词")}),(0,t.jsxs)("div",{className:J.default.toolbar,children:[(0,t.jsx)("div",{className:J.default.filters,role:"group","aria-label":(0,G.translateText)(n,"Prompt categories","提示词分类"),children:ei.map(e=>{let r=e.icon,a=m===e.type;return(0,t.jsxs)("button",{"aria-pressed":a,className:a?J.default.filterActive:void 0,"data-prompt-type":e.type||"all",onClick:()=>g(e.type),type:"button",children:[r?(0,t.jsx)(r,{"aria-hidden":"true",size:16}):null,e.label]},e.type||"all")})}),(0,t.jsxs)("label",{className:J.default.search,children:[(0,t.jsx)(c.Search,{"aria-hidden":"true",size:18}),(0,t.jsx)("span",{className:"sr-only",children:(0,G.translateText)(n,"Search prompts","搜索提示词")}),(0,t.jsx)("input",{maxLength:80,onChange:e=>v(e.target.value),placeholder:(0,G.translateText)(n,"Search prompts","搜索提示词"),type:"search",value:_})]})]}),(0,t.jsx)("div",{className:J.default.refreshIndicatorSlot,children:eo?(0,t.jsxs)("span",{className:J.default.refreshIndicator,role:"status",children:[(0,t.jsx)("span",{"aria-hidden":"true"}),(0,t.jsx)("span",{className:"sr-only",children:(0,G.translateText)(n,"Loading…","加载中…")})]}):null}),S.length?(0,t.jsx)("div",{"aria-busy":eo,className:J.default.grid,children:S.map((r,a)=>(0,t.jsx)(ee,{allowPrefetch:!d.constrained,card:r,eager:!e.length&&0===a,locale:n},r.id))}):M?null:(0,t.jsx)(V,{locale:n}),(0,t.jsx)("div",{"aria-live":"polite",className:J.default.loadState,ref:Z,children:"loading"===en?(0,t.jsx)("span",{className:J.default.spinner}):"error"===en?(0,t.jsx)("button",{onClick:()=>k?eu():C(e=>e+1),type:"button",children:(0,G.translateText)(n,"Loading failed. Try again.","加载失败,请重试")}
1):"load_more"===en?(0,t.jsx)("button",{onClick:eu,type:"button",children:(0,G.translateText)(n,"Load more","加载更多")}):"end"===en?(0,t.jsx)("span",{children:(0,G.translateText)(n,"You’ve reached the end","已经到底了")}):null})]})})]})},"resolvePromptListFooterState",0,X],83253)}]);

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.