1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10191],{10191:(e,t,r)=>{r.d(t,{Ay:()=>M});class n{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class s{constructor(e){this.generateIdentifier=e,this.kv=new n}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}}class a extends s{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}}function i(e,t){Object.entries(e).forEach(([e,r])=>t(r,e))}function o(e,t){return -1!==e.indexOf(t)}function l(e,t){for(let r=0;r<e.length;r++){let n=e[r];if(t(n))return n}}class u{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return function(e,t){let r=function(e){if("values"in Object)return Object.values(e);let t=[];for(let r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}}let c=e=>void 0===e,f=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),p=e=>f(e)&&0===Object.keys(e).length,y=e=>Array.isArray(e),g=e=>e instanceof Map,d=e=>e instanceof Set,m=e=>"Symbol"===Object.prototype.toString.call(e).slice(8,-1),h=e=>"number"==typeof e&&isNaN(e),b=e=>e.replace(/\./g,"\\."),w=e=>e.map(String).map(b).join("."),v=e=>{let t=[],r="";for(let n=0;n<e.length;n++){let s=e.charAt(n);if("\\"===s&&"."===e.charAt(n+1)){r+=".",n++;continue}if("."===s){t.push(r),r="";
1continue}r+=s}let n=r;return t.push(n),t};function E(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let k=[E(c,"undefined",()=>null,()=>void 0),E(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>"u">typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),E(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),E(e=>e instanceof Error,"Error",(e,t)=>{let r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r},(e,t)=>{let r=Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r}),E(e=>e instanceof RegExp,"regexp",e=>""+e,e=>new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))),E(d,"set",e=>[...e.values()],e=>new Set(e)),E(g,"map",e=>[...e.entries()],e=>new Map(e)),E(e=>h(e)||e===1/0||e===-1/0,"number",e=>h(e)?"NaN":e>0?"Infinity":"-Infinity",Number),E(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),E(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function I(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let O=I((e,t)=>!!m(e)&&!!t.symbolRegistry.getIdentifier(e),(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,r)=>{let n=r.symbolRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),A=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),j=I(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let r=A[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function P(e,t){return!!e?.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}let R=I(P,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return{...e};let n={};return r.forEach(t=>{n[t]=e[t]}),n},(e,t,r)=>{let n=r.classRegistry.getValue(t[1]);if(!n)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(n.prototype),e)}),T=I((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,r)=>{let n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),z=[R,O,T,j],S=(e,t)=>{let r=l(z,r=>r.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};let n=l(k,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation}},V={};k.forEach(e=>{V[e.annotation]=e});let N=(e,t)=>{if(t>e.size)throw Error("index out of bounds");let r=e.keys();for(;t>0;)r.next(),t--;return r.next().value};function _(e){if(o(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(o(e,"prototype"))throw Error("prototype is not allowed as a property");if(o(e,"constructor"))throw Error("constructor is not allowed as a property")}let B=(e,t,r)=>{if(_(t),0===t.length)return r(e);let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(y(n))n=n[+r];else if(f(n))n=n[r];else if(d(n))n=N(n,+r);else if(g(n)){if(e===t.length-2)break;let s=+r,a=0==+t[++e]?"key":"value",i=N(n,s);switch(a){case"key":n=i;break;case"value":n=n.get(i)}}}let s=t[t.length-1];if(y(n)?n[+s]=r(n[+s]):f(n)&&(n[s]=r(n[s])),d(n)){let e=N(n,+s),t=r(e);e!==t&&(n.delete(e),n.add(t))}if(g(n)){let e=N(n,+t[t.length-2]);switch(0==+s?"key":"value"){case"key":{let t=r(e);n.set(t,n.get(e)),t!==e&&n.delete(e);break}case"value":n.set(e,r(n.get(e)))}}return e},C=(e,t,r,n,s=[],a=[],l=new Map)=>{let u=(e=>"boolean"==typeof e||null===e||c(e)||"number"==typeof e&&!isNaN(e)||"string"==typeof e||m(e))(e);if(!u){let r;(r=t.get(e))?r.push(s):t.set(e,[s]);let a=l.get(e);if(a)return n?{transformedValue:null}:a}if(!(f(e)||y(e)||g(e)||d(e)||P(e,r))){let t=S(e,r),n=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return u||l.set(e,n),n}if(o(a,e))return{transformedValue:null};let h=S(e,r),w=h?.value??e,v=y(w)?[]:{},E={};i(w,(o,u)=>{if("__proto__"===u||"constructor"===u||"prototype"===u)throw Error(`Detected property ${u}. This is a prototype pollution risk, please remove it from your object.`);let c=C(o,t,r,n,[...s,u],[...a,e],l);v[u]=c.transformedValue,y(c.annotations)?E[u]=c.annotations:f(c.annotations)&&i(c.annotations,(e,t)=>{E[b(u)+"."+t]=e})});let k=p(E)?{transformedValue:v,annotations:h?[h.type]:void 0}:{transformedValue:v,annotations:h?[h.type,E]:E};return u||l.set(e,k),k};function x(e){return Object.prototype.toString.call(e).slice(8,-1)}function U(e){return"Array"===x(e)}class M{constructor({dedupe:e=!1}={}){this.classRegistry=new a,this.symbolRegistry=new s(e=>e.description??""),this.customTransformerRegistry=new u,this.allowedErrorProps=[],this.dedupe=e}serialize(e){var t;let r,n,s=new Map,a=C(e,s,this,this.dedupe),i={json:a.transformedValue};a.annotations&&(i.meta={...i.meta,values:a.annotations});let o=(t=this.dedupe,r={}
1,(s.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[s,...a]=e;0===s.length?n=a.map(w):r[w(s)]=a.map(w)}),n)?p(r)?[n]:[n,r]:p(r)?void 0:r);return o&&(i.meta={...i.meta,referentialEqualities:o}),i}deserialize(e){var t,r,n;let{json:s,meta:a}=e,o=function e(t,r={}){return U(t)?t.map(t=>e(t,r)):!function(e){if("Object"!==x(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((n,s)=>{var a;let i;if(U(r.props)&&!r.props.includes(s))return n;let o=e(t[s],r);return a=r.nonenumerable,"enumerable"==(i=({}).propertyIsEnumerable.call(t,s)?"enumerable":"nonenumerable")&&(n[s]=o),a&&"nonenumerable"===i&&Object.defineProperty(n,s,{value:o,enumerable:!1,writable:!0,configurable:!0}),n},{})}(s);return a?.values&&(t=o,r=a.values,n=this,function e(t,r,n=[]){if(!t)return;if(!y(t))return void i(t,(t,s)=>e(t,r,[...n,...v(s)]));let[s,a]=t;a&&i(a,(t,s)=>{e(t,r,[...n,...v(s)])}),r(s,n)}(r,(e,r)=>{t=B(t,r,t=>((e,t,r)=>{if(y(t))switch(t[0]){case"symbol":return O.untransform(e,t,r);case"class":return R.untransform(e,t,r);case"custom":return T.untransform(e,t,r);case"typed-array":return j.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}{let n=V[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)}})(t,e,n))}),o=t),a?.referentialEqualities&&(o=function(e,t){function r(t,r){let n=((e,t)=>{_(t);for(let r=0;r<t.length;r++){let n=t[r];if(d(e))e=N(e,+n);else if(g(e)){let s=+n,a=0==+t[++r]?"key":"value",i=N(e,s);switch(a){case"key":e=i;break;case"value":e=e.get(i)}}else e=e[n]}return e})(e,v(r));t.map(v).forEach(t=>{e=B(e,t,()=>n)})}if(y(t)){let[n,s]=t;n.forEach(t=>{e=B(e,v(t),()=>e)}),s&&i(s,r)}else i(t,r);return e}(o,a.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}}M.defaultInstance=new M,M.serialize=M.defaultInstance.serialize.bind(M.defaultInstance),M.deserialize=M.defaultInstance.deserialize.bind(M.defaultInstance),M.stringify=M.defaultInstance.stringify.bind(M.defaultInstance),M.parse=M.defaultInstance.parse.bind(M.defaultInstance),M.registerClass=M.defaultInstance.registerClass.bind(M.defaultInstance),M.registerSymbol=M.defaultInstance.registerSymbol.bind(M.defaultInstance),M.registerCustom=M.defaultInstance.registerCustom.bind(M.defaultInstance),M.allowErrorProps=M.defaultInstance.allowErrorProps.bind(M.defaultInstance),M.serialize,M.deserialize,M.stringify,M.parse,M.registerClass,M.registerCustom,M.registerSymbol,M.allowErrorProps}}]);
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.