From 29edbf8a19011f28705a9e0ac4fe909384b6f3f2 Mon Sep 17 00:00:00 2001 From: 10takla Date: Mon, 12 Aug 2024 17:18:01 +0300 Subject: [PATCH] Updates --- assets/{html2canvas-03ipGMwJ.js => html2canvas-CVxpFGJ8.js} | 2 +- assets/{index-BrIvgqLk.js => index-gFumAa4J.js} | 6 +++--- assets/{index.es-BurIVaRq.js => index.es-MQc7utcc.js} | 2 +- index.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename assets/{html2canvas-03ipGMwJ.js => html2canvas-CVxpFGJ8.js} (86%) rename assets/{index-BrIvgqLk.js => index-gFumAa4J.js} (99%) rename assets/{index.es-BurIVaRq.js => index.es-MQc7utcc.js} (99%) diff --git a/assets/html2canvas-03ipGMwJ.js b/assets/html2canvas-CVxpFGJ8.js similarity index 86% rename from assets/html2canvas-03ipGMwJ.js rename to assets/html2canvas-CVxpFGJ8.js index edcba9d..d893360 100644 --- a/assets/html2canvas-03ipGMwJ.js +++ b/assets/html2canvas-CVxpFGJ8.js @@ -1 +1 @@ -import{g as c,r as f}from"./index-BrIvgqLk.js";function l(r,n){for(var o=0;oe[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s=f();const i=c(s),u=l({__proto__:null,default:i},[s]);export{u as h}; +import{g as c,r as f}from"./index-gFumAa4J.js";function l(r,n){for(var o=0;oe[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s=f();const i=c(s),u=l({__proto__:null,default:i},[s]);export{u as h}; diff --git a/assets/index-BrIvgqLk.js b/assets/index-gFumAa4J.js similarity index 99% rename from assets/index-BrIvgqLk.js rename to assets/index-gFumAa4J.js index 35c7f8e..259d604 100644 --- a/assets/index-BrIvgqLk.js +++ b/assets/index-gFumAa4J.js @@ -5204,7 +5204,7 @@ No matching component was found for: * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(n){function e(W,le){var ie=W.length;W.push(le);e:for(;0>>1,J=W[Ee];if(0>>1;Eei(be,ie))Fei(Pe,be)?(W[Ee]=Pe,W[Fe]=ie,Ee=Fe):(W[Ee]=be,W[Ae]=ie,Ee=Ae);else if(Fei(Pe,ie))W[Ee]=Pe,W[Fe]=ie,Ee=Fe;else break e}}return le}function i(W,le){var ie=W.sortIndex-le.sortIndex;return ie!==0?ie:W.id-le.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();n.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,A=null,d=3,f=!1,m=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(W){for(var le=t(c);le!==null;){if(le.callback===null)r(c);else if(le.startTime<=W)r(c),le.sortIndex=le.expirationTime,e(l,le);else break;le=t(c)}}function B(W){if(w=!1,y(W),!m)if(t(l)!==null)m=!0,re(P);else{var le=t(c);le!==null&&ye(B,le.startTime-W)}}function P(W,le){m=!1,w&&(w=!1,p(D),D=-1),f=!0;var ie=d;try{for(y(le),A=t(l);A!==null&&(!(A.expirationTime>le)||W&&!O());){var Ee=A.callback;if(typeof Ee=="function"){A.callback=null,d=A.priorityLevel;var J=Ee(A.expirationTime<=le);le=n.unstable_now(),typeof J=="function"?A.callback=J:A===t(l)&&r(l),y(le)}else r(l);A=t(l)}if(A!==null)var fe=!0;else{var Ae=t(c);Ae!==null&&ye(B,Ae.startTime-le),fe=!1}return fe}finally{A=null,d=ie,f=!1}}var U=!1,x=null,D=-1,Q=5,N=-1;function O(){return!(n.unstable_now()-NW||125Ee?(W.sortIndex=ie,e(c,W),t(l)===null&&W===t(c)&&(w?(p(D),D=-1):w=!0,ye(B,ie-Ee))):(W.sortIndex=J,e(l,W),m||f||(m=!0,re(P))),W},n.unstable_shouldYield=O,n.unstable_wrapCallback=function(W){var le=d;return function(){var ie=d;d=le;try{return W.apply(this,arguments)}finally{d=ie}}}})(lD);aD.exports=lD;var X8=aD.exports;const U4={},Dae=n=>void Object.assign(U4,n);function Oae(n,e){function t(u,{args:A=[],attach:d,...f},m){let w=`${u[0].toUpperCase()}${u.slice(1)}`,b;if(u==="primitive"){if(f.object===void 0)throw new Error("R3F: Primitives without 'object' are invalid!");const p=f.object;b=Ig(p,{type:u,root:m,attach:d,primitive:!0})}else{const p=U4[w];if(!p)throw new Error(`R3F: ${w} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);if(!Array.isArray(A))throw new Error("R3F: The args prop must be an array!");b=Ig(new p(...A),{type:u,root:m,attach:d,memoizedProps:{args:A}})}return b.__r3f.attach===void 0&&(b instanceof Kr?b.__r3f.attach="geometry":b instanceof Sa&&(b.__r3f.attach="material")),w!=="inject"&&h5(b,f),b}function r(u,A){let d=!1;if(A){var f,m;(f=A.__r3f)!=null&&f.attach?d5(u,A,A.__r3f.attach):A.isObject3D&&u.isObject3D&&(u.add(A),d=!0),d||(m=u.__r3f)==null||m.objects.push(A),A.__r3f||Ig(A,{}),A.__r3f.parent=u,q3(A),Pg(A)}}function i(u,A,d){let f=!1;if(A){var m,w;if((m=A.__r3f)!=null&&m.attach)d5(u,A,A.__r3f.attach);else if(A.isObject3D&&u.isObject3D){A.parent=u,A.dispatchEvent({type:"added"}),u.dispatchEvent({type:"childadded",child:A});const b=u.children.filter(v=>v!==A),p=b.indexOf(d);u.children=[...b.slice(0,p),A,...b.slice(p)],f=!0}f||(w=u.__r3f)==null||w.objects.push(A),A.__r3f||Ig(A,{}),A.__r3f.parent=u,q3(A),Pg(A)}}function s(u,A,d=!1){u&&[...u].forEach(f=>o(A,f,d))}function o(u,A,d){if(A){var f,m,w;if(A.__r3f&&(A.__r3f.parent=null),(f=u.__r3f)!=null&&f.objects&&(u.__r3f.objects=u.__r3f.objects.filter(B=>B!==A)),(m=A.__r3f)!=null&&m.attach)eF(u,A,A.__r3f.attach);else if(A.isObject3D&&u.isObject3D){var b;u.remove(A),(b=A.__r3f)!=null&&b.root&&Kae(hw(A),A)}const v=(w=A.__r3f)==null?void 0:w.primitive,y=!v&&(d===void 0?A.dispose!==null:d);if(!v){var p;s((p=A.__r3f)==null?void 0:p.objects,A,y),s(A.children,A,y)}if(delete A.__r3f,y&&A.dispose&&A.type!=="Scene"){const B=()=>{try{A.dispose()}catch{}};typeof IS_REACT_ACT_ENVIRONMENT>"u"?X8.unstable_scheduleCallback(X8.unstable_IdlePriority,B):B()}Pg(u)}}function a(u,A,d,f){var m;const w=(m=u.__r3f)==null?void 0:m.parent;if(!w)return;const b=t(A,d,u.__r3f.root);if(u.children){for(const p of u.children)p.__r3f&&r(b,p);u.children=u.children.filter(p=>!p.__r3f)}u.__r3f.objects.forEach(p=>r(b,p)),u.__r3f.objects=[],u.__r3f.autoRemovedBeforeAppend||o(w,u),b.parent&&(b.__r3f.autoRemovedBeforeAppend=!0),r(w,b),b.raycast&&b.__r3f.eventCount&&hw(b).getState().internal.interaction.push(b),[f,f.alternate].forEach(p=>{p!==null&&(p.stateNode=b,p.ref&&(typeof p.ref=="function"?p.ref(b):p.ref.current=b))})}const l=()=>console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters.");return{reconciler:Nae({createInstance:t,removeChild:o,appendChild:r,appendInitialChild:r,insertBefore:i,supportsMutation:!0,isPrimaryRenderer:!1,supportsPersistence:!1,supportsHydration:!1,noTimeout:-1,appendChildToContainer:(u,A)=>{if(!A)return;const d=u.getState().scene;d.__r3f&&(d.__r3f.root=u,r(d,A))},removeChildFromContainer:(u,A)=>{A&&o(u.getState().scene,A)},insertInContainerBefore:(u,A,d)=>{if(!A||!d)return;const f=u.getState().scene;f.__r3f&&i(f,A,d)},getRootHostContext:()=>null,getChildHostContext:u=>u,finalizeInitialChildren(u){var A;return!!((A=u==null?void 0:u.__r3f)!=null?A:{}).handlers},prepareUpdate(u,A,d,f){var m;if(((m=u==null?void 0:u.__r3f)!=null?m:{}).primitive&&f.object&&f.object!==u)return[!0];{const{args:b=[],children:p,...v}=f,{args:y=[],children:B,...P}=d;if(!Array.isArray(b))throw new Error("R3F: the args prop must be an array!");if(b.some((x,D)=>x!==y[D]))return[!0];const U=pD(u,v,P,!0);return U.changes.length?[!1,U]:null}},commitUpdate(u,[A,d],f,m,w,b){A?a(u,f,w,b):h5(u,d)},commitMount(u,A,d,f){var m;const w=(m=u.__r3f)!=null?m:{};u.raycast&&w.handlers&&w.eventCount&&hw(u).getState().internal.interaction.push(u)},getPublicInstance:u=>u,prepareForCommit:()=>null,preparePortalMount:u=>Ig(u.getState().scene),resetAfterCommit:()=>{},shouldSetTextContent:()=>!1,clearContainer:()=>!1,hideInstance(u){var A;const{attach:d,parent:f}=(A=u.__r3f)!=null?A:{};d&&f&&eF(f,u,d),u.isObject3D&&(u.visible=!1),Pg(u)},unhideInstance(u,A){var d;const{attach:f,parent:m}=(d=u.__r3f)!=null?d:{};f&&m&&d5(m,u,f),(u.isObject3D&&A.visible==null||A.visible)&&(u.visible=!0),Pg(u)},createTextInstance:l,hideTextInstance:l,unhideTextInstance:l,getCurrentEventPriority:()=>e?e():e0.DefaultEventPriority,beforeActiveInstanceBlur:()=>{},afterActiveInstanceBlur:()=>{},detachDeletedInstance:()=>{},now:typeof performance<"u"&&Fs.fun(performance.now)?performance.now:Fs.fun(Date.now)?Date.now:()=>0,scheduleTimeout:Fs.fun(setTimeout)?setTimeout:void 0,cancelTimeout:Fs.fun(clearTimeout)?clearTimeout:void 0}),applyProps:h5}}var $8,Y8;const f5=n=>"colorSpace"in n||"outputColorSpace"in n,uD=()=>{var n;return(n=U4.ColorManagement)!=null?n:null},cD=n=>n&&n.isOrthographicCamera,Qae=n=>n&&n.hasOwnProperty("current"),e2=typeof window<"u"&&(($8=window.document)!=null&&$8.createElement||((Y8=window.navigator)==null?void 0:Y8.product)==="ReactNative")?Y.useLayoutEffect:Y.useEffect;function AD(n){const e=Y.useRef(n);return e2(()=>void(e.current=n),[n]),e}function jae({set:n}){return e2(()=>(n(new Promise(()=>null)),()=>n(!1)),[n]),null}class fD extends Y.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(e){this.props.set(e)}render(){return this.state.error?null:this.props.children}}fD.getDerivedStateFromError=()=>({error:!0});const dD="__default",J8=new Map,Hae=n=>n&&!!n.memoized&&!!n.changes;function hD(n){var e;const t=typeof window<"u"?(e=window.devicePixelRatio)!=null?e:2:1;return Array.isArray(n)?Math.min(Math.max(n[0],t),n[1]):n}const Rm=n=>{var e;return(e=n.__r3f)==null?void 0:e.root.getState()};function hw(n){let e=n.__r3f.root;for(;e.getState().previousRoot;)e=e.getState().previousRoot;return e}const Fs={obj:n=>n===Object(n)&&!Fs.arr(n)&&typeof n!="function",fun:n=>typeof n=="function",str:n=>typeof n=="string",num:n=>typeof n=="number",boo:n=>typeof n=="boolean",und:n=>n===void 0,arr:n=>Array.isArray(n),equ(n,e,{arrays:t="shallow",objects:r="reference",strict:i=!0}={}){if(typeof n!=typeof e||!!n!=!!e)return!1;if(Fs.str(n)||Fs.num(n))return n===e;const s=Fs.obj(n);if(s&&r==="reference")return n===e;const o=Fs.arr(n);if(o&&t==="reference")return n===e;if((o||s)&&n===e)return!0;let a;for(a in n)if(!(a in e))return!1;if(s&&t==="shallow"&&r==="shallow"){for(a in i?e:n)if(!Fs.equ(n[a],e[a],{strict:i,objects:"reference"}))return!1}else for(a in i?e:n)if(n[a]!==e[a])return!1;if(Fs.und(a)){if(o&&n.length===0&&e.length===0||s&&Object.keys(n).length===0&&Object.keys(e).length===0)return!0;if(n!==e)return!1}return!0}};function zae(n){n.dispose&&n.type!=="Scene"&&n.dispose();for(const e in n)e.dispose==null||e.dispose(),delete n[e]}function Ig(n,e){const t=n;return t.__r3f={type:"",root:null,previousAttach:null,memoizedProps:{},eventCount:0,handlers:{},objects:[],parent:null,...e},n}function K3(n,e){let t=n;if(e.includes("-")){const r=e.split("-"),i=r.pop();return t=r.reduce((s,o)=>s[o],n),{target:t,key:i}}else return{target:t,key:e}}const Z8=/-\d+$/;function d5(n,e,t){if(Fs.str(t)){if(Z8.test(t)){const s=t.replace(Z8,""),{target:o,key:a}=K3(n,s);Array.isArray(o[a])||(o[a]=[])}const{target:r,key:i}=K3(n,t);e.__r3f.previousAttach=r[i],r[i]=e}else e.__r3f.previousAttach=t(n,e)}function eF(n,e,t){var r,i;if(Fs.str(t)){const{target:s,key:o}=K3(n,t),a=e.__r3f.previousAttach;a===void 0?delete s[o]:s[o]=a}else(r=e.__r3f)==null||r.previousAttach==null||r.previousAttach(n,e);(i=e.__r3f)==null||delete i.previousAttach}function pD(n,{children:e,key:t,ref:r,...i},{children:s,key:o,ref:a,...l}={},c=!1){var u;const A=(u=n==null?void 0:n.__r3f)!=null?u:{},d=Object.entries(i),f=[];if(c){const w=Object.keys(l);for(let b=0;b{var p;if((p=n.__r3f)!=null&&p.primitive&&w==="object"||Fs.equ(b,l[w]))return;if(/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(w))return f.push([w,b,!0,[]]);let v=[];w.includes("-")&&(v=w.split("-")),f.push([w,b,!1,v]);for(const y in i){const B=i[y];y.startsWith(`${w}-`)&&f.push([y,B,!1,y.split("-")])}});const m={...i};return A.memoizedProps&&A.memoizedProps.args&&(m.args=A.memoizedProps.args),A.memoizedProps&&A.memoizedProps.attach&&(m.attach=A.memoizedProps.attach),{memoized:m,changes:f}}const Vae=typeof process<"u"&&!1;function h5(n,e){var t,r,i;const s=(t=n.__r3f)!=null?t:{},o=s.root,a=(r=o==null||o.getState==null?void 0:o.getState())!=null?r:{},{memoized:l,changes:c}=Hae(e)?e:pD(n,e),u=s.eventCount;n.__r3f&&(n.__r3f.memoizedProps=l);for(let d=0;dy[B],n),!(v&&v.set))){const[y,...B]=b.reverse();p=B.reverse().reduce((P,U)=>P[U],n),f=y}if(m===dD+"remove")if(p.constructor){let y=J8.get(p.constructor);y||(y=new p.constructor,J8.set(p.constructor,y)),m=y[f]}else m=0;if(w)m?s.handlers[f]=m:delete s.handlers[f],s.eventCount=Object.keys(s.handlers).length;else if(v&&v.set&&(v.copy||v instanceof Yh)){if(Array.isArray(m))v.fromArray?v.fromArray(m):v.set(...m);else if(v.copy&&m&&m.constructor&&(Vae?v.constructor.name===m.constructor.name:v.constructor===m.constructor))v.copy(m);else if(m!==void 0){const y=v instanceof Un;!y&&v.setScalar?v.setScalar(m):v instanceof Yh&&m instanceof Yh?v.mask=m.mask:v.set(m),!uD()&&!a.linear&&y&&v.convertSRGBToLinear()}}else if(p[f]=m,p[f]instanceof Qs&&p[f].format===Ul&&p[f].type===eA){const y=p[f];f5(y)&&f5(a.gl)?y.colorSpace=a.gl.outputColorSpace:y.encoding=a.gl.outputEncoding}Pg(n)}if(s.parent&&n.raycast&&u!==s.eventCount){const d=hw(n).getState().internal,f=d.interaction.indexOf(n);f>-1&&d.interaction.splice(f,1),s.eventCount&&d.interaction.push(n)}return!(c.length===1&&c[0][0]==="onUpdate")&&c.length&&(i=n.__r3f)!=null&&i.parent&&q3(n),n}function Pg(n){var e,t;const r=(e=n.__r3f)==null||(t=e.root)==null||t.getState==null?void 0:t.getState();r&&r.internal.frames===0&&r.invalidate()}function q3(n){n.onUpdate==null||n.onUpdate(n)}function Gae(n,e){n.manual||(cD(n)?(n.left=e.width/-2,n.right=e.width/2,n.top=e.height/2,n.bottom=e.height/-2):n.aspect=e.width/e.height,n.updateProjectionMatrix(),n.updateMatrixWorld())}function Fy(n){return(n.eventObject||n.object).uuid+"/"+n.index+n.instanceId}function Wae(){var n;const e=typeof self<"u"&&self||typeof window<"u"&&window;if(!e)return e0.DefaultEventPriority;switch((n=e.event)==null?void 0:n.type){case"click":case"contextmenu":case"dblclick":case"pointercancel":case"pointerdown":case"pointerup":return e0.DiscreteEventPriority;case"pointermove":case"pointerout":case"pointerover":case"pointerenter":case"pointerleave":case"wheel":return e0.ContinuousEventPriority;default:return e0.DefaultEventPriority}}function gD(n,e,t,r){const i=t.get(e);i&&(t.delete(e),t.size===0&&(n.delete(r),i.target.releasePointerCapture(r)))}function Kae(n,e){const{internal:t}=n.getState();t.interaction=t.interaction.filter(r=>r!==e),t.initialHits=t.initialHits.filter(r=>r!==e),t.hovered.forEach((r,i)=>{(r.eventObject===e||r.object===e)&&t.hovered.delete(i)}),t.capturedMap.forEach((r,i)=>{gD(t.capturedMap,e,r,i)})}function qae(n){function e(l){const{internal:c}=n.getState(),u=l.offsetX-c.initialClick[0],A=l.offsetY-c.initialClick[1];return Math.round(Math.sqrt(u*u+A*A))}function t(l){return l.filter(c=>["Move","Over","Enter","Out","Leave"].some(u=>{var A;return(A=c.__r3f)==null?void 0:A.handlers["onPointer"+u]}))}function r(l,c){const u=n.getState(),A=new Set,d=[],f=c?c(u.internal.interaction):u.internal.interaction;for(let p=0;p{const y=Rm(p.object),B=Rm(v.object);return!y||!B?p.distance-v.distance:B.events.priority-y.events.priority||p.distance-v.distance}).filter(p=>{const v=Fy(p);return A.has(v)?!1:(A.add(v),!0)});u.events.filter&&(w=u.events.filter(w,u));for(const p of w){let v=p.object;for(;v;){var b;(b=v.__r3f)!=null&&b.eventCount&&d.push({...p,eventObject:v}),v=v.parent}}if("pointerId"in l&&u.internal.capturedMap.has(l.pointerId))for(let p of u.internal.capturedMap.get(l.pointerId).values())A.has(Fy(p.intersection))||d.push(p.intersection);return d}function i(l,c,u,A){const d=n.getState();if(l.length){const f={stopped:!1};for(const m of l){const w=Rm(m.object)||d,{raycaster:b,pointer:p,camera:v,internal:y}=w,B=new Le(p.x,p.y,0).unproject(v),P=N=>{var O,G;return(O=(G=y.capturedMap.get(N))==null?void 0:G.has(m.eventObject))!=null?O:!1},U=N=>{const O={intersection:m,target:c.target};y.capturedMap.has(N)?y.capturedMap.get(N).set(m.eventObject,O):y.capturedMap.set(N,new Map([[m.eventObject,O]])),c.target.setPointerCapture(N)},x=N=>{const O=y.capturedMap.get(N);O&&gD(y.capturedMap,m.eventObject,O,N)};let D={};for(let N in c){let O=c[N];typeof O!="function"&&(D[N]=O)}let Q={...m,...D,pointer:p,intersections:l,stopped:f.stopped,delta:u,unprojectedPoint:B,ray:b.ray,camera:v,stopPropagation(){const N="pointerId"in c&&y.capturedMap.get(c.pointerId);if((!N||N.has(m.eventObject))&&(Q.stopped=f.stopped=!0,y.hovered.size&&Array.from(y.hovered.values()).find(O=>O.eventObject===m.eventObject))){const O=l.slice(0,l.indexOf(m));s([...O,m])}},target:{hasPointerCapture:P,setPointerCapture:U,releasePointerCapture:x},currentTarget:{hasPointerCapture:P,setPointerCapture:U,releasePointerCapture:x},nativeEvent:c};if(A(Q),f.stopped===!0)break}}return l}function s(l){const{internal:c}=n.getState();for(const u of c.hovered.values())if(!l.length||!l.find(A=>A.object===u.object&&A.index===u.index&&A.instanceId===u.instanceId)){const d=u.eventObject.__r3f,f=d==null?void 0:d.handlers;if(c.hovered.delete(Fy(u)),d!=null&&d.eventCount){const m={...u,intersections:l};f.onPointerOut==null||f.onPointerOut(m),f.onPointerLeave==null||f.onPointerLeave(m)}}}function o(l,c){for(let u=0;us([]);case"onLostPointerCapture":return c=>{const{internal:u}=n.getState();"pointerId"in c&&u.capturedMap.has(c.pointerId)&&requestAnimationFrame(()=>{u.capturedMap.has(c.pointerId)&&(u.capturedMap.delete(c.pointerId),s([]))})}}return function(u){const{onPointerMissed:A,internal:d}=n.getState();d.lastEvent.current=u;const f=l==="onPointerMove",m=l==="onClick"||l==="onContextMenu"||l==="onDoubleClick",b=r(u,f?t:void 0),p=m?e(u):0;l==="onPointerDown"&&(d.initialClick=[u.offsetX,u.offsetY],d.initialHits=b.map(y=>y.eventObject)),m&&!b.length&&p<=2&&(o(u,d.interaction),A&&A(u)),f&&s(b);function v(y){const B=y.eventObject,P=B.__r3f,U=P==null?void 0:P.handlers;if(P!=null&&P.eventCount)if(f){if(U.onPointerOver||U.onPointerEnter||U.onPointerOut||U.onPointerLeave){const x=Fy(y),D=d.hovered.get(x);D?D.stopped&&y.stopPropagation():(d.hovered.set(x,y),U.onPointerOver==null||U.onPointerOver(y),U.onPointerEnter==null||U.onPointerEnter(y))}U.onPointerMove==null||U.onPointerMove(y)}else{const x=U[l];x?(!m||d.initialHits.includes(B))&&(o(u,d.interaction.filter(D=>!d.initialHits.includes(D))),x(y)):m&&d.initialHits.includes(B)&&o(u,d.interaction.filter(D=>!d.initialHits.includes(D)))}}i(b,u,p,v)}}return{handlePointer:a}}const mD=n=>!!(n!=null&&n.render),vD=Y.createContext(null),Xae=(n,e)=>{const t=Iae((a,l)=>{const c=new Le,u=new Le,A=new Le;function d(p=l().camera,v=u,y=l().size){const{width:B,height:P,top:U,left:x}=y,D=B/P;v instanceof Le?A.copy(v):A.set(...v);const Q=p.getWorldPosition(c).distanceTo(A);if(cD(p))return{width:B/p.zoom,height:P/p.zoom,top:U,left:x,factor:1,distance:Q,aspect:D};{const N=p.fov*Math.PI/180,O=2*Math.tan(N/2)*Q,G=O*(B/P);return{width:G,height:O,top:U,left:x,factor:B/G,distance:Q,aspect:D}}}let f;const m=p=>a(v=>({performance:{...v.performance,current:p}})),w=new jt;return{set:a,get:l,gl:null,camera:null,raycaster:null,events:{priority:1,enabled:!0,connected:!1},xr:null,scene:null,invalidate:(p=1)=>n(l(),p),advance:(p,v)=>e(p,v,l()),legacy:!1,linear:!1,flat:!1,controls:null,clock:new F4,pointer:w,mouse:w,frameloop:"always",onPointerMissed:void 0,performance:{current:1,min:.5,max:1,debounce:200,regress:()=>{const p=l();f&&clearTimeout(f),p.performance.current!==p.performance.min&&m(p.performance.min),f=setTimeout(()=>m(l().performance.max),p.performance.debounce)}},size:{width:0,height:0,top:0,left:0,updateStyle:!1},viewport:{initialDpr:0,dpr:0,width:0,height:0,top:0,left:0,aspect:0,distance:0,factor:0,getCurrentViewport:d},setEvents:p=>a(v=>({...v,events:{...v.events,...p}})),setSize:(p,v,y,B,P)=>{const U=l().camera,x={width:p,height:v,top:B||0,left:P||0,updateStyle:y};a(D=>({size:x,viewport:{...D.viewport,...d(U,u,x)}}))},setDpr:p=>a(v=>{const y=hD(p);return{viewport:{...v.viewport,dpr:y,initialDpr:v.viewport.initialDpr||y}}}),setFrameloop:(p="always")=>{const v=l().clock;v.stop(),v.elapsedTime=0,p!=="never"&&(v.start(),v.elapsedTime=0),a(()=>({frameloop:p}))},previousRoot:void 0,internal:{active:!1,priority:0,frames:0,lastEvent:Y.createRef(),interaction:[],hovered:new Map,subscribers:[],initialClick:[0,0],initialHits:[],capturedMap:new Map,subscribe:(p,v,y)=>{const B=l().internal;return B.priority=B.priority+(v>0?1:0),B.subscribers.push({ref:p,priority:v,store:y}),B.subscribers=B.subscribers.sort((P,U)=>P.priority-U.priority),()=>{const P=l().internal;P!=null&&P.subscribers&&(P.priority=P.priority-(v>0?1:0),P.subscribers=P.subscribers.filter(U=>U.ref!==p))}}}}}),r=t.getState();let i=r.size,s=r.viewport.dpr,o=r.camera;return t.subscribe(()=>{const{camera:a,size:l,viewport:c,gl:u,set:A}=t.getState();if(l.width!==i.width||l.height!==i.height||c.dpr!==s){var d;i=l,s=c.dpr,Gae(a,l),u.setPixelRatio(c.dpr);const f=(d=l.updateStyle)!=null?d:typeof HTMLCanvasElement<"u"&&u.domElement instanceof HTMLCanvasElement;u.setSize(l.width,l.height,f)}a!==o&&(o=a,A(f=>({viewport:{...f.viewport,...f.viewport.getCurrentViewport(a)}})))}),t.subscribe(a=>n(a)),t};function yD(n,e){const t={callback:n};return e.add(t),()=>void e.delete(t)}let Ly,wD=new Set,bD=new Set,$ae=new Set;const Yae=n=>yD(n,wD),Jae=n=>yD(n,bD);function p5(n,e){if(n.size)for(const{callback:t}of n.values())t(e)}function km(n,e){switch(n){case"before":return p5(wD,e);case"after":return p5(bD,e);case"tail":return p5($ae,e)}}let g5,m5;function v5(n,e,t){let r=e.clock.getDelta();for(e.frameloop==="never"&&typeof n=="number"&&(r=n-e.clock.elapsedTime,e.clock.oldTime=e.clock.elapsedTime,e.clock.elapsedTime=n),g5=e.internal.subscribers,Ly=0;Ly0)&&!((c=i.gl.xr)!=null&&c.isPresenting)&&(t+=v5(l,i))}if(km("after",l),t===0)return km("tail",l),e=!1,cancelAnimationFrame(r)}function o(l,c=1){var u;if(!l)return n.forEach(A=>o(A.store.getState(),c));(u=l.gl.xr)!=null&&u.isPresenting||!l.internal.active||l.frameloop==="never"||(l.internal.frames=Math.min(60,l.internal.frames+c),e||(e=!0,requestAnimationFrame(s)))}function a(l,c=!0,u,A){if(c&&km("before",l),u)v5(l,u,A);else for(const d of n.values())v5(l,d.store.getState());c&&km("after",l)}return{loop:s,invalidate:o,advance:a}}function xD(){const n=Y.useContext(vD);if(!n)throw new Error("R3F: Hooks can only be used within the Canvas component!");return n}function zf(n=t=>t,e){return xD()(n,e)}function ele(n,e=0){const t=xD(),r=t.getState().internal.subscribe,i=AD(n);return e2(()=>r(i,e,t),[e,r,t]),null}const M0=new Map,{invalidate:tF,advance:nF}=Zae(M0),{reconciler:cb,applyProps:Bg}=Oae(M0,Wae),Cg={objects:"shallow",strict:!1},tle=(n,e)=>{const t=typeof n=="function"?n(e):n;return mD(t)?t:new cN({powerPreference:"high-performance",canvas:e,antialias:!0,alpha:!0,...n})};function nle(n,e){const t=typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement;if(e){const{width:r,height:i,top:s,left:o,updateStyle:a=t}=e;return{width:r,height:i,top:s,left:o,updateStyle:a}}else if(typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement&&n.parentElement){const{width:r,height:i,top:s,left:o}=n.parentElement.getBoundingClientRect();return{width:r,height:i,top:s,left:o,updateStyle:t}}else if(typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas)return{width:n.width,height:n.height,top:0,left:0,updateStyle:t};return{width:0,height:0,top:0,left:0}}function rle(n){const e=M0.get(n),t=e==null?void 0:e.fiber,r=e==null?void 0:e.store;e&&console.warn("R3F.createRoot should only be called once!");const i=typeof reportError=="function"?reportError:console.error,s=r||Xae(tF,nF),o=t||cb.createContainer(s,e0.ConcurrentRoot,null,!1,null,"",i,null);e||M0.set(n,{fiber:o,store:s});let a,l=!1,c;return{configure(u={}){let{gl:A,size:d,scene:f,events:m,onCreated:w,shadows:b=!1,linear:p=!1,flat:v=!1,legacy:y=!1,orthographic:B=!1,frameloop:P="always",dpr:U=[1,2],performance:x,raycaster:D,camera:Q,onPointerMissed:N}=u,O=s.getState(),G=O.gl;O.gl||O.set({gl:G=tle(A,n)});let X=O.raycaster;X||O.set({raycaster:X=new rD});const{params:ee,...$}=D||{};if(Fs.equ($,X,Cg)||Bg(X,{...$}),Fs.equ(ee,X.params,Cg)||Bg(X,{params:{...X.params,...ee}}),!O.camera||O.camera===c&&!Fs.equ(c,Q,Cg)){c=Q;const ie=Q instanceof Kv,Ee=ie?Q:B?new KA(0,0,0,0,.1,1e3):new Zs(75,0,.1,1e3);ie||(Ee.position.z=5,Q&&Bg(Ee,Q),!O.camera&&!(Q!=null&&Q.rotation)&&Ee.lookAt(0,0,0)),O.set({camera:Ee}),X.camera=Ee}if(!O.scene){let ie;f instanceof lb?ie=f:(ie=new lb,f&&Bg(ie,f)),O.set({scene:Ig(ie)})}if(!O.xr){var re;const ie=(fe,Ae)=>{const be=s.getState();be.frameloop!=="never"&&nF(fe,!0,be,Ae)},Ee=()=>{const fe=s.getState();fe.gl.xr.enabled=fe.gl.xr.isPresenting,fe.gl.xr.setAnimationLoop(fe.gl.xr.isPresenting?ie:null),fe.gl.xr.isPresenting||tF(fe)},J={connect(){const fe=s.getState().gl;fe.xr.addEventListener("sessionstart",Ee),fe.xr.addEventListener("sessionend",Ee)},disconnect(){const fe=s.getState().gl;fe.xr.removeEventListener("sessionstart",Ee),fe.xr.removeEventListener("sessionend",Ee)}};typeof((re=G.xr)==null?void 0:re.addEventListener)=="function"&&J.connect(),O.set({xr:J})}if(G.shadowMap){const ie=G.shadowMap.enabled,Ee=G.shadowMap.type;if(G.shadowMap.enabled=!!b,Fs.boo(b))G.shadowMap.type=u1;else if(Fs.str(b)){var ye;const J={basic:zR,percentage:Kb,soft:u1,variance:Zu};G.shadowMap.type=(ye=J[b])!=null?ye:u1}else Fs.obj(b)&&Object.assign(G.shadowMap,b);(ie!==G.shadowMap.enabled||Ee!==G.shadowMap.type)&&(G.shadowMap.needsUpdate=!0)}const W=uD();W&&("enabled"in W?W.enabled=!y:"legacyMode"in W&&(W.legacyMode=y)),l||Bg(G,{outputEncoding:p?3e3:3001,toneMapping:v?Zc:KC}),O.legacy!==y&&O.set(()=>({legacy:y})),O.linear!==p&&O.set(()=>({linear:p})),O.flat!==v&&O.set(()=>({flat:v})),A&&!Fs.fun(A)&&!mD(A)&&!Fs.equ(A,G,Cg)&&Bg(G,A),m&&!O.events.handlers&&O.set({events:m(s)});const le=nle(n,d);return Fs.equ(le,O.size,Cg)||O.setSize(le.width,le.height,le.updateStyle,le.top,le.left),U&&O.viewport.dpr!==hD(U)&&O.setDpr(U),O.frameloop!==P&&O.setFrameloop(P),O.onPointerMissed||O.set({onPointerMissed:N}),x&&!Fs.equ(x,O.performance,Cg)&&O.set(ie=>({performance:{...ie.performance,...x}})),a=w,l=!0,this},render(u){return l||this.configure(),cb.updateContainer(Y.createElement(ile,{store:s,children:u,onCreated:a,rootElement:n}),o,null,()=>{}),s},unmount(){_D(n)}}}function ile({store:n,children:e,onCreated:t,rootElement:r}){return e2(()=>{const i=n.getState();i.set(s=>({internal:{...s.internal,active:!0}})),t&&t(i),n.getState().events.connected||i.events.connect==null||i.events.connect(r)},[]),Y.createElement(vD.Provider,{value:n},e)}function _D(n,e){const t=M0.get(n),r=t==null?void 0:t.fiber;if(r){const i=t==null?void 0:t.store.getState();i&&(i.internal.active=!1),cb.updateContainer(null,r,null,()=>{i&&setTimeout(()=>{try{var s,o,a,l;i.events.disconnect==null||i.events.disconnect(),(s=i.gl)==null||(o=s.renderLists)==null||o.dispose==null||o.dispose(),(a=i.gl)==null||a.forceContextLoss==null||a.forceContextLoss(),(l=i.gl)!=null&&l.xr&&i.xr.disconnect(),zae(i),M0.delete(n),e&&e(n)}catch{}},500)})}}cb.injectIntoDevTools({bundleType:0,rendererPackageName:"@react-three/fiber",version:Y.version});function T0(){return T0=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0?r=setTimeout(l,e-u):(r=null,t||(a=n.apply(s,i),s=i=null))}var c=function(){s=this,i=arguments,o=Date.now();var u=t&&!r;return r||(r=setTimeout(l,e)),u&&(a=n.apply(s,i),s=i=null),a};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(a=n.apply(s,i),s=i=null,clearTimeout(r),r=null)},c}X3.debounce=X3;var sle=X3;const rF=uf(sle);function ole(n){let{debounce:e,scroll:t,polyfill:r,offsetSize:i}=n===void 0?{debounce:0,scroll:!1,offsetSize:!1}:n;const s=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!s)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,a]=Y.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=Y.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o}),c=e?typeof e=="number"?e:e.scroll:null,u=e?typeof e=="number"?e:e.resize:null,A=Y.useRef(!1);Y.useEffect(()=>(A.current=!0,()=>void(A.current=!1)));const[d,f,m]=Y.useMemo(()=>{const v=()=>{if(!l.current.element)return;const{left:y,top:B,width:P,height:U,bottom:x,right:D,x:Q,y:N}=l.current.element.getBoundingClientRect(),O={left:y,top:B,width:P,height:U,bottom:x,right:D,x:Q,y:N};l.current.element instanceof HTMLElement&&i&&(O.height=l.current.element.offsetHeight,O.width=l.current.element.offsetWidth),Object.freeze(O),A.current&&!cle(l.current.lastBounds,O)&&a(l.current.lastBounds=O)};return[v,u?rF(v,u):v,c?rF(v,c):v]},[a,i,c,u]);function w(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(v=>v.removeEventListener("scroll",m,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null)}function b(){l.current.element&&(l.current.resizeObserver=new s(m),l.current.resizeObserver.observe(l.current.element),t&&l.current.scrollContainers&&l.current.scrollContainers.forEach(v=>v.addEventListener("scroll",m,{capture:!0,passive:!0})))}const p=v=>{!v||v===l.current.element||(w(),l.current.element=v,l.current.scrollContainers=SD(v),b())};return lle(m,!!t),ale(f),Y.useEffect(()=>{w(),b()},[t,m,f]),Y.useEffect(()=>w,[]),[p,o,d]}function ale(n){Y.useEffect(()=>{const e=n;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[n])}function lle(n,e){Y.useEffect(()=>{if(e){const t=n;return window.addEventListener("scroll",t,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",t,!0)}},[n,e])}function SD(n){const e=[];if(!n||n===document.body)return e;const{overflow:t,overflowX:r,overflowY:i}=window.getComputedStyle(n);return[t,r,i].some(s=>s==="auto"||s==="scroll")&&e.push(n),[...e,...SD(n.parentElement)]}const ule=["x","y","top","bottom","left","right","width","height"],cle=(n,e)=>ule.every(t=>n[t]===e[t]);var Ale=Object.defineProperty,fle=Object.defineProperties,dle=Object.getOwnPropertyDescriptors,iF=Object.getOwnPropertySymbols,hle=Object.prototype.hasOwnProperty,ple=Object.prototype.propertyIsEnumerable,sF=(n,e,t)=>e in n?Ale(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,oF=(n,e)=>{for(var t in e||(e={}))hle.call(e,t)&&sF(n,t,e[t]);if(iF)for(var t of iF(e))ple.call(e,t)&&sF(n,t,e[t]);return n},gle=(n,e)=>fle(n,dle(e));function BD(n,e,t){if(!n)return;if(t(n)===!0)return n;let r=e?n.return:n.child;for(;r;){const i=BD(r,e,t);if(i)return i;r=e?null:r.sibling}}function CD(n){try{return Object.defineProperties(n,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return n}}const R4=CD(Y.createContext(null));class ED extends Y.Component{render(){return Y.createElement(R4.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:aF,ReactCurrentDispatcher:lF}=Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function mle(){const n=Y.useContext(R4);if(n===null)throw new Error("its-fine: useFiber must be called within a !");const e=Y.useId();return Y.useMemo(()=>{for(const r of[aF==null?void 0:aF.current,n,n==null?void 0:n.alternate]){if(!r)continue;const i=BD(r,!1,s=>{let o=s.memoizedState;for(;o;){if(o.memoizedState===e)return!0;o=o.next}});if(i)return i}},[n,e])}function vle(){var n;const e=mle(),[t]=Y.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const s=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;s&&s!==R4&&!t.has(s)&&t.set(s,(n=lF==null?void 0:lF.current)==null?void 0:n.readContext(CD(s)))}r=r.return}return t}function yle(){const n=vle();return Y.useMemo(()=>Array.from(n.keys()).reduce((e,t)=>r=>Y.createElement(e,null,Y.createElement(t.Provider,gle(oF({},r),{value:n.get(t)}))),e=>Y.createElement(ED,oF({},e))),[n])}const y5={onClick:["click",!1],onContextMenu:["contextmenu",!1],onDoubleClick:["dblclick",!1],onWheel:["wheel",!0],onPointerDown:["pointerdown",!0],onPointerUp:["pointerup",!0],onPointerLeave:["pointerleave",!0],onPointerMove:["pointermove",!0],onPointerCancel:["pointercancel",!0],onLostPointerCapture:["lostpointercapture",!0]};function wle(n){const{handlePointer:e}=qae(n);return{priority:1,enabled:!0,compute(t,r,i){r.pointer.set(t.offsetX/r.size.width*2-1,-(t.offsetY/r.size.height)*2+1),r.raycaster.setFromCamera(r.pointer,r.camera)},connected:void 0,handlers:Object.keys(y5).reduce((t,r)=>({...t,[r]:e(r)}),{}),update:()=>{var t;const{events:r,internal:i}=n.getState();(t=i.lastEvent)!=null&&t.current&&r.handlers&&r.handlers.onPointerMove(i.lastEvent.current)},connect:t=>{var r;const{set:i,events:s}=n.getState();s.disconnect==null||s.disconnect(),i(o=>({events:{...o.events,connected:t}})),Object.entries((r=s.handlers)!=null?r:[]).forEach(([o,a])=>{const[l,c]=y5[o];t.addEventListener(l,a,{passive:c})})},disconnect:()=>{const{set:t,events:r}=n.getState();if(r.connected){var i;Object.entries((i=r.handlers)!=null?i:[]).forEach(([s,o])=>{if(r&&r.connected instanceof HTMLElement){const[a]=y5[s];r.connected.removeEventListener(a,o)}}),t(s=>({events:{...s.events,connected:void 0}}))}}}}const ble=Y.forwardRef(function({children:e,fallback:t,resize:r,style:i,gl:s,events:o=wle,eventSource:a,eventPrefix:l,shadows:c,linear:u,flat:A,legacy:d,orthographic:f,frameloop:m,dpr:w,performance:b,raycaster:p,camera:v,scene:y,onPointerMissed:B,onCreated:P,...U},x){Y.useMemo(()=>Dae(Tae),[]);const D=yle(),[Q,N]=ole({scroll:!0,debounce:{scroll:50,resize:0},...r}),O=Y.useRef(null),G=Y.useRef(null);Y.useImperativeHandle(x,()=>O.current);const X=AD(B),[ee,$]=Y.useState(!1),[re,ye]=Y.useState(!1);if(ee)throw ee;if(re)throw re;const W=Y.useRef(null);e2(()=>{const ie=O.current;N.width>0&&N.height>0&&ie&&(W.current||(W.current=rle(ie)),W.current.configure({gl:s,events:o,shadows:c,linear:u,flat:A,legacy:d,orthographic:f,frameloop:m,dpr:w,performance:b,raycaster:p,camera:v,scene:y,size:N,onPointerMissed:(...Ee)=>X.current==null?void 0:X.current(...Ee),onCreated:Ee=>{Ee.events.connect==null||Ee.events.connect(a?Qae(a)?a.current:a:G.current),l&&Ee.setEvents({compute:(J,fe)=>{const Ae=J[l+"X"],be=J[l+"Y"];fe.pointer.set(Ae/fe.size.width*2-1,-(be/fe.size.height)*2+1),fe.raycaster.setFromCamera(fe.pointer,fe.camera)}}),P==null||P(Ee)}}),W.current.render(Y.createElement(D,null,Y.createElement(fD,{set:ye},Y.createElement(Y.Suspense,{fallback:Y.createElement(jae,{set:$})},e)))))}),Y.useEffect(()=>{const ie=O.current;if(ie)return()=>_D(ie)},[]);const le=a?"none":"auto";return Y.createElement("div",T0({ref:G,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:le,...i}},U),Y.createElement("div",{ref:Q,style:{width:"100%",height:"100%"}},Y.createElement("canvas",{ref:O,style:{display:"block"}},t)))}),xle=Y.forwardRef(function(e,t){return Y.createElement(ED,null,Y.createElement(ble,T0({},e,{ref:t})))});var _le=Object.defineProperty,Sle=(n,e,t)=>e in n?_le(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Sr=(n,e,t)=>(Sle(n,typeof e!="symbol"?e+"":e,t),t);const Iy=new wp,uF=new jA,Ble=Math.cos(70*(Math.PI/180)),cF=(n,e)=>(n%e+e)%e;let Cle=class extends sA{constructor(e,t){super(),Sr(this,"object"),Sr(this,"domElement"),Sr(this,"enabled",!0),Sr(this,"target",new Le),Sr(this,"minDistance",0),Sr(this,"maxDistance",1/0),Sr(this,"minZoom",0),Sr(this,"maxZoom",1/0),Sr(this,"minPolarAngle",0),Sr(this,"maxPolarAngle",Math.PI),Sr(this,"minAzimuthAngle",-1/0),Sr(this,"maxAzimuthAngle",1/0),Sr(this,"enableDamping",!1),Sr(this,"dampingFactor",.05),Sr(this,"enableZoom",!0),Sr(this,"zoomSpeed",1),Sr(this,"enableRotate",!0),Sr(this,"rotateSpeed",1),Sr(this,"enablePan",!0),Sr(this,"panSpeed",1),Sr(this,"screenSpacePanning",!0),Sr(this,"keyPanSpeed",7),Sr(this,"zoomToCursor",!1),Sr(this,"autoRotate",!1),Sr(this,"autoRotateSpeed",2),Sr(this,"reverseOrbit",!1),Sr(this,"reverseHorizontalOrbit",!1),Sr(this,"reverseVerticalOrbit",!1),Sr(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),Sr(this,"mouseButtons",{LEFT:Ch.ROTATE,MIDDLE:Ch.DOLLY,RIGHT:Ch.PAN}),Sr(this,"touches",{ONE:Eh.ROTATE,TWO:Eh.DOLLY_PAN}),Sr(this,"target0"),Sr(this,"position0"),Sr(this,"zoom0"),Sr(this,"_domElementKeyEvents",null),Sr(this,"getPolarAngle"),Sr(this,"getAzimuthalAngle"),Sr(this,"setPolarAngle"),Sr(this,"setAzimuthalAngle"),Sr(this,"getDistance"),Sr(this,"listenToKeyEvents"),Sr(this,"stopListenToKeyEvents"),Sr(this,"saveState"),Sr(this,"reset"),Sr(this,"update"),Sr(this,"connect"),Sr(this,"dispose"),this.object=e,this.domElement=t,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>u.phi,this.getAzimuthalAngle=()=>u.theta,this.setPolarAngle=Qe=>{let vt=cF(Qe,2*Math.PI),_e=u.phi;_e<0&&(_e+=2*Math.PI),vt<0&&(vt+=2*Math.PI);let Rt=Math.abs(vt-_e);2*Math.PI-Rt{let vt=cF(Qe,2*Math.PI),_e=u.theta;_e<0&&(_e+=2*Math.PI),vt<0&&(vt+=2*Math.PI);let Rt=Math.abs(vt-_e);2*Math.PI-Rtr.object.position.distanceTo(r.target),this.listenToKeyEvents=Qe=>{Qe.addEventListener("keydown",Qt),this._domElementKeyEvents=Qe},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",Qt),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(i),r.update(),l=a.NONE},this.update=(()=>{const Qe=new Le,vt=new Le(0,1,0),_e=new Va().setFromUnitVectors(e.up,vt),Rt=_e.clone().invert(),Lt=new Le,on=new Va,qt=2*Math.PI;return function(){const Ot=r.object.position;_e.setFromUnitVectors(e.up,vt),Rt.copy(_e).invert(),Qe.copy(Ot).sub(r.target),Qe.applyQuaternion(_e),u.setFromVector3(Qe),r.autoRotate&&l===a.NONE&&ee(G()),r.enableDamping?(u.theta+=A.theta*r.dampingFactor,u.phi+=A.phi*r.dampingFactor):(u.theta+=A.theta,u.phi+=A.phi);let Vt=r.minAzimuthAngle,dn=r.maxAzimuthAngle;isFinite(Vt)&&isFinite(dn)&&(Vt<-Math.PI?Vt+=qt:Vt>Math.PI&&(Vt-=qt),dn<-Math.PI?dn+=qt:dn>Math.PI&&(dn-=qt),Vt<=dn?u.theta=Math.max(Vt,Math.min(dn,u.theta)):u.theta=u.theta>(Vt+dn)/2?Math.max(Vt,u.theta):Math.min(dn,u.theta)),u.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,u.phi)),u.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(f,r.dampingFactor):r.target.add(f),r.zoomToCursor&&Q||r.object.isOrthographicCamera?u.radius=J(u.radius):u.radius=J(u.radius*d),Qe.setFromSpherical(u),Qe.applyQuaternion(Rt),Ot.copy(r.target).add(Qe),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(A.theta*=1-r.dampingFactor,A.phi*=1-r.dampingFactor,f.multiplyScalar(1-r.dampingFactor)):(A.set(0,0,0),f.set(0,0,0));let wn=!1;if(r.zoomToCursor&&Q){let Hr=null;if(r.object instanceof Zs&&r.object.isPerspectiveCamera){const $r=Qe.length();Hr=J($r*d);const bn=$r-Hr;r.object.position.addScaledVector(x,bn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const $r=new Le(D.x,D.y,0);$r.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/d)),r.object.updateProjectionMatrix(),wn=!0;const bn=new Le(D.x,D.y,0);bn.unproject(r.object),r.object.position.sub(bn).add($r),r.object.updateMatrixWorld(),Hr=Qe.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;Hr!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar(Hr).add(r.object.position):(Iy.origin.copy(r.object.position),Iy.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(Iy.direction))c||8*(1-on.dot(r.object.quaternion))>c?(r.dispatchEvent(i),Lt.copy(r.object.position),on.copy(r.object.quaternion),wn=!1,!0):!1}})(),this.connect=Qe=>{Qe===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=Qe,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",Ve),r.domElement.addEventListener("pointerdown",tt),r.domElement.addEventListener("pointercancel",yt),r.domElement.addEventListener("wheel",Dt)},this.dispose=()=>{var Qe,vt,_e,Rt,Lt,on;(Qe=r.domElement)==null||Qe.removeEventListener("contextmenu",Ve),(vt=r.domElement)==null||vt.removeEventListener("pointerdown",tt),(_e=r.domElement)==null||_e.removeEventListener("pointercancel",yt),(Rt=r.domElement)==null||Rt.removeEventListener("wheel",Dt),(Lt=r.domElement)==null||Lt.ownerDocument.removeEventListener("pointermove",Je),(on=r.domElement)==null||on.ownerDocument.removeEventListener("pointerup",Ut),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",Qt)};const r=this,i={type:"change"},s={type:"start"},o={type:"end"},a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=a.NONE;const c=1e-6,u=new W3,A=new W3;let d=1;const f=new Le,m=new jt,w=new jt,b=new jt,p=new jt,v=new jt,y=new jt,B=new jt,P=new jt,U=new jt,x=new Le,D=new jt;let Q=!1;const N=[],O={};function G(){return 2*Math.PI/60/60*r.autoRotateSpeed}function X(){return Math.pow(.95,r.zoomSpeed)}function ee(Qe){r.reverseOrbit||r.reverseHorizontalOrbit?A.theta+=Qe:A.theta-=Qe}function $(Qe){r.reverseOrbit||r.reverseVerticalOrbit?A.phi+=Qe:A.phi-=Qe}const re=(()=>{const Qe=new Le;return function(_e,Rt){Qe.setFromMatrixColumn(Rt,0),Qe.multiplyScalar(-_e),f.add(Qe)}})(),ye=(()=>{const Qe=new Le;return function(_e,Rt){r.screenSpacePanning===!0?Qe.setFromMatrixColumn(Rt,1):(Qe.setFromMatrixColumn(Rt,0),Qe.crossVectors(r.object.up,Qe)),Qe.multiplyScalar(_e),f.add(Qe)}})(),W=(()=>{const Qe=new Le;return function(_e,Rt){const Lt=r.domElement;if(Lt&&r.object instanceof Zs&&r.object.isPerspectiveCamera){const on=r.object.position;Qe.copy(on).sub(r.target);let qt=Qe.length();qt*=Math.tan(r.object.fov/2*Math.PI/180),re(2*_e*qt/Lt.clientHeight,r.object.matrix),ye(2*Rt*qt/Lt.clientHeight,r.object.matrix)}else Lt&&r.object instanceof KA&&r.object.isOrthographicCamera?(re(_e*(r.object.right-r.object.left)/r.object.zoom/Lt.clientWidth,r.object.matrix),ye(Rt*(r.object.top-r.object.bottom)/r.object.zoom/Lt.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function le(Qe){r.object instanceof Zs&&r.object.isPerspectiveCamera||r.object instanceof KA&&r.object.isOrthographicCamera?d/=Qe:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function ie(Qe){r.object instanceof Zs&&r.object.isPerspectiveCamera||r.object instanceof KA&&r.object.isOrthographicCamera?d*=Qe:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function Ee(Qe){if(!r.zoomToCursor||!r.domElement)return;Q=!0;const vt=r.domElement.getBoundingClientRect(),_e=Qe.clientX-vt.left,Rt=Qe.clientY-vt.top,Lt=vt.width,on=vt.height;D.x=_e/Lt*2-1,D.y=-(Rt/on)*2+1,x.set(D.x,D.y,1).unproject(r.object).sub(r.object.position).normalize()}function J(Qe){return Math.max(r.minDistance,Math.min(r.maxDistance,Qe))}function fe(Qe){m.set(Qe.clientX,Qe.clientY)}function Ae(Qe){Ee(Qe),B.set(Qe.clientX,Qe.clientY)}function be(Qe){p.set(Qe.clientX,Qe.clientY)}function Fe(Qe){w.set(Qe.clientX,Qe.clientY),b.subVectors(w,m).multiplyScalar(r.rotateSpeed);const vt=r.domElement;vt&&(ee(2*Math.PI*b.x/vt.clientHeight),$(2*Math.PI*b.y/vt.clientHeight)),m.copy(w),r.update()}function Pe(Qe){P.set(Qe.clientX,Qe.clientY),U.subVectors(P,B),U.y>0?le(X()):U.y<0&&ie(X()),B.copy(P),r.update()}function Xe(Qe){v.set(Qe.clientX,Qe.clientY),y.subVectors(v,p).multiplyScalar(r.panSpeed),W(y.x,y.y),p.copy(v),r.update()}function Ye(Qe){Ee(Qe),Qe.deltaY<0?ie(X()):Qe.deltaY>0&&le(X()),r.update()}function At(Qe){let vt=!1;switch(Qe.code){case r.keys.UP:W(0,r.keyPanSpeed),vt=!0;break;case r.keys.BOTTOM:W(0,-r.keyPanSpeed),vt=!0;break;case r.keys.LEFT:W(r.keyPanSpeed,0),vt=!0;break;case r.keys.RIGHT:W(-r.keyPanSpeed,0),vt=!0;break}vt&&(Qe.preventDefault(),r.update())}function Ue(){if(N.length==1)m.set(N[0].pageX,N[0].pageY);else{const Qe=.5*(N[0].pageX+N[1].pageX),vt=.5*(N[0].pageY+N[1].pageY);m.set(Qe,vt)}}function Ke(){if(N.length==1)p.set(N[0].pageX,N[0].pageY);else{const Qe=.5*(N[0].pageX+N[1].pageX),vt=.5*(N[0].pageY+N[1].pageY);p.set(Qe,vt)}}function Ge(){const Qe=N[0].pageX-N[1].pageX,vt=N[0].pageY-N[1].pageY,_e=Math.sqrt(Qe*Qe+vt*vt);B.set(0,_e)}function _t(){r.enableZoom&&Ge(),r.enablePan&&Ke()}function ze(){r.enableZoom&&Ge(),r.enableRotate&&Ue()}function ve(Qe){if(N.length==1)w.set(Qe.pageX,Qe.pageY);else{const _e=Gt(Qe),Rt=.5*(Qe.pageX+_e.x),Lt=.5*(Qe.pageY+_e.y);w.set(Rt,Lt)}b.subVectors(w,m).multiplyScalar(r.rotateSpeed);const vt=r.domElement;vt&&(ee(2*Math.PI*b.x/vt.clientHeight),$(2*Math.PI*b.y/vt.clientHeight)),m.copy(w)}function xe(Qe){if(N.length==1)v.set(Qe.pageX,Qe.pageY);else{const vt=Gt(Qe),_e=.5*(Qe.pageX+vt.x),Rt=.5*(Qe.pageY+vt.y);v.set(_e,Rt)}y.subVectors(v,p).multiplyScalar(r.panSpeed),W(y.x,y.y),p.copy(v)}function se(Qe){const vt=Gt(Qe),_e=Qe.pageX-vt.x,Rt=Qe.pageY-vt.y,Lt=Math.sqrt(_e*_e+Rt*Rt);P.set(0,Lt),U.set(0,Math.pow(P.y/B.y,r.zoomSpeed)),le(U.y),B.copy(P)}function ke(Qe){r.enableZoom&&se(Qe),r.enablePan&&xe(Qe)}function We(Qe){r.enableZoom&&se(Qe),r.enableRotate&&ve(Qe)}function tt(Qe){var vt,_e;r.enabled!==!1&&(N.length===0&&((vt=r.domElement)==null||vt.ownerDocument.addEventListener("pointermove",Je),(_e=r.domElement)==null||_e.ownerDocument.addEventListener("pointerup",Ut)),Et(Qe),Qe.pointerType==="touch"?tn(Qe):ut(Qe))}function Je(Qe){r.enabled!==!1&&(Qe.pointerType==="touch"?He(Qe):Ht(Qe))}function Ut(Qe){var vt,_e,Rt;St(Qe),N.length===0&&((vt=r.domElement)==null||vt.releasePointerCapture(Qe.pointerId),(_e=r.domElement)==null||_e.ownerDocument.removeEventListener("pointermove",Je),(Rt=r.domElement)==null||Rt.ownerDocument.removeEventListener("pointerup",Ut)),r.dispatchEvent(o),l=a.NONE}function yt(Qe){St(Qe)}function ut(Qe){let vt;switch(Qe.button){case 0:vt=r.mouseButtons.LEFT;break;case 1:vt=r.mouseButtons.MIDDLE;break;case 2:vt=r.mouseButtons.RIGHT;break;default:vt=-1}switch(vt){case Ch.DOLLY:if(r.enableZoom===!1)return;Ae(Qe),l=a.DOLLY;break;case Ch.ROTATE:if(Qe.ctrlKey||Qe.metaKey||Qe.shiftKey){if(r.enablePan===!1)return;be(Qe),l=a.PAN}else{if(r.enableRotate===!1)return;fe(Qe),l=a.ROTATE}break;case Ch.PAN:if(Qe.ctrlKey||Qe.metaKey||Qe.shiftKey){if(r.enableRotate===!1)return;fe(Qe),l=a.ROTATE}else{if(r.enablePan===!1)return;be(Qe),l=a.PAN}break;default:l=a.NONE}l!==a.NONE&&r.dispatchEvent(s)}function Ht(Qe){if(r.enabled!==!1)switch(l){case a.ROTATE:if(r.enableRotate===!1)return;Fe(Qe);break;case a.DOLLY:if(r.enableZoom===!1)return;Pe(Qe);break;case a.PAN:if(r.enablePan===!1)return;Xe(Qe);break}}function Dt(Qe){r.enabled===!1||r.enableZoom===!1||l!==a.NONE&&l!==a.ROTATE||(Qe.preventDefault(),r.dispatchEvent(s),Ye(Qe),r.dispatchEvent(o))}function Qt(Qe){r.enabled===!1||r.enablePan===!1||At(Qe)}function tn(Qe){switch(nn(Qe),N.length){case 1:switch(r.touches.ONE){case Eh.ROTATE:if(r.enableRotate===!1)return;Ue(),l=a.TOUCH_ROTATE;break;case Eh.PAN:if(r.enablePan===!1)return;Ke(),l=a.TOUCH_PAN;break;default:l=a.NONE}break;case 2:switch(r.touches.TWO){case Eh.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;_t(),l=a.TOUCH_DOLLY_PAN;break;case Eh.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;ze(),l=a.TOUCH_DOLLY_ROTATE;break;default:l=a.NONE}break;default:l=a.NONE}l!==a.NONE&&r.dispatchEvent(s)}function He(Qe){switch(nn(Qe),l){case a.TOUCH_ROTATE:if(r.enableRotate===!1)return;ve(Qe),r.update();break;case a.TOUCH_PAN:if(r.enablePan===!1)return;xe(Qe),r.update();break;case a.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;ke(Qe),r.update();break;case a.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;We(Qe),r.update();break;default:l=a.NONE}}function Ve(Qe){r.enabled!==!1&&Qe.preventDefault()}function Et(Qe){N.push(Qe)}function St(Qe){delete O[Qe.pointerId];for(let vt=0;vt0){const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(t.map(l=>{if(l=Mle(l),l in AF)return;AF[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!r)for(let f=s.length-1;f>=0;f--){const m=s[f];if(m.href===l&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Ele,c||(d.as="script",d.crossOrigin=""),d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((f,m)=>{d.addEventListener("load",f),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>e()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},Tle=Y.forwardRef(({makeDefault:n,camera:e,regress:t,domElement:r,enableDamping:i=!0,keyEvents:s=!1,onChange:o,onStart:a,onEnd:l,...c},u)=>{const A=zf(U=>U.invalidate),d=zf(U=>U.camera),f=zf(U=>U.gl),m=zf(U=>U.events),w=zf(U=>U.setEvents),b=zf(U=>U.set),p=zf(U=>U.get),v=zf(U=>U.performance),y=e||d,B=r||m.connected||f.domElement,P=Y.useMemo(()=>new Cle(y),[y]);return ele(()=>{P.enabled&&P.update()},-1),Y.useEffect(()=>(s&&P.connect(s===!0?B:s),P.connect(B),()=>void P.dispose()),[s,B,t,P,A]),Y.useEffect(()=>{const U=Q=>{A(),t&&v.regress(),o&&o(Q)},x=Q=>{a&&a(Q)},D=Q=>{l&&l(Q)};return P.addEventListener("change",U),P.addEventListener("start",x),P.addEventListener("end",D),()=>{P.removeEventListener("start",x),P.removeEventListener("end",D),P.removeEventListener("change",U)}},[o,a,l,P,A,w]),Y.useEffect(()=>{if(n){const U=p().controls;return b({controls:P}),()=>b({controls:U})}},[n,P]),Y.createElement("primitive",T0({ref:u,object:P,enableDamping:i},c))});var MD={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Mu,function(){var t=function(){function r(f){return o.appendChild(f.dom),f}function i(f){for(var m=0;ml+1e3&&(u.update(1e3*c/(f-l),100),l=f,c=0,d)){var m=performance.memory;d.update(m.usedJSHeapSize/1048576,m.jsHeapSizeLimit/1048576)}return f},update:function(){a=this.end()},domElement:o,setMode:i}};return t.Panel=function(r,i,s){var o=1/0,a=0,l=Math.round,c=l(window.devicePixelRatio||1),u=80*c,A=48*c,d=3*c,f=2*c,m=3*c,w=15*c,b=74*c,p=30*c,v=document.createElement("canvas");v.width=u,v.height=A,v.style.cssText="width:80px;height:48px";var y=v.getContext("2d");return y.font="bold "+9*c+"px Helvetica,Arial,sans-serif",y.textBaseline="top",y.fillStyle=s,y.fillRect(0,0,u,A),y.fillStyle=i,y.fillText(r,d,f),y.fillRect(m,w,b,p),y.fillStyle=s,y.globalAlpha=.9,y.fillRect(m,w,b,p),{dom:v,update:function(B,P){o=Math.min(o,B),a=Math.max(a,B),y.fillStyle=s,y.globalAlpha=1,y.fillRect(0,0,u,w),y.fillStyle=i,y.fillText(l(B)+" "+r+" ("+l(o)+"-"+l(a)+")",d,f),y.drawImage(v,m+c,w,b-c,p,m,w,b-c,p),y.fillRect(m+b-c,w,c,p),y.fillStyle=s,y.globalAlpha=.9,y.fillRect(m+b-c,w,c,l((1-B/P)*p))}}},t})})(MD);var Fle=MD.exports;const Lle=uf(Fle);function fF(n,e){typeof n=="function"?n(e):n!=null&&(n.current=e)}function Ile(n,e=[],t){const[r,i]=Y.useState();return Y.useLayoutEffect(()=>{const s=n();return i(s),fF(t,s),()=>fF(t,null)},e),r}function Ple({showPanel:n=0,className:e,parent:t}){const r=Ile(()=>new Lle,[]);return Y.useEffect(()=>{if(r){const i=t&&t.current||document.body;r.showPanel(n),i==null||i.appendChild(r.dom),e&&r.dom.classList.add(...e.split(" ").filter(a=>a));const s=Yae(()=>r.begin()),o=Jae(()=>r.end());return()=>{i==null||i.removeChild(r.dom),s(),o()}}},[t,r,e,n]),null}function Ule(n,e){const t=n+"Geometry";return Y.forwardRef(({args:r,children:i,...s},o)=>{const a=Y.useRef(null);return Y.useImperativeHandle(o,()=>a.current),Y.useLayoutEffect(()=>void(e==null?void 0:e(a.current))),Y.createElement("mesh",T0({ref:a},s),Y.createElement(t,{attach:"geometry",args:r}),i)})}const Rle=Ule("box"),kle="/react-apps/assets/rust_wasm_bg-Sr_fF_BA.wasm",Nle=async(n={},e)=>{let t;if(e.startsWith("data:")){const r=e.replace(/^data:.*?base64,/,"");let i;if(typeof Buffer=="function"&&typeof Buffer.from=="function")i=Buffer.from(r,"base64");else if(typeof atob=="function"){const s=atob(r);i=new Uint8Array(s.length);for(let o=0;o"u"?(0,module.require)("util").TextDecoder:TextDecoder;let TD=new Ole("utf-8",{ignoreBOM:!0,fatal:!0});TD.decode();let Py=null;function pw(){return(Py===null||Py.byteLength===0)&&(Py=new Uint8Array(Ln.memory.buffer)),Py}function Ud(n,e){return n=n>>>0,TD.decode(pw().subarray(n,n+e))}function Vn(n){return VA[n]}function Sv(n){return n==null}let Uy=null;function Qle(){return(Uy===null||Uy.byteLength===0)&&(Uy=new Float64Array(Ln.memory.buffer)),Uy}let Ry=null;function Vo(){return(Ry===null||Ry.byteLength===0)&&(Ry=new Int32Array(Ln.memory.buffer)),Ry}function jle(n){n<132||(VA[n]=h1,h1=n)}function Rd(n){const e=Vn(n);return jle(n),e}let lf=0;const Hle=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let gw=new Hle("utf-8");const zle=typeof gw.encodeInto=="function"?function(n,e){return gw.encodeInto(n,e)}:function(n,e){const t=gw.encode(n);return e.set(t),{read:n.length,written:t.length}};function Bp(n,e,t){if(t===void 0){const a=gw.encode(n),l=e(a.length,1)>>>0;return pw().subarray(l,l+a.length).set(a),lf=a.length,l}let r=n.length,i=e(r,1)>>>0;const s=pw();let o=0;for(;o127)break;s[i+o]=a}if(o!==r){o!==0&&(n=n.slice(o)),i=t(i,r,r=o+n.length*3,1)>>>0;const a=pw().subarray(i+o,i+r),l=zle(n,a);o+=l.written,i=t(i,r,o,1)>>>0}return lf=o,i}function Y3(n){const e=typeof n;if(e=="number"||e=="boolean"||n==null)return`${n}`;if(e=="string")return`"${n}"`;if(e=="symbol"){const i=n.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=n.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(n)){const i=n.length;let s="[";i>0&&(s+=Y3(n[0]));for(let o=1;o1)r=t[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} -${n.stack}`:r}const dF=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{Ln.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Vle(n,e,t,r){const i={a:n,b:e,cnt:1,dtor:t},s=(...o)=>{i.cnt++;const a=i.a;i.a=0;try{return r(a,i.b,...o)}finally{--i.cnt===0?(Ln.__wbindgen_export_2.get(i.dtor)(a,i.b),dF.unregister(i)):i.a=a}};return s.original=i,dF.register(s,i,i),s}function Gle(n,e,t){Ln._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hefdbf5588b2dcc56(n,e,dr(t))}function w5(n,e){if(!(n instanceof e))throw new Error(`expected instance of ${e.name}`);return n.ptr}let ky=null;function Wle(){return(ky===null||ky.byteLength===0)&&(ky=new Uint32Array(Ln.memory.buffer)),ky}function Kle(n,e){n=n>>>0;const r=Wle().subarray(n/4,n/4+e),i=[];for(let s=0;s"u"||new FinalizationRegistry(n=>Ln.__wbg_convexhull_free(n>>>0));const hF=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>Ln.__wbg_pointdistribution_free(n>>>0));class Rh{static __wrap(e){e=e>>>0;const t=Object.create(Rh.prototype);return t.__wbg_ptr=e,hF.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hF.unregister(this),e}free(){const e=this.__destroy_into_raw();Ln.__wbg_pointdistribution_free(e)}static set_random_points(e,t){const r=Ln.pointdistribution_set_random_points(e,dr(t));return Rh.__wrap(r)}static set_spherical_random_points(e,t){const r=Ln.pointdistribution_set_spherical_random_points(e,t);return Rh.__wrap(r)}static set_points(e){const t=Ln.pointdistribution_set_points(dr(e));return Rh.__wrap(t)}normalize(){const e=Ln.pointdistribution_normalize(this.__wbg_ptr);return Rh.__wrap(e)}get points(){const e=Ln.pointdistribution_points(this.__wbg_ptr);return Rd(e)}}const pF=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>Ln.__wbg_pos_free(n>>>0));class Xc{static __wrap(e){e=e>>>0;const t=Object.create(Xc.prototype);return t.__wbg_ptr=e,pF.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pF.unregister(this),e}free(){const e=this.__destroy_into_raw();Ln.__wbg_pos_free(e)}get 0(){return Ln.__wbg_get_pos_0(this.__wbg_ptr)>>>0}set 0(e){Ln.__wbg_set_pos_0(this.__wbg_ptr,e)}get 1(){return Ln.__wbg_get_pos_1(this.__wbg_ptr)>>>0}set 1(e){Ln.__wbg_set_pos_1(this.__wbg_ptr,e)}get 2(){return Ln.__wbg_get_pos_2(this.__wbg_ptr)>>>0}set 2(e){Ln.__wbg_set_pos_2(this.__wbg_ptr,e)}static new(e,t,r){const i=Ln.pos_new(e,t,r);return Xc.__wrap(i)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>Ln.__wbg_sphericalvoronoi_free(n>>>0));const gF=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>Ln.__wbg_universe_free(n>>>0));class Ab{static __wrap(e){e=e>>>0;const t=Object.create(Ab.prototype);return t.__wbg_ptr=e,gF.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gF.unregister(this),e}free(){const e=this.__destroy_into_raw();Ln.__wbg_universe_free(e)}get width(){return Ln.__wbg_get_universe_width(this.__wbg_ptr)>>>0}set width(e){Ln.__wbg_set_universe_width(this.__wbg_ptr,e)}get height(){return Ln.__wbg_get_universe_height(this.__wbg_ptr)>>>0}set height(e){Ln.__wbg_set_universe_height(this.__wbg_ptr,e)}get depth(){return Ln.__wbg_get_universe_depth(this.__wbg_ptr)>>>0}set depth(e){Ln.__wbg_set_universe_depth(this.__wbg_ptr,e)}live_neighbor_count(e){w5(e,Xc);var t=e.__destroy_into_raw();return Ln.universe_live_neighbor_count(this.__wbg_ptr,t)}static new(e){let t=0;Sv(e)||(w5(e,Xc),t=e.__destroy_into_raw());const r=Ln.universe_new(t);return Ab.__wrap(r)}set_by_step(e){Ln.universe_set_by_step(this.__wbg_ptr,e)}set_cell(e){try{const s=Ln.__wbindgen_add_to_stack_pointer(-16);w5(e,Xc);var t=e.__destroy_into_raw();Ln.universe_set_cell(s,this.__wbg_ptr,t);var r=Vo()[s/4+0],i=Vo()[s/4+1];if(i)throw Rd(r)}finally{Ln.__wbindgen_add_to_stack_pointer(16)}}width(){return Ln.__wbg_get_universe_width(this.__wbg_ptr)>>>0}height(){return Ln.__wbg_get_universe_height(this.__wbg_ptr)>>>0}depth(){return Ln.__wbg_get_universe_depth(this.__wbg_ptr)>>>0}cells(){return Ln.universe_cells(this.__wbg_ptr)>>>0}get_cells(){try{const i=Ln.__wbindgen_add_to_stack_pointer(-16);Ln.universe_get_cells(i,this.__wbg_ptr);var e=Vo()[i/4+0],t=Vo()[i/4+1],r=Kle(e,t).slice();return Ln.__wbindgen_free(e,t*4,4),r}finally{Ln.__wbindgen_add_to_stack_pointer(16)}}tick(){Ln.universe_tick(this.__wbg_ptr)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>Ln.__wbg_wasmbindgentestcontext_free(n>>>0));function Jle(n){return dr(n)}function Zle(n,e){const t=new Error(Ud(n,e));return dr(t)}function eue(n,e){const t=Vn(e),r=typeof t=="number"?t:void 0;Qle()[n/8+1]=Sv(r)?0:r,Vo()[n/4+0]=!Sv(r)}function tue(n){Rd(n)}function nue(n,e){const t=Ud(n,e);return dr(t)}function rue(n){const e=Vn(n).crypto;return dr(e)}function iue(n){const e=Vn(n);return typeof e=="object"&&e!==null}function sue(n){const e=Vn(n).process;return dr(e)}function oue(n){const e=Vn(n).versions;return dr(e)}function aue(n){const e=Vn(n).node;return dr(e)}function lue(n){return typeof Vn(n)=="string"}function uue(){return ku(function(){const n=module.require;return dr(n)},arguments)}function cue(n){return typeof Vn(n)=="function"}function Aue(n){const e=Vn(n).msCrypto;return dr(e)}function fue(){return ku(function(n,e){Vn(n).randomFillSync(Rd(e))},arguments)}function due(){return ku(function(n,e){Vn(n).getRandomValues(Vn(e))},arguments)}function hue(n,e){console.log(Ud(n,e))}function pue(n,e){const t=String(Vn(e)),r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function gue(n,e,t){const r=Vn(n).getElementById(Ud(e,t));return dr(r)}function mue(n,e,t){Vn(n).textContent=Ud(e,t)}function vue(n,e){const t=Vn(e),r=typeof t=="string"?t:void 0;var i=Sv(r)?0:Bp(r,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),s=lf;Vo()[n/4+1]=s,Vo()[n/4+0]=i}function yue(){return ku(function(n,e){try{var t={a:n,b:e},r=()=>{const i=t.a;t.a=0;try{return qle(i,t.b)}finally{t.a=i}};__wbg_test_invoke(r)}finally{t.a=t.b=0}},arguments)}function wue(n){const e=Vn(n);return dr(e)}function bue(n,e){const t=Vn(e).stack,r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function xue(){return dr(document)}function _ue(n){const e=Vn(n).self;return Sv(e)?0:dr(e)}function Sue(n){const e=Vn(n).constructor;return dr(e)}function Bue(n,e){const t=Vn(e).name,r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function Cue(n,e){const t=Vn(e).textContent,r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function Eue(n){const e=Vn(n).stack;return dr(e)}function Mue(n){__wbg_test_output_writeln(Rd(n))}function Tue(n){const e=Vn(n).stack;return dr(e)}function Fue(){const n=new Error;return dr(n)}function Lue(n,e){const t=Vn(e).stack,r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function Iue(n,e){let t,r;try{t=n,r=e,console.error(Ud(n,e))}finally{Ln.__wbindgen_free(t,r,1)}}function Pue(n){const e=Rd(n).original;return e.cnt--==1?(e.a=0,!0):!1}function Uue(n){queueMicrotask(Vn(n))}function Rue(n){const e=Vn(n).queueMicrotask;return dr(e)}function kue(n,e){return Vn(n)==Vn(e)}function Nue(n){const e=Vn(n);return typeof e=="boolean"?e?1:0:2}function Due(n){const e=BigInt.asUintN(64,n);return dr(e)}function Oue(n,e){const t=Vn(n)[e>>>0];return dr(t)}function Que(n){return Vn(n).length}function jue(){const n=new Array;return dr(n)}function Hue(n,e){const t=new Function(Ud(n,e));return dr(t)}function zue(n){const e=Vn(n).next;return dr(e)}function Vue(){return ku(function(n){const e=Vn(n).next();return dr(e)},arguments)}function Gue(n){return Vn(n).done}function Wue(n){const e=Vn(n).value;return dr(e)}function Kue(){return dr(Symbol.iterator)}function que(){return ku(function(n,e){const t=Reflect.get(Vn(n),Vn(e));return dr(t)},arguments)}function Xue(){return ku(function(n,e){const t=Vn(n).call(Vn(e));return dr(t)},arguments)}function $ue(){return ku(function(){const n=self.self;return dr(n)},arguments)}function Yue(){return ku(function(){const n=window.window;return dr(n)},arguments)}function Jue(){return ku(function(){const n=globalThis.globalThis;return dr(n)},arguments)}function Zue(){return ku(function(){const n=global.global;return dr(n)},arguments)}function ece(n){return Vn(n)===void 0}function tce(n,e,t){Vn(n)[e>>>0]=Rd(t)}function nce(n,e,t){try{var r={a:e,b:t},i=(s,o,a)=>{const l=r.a;r.a=0;try{return Xle(l,r.b,s,o,a)}finally{r.a=l}};Vn(n).forEach(i)}finally{r.a=r.b=0}}function rce(n){return Array.isArray(Vn(n))}function ice(n){let e;try{e=Vn(n)instanceof ArrayBuffer}catch{e=!1}return e}function sce(n){const e=Vn(n).message;return dr(e)}function oce(n){const e=Vn(n).name;return dr(e)}function ace(){return ku(function(n,e,t){const r=Vn(n).call(Vn(e),Vn(t));return dr(r)},arguments)}function lce(n,e){try{var t={a:n,b:e},r=(s,o)=>{const a=t.a;t.a=0;try{return $le(a,t.b,s,o)}finally{t.a=a}};const i=new Promise(r);return dr(i)}finally{t.a=t.b=0}}function uce(n){const e=Promise.resolve(Vn(n));return dr(e)}function cce(n,e){const t=Vn(n).then(Vn(e));return dr(t)}function Ace(n){const e=Vn(n).buffer;return dr(e)}function fce(n,e,t){const r=new Uint8Array(Vn(n),e>>>0,t>>>0);return dr(r)}function dce(n){const e=new Uint8Array(Vn(n));return dr(e)}function hce(n,e,t){Vn(n).set(Vn(e),t>>>0)}function pce(n){return Vn(n).length}function gce(n){let e;try{e=Vn(n)instanceof Uint8Array}catch{e=!1}return e}function mce(n){const e=new Uint8Array(n>>>0);return dr(e)}function vce(n,e,t){const r=Vn(n).subarray(e>>>0,t>>>0);return dr(r)}function yce(n,e){const t=Y3(Vn(e)),r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function wce(n,e){throw new Error(Ud(n,e))}function bce(){const n=Ln.memory;return dr(n)}function xce(n,e,t){const r=Vle(n,e,115,Gle);return dr(r)}URL=globalThis.URL;const rr=await Nle({"./rust_wasm_bg.js":{__wbindgen_number_new:Jle,__wbindgen_error_new:Zle,__wbindgen_number_get:eue,__wbindgen_object_drop_ref:tue,__wbindgen_string_new:nue,__wbg_crypto_1d1f22824a6a080c:rue,__wbindgen_is_object:iue,__wbg_process_4a72847cc503995b:sue,__wbg_versions_f686565e586dd935:oue,__wbg_node_104a2ff8d6ea03a2:aue,__wbindgen_is_string:lue,__wbg_require_cca90b1a94a0255b:uue,__wbindgen_is_function:cue,__wbg_msCrypto_eb05e62b530a1508:Aue,__wbg_randomFillSync_5c9c955aa56b6049:fue,__wbg_getRandomValues_3aa56aa6edec874c:due,__wbg_log_28eee4e6432efd24:hue,__wbg_String_55b8bdc4bc243677:pue,__wbg_getElementById_8458f2a6c28467dc:gue,__wbg_settextcontent_fc3ff485b96fcb1d:mue,__wbindgen_string_get:vue,__wbg_wbgtestinvoke_8c20f4132af2bded:yue,__wbindgen_object_clone_ref:wue,__wbg_stack_17c77e9f5bfe6714:bue,__wbg_static_accessor_document_d4b6ae7f5578480f:xue,__wbg_self_55106357ec10ecd4:_ue,__wbg_constructor_fd0d22d60b7dfd72:Sue,__wbg_name_7f439d24ff7ba1d3:Bue,__wbg_textcontent_67e4e811cbdf00fc:Cue,__wbg_stack_44743fb7d71926a0:Eue,__wbg_wbgtestoutputwriteln_4db3bd64914ec955:Mue,__wbg_stack_436273c21658169b:Tue,__wbg_new_abda76e883ba8a5f:Fue,__wbg_stack_658279fe44541cf6:Lue,__wbg_error_f851667af71bcfc6:Iue,__wbindgen_cb_drop:Pue,__wbg_queueMicrotask_481971b0d87f3dd4:Uue,__wbg_queueMicrotask_3cbae2ec6b6cd3d6:Rue,__wbindgen_jsval_loose_eq:kue,__wbindgen_boolean_get:Nue,__wbindgen_bigint_from_u64:Due,__wbg_get_bd8e338fbd5f5cc8:Oue,__wbg_length_cd7af8117672b8b8:Que,__wbg_new_16b304a2cfa7ff4a:jue,__wbg_newnoargs_e258087cd0daa0ea:Hue,__wbg_next_40fc327bfc8770e6:zue,__wbg_next_196c84450b364254:Vue,__wbg_done_298b57d23c0fc80c:Gue,__wbg_value_d93c65011f51a456:Wue,__wbg_iterator_2cee6dadfd956dfa:Kue,__wbg_get_e3c254076557e348:que,__wbg_call_27c0f87801dedf93:Xue,__wbg_self_ce0dbfc45cf2f5be:$ue,__wbg_window_c6fb939a7f436783:Yue,__wbg_globalThis_d1e6af4856ba331b:Jue,__wbg_global_207b558942527489:Zue,__wbindgen_is_undefined:ece,__wbg_set_d4638f722068f043:tce,__wbg_forEach_2be8de7347d63332:nce,__wbg_isArray_2ab64d95e09ea0ae:rce,__wbg_instanceof_ArrayBuffer_836825be07d4c9d2:ice,__wbg_message_5bf28016c2b49cfb:sce,__wbg_name_e7429f0dda6079e2:oce,__wbg_call_b3ca7c6051f9bec1:ace,__wbg_new_81740750da40724f:lce,__wbg_resolve_b0083a7967828ec8:uce,__wbg_then_0c86a60e8fcfe9f6:cce,__wbg_buffer_12d079cc21e14bdb:Ace,__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb:fce,__wbg_new_63b92bc8671ed464:dce,__wbg_set_a47bac70306a19a7:hce,__wbg_length_c20a40f15020d68a:pce,__wbg_instanceof_Uint8Array_2b3bbecd033d19f6:gce,__wbg_newwithlength_e9b4878cebadb3d3:mce,__wbg_subarray_a1f73cd4b5b42fe1:vce,__wbindgen_debug_string:yce,__wbindgen_throw:wce,__wbindgen_memory:bce,__wbindgen_closure_wrapper464:xce}},kle),FD=rr.memory,_ce=rr.__wbg_pos_free,Sce=rr.__wbg_get_pos_0,Bce=rr.__wbg_set_pos_0,Cce=rr.__wbg_get_pos_1,Ece=rr.__wbg_set_pos_1,Mce=rr.__wbg_get_pos_2,Tce=rr.__wbg_set_pos_2,Fce=rr.pos_new,Lce=rr.__wbg_universe_free,Ice=rr.__wbg_get_universe_width,Pce=rr.__wbg_set_universe_width,Uce=rr.__wbg_get_universe_height,Rce=rr.__wbg_set_universe_height,kce=rr.__wbg_get_universe_depth,Nce=rr.__wbg_set_universe_depth,Dce=rr.universe_live_neighbor_count,Oce=rr.universe_new,Qce=rr.universe_set_by_step,jce=rr.universe_set_cell,Hce=rr.universe_cells,zce=rr.universe_get_cells,Vce=rr.universe_tick,Gce=rr.universe_width,Wce=rr.universe_height,Kce=rr.universe_depth,qce=rr.sphericalvoronoi_generate,Xce=rr.sphericalvoronoi_get_edges,$ce=rr.sphericalvoronoi_get_other,Yce=rr.__wbg_sphericalvoronoi_free,Jce=rr.__wbg_pointdistribution_free,Zce=rr.pointdistribution_set_random_points,eAe=rr.pointdistribution_set_spherical_random_points,tAe=rr.pointdistribution_set_points,nAe=rr.pointdistribution_normalize,rAe=rr.pointdistribution_points,iAe=rr.convexhull_convex_hull,sAe=rr.__wbgt_convex_hull_0,oAe=rr.spherical_triangulate,aAe=rr.__wbg_convexhull_free,lAe=rr.__wbg_wasmbindgentestcontext_free,uAe=rr.wasmbindgentestcontext_new,cAe=rr.wasmbindgentestcontext_args,AAe=rr.wasmbindgentestcontext_run,fAe=rr.__wbgtest_console_log,dAe=rr.__wbgtest_console_debug,hAe=rr.__wbgtest_console_info,pAe=rr.__wbgtest_console_warn,gAe=rr.__wbgtest_console_error,mAe=rr.__wbindgen_malloc,vAe=rr.__wbindgen_realloc,yAe=rr.__wbindgen_export_2,wAe=rr._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hefdbf5588b2dcc56,bAe=rr.__wbindgen_add_to_stack_pointer,xAe=rr.__wbindgen_free,_Ae=rr.__wbindgen_exn_store,SAe=rr.wasm_bindgen__convert__closures__invoke0_mut__h0c64a2bbdaa75861,BAe=rr.wasm_bindgen__convert__closures__invoke3_mut__h01e1809ec35787cf,CAe=rr.wasm_bindgen__convert__closures__invoke2_mut__h66c87c984101e9c4,EAe=Object.freeze(Object.defineProperty({__proto__:null,__wbg_convexhull_free:aAe,__wbg_get_pos_0:Sce,__wbg_get_pos_1:Cce,__wbg_get_pos_2:Mce,__wbg_get_universe_depth:kce,__wbg_get_universe_height:Uce,__wbg_get_universe_width:Ice,__wbg_pointdistribution_free:Jce,__wbg_pos_free:_ce,__wbg_set_pos_0:Bce,__wbg_set_pos_1:Ece,__wbg_set_pos_2:Tce,__wbg_set_universe_depth:Nce,__wbg_set_universe_height:Rce,__wbg_set_universe_width:Pce,__wbg_sphericalvoronoi_free:Yce,__wbg_universe_free:Lce,__wbg_wasmbindgentestcontext_free:lAe,__wbgt_convex_hull_0:sAe,__wbgtest_console_debug:dAe,__wbgtest_console_error:gAe,__wbgtest_console_info:hAe,__wbgtest_console_log:fAe,__wbgtest_console_warn:pAe,__wbindgen_add_to_stack_pointer:bAe,__wbindgen_exn_store:_Ae,__wbindgen_export_2:yAe,__wbindgen_free:xAe,__wbindgen_malloc:mAe,__wbindgen_realloc:vAe,_dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hefdbf5588b2dcc56:wAe,convexhull_convex_hull:iAe,memory:FD,pointdistribution_normalize:nAe,pointdistribution_points:rAe,pointdistribution_set_points:tAe,pointdistribution_set_random_points:Zce,pointdistribution_set_spherical_random_points:eAe,pos_new:Fce,spherical_triangulate:oAe,sphericalvoronoi_generate:qce,sphericalvoronoi_get_edges:Xce,sphericalvoronoi_get_other:$ce,universe_cells:Hce,universe_depth:Kce,universe_get_cells:zce,universe_height:Wce,universe_live_neighbor_count:Dce,universe_new:Oce,universe_set_by_step:Qce,universe_set_cell:jce,universe_tick:Vce,universe_width:Gce,wasm_bindgen__convert__closures__invoke0_mut__h0c64a2bbdaa75861:SAe,wasm_bindgen__convert__closures__invoke2_mut__h66c87c984101e9c4:CAe,wasm_bindgen__convert__closures__invoke3_mut__h01e1809ec35787cf:BAe,wasmbindgentestcontext_args:cAe,wasmbindgentestcontext_new:uAe,wasmbindgentestcontext_run:AAe},Symbol.toStringTag,{value:"Module"}));Dle(EAe);const MAe="_GameOfLifeScene_17gio_1",TAe={GameOfLifeScene:MAe},FAe=n=>{const{trigger:e,isStart:t,speed:r,resolution:i,size:s}=pl(v=>v.gameOfLife),o=s+.05,[a,l,c,u]=Y.useMemo(()=>{const v=Ab.new(Xc.new(...i));return v.set_cell(Xc.new(1,2,2)),v.set_cell(Xc.new(2,2,2)),v.set_cell(Xc.new(3,2,2)),[v,v.width(),v.height(),v.depth()]},[i]),A=Y.useCallback(()=>new Uint8Array(FD.buffer,a.cells(),l*c*u),[u,c,a,l]),[d,f]=Y.useState(A()),[m,w]=Y.useState(),b=Y.useCallback(()=>{w(setInterval(()=>{a.tick(),f(A())},r))},[r,a,A]);Y.useEffect(()=>{m&&(clearInterval(m),b())},[m,b,r]),Y.useEffect(()=>(clearInterval(m),t&&b(),()=>clearInterval(m)),[m,t,b]),Y.useEffect(()=>{e&&(a.tick(),f(A()))},[A,e,a]);const p=(v,y,B)=>(v*l+y)*c+B;return K.jsxs(xle,{className:TAe.GameOfLifeScene,children:[K.jsx(Ple,{}),K.jsx("ambientLight",{intensity:1}),K.jsx("pointLight",{position:[l*o+.5,c*o+.5,u*o+.5],intensity:100}),K.jsx(Tle,{enablePan:!1}),Array(l).fill(null).map((v,y)=>Array(c).fill(null).map((B,P)=>Array(u).fill(null).map((U,x)=>d[p(y,P,x)]===Yle.Alive&&K.jsx(Rle,{args:[s,s,s],position:[(x-u/2)*o,(y-l/2)*o,(P-c/2)*o],children:K.jsx("meshStandardMaterial",{color:"white",wireframe:!1})},`${y} ${P} ${x}`))))]})},LAe=Y.memo(FAe),IAe=(n,e)=>K.jsx(OR,{scene:K.jsx(LAe,{}),controlPanel:K.jsx(RZ,{})}),PAe=Y.memo(Y.forwardRef(IAe)),UAe=n=>{const{children:e}=n;let{to:t}=n;return typeof t=="string"&&(t=document.querySelector(t)),sP.createPortal(e,t||document.body)},RAe=Y.memo(UAe),kAe=n=>{const{routes:e}=n,[t,r]=Y.useState(!1);return Y.useEffect(()=>{const i=()=>{document.querySelector("[data-portal-links]")?r(!0):requestAnimationFrame(i)};i()},[]),t?K.jsx(RAe,{to:"[data-portal-links]",children:K.jsx(hr,{children:e.map(({path:i,linkText:s})=>K.jsx(m0,{to:i,children:s},i))})}):null},NAe=Y.memo(kAe),DAe={trigger:0,trigger2:0,pointCount:100,sizes:[.8,.5],scales:{pointsField:.9,points:1}},LD=Il({name:"planet",initialState:DAe,reducers:{setState(n,e){const t=(r,i)=>Object.entries(r).reduce((s,[o,a])=>{if(Gm(a)){const l=i[o];return{...s,[o]:{...l,...t(a,l)}}}return{...s,[o]:a}},{});return{...n,...t(e.payload,n)}},incrementTrigger(n,e){n[e.payload]+=1}}}),{actions:u0}=LD,{reducer:OAe}=LD,QAe="_Description_1nla5_1",jAe="_describtion_1nla5_4",HAe="_left_1nla5_10",zAe="_right_1nla5_13",VAe="_top_1nla5_16",GAe="_bottom_1nla5_19",WAe="_dark_1nla5_22",Ny={Description:QAe,describtion:jAe,left:HAe,right:zAe,top:VAe,bottom:GAe,dark:WAe},KAe=(n,e)=>{const{className:t,children:r,onMouseEnter:i,onMouseLeave:s,describtion:o,...a}=n,l=Y.useRef(null);Y.useImperativeHandle(e,()=>l.current);const c=Y.useRef(null),[u,A]=Y.useState(!1),d=Y.useContext(Gb),[f,m]=Y.useState([]);Y.useEffect(()=>{const b=l.current,p=c.current;if(!b||!p)return;const v=()=>{const y=b.getBoundingClientRect(),B=p.getBoundingClientRect(),P=B.left-y.width,U=B.right+y.width,x=[];P<0?x.push("right"):U>window.innerWidth&&x.push("left");const D=B.top-y.height,Q=B.bottom+y.height;D<0?x.push("bottom"):Q>window.innerHeight&&x.push("top"),m(x)};return window.addEventListener("resize",v),v(),()=>{window.removeEventListener("resize",v)}},[]);let w=null;return K.jsxs(jr,{className:lr(Ny.Description,[t,Ny[d]]),ref:l,onMouseLeave:b=>{w&&clearTimeout(w),A(!1),s==null||s(b)},onMouseEnter:b=>{w=setTimeout(()=>{A(!0)},250),i==null||i(b)},align:"center",...a,children:[Y.cloneElement(r,{ref:c}),u&&K.jsx("div",{className:lr(Ny.describtion,[...f.map(b=>Ny[b])]),children:o})]})},qAe=Y.memo(Y.forwardRef(KAe)),XAe="_Foldden_1grx4_1",$Ae="_dark_1grx4_1",YAe="_to_1grx4_4",JAe="_crossSvg_1grx4_4",Dy={Foldden:XAe,dark:$Ae,to:YAe,crossSvg:JAe},ZAe=(n,e)=>{const{className:t,children:r,to:i,...s}=n,o=Y.useRef(null);Y.useImperativeHandle(e,()=>o.current);const[a,l]=Y.useState(!1),c=Y.useContext(Gb);return K.jsx(hr,{className:lr(Dy.Foldden,[t,Dy[c]]),ref:o,...s,children:a?K.jsxs(jr,{className:Dy.to,children:[K.jsx(pC,{className:Dy.crossSvg,onClick:()=>l(!1)}),i]}):Y.cloneElement(r,{onClick:u=>{l(!0),r==null||r.props.onClick(u)}})})},efe=Y.memo(Y.forwardRef(ZAe)),tfe="_PlanetPanel_oyx1s_1",nfe="_settingsSvg_oyx1s_7",rfe="_playRange_oyx1s_10",ife="_resol_oyx1s_13",sfe="_range_oyx1s_21",ofe="_play_oyx1s_10",afe="_is_play_oyx1s_38",lfe="_tick_oyx1s_41",mF={PlanetPanel:tfe,settingsSvg:nfe,playRange:rfe,resol:ife,range:sfe,play:ofe,is_play:afe,tick:lfe},ufe={},cfe=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const s=R0(),{sizes:o,scales:{pointsField:a,points:l}}=pl(c=>c.planet);return K.jsxs(hr,{className:lr(ufe.FieldSettings,[t]),ref:i,...r,children:[K.jsxs(jr,{children:[K.jsx(a1,{min:0,max:1,values:[a],onChange:c=>{s(u0.setState({scales:{pointsField:c[0]}}))}}),K.jsx(a1,{min:0,max:5,step:1,values:[l],onChange:c=>{s(u0.setState({scales:{points:c[0]}}))}})]}),K.jsx(jr,{children:o.map((c,u)=>K.jsx(a1,{min:0,max:100,step:1,values:[c*100],onChange:A=>{s(u0.setState({sizes:o.toSpliced(u,1,A[0]/100)}))}},u))})]})},Afe=Y.memo(Y.forwardRef(cfe)),ffe=(n,e)=>{const{className:t}=n,r=R0(),{pointCount:i}=pl(s=>s.planet);return K.jsxs(hr,{className:lr(mF.PlanetPanel,[t]),align:"end",justify:"between",gap:8,children:[K.jsx(efe,{to:K.jsx(Afe,{}),children:K.jsx(qAe,{describtion:"Настройки поля",children:K.jsx("div",{children:K.jsx(TP,{className:mF.settingsSvg})})})}),K.jsxs(hr,{align:"center",gap:8,children:[K.jsxs(jr,{gap:16,children:[K.jsx("button",{onClick:()=>{r(u0.incrementTrigger("trigger2"))},children:"Обновить"}),K.jsx("button",{onClick:()=>{r(u0.incrementTrigger("trigger"))},children:"tick"})]}),K.jsx(vd,{type:"number",max:3e5,value:i,onBlur:s=>{const o=Number(s.target.value);r(u0.setState({pointCount:o}))}})]})]})},dfe=Y.memo(Y.forwardRef(ffe)),hfe="_PlanetScene_1s9ur_1",pfe="_dark_1s9ur_6",vF={PlanetScene:hfe,dark:pfe},gfe=n=>{const{points:e,edges:t}=n,{trigger:r,trigger2:i,scales:{pointsField:s},sizes:o,pointCount:a}=pl(y=>y.planet),[l,c]=Y.useState([1,1]),u=vp(),A=Y.useRef(null);Y.useEffect(()=>{const y=()=>{const B=A.current;if(!B)return;const P=B.getBoundingClientRect();c([P.width,P.height])};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}},[o,u]);const d=Y.useMemo(()=>l.map((y,B)=>y*o[B]),[l,o]),f=Y.useMemo(()=>l.map((y,B)=>(y-d[B])/2),[l,d]),m=Y.useMemo(()=>e.map(y=>y.map((B,P)=>B*d[P]*s+f[P]+d[P]/2*(1-s))),[f,e,s,d]),w=Y.useMemo(()=>t.map(y=>y.map(B=>m[B])),[t,m]),b=Y.useMemo(()=>[[f[0],f[1]],[d[0]+f[0],f[1]],[d[0]+f[0],d[1]+f[1]],[f[0],d[1]+f[1]],[f[0],f[1]]],[f,d]),{scales:p}=pl(y=>y.planet),v=Y.useContext(Gb);return K.jsxs("svg",{className:lr(vF.PlanetScene,[vF[v]]),ref:A,children:[w.map((y,B)=>K.jsx("path",{stroke:"red",strokeWidth:p.points,fill:"none",d:y.filter(P=>P).map((P,U)=>{const[x,D]=P;return U===0?`M ${x} ${D}`:`L ${x} ${D}`}).join(" ")},B)),m.map((y,B)=>K.jsx(Y.Fragment,{children:K.jsx("circle",{cx:y[0],cy:y[1],r:p.points,fill:t[t.length-1]===B?"blue":t.includes(B)?"yellow":"white"})},B)),K.jsx("path",{stroke:"red",strokeWidth:p.points,fill:"none",d:b.map((y,B)=>{const[P,U]=y;return B===0?`M ${P} ${U}`:`L ${P} ${U}`}).join(" ")})]})},ID=Y.memo(gfe);class mfe{constructor(e){}tick(){}}const vfe=n=>{const{dist:e}=n,{trigger:t}=pl(a=>a.planet),[r,i]=Y.useState([]),s=Y.useMemo(()=>(i([]),new mfe(e.points)),[e]);Y.useEffect(()=>{if(t){const a=s.tick();a!==void 0&&i(l=>[...l,a])}},[s,t]);const o=Y.useMemo(()=>e.points,[e]);return K.jsx(ID,{points:o,edges:r})},yfe=Y.memo(vfe),wfe=n=>{const{dist:e}=n,{trigger:t}=pl(o=>o.planet),[r,i]=Y.useState([]);Y.useEffect(()=>{i([])},[e]),Y.useEffect(()=>{if(t){const o=e.get_triangles();o!==void 0&&i(o.map(a=>[...a,a[0]]))}},[e,t]);const s=Y.useMemo(()=>e.points,[e.points]);return K.jsx(ID,{points:s,edges:r})},bfe=Y.memo(wfe),xfe=(n,e)=>{const{trigger2:t,pointCount:r}=pl(o=>o.planet),i=Y.useMemo(()=>Rh.set_random_points(r,[1,1]),[r,t]),s=[{path:"convex_hull",linkText:"Выпуклая оболочка",to:K.jsx(yfe,{dist:i})},{path:"triangulation",linkText:"Триангуляция",to:K.jsx(bfe,{dist:i})}];return K.jsx(DR,{theme:"dark",children:K.jsx(OR,{scene:K.jsxs(K.Fragment,{children:[K.jsx(NAe,{routes:s}),K.jsxs(Uv,{children:[K.jsx(ac,{index:!0,element:K.jsx(fC,{to:s[0].path})}),s.map(({path:o,to:a})=>K.jsx(ac,{path:`${o}/*`,element:a},o))]})]}),controlPanel:K.jsx(dfe,{})})})},_fe=Y.memo(Y.forwardRef(xfe)),Sfe=()=>{const n=[{route:"planet",linkText:"Планета",to:K.jsx(_fe,{})},{route:"game_of_life",linkText:"Игра в жизнь",to:K.jsx(PAe,{})}];return K.jsxs("div",{className:lr(A6.App),children:[K.jsxs(Uv,{children:[K.jsx(ac,{index:!0,element:K.jsx(fC,{to:n[0].route})}),n.map(({route:e,to:t})=>K.jsx(ac,{path:`${e}/*`,element:t},e))]}),K.jsx(jr,{"data-portal-links":!0,className:A6.pageLinks,children:K.jsx(hr,{children:n.map(({route:e,linkText:t})=>K.jsx(m0,{to:e,children:t},e))})})]})},Bfe={links:[]},Cfe=Il({name:"links",initialState:Bfe,reducers:{setState(n,e){return{...n,...e.payload}}}}),{reducer:Efe}=Cfe,Mfe=n=>{const{children:e,initialState:t}=n,r={gameOfLife:CZ,planet:OAe,links:Efe};return K.jsx(wR,{rootReducers:r,initialState:t,localStateConfig:[["gameOfLife",["speed","size","resolution"]]],keyName:"scene",children:e})},Tfe=Y.memo(Mfe),Ffe=()=>K.jsx(DR,{theme:"light",children:K.jsx(Tfe,{children:K.jsx(Sfe,{})})}),b5=[{name:"Acer Nitro XV2 XV272KLVbmiipruzx",typePixel:"IPS",size:27,refreshRate:155,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/acer-27-monitor-xv272klvbmiipruzx-um-hx2ee-v18-chernyy-1453934081/?asb2=hKtGowtAMzc2dAoe6_ik6rrtgeGYKUWJ7tcgTucdIpxV-9n1_alg75H11AZPnpxfURSnC4d54SQoEEBxxq7FBQ&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:49312},{name:"cdek",link:"https://cdek.shopping/p/8265847/igrovoi-monitor-acer-xv272k-27-4k-3840x2160-160-gc-fast-ips-cyornyi",price:51736},{name:"kns",link:"https://www.kns.ru/product/monitor-acer-nitro-xv272klvbmiipruzx/",price:52992},{name:"pleer",link:"https://www.pleer.ru/product_1003314_Acer_XV272KLVbmiipruzx_UMHX2EEV18.html",price:53059},{name:"xcom",link:"https://www.xcom-shop.ru/acer_nitro_xv272klvbmiipruzx_1001900.html",price:56070},{name:"dns",link:"https://www.dns-shop.ru/product/dcaf8f172805ed20/27-monitor-acer-nitro-xv272klvbmiipruzx-cernyj/",price:64799}]},{name:"Acer Nitro VG272K V3",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/5643617/igrovoi-monitor-acer-nitro-vg272k-v3-27-3840-x-2160-160-gc-fast-ips-cernyi",price:46734}]},{name:"Acer Nitro XV273K Pbmiipx ",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"pleer",link:"https://www.pleer.ru/product_1029343_Acer_XV273KPbmiipphzx_UMHX3EEP04.html",price:64991}]},{name:"Acer Nitro XV275K P3biipruzx",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/5643599/igrovoi-monitor-acer-nitro-xv275k-p3-27-3840-x-2160-160-gc-fast-ips-cernyi",price:53277},{name:"ozon",link:"https://www.ozon.ru/product/acer-27-monitor-xv275k-miniled-1291385031/?asb2=sgGOjbGAHAVuaRP9a1kJPl1m9ipmOopwwpFAkDOjegPQsmX6NxUSqWKvbuFktccDFBu28zOnlWNs815tSezrxA&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:72057}]},{name:"Acer Nitro XV275KP",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/acer-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-nitro-xv275kp-27-4k-ips-led-144hz/140689595/p",price:68963}]},{name:"Acer Nitro XV2 XV275KVymipruzx",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"kns",link:"https://www.kns.ru/product/monitor-acer-nitro-xv275kvymipruzx/",price:50094},{name:"dns",link:"https://www.dns-shop.ru/product/41862943f23ed9cb/27-monitor-acer-nitro-xv275kvymipruzx-cernyj/",price:60299,isNotHave:!0},{name:"ozon",link:"https://www.ozon.ru/product/acer-27-monitor-nitro-xv275kvymipruzx-seryy-krasnyy-1550954838/?asb2=Dspn6rfHRs5jKCQZJpZbQc_AU6Rk9g3GtNB65z1sSDRVtYsck6ucX8I3raThSk2K8EHa6wGuwZvXx8cbZpxHoA&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:61490}]},{name:"Acer Nitro XV282K KVbmiipruzx ",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"pleer",link:"https://www.pleer.ru/product_1001977_Acer_Nitro_XV282KKVbmiipruz_UMPX2EEV07.html",price:45133},{name:"ozon",link:"https://www.ozon.ru/product/acer-28-monitor-um-hx2ee-v18-chernyy-1600460140/?asb2=YJARaZk0f9KdGjwh7xRoQFoey_epxqaOXHsxKOcGVRdz-GRVgE0HPQb--eC7BN-s&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:48642},{name:"citilink",link:"https://www.citilink.ru/product/monitor-acer-nitro-xv282kkvbmiipruzx-28-chernyi-um-px2ee-v07-1811830/",price:61990},{name:"kns",link:"https://www.kns.ru/product/monitor-acer-nitro-xv282kkvbmiipruzx/",price:69386}]},{name:"Acer Predator XB3 XB273KLVbmiipruzx",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9752908/monitor-igrovoi-acer-predator-xb273k-lv-27-3840-x-2160-160-gc-fast-ips-cernyi",price:54074},{name:"kns",link:"https://www.kns.ru/product/monitor-acer-predator-xb273klvbmiipruzx/",price:67979}]},{name:"Acer Predator X28",typePixel:"IPS",size:28,refreshRate:152,resolution:[3840,2160],stores:[{name:"05",link:"https://05.ru/catalog/computers/monitor/225622/",price:53190},{name:"kns",link:"https://www.kns.ru/product/monitor-acer-predator-x28/",price:60030},{name:"ozon",link:"https://www.ozon.ru/product/acer-28-monitor-predator-x28-chernyy-1590186687/?asb2=Kmq3Mj2iv1lv58oBcmOe-PUtG-ySv4RMxQLhIz_nbOfhqEaHpTfnqB2gx93Xlblw8x0fRZZSmcxx_8ETdWk4Zw&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:76448}]},{name:"AOC AGON Pro AG276UX",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/10238469/monitor-igrovoi-aoc-agon-pro-ag276ux-27-3840-x-2160-160-gc-fast-ips-temno-seryi",price:54122}]},{name:"AOC U27G10",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9949987/igrovoi-monitor-aoc-u27g10-27-3840x2160-fast-ips-160-gc-cernyi",price:37386}]},{name:"AOC U27G3X",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/215580/monitor-aoc-u27g3x-27-4k-ips-160-gc-cernyi",price:49583}]},{name:"AOC U27G3XM",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/6392097/igrovoi-monitor-aoc-u27g3xm-27-3840-x-2160-ips-160-gc-cernyi",price:51796}]},{name:"AOC U28G2XU2/BK",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/492f18e6bc90ed20/28-monitor-aoc-u28g2xu2bk-cernyj/",price:58499,isNotHave:!0},{name:"kns",link:"https://www.kns.ru/product/monitor-aoc-u28g2xu2-bk/",price:58705},{name:"pleer",link:"https://d.docs.live.net/f6aaaef86eb8ead2/Документы/U28G2XU",price:59475},{name:"citilink",link:"https://www.citilink.ru/product/monitor-aoc-gaming-u28g2xu2-28-chernyi-krasnyi-1867099/",price:69850}]},{name:"AOpen 27XV5KVymipruzx",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"kns",link:"https://www.kns.ru/product/monitor-aopen-27xv5kvymipruzx/",price:52744}]},{name:"ARDOR GAMING NOVA ULTRA AU27H1UE",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/4c8771aa5dcced20/27-monitor-ardor-gaming-nova-ultra-au27h1ue-cernyj/",price:43499}]},{name:"ASUS ROG Strix XG27UCS",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9247931/monitor-igrovoi-asus-rog-xg27ucs-27-3840-x-2160-160-gc-fast-ips-cernyi",price:44482}]},{name:"ASUS ROG Strix XG27UQ",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9862713/monitor-igrovoi-asus-rog-xg27uq-27-3840-x-2160-144-gc-ips-cernyi",price:51759}]},{name:"ASUS ROG Strix XG27UQR",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/4294e002435ced20/27-monitor-asus-rog-strix-xg27uqr-cernyj/",price:66299}]},{name:"ASUS ROG Swift PG27UQR ",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/5880397/igrovoi-monitor-asus-rog-swift-pg27uqr-27-4k-160-gc-ips-fast-cernyi",price:55486},{name:"kns",link:"https://www.kns.ru/product/monitor-asus-rog-swift-pg27uqr/",price:115837},{name:"dns",link:"https://www.dns-shop.ru/product/f14dddccc401ed20/27-monitor-asus-rog-swift-pg27uqr-cernyj/",price:116499},{name:"citilink",link:"citilinkhttps://www.citilink.ru/product/monitor-asus-rog-swift-pg27uqr-27-chernyi-90lm03a0-b02370-1991267/",price:116490}]},{name:"ASUS ROG Swift PG27UQR-W",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/2575492/igrovoi-monitor-asus-rog-swift-pg27uqr-w-27-4k-160-gc-ips-fast-belyi",price:57661}]},{name:"Asus TUF Gaming VG28UQL1A",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9939673/monitor-igrovoi-asus-tuf-gaming-vg28uql1a-28-3840x2160-144-gc-fast-ips-cernyi",price:53024},{name:"dns",link:"https://www.dns-shop.ru/product/daba3007435eed20/28-monitor-asus-tuf-gaming-vg28uql1a-cernyj/",price:58499},{name:"ozon",link:"https://www.ozon.ru/product/asus-28-monitor-vg28uql1a-3840x2160-chernyy-1099710391/?asb2=KYehAsmtElRZvEBic7DxKk26nGmGO0goIHPq__eVJS2GrjhmvoTaOngp3hdTX-wh&avtc=1&avte=2&avts=1718691835&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:62009},{name:"kns",link:"https://www.kns.ru/product/monitor-asus-tuf-gaming-vg28uql1a/",price:62597},{name:"citilink",link:"https://www.citilink.ru/product/monitor-asus-28-tuf-gaming-vg28uql1a-chernyi-ips-led-16-9-hdmi-display-1598571/",price:76770}]},{name:"BenQ MOBIUZ EX2710U",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"kns",link:"https://www.kns.ru/product/monitor-benq-mobiuz-ex2710u/",price:89424}]},{name:"Digma Gaming DM-MONG2740",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"citilink",link:"https://www.citilink.ru/product/monitor-digma-gaming-dm-mong2740-27-temno-seryi-1807915/",price:49990},{name:"kns",link:"https://www.kns.ru/product/monitor-digma-gaming-dm-mong2740/",price:50177}]},{name:"Gigabyte M27U ",typePixel:"IPS",size:27,refreshRate:150,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/gigabyte-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-m27u-27-4k-ips-led-160hz/140392749/p",price:54394},{name:"ozon",link:"https://www.ozon.ru/product/gigabyte-27-monitor-m27u-1605079221/?asb2=kxOYiGGA3esZJnEptAzp71y2TgRbqPzRMQTEdaLba8FWgDcW1zk2o73oibLzlDOwJCfq7SIihcWnsA3qxM8yHw&avtc=1&avte=2&avts=1718691931&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:67339},{name:"cdek",link:"https://cdek.shopping/p/5880997/igrovoi-monitor-gigabyte-m27u-27-3840-x-2160-fast-ips-160-gc-cernyi",price:64639},{name:"kns",link:"https://www.kns.ru/product/monitor-gigabyte-m27u/",price:68227},{name:"citilink",link:"https://www.citilink.ru/product/monitor-gigabyte-27-m27u-ips-4k-cher-1ms-hdmi-dp-usb-m-m-has-160hz-400-2019968/",price:69990}]},{name:"Gigabyte M28U",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/4000227/monitor-gigabyte-m28u-28-uhd-3840-x-2160-144-gc-ips-cernyi",price:44484},{name:"ozon",link:"https://www.ozon.ru/product/gigabyte-28-monitor-m28u-chernyy-1600400934/?asb2=VaWlr_FeQQ2Y1aUifqA1T2k7e-fVN9L9nP-PtwcHeK_Jb5R9jLEGxYXdmf_EozsY&avtc=1&avte=2&avts=1718691931&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:53200},{name:"dns",link:"https://www.dns-shop.ru/product/3aff51dadaf82ff2/28-monitor-gigabyte-m28u-cernyj/",price:57499,isNotHave:!0},{name:"kns",link:"https://www.kns.ru/product/monitor-gigabyte-m28u/",price:57960},{name:"citilink",link:"https://www.citilink.ru/product/monitor-gigabyte-m28u-28-chernyi-20vm0-m28uba-1ekr-2ekr-1509122/",price:59990},{name:"pleer",link:"https://www.pleer.ru/product_901184_GigaByte_M28U.html",price:63483}]},{name:"Gigabyte M28U ARM Edition",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/aoc-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-u28g2xu2-bk-28-4k-ips-wled-144hz/140619459/p",price:47046},{name:"cdek",link:"https://cdek.shopping/p/5880976/igrovoi-monitor-gigabyte-m28u-ae-315-3840-x-2160-fast-ips-144-gc-cernyi",price:49575},{name:"ozon",link:"https://www.ozon.ru/product/gigabyte-28-monitor-m28u-ae-chernyy-utsenennyy-tovar-1564531345/?asb2=paVfNYy1HHGCwfDHTeJDcd94uS21WA3istQKw0XcuYlkSbbGA0rPCnhyOVJ_hqug7oxpRiMdkA99U_Q6lM7XVA&avtc=1&avte=2&avts=1718691931&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:54323},{name:"kns",link:"https://www.kns.ru/product/monitor-gigabyte-m28u-arm-edition/",price:73775}]},{name:"Hiper Gaming JM28EUI",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/hiper-28-monitor-gaming-jm28eui-3840-2160-ultra-hd-144gts-ips-0-5ms-hdmi-dp-3d-podstavka-chernyy-1097224723/?asb2=8oziYY_w7E-nhCHxft_dmW0gHq7qpbWPX0_Xy92ytVDwhQX4Ia8iZkOdDHdKMiQT&avtc=1&avte=2&avts=1718692065&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:38498},{name:"kns",link:"https://www.kns.ru/product/monitor-hiper-gaming-jm28eui/",price:38585}]},{name:"HP OMEN 27k",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/hp-27-monitor-omen-27k-chernyy-1575934725/?asb2=nCe19ohO2eUCnMUsuKgOykrYPZZn6kmGByD70b1zKoBpq2SaZeIWenB-RMc-x76f&avtc=1&avte=2&avts=1718692128&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:63370},{name:"cdek",link:"https://cdek.shopping/p/1285325/igrovoi-monitor-hp-omen-27k-27-4k-144-gc-fast-ips-cernyi",price:64901}]},{name:"KTC M27P20 Pro",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.kns.ru/product/monitor-ktc-m27p20p/",price:56594},{name:"ozon",link:"https://www.ozon.ru/product/ktc-27-monitor-m27p20-pro-ips-160hz-3840x2160-chernyy-896920917/?asb2=ooi7O2WkH-ioRD2tsnBXM_WqQggxDG66XdESQzb14kUXE4Hprl0NUM3UmquOWZ0x&avtc=1&avte=2&avts=1718692161&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:58095}]},{name:"LC-Power LC-M27-4K-UHD-144-V2",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/lc-power-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-lc-m27-4k-uhd-144-v2-27-ips-lcd-144hz/139579894/p",price:52397}]},{name:"LG 27UQ750",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/2506565/monitor-lg-27uq750-27-4k-nano-ips-144-gc-cernyiserebristyi",price:48501}]},{name:"LG 27GP850P-B.AEU",typePixel:"IPS",size:27,refreshRate:165,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/lg-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-27gp850p-b.aeu-27-4k-ips-led-165hz/140689709/p",price:25676}]},{name:"LG 27GP95U",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/3218101/monitor-lg-27gp95u-27-4k-nano-ips-160-gc-cernyi",price:48144}]},{name:"LG 27GP95R-B",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/4737986/monitor-lg-27gp95r-27-4k-nano-ips-160-gc-cernyi",price:57149},{name:"dns",link:"https://www.dns-shop.ru/product/db68ade8ab6bed20/27-monitor-lg-27gp95r-b-cernyj/",price:75299}]},{name:"LG UltraGear 27GR93U-B",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/4665687/igrovoi-monitor-lg-ultragear-27gr93u-27-4k-ultra-fast-ips-144-gc-cyornyi",price:44885},{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/lg-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-27gr93u-b-27-4k-ips-led-144hz/140361150/p",price:46973},{name:"ozon",link:"https://www.ozon.ru/product/lg-27-monitor-27gr93u-b-aruz-chernyy-1286886109/?asb2=Km8HJ1R13OOvshi5y_-GeIkmtx3m1026bDamccHewXj8wy_QyrGTnYzxkn7iV4uP&avtc=1&avte=2&avts=1718692215&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:48904},{name:"kns",link:"https://www.kns.ru/product/monitor-lg-ultragear-27gr93u-b/",price:56552},{name:"xcom",link:"https://www.xcom-shop.ru/lg_ultragear_27gr93u-b_1072495.html",price:59010},{name:"dns",link:"https://www.dns-shop.ru/product/d5b4dcb4e58ded20/27-monitor-lg-ultragear-27gr93u-b-cernyj/",price:59999,isNotHave:!0},{name:"xcom",link:"https://www.xcom-shop.ru/lg_ultragear_27gr93u-b_1075845.html",price:61646},{name:"citilink",link:"https://www.citilink.ru/product/monitor-lg-ultragear-27gr93u-b-27-chernyi-27gr93u-b-aruz-1977402/",price:63380}]},{name:"LG UltraGear 27GP95RP-B",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/lg-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-27gp95rp-b-27-4k-ips-led-160hz/140444174/p",price:48885},{name:"pleer",link:"https://www.pleer.ru/product_1033515_LG_27GP95RP_BARUZ.html",price:59285},{name:"ozon",link:"https://www.ozon.ru/product/lg-27-monitor-ultragear-27gp95rp-b-chernyy-1590187793/?asb2=IrG8Fw8sHkkYgxwceQdwkAV7mEW1YAxmThEQp7GnZRMHe-Za-a3Y2g5o6kKb7EEF_FvkyhR9FaEfHwe6Dx2J-g&avtc=1&avte=2&avts=1718692215&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:60489},{name:"kns",link:"https://www.kns.ru/product/monitor-lg-ultragear-27gp95rp-b/",price:61106},{name:"xcom",link:"https://www.xcom-shop.ru/lg_ultragear_27gp95rp-b_1087675.html",price:64124},{name:"citilink",link:"https://www.citilink.ru/product/monitor-lg-27-27gp95rp-b-ips-4k-cher-1ms-hdmi-dp-has-piv-160hz-400cd-2003342/",price:72210}]},{name:"MSI MAG 274UPF",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/8455740/igrovoi-monitor-msi-mag274upf-27-3840x2160-fast-ips-160-gc-cyornyi",price:39523},{name:"ozon",link:"https://www.ozon.ru/product/msi-27-monitor-mag-274upf-chernyy-1459947404/?asb2=-DKtKFpgvRWfk_hyRVwk6PHQPy8dqd96O4wZo5S5LYkNgwRFBbAet2v2hul0HQ_C3J1P979qQeX3faB-uEax_w&avtc=1&avte=2&avts=1718692389&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:42622},{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/msi-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-mag-274upf-27-4k-ips-led-144hz/140910941/p",price:46502},{name:"05",link:"https://05.ru/catalog/computers/monitor/222956/",price:49990},{name:"kns",link:"https://www.kns.ru/product/monitor-msi-mag-274upf/",price:56552},{name:"dns",link:"https://www.dns-shop.ru/product/6592349205a2ed20/27-monitor-msi-mag-274upf-cernyj/",price:67999}]},{name:"MSI MAG274UPF E2",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/msi-27-monitor-mag274upf-e2-chernyy-matovyy-1546398989/?asb2=VKzy37AFCLupT0cBXgfXYeLi052Naaxupf5jL2eCZm5N04ngpfeuWsrBemRT9Db_&avtc=1&avte=2&avts=1718692389&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:37120},{name:"cdek",link:"https://cdek.shopping/p/10511101/monitor-msi-mag274upf-e2-27-3840x2160-160-gc-rapid-ips-cyornyi",price:40266}]},{name:"MSI MAG 274URFW",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/10511095/monitor-msi-mag274urfw-27-3840x2160-160-gc-rapid-ips-belyi",price:41900}]},{name:"MSI MAG 274URFW",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/msi-27-monitor-mag274urfw-belyy-1546095513/?asb2=SC68gq7AzXFwX4yvxFMICypZoCnFTiiSsmlU32TYoBiH9sO1GLJxfjTbh8xknHoZYVow2QYSCNRJjSJQeRbIvQ&avtc=1&avte=2&avts=1718692389&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:38403},{name:"cdek",link:"https://cdek.shopping/p/8767229/monitor-msi-mag-274urfw-27-3840x2160-160-gc-fast-ips-belyi",price:43089}]},{name:"MSI MPG 274URF QD",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/msi-27-monitor-optix-mpg-274urf-qd-chernyy-1579479086/?asb2=JlpwayJupWX9TFnYortVQbH8KREiq47Amkr5mlTgMXyHcm9anFK18kqf1mW3kd9AewdzRQ2N28VfiIi8ReYEMg&avtc=1&avte=2&avts=1718692389&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:63194},{name:"kns",link:"https://www.kns.ru/product/monitor-msi-mpg-274urf-qd/",price:68393},{name:"citilink",link:"https://www.citilink.ru/product/monitor-msi-27-mpg-274urf-qd-ips-4k-cher-hdmi-dp-usb-has-piv-144hz-400-2009159/",price:78780}]},{name:"MSI Optix MAG281URF",typePixel:"IPS",size:27.9,refreshRate:144,resolution:[3840,2160],stores:[{name:"05",link:"https://05.ru/catalog/computers/monitor/218715/",price:52990}]},{name:"Philips Evnia 5000 27M1F5800",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/912237/igrovoi-monitor-philips-27m1f5800-27-3840-x-2160-144-gc-nano-ips-cernyi",price:47915},{name:"kns",link:"https://www.kns.ru/product/monitor-philips-27m1f5800/",price:92239},{name:"citilink",link:"https://www.citilink.ru/product/monitor-philips-evnia-5000-27m1f5800-27-chernyi-i-seryi-27m1f5800-00-0-2006566/",price:93040}]},{name:"Philips 279M1RVE",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/912190/igrovoi-monitor-philips-279m1rve-27-3840-x-2160-144-gc-nano-ips-cernyi",price:54319}]},{name:"Philips 27M1N5900",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/905181/igrovoi-monitor-philips-27m1n5900-27-3840-x-2160-144-gc-ips-cernyi",price:52971}]},{name:"Titan Army P27A2V ",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/89079fc31626ed20/27-monitor-titan-army-p27a2v-cernyj/",price:43299}]},{name:"Samsung Odyssey G7 S28BG700EI",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/433a91c0d954ed20/28-monitor-samsung-odyssey-g7-s28bg700ei-cernyj/",price:49999},{name:"ozon",link:"https://www.ozon.ru/product/samsung-28-monitor-s28bg700ei-chernyy-1528902988/?asb2=C2n80hlBLf1GMMS2LwogCM3NCO6YsBUVHOIODZnWE9hVxU2kDYSTIh91N39mE6Go&avtc=1&avte=2&avts=1718692647&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:52045},{name:"kns",link:"https://www.kns.ru/product/monitor-samsung-odyssey-g7-s28bg700ei/",price:52992},{name:"xcom",link:"https://www.xcom-shop.ru/samsung_s28bg700ei_1087684.html",price:56175},{name:"citilink",link:"https://www.citilink.ru/product/monitor-samsung-28-s28bg700ei-ips-4k-cher-1ms-hdmi-dp-usb-m-m-has-piv-1990682/",price:56250}]},{name:"Samsung Odyssey G7 S28BG700EP",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/samsung-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-odyssey-g7-s28bg700ep-28-4k-ips-led-144hz/139778633/p",price:43296}]},{name:"Samsung S28BG700EC",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/4922854/monitor-samsung-s28bg700ec-28-3840-x-2160-144-gc-ips-cernyi",price:40763}]},{name:"Samsung Odyssey G7 G70B",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/8048709/igrovoi-monitor-samsung-odyssey-g7-g70b-28-3840x2160-144-gc-ips-cernyi",price:50869}]}],Lfe="_App_o4gj5_1",Ife="_list_o4gj5_4",Pfe="_monitor_o4gj5_10",Ufe="_isHide_o4gj5_15",Rfe="_head_o4gj5_18",kfe="_store_o4gj5_21",bh={App:Lfe,list:Ife,monitor:Pfe,isHide:Ufe,head:Rfe,store:kfe},Nfe="_Currency_1pmic_1",Dfe={Currency:Nfe},Ofe=(n,e)=>{const{value:t,currency:r,startCurrency:i}=n,s=t%1===0,o={USD:"$",RUB:"₽",EUR:"€"},[a,l]=Y.useState(t);Y.useEffect(()=>{l(t)},[t]),Y.useEffect(()=>{fetch("https://www.cbr-xml-daily.ru/daily_json.js").then(u=>u.json()).then(u=>{i!=="RUB"?r!=="RUB"&&l(t*u.Valute[i].Value/u.Valute[r].Value):r!=="RUB"&&l(t/u.Valute[r].Value)})},[r,i,t]);const c=Y.useMemo(()=>{const u=String(a.toFixed(0)).replace(/\B(?=(\d{3})+(?!\d))/g," ");return[s?u:[u,String(a.toFixed(2)).split(".")[1]].join("."),o[r]].join(" ")},[r,a,o]);return K.jsx("span",{className:Dfe.Currency,children:c})},yF=Y.memo(Y.forwardRef(Ofe)),Qfe=()=>{const[n,e]=Y.useState("name"),[t,r]=Y.useState([]),[i,s]=Y.useState(!1),[o,a]=Y.useState(!1),l=Y.useMemo(()=>b5.reduce((u,{stores:A})=>(A.map(({name:d})=>{u.includes(d)||u.push(d)}),u),[]),[]),c=Y.useMemo(()=>n?[...b5].sort((u,A)=>{if(n==="price"){let d=Math.min(...u.stores.map(({price:m})=>m)),f=Math.min(...A.stores.map(({price:m})=>m));return d>f?1:dA[n]?1:u[n]s(u.target.checked)}),K.jsx("input",{type:"checkbox",checked:o,onChange:u=>a(u.target.checked)})]}),K.jsx(hr,{gap:8,children:l.map(u=>K.jsx(hr,{align:"center",gap:8,onClick:()=>{t.includes(u)?r(t.filter(A=>A!==u)):r([...t,u])},children:K.jsx("span",{style:{backgroundColor:t.includes(u)?"red":"transparent"},children:u})}))}),K.jsx(Ib,{defaultValue:n,values:[void 0,"name","size","price"],onChange:u=>{e(u)}}),K.jsx(jr,{className:bh.list,ref:u=>{},justify:"beetwen",children:c.map(({name:u,size:A,stores:d},f)=>{const[m,w]=Y.useState(i);Y.useEffect(()=>{w(i)},[i]);const b=d.filter(({name:p,isNotHave:v})=>!t.includes(p)&&!v).length===0;return o&&b?null:K.jsxs(jr,{className:lr(bh.monitor,{[bh.isHide]:b}),gap:8,children:[K.jsxs(hr,{className:bh.head,justify:"between",onClick:()=>w(!m),children:[K.jsxs(hr,{gap:8,children:[K.jsx("span",{children:u}),K.jsxs("span",{children:[A,'"']})]}),K.jsx("b",{children:K.jsx(yF,{value:Math.min(...d.filter(({name:p,isNotHave:v})=>!t.includes(p)&&!v).map(({price:p})=>p)),currency:"RUB"})})]},u),K.jsx(hC,{in:!m,timeout:100,children:K.jsx(jr,{children:d.map(({name:p,link:v,price:y,isNotHave:B},P)=>!(o&&B)&&K.jsxs(hr,{className:lr(bh.store,{[bh.isHide]:t.includes(p)}),gap:8,children:[K.jsx("a",{href:v,children:p}),B&&K.jsx("span",{style:{color:"red"},children:"Нет в наличии"}),K.jsx(yF,{value:y,currency:"RUB",startCurrency:"RUB"})]},P))})})]},f)})})]})},jfe=()=>K.jsx(Qfe,{}),Hfe={PI:{name:"Программная инженерия",number:"09.03.04"}},Eg={DGTU:{name:"Дагестанский государственный технический университет",link:"https://dstu.ru/",specialities:Object.entries(Hfe).filter(([n])=>["PI"].includes(n)).reduce((n,[e,t])=>({...n,[e]:t}),{}),departments:{POVTIAS:{name:"программного обеспечения вычислительной техники и автоматизированных систем",link:"https://dstu.ru/sveden/kafedra-programmnogo-obespechenija-vychislitelnoi-tekhniki-i-avtomatizirovannykh-sistem1"}}}},zfe=[{univercity:Eg.DGTU,degree:"Бакалавр",department:Eg.DGTU.departments.POVTIAS,speciality:Eg.DGTU.specialities.PI,time:{start:new Date("01 September 2019 14:48 UTC"),end:new Date("06 June 2023 14:48 UTC")}},{univercity:Eg.DGTU,degree:"Магистр",department:Eg.DGTU.departments.POVTIAS,speciality:Eg.DGTU.specialities.PI,time:{start:new Date("01 September 2019 14:48 UTC")}}],J3={rustc:{link:"https://github.com/rust-lang/rust"},axum:{link:"https://docs.rs/axum/latest/axum/"},actix:{link:"https://docs.rs/actix-web/latest/actix_web/"},tokio:{link:"https://docs.rs/tokio/latest/tokio/"},diesel:{link:"https://docs.rs/diesel/latest/diesel/"},sqlx:{link:"https://docs.rs/sqlx/latest/sqlx/"},"wasm-bindgen":{link:"https://docs.rs/wasm-bindgen/latest/wasm_bindgen/"},"#[marker]":{link:"https://github.com/rust-lang/rust/issues/29864"}},fb={Axum:{stars:5,link:J3.axum.link},Actix:{stars:5,link:"https://docs.rs/actix/latest/actix/"},Tokio:{stars:4,link:J3.tokio.link},Diesel:{stars:4,link:"https://docs.rs/diesel/latest/diesel/"},Wasm:{stars:5},rustc:{stars:5,link:"https://github.com/rust-lang/rust"},CLI:{stars:3},Asynchrony:{stars:5},"Concurrency&Parallelism":{stars:5}},Vfe={Rust:{stars:5},Python:{stars:3},TypeScript:{stars:5},HTML:{stars:4},CSS:{stars:4}},Gfe={MySQL:{stars:4},Django:{stars:3},Axum:fb.Axum,Actix:fb.Actix,"REST API":{stars:4}},Wfe={React:{stars:5},"Redux Toolkit":{stars:5},Wasm:fb.Wasm,"RTK Query":{stars:4},Vite:{stars:4},Webpack:{stars:3},Storybook:{stars:3}},Kfe={Linux:{stars:4},Git:{stars:4},GitHub:{stars:4,link:"https://github.com/10takla"}},qfe=Object.entries({Rust:fb,"Языки программирования":Vfe,Backend:Gfe,Frontend:Wfe,Прочее:Kfe}).reduce((n,[e,t])=>({...n,[e]:Object.entries(t).map(([r,i])=>({name:r,...i}))}),{}),Xfe=[["The rust Programming Language","https://doc.rust-lang.org/book/"],["The rust Reference","https://doc.rust-lang.org/reference/"],["Rust Atomics and Locks. Low-Level Concurrency in Practice","https://marabos.nl/atomics/","https://marabos.nl/atomics/cover.jpg"],["Asynchronous Programming in rust","https://rust-lang.github.io/async-book/"],["The Cargo Book","https://doc.rust-lang.org/cargo/"],["The Little Book of rust Macros","https://veykril.github.io/tlborm/"],["Rust 🦀 and WebAssembly 🕸","https://rustwasm.github.io/book/"],["Rust By Example","https://doc.rust-lang.org/rust-by-example/"],["The rustdoc book","https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html"],["Чистый код. Создание, анализ и рефакторинг","https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882","https://content.img-gorod.ru/pim/products/images/5a/d8/019078a6-1495-7d9c-b59d-99614d315ad8.jpg?width=0&height=1200&fit=bounds"],["Rust Compiler Development Guide","https://rustc-dev-guide.rust-lang.org/"],["The `wasm-bindgen` Guide","https://rustwasm.github.io/wasm-bindgen/"]],$fe="_ToggleLanguage_1pkzq_1",Yfe={ToggleLanguage:$fe},Jfe=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const[s,[o,a]]=Y.useContext(aA),c=vp().pathname.split("/").pop();Y.useEffect(()=>{a(c)},[c]);const u=AC();return K.jsxs(K.Fragment,{children:[K.jsx(Uv,{children:K.jsx(ac,{index:!0,element:K.jsx(fC,{to:o})})}),K.jsx(Ib,{className:lr(Yfe.ToggleLanguage,[t]),ref:i,...r,values:[["en","Eng"],["ru","Рус"]],defaultValue:c,onChange:A=>u(A)})]})},Zfe=Y.memo(Y.forwardRef(Jfe)),as=({children:n,...e})=>{const[t,[r]]=Y.useContext(aA);return e[r]??n},ede={},tde={"Дагестанский государственный технический университет":"Dagestan State Technical University","Кафедра программного обеспечения вычислительной техники и автоматизированных систем":"Department of Computer Science Software and Automated Systems",Бакалавр:"Bachelor",Магистр:"Master","Программная инженерия":"Software engineering"},nde={"Языки программирования":"Programming Languages",Прочее:"Other"},rde={"Абакар Летифов":"Abakar Letifov",Инфо:"Info",Обучение:"Learning",Опыт:"Experience",Образование:"Education",Книги:"Books",Навыки:"Skills",...nde,...tde,...ede},aA=Y.createContext([()=>{},["en",()=>{}]]),ide=({children:n,lang:e})=>{const[t,r]=Y.useState(e),i=Y.useCallback(s=>{switch(t){case"en":return rde[s]??s;default:return s}},[t]);return K.jsx(aA.Provider,{value:[i,[t,r]],children:n})},sde="_Block_h431e_1",ode={Block:sde},ade=(n,e)=>{const{className:t,children:r,head:i,...s}=n,o=Y.useRef(null);return Y.useImperativeHandle(e,()=>o.current),K.jsxs(jr,{className:lr(ode.Block,[t]),ref:o,...s,children:[K.jsx("h4",{children:i}),r]})},PD=Y.memo(Y.forwardRef(ade)),lde="_Projects_1bbc1_1",ude={Projects:lde},cde=()=>{const n=[{name:"std-reset",descr:K.jsx(as,{en:"Many reworked implementations from the standard library, as well as new solutions for easy coding.",children:"Множество переработанных реализаций из стандартной библиотеки, а также новые решения для упрощения кодинга."})},{name:"lf-structs",descr:K.jsx(as,{en:"Various implementations of free locking and atomicity of data structures.",children:"Различные реализации свободных блокировок и атомарных структур."})},{name:"fork rust",descr:K.jsx(as,{en:K.jsxs(K.Fragment,{children:["Changing ",K.jsx(mr,{children:K.jsx(ra,{children:"#[marker]"})})," attribute and ",K.jsx("a",{href:"https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence",children:"overlap rules"})]}),children:K.jsxs(K.Fragment,{children:["Изменение атрибута ",K.jsx(mr,{children:K.jsx(ra,{children:"#[marker]"})})," и ",K.jsx("a",{href:"https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence",children:"правила перкрытий"})]})})},{name:"ulbi",descr:K.jsx(as,{en:"Web application: Platforms for publishing content",children:"Web-приложение: Платформа для публикации контента."}),githubLinks:["ulbi"]},{name:"planet",descr:K.jsx(as,{en:"Web Game: Plots of Planets",children:"Web-игра: Участки планет"}),githubLinks:["planet-frontend","planet-backend"]}];return K.jsx(jr,{className:ude.Projects,tag:"ol",gap:8,children:n.map(e=>K.jsxs("li",{children:[K.jsx("a",{href:`https://github.com/10takla/${e.name}`,children:K.jsx(mr,{children:e.name})}),K.jsx("br",{}),K.jsx("i",{children:e.descr})]},e.name))})},Ade="_Experience_jxmhp_1",fde="_algoLinks_jxmhp_14",dde="_item_jxmhp_24",hde="_lang_jxmhp_35",qm={Experience:Ade,algoLinks:fde,item:dde,lang:hde},ra=({children:n})=>{let e=J3[n];return K.jsx("a",{href:e.link,children:n})},mr=({children:n})=>K.jsx("code",{className:qm.lang,children:n}),pde=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const s=[K.jsx("p",{children:K.jsxs(as,{en:K.jsxs(K.Fragment,{children:["I've been developing in ",K.jsx(mr,{children:"rust"})," for over a year."]}),children:["Веду разработку на языке ",K.jsx(mr,{children:"rust"})," больше года."]})}),K.jsx(as,{en:K.jsxs("div",{children:["Previous experience:",K.jsxs("div",{children:["Languages I have learnt: ",K.jsx(mr,{children:"Python"}),", ",K.jsx(mr,{children:"TypeScript"}),", ",K.jsx(mr,{children:"PHP"}),".",K.jsx("br",{}),"Previously mainly learnt ",K.jsx(mr,{children:"Python"})," and ",K.jsx(mr,{children:"TypeScript"}),":",K.jsxs(jr,{tag:"ul",children:[K.jsxs("li",{children:[K.jsx(mr,{children:"Python"})," at Junior level.",K.jsx("br",{}),K.jsxs("ol",{children:["mastered ",K.jsx(mr,{children:"Django"}),", wrote a ",K.jsx("a",{href:"https://github.com/10takla/planet-backend",children:"server"})]})]}),K.jsxs("li",{children:[K.jsx(mr,{children:"React"}),"/",K.jsx(mr,{children:"TypeScript"}),"/",K.jsx(mr,{children:"Redux"})," at Junior-Middle level.",K.jsxs("ol",{children:["completed the ",K.jsx("a",{href:"https://ulbitv.ru/frontend",children:"course"})," on which I wrote the ",K.jsx("a",{href:"https://github.com/10takla/ulbi",children:"project"})]})]})]})]})]}),children:K.jsxs("div",{children:[K.jsx("b",{children:"Предыдущий опыт"}),K.jsxs("div",{children:["Языки, которые я изучал: ",K.jsx(mr,{children:"Python"}),", ",K.jsx(mr,{children:"TypeScript"}),", ",K.jsx(mr,{children:"PHP"}),".",K.jsx("br",{}),"Раньше в основном осваивал ",K.jsx(mr,{children:"Python"})," и ",K.jsx(mr,{children:"TypeScript"}),":",K.jsxs(jr,{tag:"ul",children:[K.jsxs("li",{children:[K.jsx(mr,{children:"Python"})," на уровне Junior.",K.jsx("br",{}),K.jsxs("ol",{children:["осваивал ",K.jsx(mr,{children:"Django"}),", писал ",K.jsx("a",{href:"https://github.com/10takla/planet-backend",children:"сервер"})]})]}),K.jsxs("li",{children:[K.jsx(mr,{children:"React"}),"/",K.jsx(mr,{children:"TypeScript"}),"/",K.jsx(mr,{children:"Redux"})," на уровне Junior-Middle.",K.jsxs("ol",{children:["прошел ",K.jsx("a",{href:"https://ulbitv.ru/frontend",children:"курс"})," на котором писал ",K.jsx("a",{href:"https://github.com/10takla/ulbi",children:"проект"})]})]})]})]})]})}),K.jsx(as,{en:K.jsxs("div",{children:[K.jsx("span",{children:"Used in practice:"}),K.jsx("ul",{children:[K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:K.jsx(ra,{children:"axum"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"actix"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"diesel"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"sqlx"})})]}),K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:"wasm"}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"wasm-bindgen"})}),";"]}),"ffi to c/c++/python;",K.jsxs(K.Fragment,{children:["Concurrency at ",K.jsx("u",{children:"atomics"})," level, ",K.jsx("u",{children:"memory ordering"}),", ",K.jsx("u",{children:"futex"})," system calls;"]}),K.jsxs(K.Fragment,{children:["Asynchronous programming, particularly ",K.jsx(mr,{children:K.jsx(ra,{children:"tokio"})}),";"]}),"CLI applications;","I translate all copied code into procedural, declarative macros;",K.jsxs(K.Fragment,{children:["I always accompany all logically important code with ",K.jsx("u",{children:"unit"})," and integration tests."]})].map((o,a)=>K.jsx("li",{children:o},a))})]}),children:K.jsxs("div",{children:[K.jsx("span",{children:"Использовал на практике:"}),K.jsx("ul",{children:[K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:K.jsx(ra,{children:"axum"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"actix"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"diesel"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"sqlx"})})]}),K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:"wasm"}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"wasm-bindgen"})}),";"]}),"ffi к c/c++/python;",K.jsxs(K.Fragment,{children:["Concurrency на уровне ",K.jsx("u",{children:"atomics"}),", ",K.jsx("u",{children:"memory ordering"}),", системные вызовы ",K.jsx("u",{children:"futex"}),";"]}),K.jsxs(K.Fragment,{children:["Асинхронное программирование, в частности ",K.jsx(mr,{children:K.jsx(ra,{children:"tokio"})}),";"]}),"CLI-приложения;","Весь копипаст кода перевожу в процедурные, декларативные макросы;",K.jsxs(K.Fragment,{children:["Весь логически важный код всегда сопровождаю ",K.jsx("u",{children:"unit"})," и интеграционными тестами."]})].map((o,a)=>K.jsx("li",{children:o},a))})]})}),K.jsxs("div",{children:[K.jsx(as,{en:K.jsxs(K.Fragment,{children:["I have experience working with ",K.jsx(mr,{children:K.jsx(ra,{children:"rustc"})})," compiler. At the moment I am ",K.jsx("a",{href:"https://github.com/10takla/rust",children:"working"})," on modification of the compiler overlap rule."]}),children:K.jsxs(K.Fragment,{children:["Имею опыт работы с компилятором ",K.jsx(mr,{children:K.jsx(ra,{children:"rustc"})}),". На данный момент ",K.jsx("a",{href:"https://github.com/10takla/rust",children:"работаю"})," над модификацией правила перекрытий компиялтора."]})}),K.jsx("br",{}),K.jsx(as,{en:"I am currently developing 3 pet projects:",children:"В настоящее время разрабатываю 3 pet-проекта:"}),K.jsx("ol",{children:[K.jsxs(K.Fragment,{children:[K.jsx("u",{children:"low-level concurrency"}),", ",K.jsx("u",{children:"atomics"}),", ",K.jsx("u",{children:"memory ordering"}),";"]}),K.jsxs(K.Fragment,{children:[K.jsx("u",{children:"asynchrony"}),", ",K.jsx(mr,{children:K.jsx(ra,{children:"tokio"})}),";"]}),K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:K.jsx(ra,{children:"axum"})}),", ",K.jsx(mr,{children:"wasm"}),", ",K.jsx(as,{en:"graphical computing and algorithms, blockchain.",children:"графические вычисления и алгоритмы, блокчейн."}),"."]})].map((o,a)=>K.jsxs("li",{children:[K.jsx(as,{en:"Covers",children:"Охватывает"}),": ",o]},a))})]}),K.jsxs(hr,{tag:"span",align:"center",gap:8,children:[K.jsx("span",{children:K.jsxs(as,{en:K.jsxs(K.Fragment,{children:["I know algorithms and data structures, how to find optimal solutions for memory and CPU time. I constantly strive for ",K.jsx("u",{children:"O(log n)"})," and ",K.jsx("u",{children:"O(n)"})," complexity of algorithms."]}),children:["Знаю алгоритмы и структуры данных , как находить оптимальные решения для памяти и процессорного времени. Постоянно стремлюсь к ",K.jsx("u",{children:"O(log n)"})," и ",K.jsx("u",{children:"O(n)"})," сложности алгоритмов."]})}),K.jsxs(jr,{className:qm.algoLinks,align:"center",children:[K.jsx("a",{href:"https://leetcode.com/u/10takla/",children:K.jsx("img",{src:"https://assets.leetcode.com/static_assets/public/webpack_bundles/images/logo.c36eaf5e6.svg",alt:"leetcode",title:"leetcode"})}),K.jsx("a",{href:"https://www.codewars.com/users/10takla",children:K.jsx("img",{src:"https://www.codewars.com/packs/assets/logo.f607a0fb.svg",alt:"codewars",title:"codewars"})})]})]}),K.jsxs("div",{children:[K.jsx(as,{en:"Skilled in:",children:"Умею:"}),K.jsxs("ul",{children:[K.jsx("li",{children:K.jsx(as,{en:K.jsx(K.Fragment,{children:"Read, understand, and write rust documentation;"}),children:K.jsxs(K.Fragment,{children:["Читать, понимать, и писать ",K.jsx(mr,{children:"rust"}),"-овскую документацию;"]})})}),K.jsxs("li",{children:[K.jsx(as,{en:K.jsx(K.Fragment,{children:"Create and manage cargo packages in "}),children:K.jsxs(K.Fragment,{children:["Создавать и управлять пакетами ",K.jsx(mr,{children:"cargo"})," в системе "]})}),K.jsx(mr,{children:K.jsx("a",{href:"https://crates.io/",children:"crates.io"})}),"/",K.jsx(mr,{children:K.jsx("a",{href:"https://github.com/10takla",children:"github"})}),"."]})]})]}),K.jsx("div",{children:K.jsx(as,{en:K.jsxs(K.Fragment,{children:["I often communicate with the ",K.jsx(mr,{children:"rust"})," community on various forums and groups: I participate in discussions about language specifics; I suggest improvements and new ideas."]}),children:K.jsxs(K.Fragment,{children:["Часто коммуницирую с комьюнити ",K.jsx(mr,{children:"rust"})," на различных форумах и группах: участвую в обсуждениях специфик языка; предлагаю улучшения и новые идеи."]})})}),K.jsxs("div",{children:[K.jsx(as,{en:"I plan my workflow carefully. I use trackers such as ",children:"Грамотно планирую свой рабочий процесс. Использую трекеры такие как "}),K.jsx("a",{href:"https://www.jetbrains.com/youtrack/",children:"YouTrack"}),K.jsx(as,{en:" to keep track of tasks completed.",children:" для отслеживания выполненных задач."})]})];return K.jsxs(jr,{className:lr(qm.Experience,[t]),ref:i,justify:"between",...r,children:[s.map((o,a)=>K.jsx("div",{className:qm.item,children:o},a)),K.jsx(PD,{className:qm.item,head:K.jsx(as,{en:"Projects",children:"Проекты"}),children:K.jsx(cde,{})})]})},gde=Y.memo(Y.forwardRef(pde)),mde={},vde="_Books_1adal_1",yde="_book_1adal_6",wde="_cover_1adal_15",Z3={Books:vde,book:yde,cover:wde},bde=({book:n})=>{const e={name:n[0],link:n[1],cover:n[2]};return K.jsx(hr,{className:Z3.book,tag:"a",align:"center",justify:"center",href:e.link,title:e.name,children:e.cover?typeof e.cover=="string"?K.jsx("img",{src:e.cover}):e.cover:K.jsxs(hr,{className:Z3.cover,children:[K.jsx("div",{}),K.jsx("h1",{children:e.name})]})})},xde=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);return Y.useImperativeHandle(e,()=>i.current),K.jsx(hr,{className:lr(Z3.Books,[t]),ref:i,justify:"between",...r,children:Xfe.map((s,o)=>K.jsx(bde,{book:s},o))})},_de=Y.memo(Y.forwardRef(xde)),Sde="_Education_at8pr_1",Bde="_place_at8pr_4",Cde="_descript_at8pr_15",x5={Education:Sde,place:Bde,descript:Cde},Ede="_TimeLine_16al4_1",Mde="_time_16al4_1",Tde="_start_16al4_1",Fde="_end_16al4_4",Lde="_timeLine_16al4_7",Ide="_line_16al4_13",Pde="_mask_16al4_20",Ude="_leftPoint_16al4_28",Rde="_rightPoint_16al4_29",kde="_rightPointCont_16al4_30",Su={TimeLine:Ede,time:Mde,start:Tde,end:Fde,timeLine:Lde,line:Ide,mask:Pde,leftPoint:Ude,rightPoint:Rde,rightPointCont:kde},wF=n=>{const{className:e,time:t,...r}=n,[i,[s]]=Y.useContext(aA);return K.jsxs(hr,{className:lr(Su.time,[e]),tag:"span",gap:16,...r,children:[t.toLocaleString(s==="ru"?"ru-RU":"en-En",{month:"long"}),K.jsx("br",{}),t.getFullYear()]})},Nde=(n,e)=>{const{className:t,time:r,...i}=n,s=Y.useRef(null);return Y.useImperativeHandle(e,()=>s.current),K.jsxs(hr,{className:lr(Su.TimeLine,[t]),ref:s,...i,justify:"between",gap:8,align:"center",children:[K.jsx(wF,{time:r.start,className:Su.start}),K.jsxs("svg",{className:Su.timeLine,children:[K.jsxs("mask",{id:"lineMask",children:[K.jsx("rect",{width:"100%",height:"100%",fill:"white"}),K.jsx("rect",{className:Su.mask})]}),K.jsx("circle",{className:Su.leftPoint,cy:"50%"}),K.jsx("circle",{className:r.end?Su.rightPoint:Su.rightPointCont,cy:"50%"}),K.jsx("rect",{className:Su.line})]}),r.end?K.jsx(wF,{time:r.end,className:Su.end}):K.jsx("span",{className:lr(Su.time,[Su.end]),children:K.jsx(as,{en:K.jsx(K.Fragment,{children:"to date"}),children:K.jsxs(K.Fragment,{children:["по настоящее",K.jsx("br",{}),"время"]})})})]})},Dde=Y.memo(Y.forwardRef(Nde)),Ode=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const[s]=Y.useContext(aA);return K.jsx(jr,{className:lr(x5.Education,[t]),ref:i,...r,children:zfe.map((o,a)=>K.jsxs(jr,{className:x5.place,gap:4,children:[K.jsx("h4",{children:K.jsx("a",{href:o.univercity.link,children:s(o.univercity.name)})}),K.jsxs(jr,{className:x5.descript,children:[K.jsx("i",{children:K.jsx("a",{href:o.department.link,children:s(`Кафедра ${o.department.name}`)})}),K.jsxs("span",{children:[s(o.degree),K.jsxs("span",{style:{marginLeft:"0.4em"},children:[K.jsx("b",{children:o.speciality.number}),' "',s(o.speciality.name),'"']})]})]}),K.jsx(Dde,{time:o.time})]},a))})},Qde=Y.memo(Y.forwardRef(Ode)),jde=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const[s]=Y.useContext(aA),o=[[s("Образование"),K.jsx(Qde,{})],[s("Книги"),K.jsx(_de,{})]];return K.jsx(jr,{className:lr(mde.Learning,[t]),ref:i,...r,children:o.map(([a,l],c)=>K.jsxs("div",{children:[K.jsx("h3",{children:a}),l]},c))})},Hde=Y.memo(Y.forwardRef(jde)),zde="_Contacts_ybj7x_1",Vde="_contact_ybj7x_4",bF={Contacts:zde,contact:Vde},Gde=n=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#5f6368",...n},Y.createElement("path",{d:"M798-120q-125 0-247-54.5T329-329Q229-429 174.5-551T120-798q0-18 12-30t30-12h162q14 0 25 9.5t13 22.5l26 140q2 16-1 27t-11 19l-97 98q20 37 47.5 71.5T387-386q31 31 65 57.5t72 48.5l94-94q9-9 23.5-13.5T670-390l138 28q14 4 23 14.5t9 23.5v162q0 18-12 30t-30 12ZM241-600l66-66-17-94h-89q5 41 14 81t26 79Zm358 358q39 17 79.5 27t81.5 13v-88l-94-19-67 67ZM241-600Zm358 358Z"})),Wde=Gde,Kde=n=>Y.createElement("svg",{height:24,"aria-hidden":"true",viewBox:"0 0 24 24",width:24,"data-view-component":"true",className:"octicon octicon-mark-github v-align-middle color-fg-default",...n},Y.createElement("path",{d:"M12.5.75C6.146.75 1 5.896 1 12.25c0 5.089 3.292 9.387 7.863 10.91.575.101.79-.244.79-.546 0-.273-.014-1.178-.014-2.142-2.889.532-3.636-.704-3.866-1.35-.13-.331-.69-1.352-1.18-1.625-.402-.216-.977-.748-.014-.762.906-.014 1.553.834 1.769 1.179 1.035 1.74 2.688 1.25 3.349.948.1-.747.402-1.25.733-1.538-2.559-.287-5.232-1.279-5.232-5.678 0-1.25.445-2.285 1.178-3.09-.115-.288-.517-1.467.115-3.048 0 0 .963-.302 3.163 1.179.92-.259 1.897-.388 2.875-.388.977 0 1.955.13 2.875.388 2.2-1.495 3.162-1.179 3.162-1.179.633 1.581.23 2.76.115 3.048.733.805 1.179 1.825 1.179 3.09 0 4.413-2.688 5.39-5.247 5.678.417.36.776 1.05.776 2.128 0 1.538-.014 2.774-.014 3.162 0 .302.216.662.79.547C20.709 21.637 24 17.324 24 12.25 24 5.896 18.854.75 12.5.75Z"})),qde=Kde,Xde=n=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#5f6368",...n},Y.createElement("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"})),$de=Xde,Yde=n=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"24px",height:"24px",...n},Y.createElement("path",{fill:"#29b6f6",d:"M24 4A20 20 0 1 0 24 44A20 20 0 1 0 24 4Z"}),Y.createElement("path",{fill:"#fff",d:"M33.95,15l-3.746,19.126c0,0-0.161,0.874-1.245,0.874c-0.576,0-0.873-0.274-0.873-0.274l-8.114-6.733 l-3.97-2.001l-5.095-1.355c0,0-0.907-0.262-0.907-1.012c0-0.625,0.933-0.923,0.933-0.923l21.316-8.468 c-0.001-0.001,0.651-0.235,1.126-0.234C33.667,14,34,14.125,34,14.5C34,14.75,33.95,15,33.95,15z"}),Y.createElement("path",{fill:"#b0bec5",d:"M23,30.505l-3.426,3.374c0,0-0.149,0.115-0.348,0.12c-0.069,0.002-0.143-0.009-0.219-0.043 l0.964-5.965L23,30.505z"}),Y.createElement("path",{fill:"#cfd8dc",d:"M29.897,18.196c-0.169-0.22-0.481-0.26-0.701-0.093L16,26c0,0,2.106,5.892,2.427,6.912 c0.322,1.021,0.58,1.045,0.58,1.045l0.964-5.965l9.832-9.096C30.023,18.729,30.064,18.416,29.897,18.196z"})),Jde=Yde,Zde=[{link:"tel:+7 (932) 409-91-67",svg:K.jsx(Wde,{}),text:"+7 (932) 409-91-67"},{link:"https://github.com/10takla",svg:K.jsx(qde,{}),text:"10takla"},{link:"https://crates.io/users/10takla",img:"https://crates.io/assets/cargo.png",text:"crates.io"},{link:"mailto:letifovabakar50@gmail.com",svg:K.jsx($de,{}),text:"letifovabakar50@gmail.com"},{link:"https://t.me/gorog1",svg:K.jsx(Jde,{}),text:"gordon"}],ehe=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);return Y.useImperativeHandle(e,()=>i.current),K.jsx(hr,{className:lr(bF.Contacts,[t]),ref:i,align:"center",justify:"center",gap:8,...r,children:Zde.map(({link:s,svg:o,text:a,img:l})=>K.jsxs(hr,{className:bF.contact,align:"center",tag:s&&"a",href:s,children:[o&&o,l&&K.jsx("img",{src:l}),a]},s))})},the=Y.memo(Y.forwardRef(ehe)),xF={},nhe=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const[s]=Y.useContext(aA);return K.jsxs(jr,{className:lr(xF.PersonalInfo,[t]),ref:i,...r,children:[K.jsx(the,{}),",",K.jsxs(jr,{className:xF.person,children:[K.jsx("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0"}),K.jsxs("div",{style:{textAlign:"center"},children:[K.jsx("h1",{style:{marginBottom:0},children:s("Абакар Летифов")}),K.jsx("h2",{style:{marginTop:"0.2em"},children:K.jsx("u",{children:"Rust Developer"})})]})]})]})},rhe=Y.memo(Y.forwardRef(nhe)),ihe="_App_10dz0_6",she="_left_10dz0_34",ohe="_chapter_10dz0_34",ahe="_head_10dz0_34",lhe="_right_10dz0_35",uhe="_topLeft_10dz0_48",che="_nonPad_10dz0_79",Ahe="_topRight_10dz0_83",fhe="_lang_10dz0_100",dhe="_skillLine_10dz0_126",ec={App:ihe,left:she,chapter:ohe,head:ahe,right:lhe,topLeft:uhe,nonPad:che,topRight:Ahe,lang:fhe,skillLine:dhe},hhe={},phe=n=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#5f6368",...n},Y.createElement("path",{d:"M360-460h40v-80h40q17 0 28.5-11.5T480-580v-40q0-17-11.5-28.5T440-660h-80v200Zm40-120v-40h40v40h-40Zm120 120h80q17 0 28.5-11.5T640-500v-120q0-17-11.5-28.5T600-660h-80v200Zm40-40v-120h40v120h-40Zm120 40h40v-80h40v-40h-40v-40h40v-40h-80v200ZM320-240q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320Zm0-80h480v-480H320v480ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Zm160-720v480-480Z"})),ghe=phe;var UD={exports:{}},ul=Uint8Array,cl=Uint16Array,Bv=Uint32Array,yx=new ul([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),wx=new ul([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),eB=new ul([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),RD=function(n,e){for(var t=new cl(31),r=0;r<31;++r)t[r]=e+=1<>>1|(ws&21845)<<1;Vf=(Vf&52428)>>>2|(Vf&13107)<<2,Vf=(Vf&61680)>>>4|(Vf&3855)<<4,nB[ws]=((Vf&65280)>>>8|(Vf&255)<<8)>>>1}var nA=function(n,e,t){for(var r=n.length,i=0,s=new cl(e);i>>l]=c}else for(a=new cl(r),i=0;i>>15-n[i];return a},_d=new ul(288);for(var ws=0;ws<144;++ws)_d[ws]=8;for(var ws=144;ws<256;++ws)_d[ws]=9;for(var ws=256;ws<280;++ws)_d[ws]=7;for(var ws=280;ws<288;++ws)_d[ws]=8;var Cv=new ul(32);for(var ws=0;ws<32;++ws)Cv[ws]=5;var vhe=nA(_d,9,0),yhe=nA(_d,9,1),whe=nA(Cv,5,0),bhe=nA(Cv,5,1),_5=function(n){for(var e=n[0],t=1;te&&(e=n[t]);return e},$u=function(n,e,t){var r=e/8>>0;return(n[r]|n[r+1]<<8)>>>(e&7)&t},S5=function(n,e){var t=e/8>>0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>>(e&7)},k4=function(n){return(n/8>>0)+(n&7&&1)},OD=function(n,e,t){(e==null||e<0)&&(e=0),(t==null||t>n.length)&&(t=n.length);var r=new(n instanceof cl?cl:n instanceof Bv?Bv:ul)(t-e);return r.set(n.subarray(e,t)),r},xhe=function(n,e,t){var r=n.length,i=!e||t,s=!t||t.i;t||(t={}),e||(e=new ul(r*3));var o=function(Fe){var Pe=e.length;if(Fe>Pe){var Xe=new ul(Math.max(Pe*2,Fe));Xe.set(e),e=Xe}},a=t.f||0,l=t.p||0,c=t.b||0,u=t.l,A=t.d,d=t.m,f=t.n,m=r*8;do{if(!u){t.f=a=$u(n,l,1);var w=$u(n,l+1,3);if(l+=3,w)if(w==1)u=yhe,A=bhe,d=9,f=5;else if(w==2){var y=$u(n,l,31)+257,B=$u(n,l+10,15)+4,P=y+$u(n,l+5,31)+1;l+=14;for(var U=new ul(P),x=new ul(19),D=0;Dm)break;for(var O=nA(x,Q,1),D=0;D>>4;if(b<16)U[D++]=b;else{var X=0,ee=0;for(b==16?(ee=3+$u(n,l,3),l+=2,X=U[D-1]):b==17?(ee=3+$u(n,l,7),l+=3):b==18&&(ee=11+$u(n,l,127),l+=7);ee--;)U[D++]=X}}var $=U.subarray(0,y),re=U.subarray(y);d=_5($),f=_5(re),u=nA($,d,1),A=nA(re,f,1)}else throw"invalid block type";else{var b=k4(l)+4,p=n[b-4]|n[b-3]<<8,v=b+p;if(v>r){if(s)throw"unexpected EOF";break}i&&o(c+p),e.set(n.subarray(b,v),c),t.b=c+=p,t.p=l=v*8;continue}if(l>m)throw"unexpected EOF"}i&&o(c+131072);for(var ye=(1<>>4;if(l+=X&15,l>m)throw"unexpected EOF";if(!X)throw"invalid length/literal";if(ie<256)e[c++]=ie;else if(ie==256){u=null;break}else{var Ee=ie-254;if(ie>264){var D=ie-257,J=yx[D];Ee=$u(n,l,(1<>>4;if(!fe)throw"invalid distance";l+=fe&15;var re=mhe[Ae];if(Ae>3){var J=wx[Ae];re+=S5(n,l)&(1<m)throw"unexpected EOF";i&&o(c+131072);for(var be=c+Ee;c>0;n[r]|=t,n[r+1]|=t>>>8},Nm=function(n,e,t){t<<=e&7;var r=e/8>>0;n[r]|=t,n[r+1]|=t>>>8,n[r+2]|=t>>>16},B5=function(n,e){for(var t=[],r=0;rd&&(d=s[r].s);var f=new cl(d+1),m=rB(t[u-1],f,0);if(m>e){var r=0,w=0,b=m-e,p=1<e)w+=p-(1<>>=b;w>0;){var y=s[r].s;f[y]=0&&w;--r){var B=s[r].s;f[B]==e&&(--f[B],++w)}m=e}return[new ul(f),m]},rB=function(n,e,t){return n.s==-1?Math.max(rB(n.l,e,t+1),rB(n.r,e,t+1)):e[n.s]=t},SF=function(n){for(var e=n.length;e&&!n[--e];);for(var t=new cl(++e),r=0,i=n[0],s=1,o=function(l){t[r++]=l},a=1;a<=e;++a)if(n[a]==i&&a!=e)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=n[a]}return[t.subarray(0,r),e]},Dm=function(n,e){for(var t=0,r=0;r>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var s=0;s4&&!N[eB[G-1]];--G);var X=c+5<<3,ee=Dm(i,_d)+Dm(s,Cv)+o,$=Dm(i,d)+Dm(s,w)+o+14+3*G+Dm(x,N)+(2*x[16]+3*x[17]+7*x[18]);if(X<=ee&&X<=$)return mw(e,u,n.subarray(l,l+c));var re,ye,W,le;if(NA(e,u,1+($15&&(NA(e,u,fe[D]>>>5&127),u+=fe[D]>>>12)}}else re=vhe,ye=_d,W=whe,le=Cv;for(var D=0;D255){var Ae=r[D]>>>18&31;Nm(e,u,re[Ae+257]),u+=ye[Ae+257],Ae>7&&(NA(e,u,r[D]>>>23&31),u+=yx[Ae]);var be=r[D]&31;Nm(e,u,W[be]),u+=le[be],be>3&&(Nm(e,u,r[D]>>>5&8191),u+=wx[be])}else Nm(e,u,re[r[D]]),u+=ye[r[D]];return Nm(e,u,re[256]),u+ye[256]},_he=new Bv([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),She=new ul(0),Bhe=function(n,e,t,r,i,s){var o=n.length,a=new ul(r+o+5*(1+Math.floor(o/7e3))+i),l=a.subarray(r,a.length-i),c=0;if(!e||o<8)for(var u=0;u<=o;u+=65535){var A=u+65535;A>>13,m=d&8191,w=(1<7e3||N>24576)&&re>423){c=BF(n,l,0,P,U,x,Q,N,G,u-G,c),N=D=Q=0,G=u;for(var ye=0;ye<286;++ye)U[ye]=0;for(var ye=0;ye<30;++ye)x[ye]=0}var W=2,le=0,ie=m,Ee=ee-$&32767;if(re>2&&X==B(u-Ee))for(var J=Math.min(f,re)-1,fe=Math.min(32767,u),Ae=Math.min(258,re);Ee<=fe&&--ie&&ee!=$;){if(n[u+W]==n[u+W-Ee]){for(var be=0;beW){if(W=be,le=Ee,be>J)break;for(var Fe=Math.min(Ee,be-2),Pe=0,ye=0;yePe&&(Pe=At,$=Xe)}}}ee=$,$=b[ee],Ee+=ee-$+32768&32767}if(le){P[N++]=268435456|tB[W]<<18|_F[le];var Ue=tB[W]&31,Ke=_F[le]&31;Q+=yx[Ue]+wx[Ke],++U[257+Ue],++x[Ke],O=u+W,++D}else P[N++]=n[u],++U[n[u]]}}c=BF(n,l,s,P,U,x,Q,N,G,u-G,c),s||(c=mw(l,c,She))}return OD(a,0,r+k4(c)+i)},Che=function(){var n=1,e=0;return{p:function(t){for(var r=n,i=e,s=t.length,o=0;o!=s;){for(var a=Math.min(o+5552,s);o>>8<<16|(e&255)<<8|e>>>8)+((n&255)<<23)*2}}},Ehe=function(n,e,t,r,i){return Bhe(n,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):12+e.mem,t,r,!i)},Mhe=function(n,e,t){for(;t;++e)n[e]=t,t>>>=8},The=function(n,e){var t=e.level,r=t==0?0:t<6?1:t==9?3:2;n[0]=120,n[1]=r<<6|(r?32-2*r:1)},Fhe=function(n){if((n[0]&15)!=8||n[0]>>>4>7||(n[0]<<8|n[1])%31)throw"invalid zlib data";if(n[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function iB(n,e){e===void 0&&(e={});var t=Che();t.p(n);var r=Ehe(n,e,2,4);return The(r,e),Mhe(r,r.length-4,t.d()),r}function Lhe(n,e){return xhe((Fhe(n),n.subarray(2,-4)),e)}var yr=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function C5(){yr.console&&typeof yr.console.log=="function"&&yr.console.log.apply(yr.console,arguments)}var es={log:C5,warn:function(n){yr.console&&(typeof yr.console.warn=="function"?yr.console.warn.apply(yr.console,arguments):C5.call(null,arguments))},error:function(n){yr.console&&(typeof yr.console.error=="function"?yr.console.error.apply(yr.console,arguments):C5(n))}};function E5(n,e,t){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Fh(r.response,e,t)},r.onerror=function(){es.error("could not download file")},r.send()}function CF(n){var e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Oy(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(e)}}var p1,sB,Fh=yr.saveAs||((typeof window>"u"?"undefined":Ei(window))!=="object"||window!==yr?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,t){var r=yr.URL||yr.webkitURL,i=document.createElement("a");e=e||n.name||"download",i.download=e,i.rel="noopener",typeof n=="string"?(i.href=n,i.origin!==location.origin?CF(i.href)?E5(n,e,t):Oy(i,i.target="_blank"):Oy(i)):(i.href=r.createObjectURL(n),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Oy(i)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,t){if(e=e||n.name||"download",typeof n=="string")if(CF(n))E5(n,e,t);else{var r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){Oy(r)})}else navigator.msSaveOrOpenBlob(function(i,s){return s===void 0?s={autoBom:!1}:Ei(s)!=="object"&&(es.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(n,t),e)}:function(n,e,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return E5(n,e,t);var i=n.type==="application/octet-stream",s=/constructor/i.test(yr.HTMLElement)||yr.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&s)&&(typeof FileReader>"u"?"undefined":Ei(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var u=a.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location=u,r=null},a.readAsDataURL(n)}else{var l=yr.URL||yr.webkitURL,c=l.createObjectURL(n);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/** +${n.stack}`:r}const dF=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{Ln.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Vle(n,e,t,r){const i={a:n,b:e,cnt:1,dtor:t},s=(...o)=>{i.cnt++;const a=i.a;i.a=0;try{return r(a,i.b,...o)}finally{--i.cnt===0?(Ln.__wbindgen_export_2.get(i.dtor)(a,i.b),dF.unregister(i)):i.a=a}};return s.original=i,dF.register(s,i,i),s}function Gle(n,e,t){Ln._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hefdbf5588b2dcc56(n,e,dr(t))}function w5(n,e){if(!(n instanceof e))throw new Error(`expected instance of ${e.name}`);return n.ptr}let ky=null;function Wle(){return(ky===null||ky.byteLength===0)&&(ky=new Uint32Array(Ln.memory.buffer)),ky}function Kle(n,e){n=n>>>0;const r=Wle().subarray(n/4,n/4+e),i=[];for(let s=0;s"u"||new FinalizationRegistry(n=>Ln.__wbg_convexhull_free(n>>>0));const hF=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>Ln.__wbg_pointdistribution_free(n>>>0));class Rh{static __wrap(e){e=e>>>0;const t=Object.create(Rh.prototype);return t.__wbg_ptr=e,hF.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hF.unregister(this),e}free(){const e=this.__destroy_into_raw();Ln.__wbg_pointdistribution_free(e)}static set_random_points(e,t){const r=Ln.pointdistribution_set_random_points(e,dr(t));return Rh.__wrap(r)}static set_spherical_random_points(e,t){const r=Ln.pointdistribution_set_spherical_random_points(e,t);return Rh.__wrap(r)}static set_points(e){const t=Ln.pointdistribution_set_points(dr(e));return Rh.__wrap(t)}normalize(){const e=Ln.pointdistribution_normalize(this.__wbg_ptr);return Rh.__wrap(e)}get points(){const e=Ln.pointdistribution_points(this.__wbg_ptr);return Rd(e)}}const pF=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>Ln.__wbg_pos_free(n>>>0));class Xc{static __wrap(e){e=e>>>0;const t=Object.create(Xc.prototype);return t.__wbg_ptr=e,pF.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pF.unregister(this),e}free(){const e=this.__destroy_into_raw();Ln.__wbg_pos_free(e)}get 0(){return Ln.__wbg_get_pos_0(this.__wbg_ptr)>>>0}set 0(e){Ln.__wbg_set_pos_0(this.__wbg_ptr,e)}get 1(){return Ln.__wbg_get_pos_1(this.__wbg_ptr)>>>0}set 1(e){Ln.__wbg_set_pos_1(this.__wbg_ptr,e)}get 2(){return Ln.__wbg_get_pos_2(this.__wbg_ptr)>>>0}set 2(e){Ln.__wbg_set_pos_2(this.__wbg_ptr,e)}static new(e,t,r){const i=Ln.pos_new(e,t,r);return Xc.__wrap(i)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>Ln.__wbg_sphericalvoronoi_free(n>>>0));const gF=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>Ln.__wbg_universe_free(n>>>0));class Ab{static __wrap(e){e=e>>>0;const t=Object.create(Ab.prototype);return t.__wbg_ptr=e,gF.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gF.unregister(this),e}free(){const e=this.__destroy_into_raw();Ln.__wbg_universe_free(e)}get width(){return Ln.__wbg_get_universe_width(this.__wbg_ptr)>>>0}set width(e){Ln.__wbg_set_universe_width(this.__wbg_ptr,e)}get height(){return Ln.__wbg_get_universe_height(this.__wbg_ptr)>>>0}set height(e){Ln.__wbg_set_universe_height(this.__wbg_ptr,e)}get depth(){return Ln.__wbg_get_universe_depth(this.__wbg_ptr)>>>0}set depth(e){Ln.__wbg_set_universe_depth(this.__wbg_ptr,e)}live_neighbor_count(e){w5(e,Xc);var t=e.__destroy_into_raw();return Ln.universe_live_neighbor_count(this.__wbg_ptr,t)}static new(e){let t=0;Sv(e)||(w5(e,Xc),t=e.__destroy_into_raw());const r=Ln.universe_new(t);return Ab.__wrap(r)}set_by_step(e){Ln.universe_set_by_step(this.__wbg_ptr,e)}set_cell(e){try{const s=Ln.__wbindgen_add_to_stack_pointer(-16);w5(e,Xc);var t=e.__destroy_into_raw();Ln.universe_set_cell(s,this.__wbg_ptr,t);var r=Vo()[s/4+0],i=Vo()[s/4+1];if(i)throw Rd(r)}finally{Ln.__wbindgen_add_to_stack_pointer(16)}}width(){return Ln.__wbg_get_universe_width(this.__wbg_ptr)>>>0}height(){return Ln.__wbg_get_universe_height(this.__wbg_ptr)>>>0}depth(){return Ln.__wbg_get_universe_depth(this.__wbg_ptr)>>>0}cells(){return Ln.universe_cells(this.__wbg_ptr)>>>0}get_cells(){try{const i=Ln.__wbindgen_add_to_stack_pointer(-16);Ln.universe_get_cells(i,this.__wbg_ptr);var e=Vo()[i/4+0],t=Vo()[i/4+1],r=Kle(e,t).slice();return Ln.__wbindgen_free(e,t*4,4),r}finally{Ln.__wbindgen_add_to_stack_pointer(16)}}tick(){Ln.universe_tick(this.__wbg_ptr)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>Ln.__wbg_wasmbindgentestcontext_free(n>>>0));function Jle(n){return dr(n)}function Zle(n,e){const t=new Error(Ud(n,e));return dr(t)}function eue(n,e){const t=Vn(e),r=typeof t=="number"?t:void 0;Qle()[n/8+1]=Sv(r)?0:r,Vo()[n/4+0]=!Sv(r)}function tue(n){Rd(n)}function nue(n,e){const t=Ud(n,e);return dr(t)}function rue(n){const e=Vn(n).crypto;return dr(e)}function iue(n){const e=Vn(n);return typeof e=="object"&&e!==null}function sue(n){const e=Vn(n).process;return dr(e)}function oue(n){const e=Vn(n).versions;return dr(e)}function aue(n){const e=Vn(n).node;return dr(e)}function lue(n){return typeof Vn(n)=="string"}function uue(){return ku(function(){const n=module.require;return dr(n)},arguments)}function cue(n){return typeof Vn(n)=="function"}function Aue(n){const e=Vn(n).msCrypto;return dr(e)}function fue(){return ku(function(n,e){Vn(n).randomFillSync(Rd(e))},arguments)}function due(){return ku(function(n,e){Vn(n).getRandomValues(Vn(e))},arguments)}function hue(n,e){console.log(Ud(n,e))}function pue(n,e){const t=String(Vn(e)),r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function gue(n,e,t){const r=Vn(n).getElementById(Ud(e,t));return dr(r)}function mue(n,e,t){Vn(n).textContent=Ud(e,t)}function vue(n,e){const t=Vn(e),r=typeof t=="string"?t:void 0;var i=Sv(r)?0:Bp(r,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),s=lf;Vo()[n/4+1]=s,Vo()[n/4+0]=i}function yue(){return ku(function(n,e){try{var t={a:n,b:e},r=()=>{const i=t.a;t.a=0;try{return qle(i,t.b)}finally{t.a=i}};__wbg_test_invoke(r)}finally{t.a=t.b=0}},arguments)}function wue(n){const e=Vn(n);return dr(e)}function bue(n,e){const t=Vn(e).stack,r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function xue(){return dr(document)}function _ue(n){const e=Vn(n).self;return Sv(e)?0:dr(e)}function Sue(n){const e=Vn(n).constructor;return dr(e)}function Bue(n,e){const t=Vn(e).name,r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function Cue(n,e){const t=Vn(e).textContent,r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function Eue(n){const e=Vn(n).stack;return dr(e)}function Mue(n){__wbg_test_output_writeln(Rd(n))}function Tue(n){const e=Vn(n).stack;return dr(e)}function Fue(){const n=new Error;return dr(n)}function Lue(n,e){const t=Vn(e).stack,r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function Iue(n,e){let t,r;try{t=n,r=e,console.error(Ud(n,e))}finally{Ln.__wbindgen_free(t,r,1)}}function Pue(n){const e=Rd(n).original;return e.cnt--==1?(e.a=0,!0):!1}function Uue(n){queueMicrotask(Vn(n))}function Rue(n){const e=Vn(n).queueMicrotask;return dr(e)}function kue(n,e){return Vn(n)==Vn(e)}function Nue(n){const e=Vn(n);return typeof e=="boolean"?e?1:0:2}function Due(n){const e=BigInt.asUintN(64,n);return dr(e)}function Oue(n,e){const t=Vn(n)[e>>>0];return dr(t)}function Que(n){return Vn(n).length}function jue(){const n=new Array;return dr(n)}function Hue(n,e){const t=new Function(Ud(n,e));return dr(t)}function zue(n){const e=Vn(n).next;return dr(e)}function Vue(){return ku(function(n){const e=Vn(n).next();return dr(e)},arguments)}function Gue(n){return Vn(n).done}function Wue(n){const e=Vn(n).value;return dr(e)}function Kue(){return dr(Symbol.iterator)}function que(){return ku(function(n,e){const t=Reflect.get(Vn(n),Vn(e));return dr(t)},arguments)}function Xue(){return ku(function(n,e){const t=Vn(n).call(Vn(e));return dr(t)},arguments)}function $ue(){return ku(function(){const n=self.self;return dr(n)},arguments)}function Yue(){return ku(function(){const n=window.window;return dr(n)},arguments)}function Jue(){return ku(function(){const n=globalThis.globalThis;return dr(n)},arguments)}function Zue(){return ku(function(){const n=global.global;return dr(n)},arguments)}function ece(n){return Vn(n)===void 0}function tce(n,e,t){Vn(n)[e>>>0]=Rd(t)}function nce(n,e,t){try{var r={a:e,b:t},i=(s,o,a)=>{const l=r.a;r.a=0;try{return Xle(l,r.b,s,o,a)}finally{r.a=l}};Vn(n).forEach(i)}finally{r.a=r.b=0}}function rce(n){return Array.isArray(Vn(n))}function ice(n){let e;try{e=Vn(n)instanceof ArrayBuffer}catch{e=!1}return e}function sce(n){const e=Vn(n).message;return dr(e)}function oce(n){const e=Vn(n).name;return dr(e)}function ace(){return ku(function(n,e,t){const r=Vn(n).call(Vn(e),Vn(t));return dr(r)},arguments)}function lce(n,e){try{var t={a:n,b:e},r=(s,o)=>{const a=t.a;t.a=0;try{return $le(a,t.b,s,o)}finally{t.a=a}};const i=new Promise(r);return dr(i)}finally{t.a=t.b=0}}function uce(n){const e=Promise.resolve(Vn(n));return dr(e)}function cce(n,e){const t=Vn(n).then(Vn(e));return dr(t)}function Ace(n){const e=Vn(n).buffer;return dr(e)}function fce(n,e,t){const r=new Uint8Array(Vn(n),e>>>0,t>>>0);return dr(r)}function dce(n){const e=new Uint8Array(Vn(n));return dr(e)}function hce(n,e,t){Vn(n).set(Vn(e),t>>>0)}function pce(n){return Vn(n).length}function gce(n){let e;try{e=Vn(n)instanceof Uint8Array}catch{e=!1}return e}function mce(n){const e=new Uint8Array(n>>>0);return dr(e)}function vce(n,e,t){const r=Vn(n).subarray(e>>>0,t>>>0);return dr(r)}function yce(n,e){const t=Y3(Vn(e)),r=Bp(t,Ln.__wbindgen_malloc,Ln.__wbindgen_realloc),i=lf;Vo()[n/4+1]=i,Vo()[n/4+0]=r}function wce(n,e){throw new Error(Ud(n,e))}function bce(){const n=Ln.memory;return dr(n)}function xce(n,e,t){const r=Vle(n,e,115,Gle);return dr(r)}URL=globalThis.URL;const rr=await Nle({"./rust_wasm_bg.js":{__wbindgen_number_new:Jle,__wbindgen_error_new:Zle,__wbindgen_number_get:eue,__wbindgen_object_drop_ref:tue,__wbindgen_string_new:nue,__wbg_crypto_1d1f22824a6a080c:rue,__wbindgen_is_object:iue,__wbg_process_4a72847cc503995b:sue,__wbg_versions_f686565e586dd935:oue,__wbg_node_104a2ff8d6ea03a2:aue,__wbindgen_is_string:lue,__wbg_require_cca90b1a94a0255b:uue,__wbindgen_is_function:cue,__wbg_msCrypto_eb05e62b530a1508:Aue,__wbg_randomFillSync_5c9c955aa56b6049:fue,__wbg_getRandomValues_3aa56aa6edec874c:due,__wbg_log_28eee4e6432efd24:hue,__wbg_String_55b8bdc4bc243677:pue,__wbg_getElementById_8458f2a6c28467dc:gue,__wbg_settextcontent_fc3ff485b96fcb1d:mue,__wbindgen_string_get:vue,__wbg_wbgtestinvoke_8c20f4132af2bded:yue,__wbindgen_object_clone_ref:wue,__wbg_stack_17c77e9f5bfe6714:bue,__wbg_static_accessor_document_d4b6ae7f5578480f:xue,__wbg_self_55106357ec10ecd4:_ue,__wbg_constructor_fd0d22d60b7dfd72:Sue,__wbg_name_7f439d24ff7ba1d3:Bue,__wbg_textcontent_67e4e811cbdf00fc:Cue,__wbg_stack_44743fb7d71926a0:Eue,__wbg_wbgtestoutputwriteln_4db3bd64914ec955:Mue,__wbg_stack_436273c21658169b:Tue,__wbg_new_abda76e883ba8a5f:Fue,__wbg_stack_658279fe44541cf6:Lue,__wbg_error_f851667af71bcfc6:Iue,__wbindgen_cb_drop:Pue,__wbg_queueMicrotask_481971b0d87f3dd4:Uue,__wbg_queueMicrotask_3cbae2ec6b6cd3d6:Rue,__wbindgen_jsval_loose_eq:kue,__wbindgen_boolean_get:Nue,__wbindgen_bigint_from_u64:Due,__wbg_get_bd8e338fbd5f5cc8:Oue,__wbg_length_cd7af8117672b8b8:Que,__wbg_new_16b304a2cfa7ff4a:jue,__wbg_newnoargs_e258087cd0daa0ea:Hue,__wbg_next_40fc327bfc8770e6:zue,__wbg_next_196c84450b364254:Vue,__wbg_done_298b57d23c0fc80c:Gue,__wbg_value_d93c65011f51a456:Wue,__wbg_iterator_2cee6dadfd956dfa:Kue,__wbg_get_e3c254076557e348:que,__wbg_call_27c0f87801dedf93:Xue,__wbg_self_ce0dbfc45cf2f5be:$ue,__wbg_window_c6fb939a7f436783:Yue,__wbg_globalThis_d1e6af4856ba331b:Jue,__wbg_global_207b558942527489:Zue,__wbindgen_is_undefined:ece,__wbg_set_d4638f722068f043:tce,__wbg_forEach_2be8de7347d63332:nce,__wbg_isArray_2ab64d95e09ea0ae:rce,__wbg_instanceof_ArrayBuffer_836825be07d4c9d2:ice,__wbg_message_5bf28016c2b49cfb:sce,__wbg_name_e7429f0dda6079e2:oce,__wbg_call_b3ca7c6051f9bec1:ace,__wbg_new_81740750da40724f:lce,__wbg_resolve_b0083a7967828ec8:uce,__wbg_then_0c86a60e8fcfe9f6:cce,__wbg_buffer_12d079cc21e14bdb:Ace,__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb:fce,__wbg_new_63b92bc8671ed464:dce,__wbg_set_a47bac70306a19a7:hce,__wbg_length_c20a40f15020d68a:pce,__wbg_instanceof_Uint8Array_2b3bbecd033d19f6:gce,__wbg_newwithlength_e9b4878cebadb3d3:mce,__wbg_subarray_a1f73cd4b5b42fe1:vce,__wbindgen_debug_string:yce,__wbindgen_throw:wce,__wbindgen_memory:bce,__wbindgen_closure_wrapper464:xce}},kle),FD=rr.memory,_ce=rr.__wbg_pos_free,Sce=rr.__wbg_get_pos_0,Bce=rr.__wbg_set_pos_0,Cce=rr.__wbg_get_pos_1,Ece=rr.__wbg_set_pos_1,Mce=rr.__wbg_get_pos_2,Tce=rr.__wbg_set_pos_2,Fce=rr.pos_new,Lce=rr.__wbg_universe_free,Ice=rr.__wbg_get_universe_width,Pce=rr.__wbg_set_universe_width,Uce=rr.__wbg_get_universe_height,Rce=rr.__wbg_set_universe_height,kce=rr.__wbg_get_universe_depth,Nce=rr.__wbg_set_universe_depth,Dce=rr.universe_live_neighbor_count,Oce=rr.universe_new,Qce=rr.universe_set_by_step,jce=rr.universe_set_cell,Hce=rr.universe_cells,zce=rr.universe_get_cells,Vce=rr.universe_tick,Gce=rr.universe_width,Wce=rr.universe_height,Kce=rr.universe_depth,qce=rr.sphericalvoronoi_generate,Xce=rr.sphericalvoronoi_get_edges,$ce=rr.sphericalvoronoi_get_other,Yce=rr.__wbg_sphericalvoronoi_free,Jce=rr.__wbg_pointdistribution_free,Zce=rr.pointdistribution_set_random_points,eAe=rr.pointdistribution_set_spherical_random_points,tAe=rr.pointdistribution_set_points,nAe=rr.pointdistribution_normalize,rAe=rr.pointdistribution_points,iAe=rr.convexhull_convex_hull,sAe=rr.__wbgt_convex_hull_0,oAe=rr.spherical_triangulate,aAe=rr.__wbg_convexhull_free,lAe=rr.__wbg_wasmbindgentestcontext_free,uAe=rr.wasmbindgentestcontext_new,cAe=rr.wasmbindgentestcontext_args,AAe=rr.wasmbindgentestcontext_run,fAe=rr.__wbgtest_console_log,dAe=rr.__wbgtest_console_debug,hAe=rr.__wbgtest_console_info,pAe=rr.__wbgtest_console_warn,gAe=rr.__wbgtest_console_error,mAe=rr.__wbindgen_malloc,vAe=rr.__wbindgen_realloc,yAe=rr.__wbindgen_export_2,wAe=rr._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hefdbf5588b2dcc56,bAe=rr.__wbindgen_add_to_stack_pointer,xAe=rr.__wbindgen_free,_Ae=rr.__wbindgen_exn_store,SAe=rr.wasm_bindgen__convert__closures__invoke0_mut__h0c64a2bbdaa75861,BAe=rr.wasm_bindgen__convert__closures__invoke3_mut__h01e1809ec35787cf,CAe=rr.wasm_bindgen__convert__closures__invoke2_mut__h66c87c984101e9c4,EAe=Object.freeze(Object.defineProperty({__proto__:null,__wbg_convexhull_free:aAe,__wbg_get_pos_0:Sce,__wbg_get_pos_1:Cce,__wbg_get_pos_2:Mce,__wbg_get_universe_depth:kce,__wbg_get_universe_height:Uce,__wbg_get_universe_width:Ice,__wbg_pointdistribution_free:Jce,__wbg_pos_free:_ce,__wbg_set_pos_0:Bce,__wbg_set_pos_1:Ece,__wbg_set_pos_2:Tce,__wbg_set_universe_depth:Nce,__wbg_set_universe_height:Rce,__wbg_set_universe_width:Pce,__wbg_sphericalvoronoi_free:Yce,__wbg_universe_free:Lce,__wbg_wasmbindgentestcontext_free:lAe,__wbgt_convex_hull_0:sAe,__wbgtest_console_debug:dAe,__wbgtest_console_error:gAe,__wbgtest_console_info:hAe,__wbgtest_console_log:fAe,__wbgtest_console_warn:pAe,__wbindgen_add_to_stack_pointer:bAe,__wbindgen_exn_store:_Ae,__wbindgen_export_2:yAe,__wbindgen_free:xAe,__wbindgen_malloc:mAe,__wbindgen_realloc:vAe,_dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hefdbf5588b2dcc56:wAe,convexhull_convex_hull:iAe,memory:FD,pointdistribution_normalize:nAe,pointdistribution_points:rAe,pointdistribution_set_points:tAe,pointdistribution_set_random_points:Zce,pointdistribution_set_spherical_random_points:eAe,pos_new:Fce,spherical_triangulate:oAe,sphericalvoronoi_generate:qce,sphericalvoronoi_get_edges:Xce,sphericalvoronoi_get_other:$ce,universe_cells:Hce,universe_depth:Kce,universe_get_cells:zce,universe_height:Wce,universe_live_neighbor_count:Dce,universe_new:Oce,universe_set_by_step:Qce,universe_set_cell:jce,universe_tick:Vce,universe_width:Gce,wasm_bindgen__convert__closures__invoke0_mut__h0c64a2bbdaa75861:SAe,wasm_bindgen__convert__closures__invoke2_mut__h66c87c984101e9c4:CAe,wasm_bindgen__convert__closures__invoke3_mut__h01e1809ec35787cf:BAe,wasmbindgentestcontext_args:cAe,wasmbindgentestcontext_new:uAe,wasmbindgentestcontext_run:AAe},Symbol.toStringTag,{value:"Module"}));Dle(EAe);const MAe="_GameOfLifeScene_17gio_1",TAe={GameOfLifeScene:MAe},FAe=n=>{const{trigger:e,isStart:t,speed:r,resolution:i,size:s}=pl(v=>v.gameOfLife),o=s+.05,[a,l,c,u]=Y.useMemo(()=>{const v=Ab.new(Xc.new(...i));return v.set_cell(Xc.new(1,2,2)),v.set_cell(Xc.new(2,2,2)),v.set_cell(Xc.new(3,2,2)),[v,v.width(),v.height(),v.depth()]},[i]),A=Y.useCallback(()=>new Uint8Array(FD.buffer,a.cells(),l*c*u),[u,c,a,l]),[d,f]=Y.useState(A()),[m,w]=Y.useState(),b=Y.useCallback(()=>{w(setInterval(()=>{a.tick(),f(A())},r))},[r,a,A]);Y.useEffect(()=>{m&&(clearInterval(m),b())},[m,b,r]),Y.useEffect(()=>(clearInterval(m),t&&b(),()=>clearInterval(m)),[m,t,b]),Y.useEffect(()=>{e&&(a.tick(),f(A()))},[A,e,a]);const p=(v,y,B)=>(v*l+y)*c+B;return K.jsxs(xle,{className:TAe.GameOfLifeScene,children:[K.jsx(Ple,{}),K.jsx("ambientLight",{intensity:1}),K.jsx("pointLight",{position:[l*o+.5,c*o+.5,u*o+.5],intensity:100}),K.jsx(Tle,{enablePan:!1}),Array(l).fill(null).map((v,y)=>Array(c).fill(null).map((B,P)=>Array(u).fill(null).map((U,x)=>d[p(y,P,x)]===Yle.Alive&&K.jsx(Rle,{args:[s,s,s],position:[(x-u/2)*o,(y-l/2)*o,(P-c/2)*o],children:K.jsx("meshStandardMaterial",{color:"white",wireframe:!1})},`${y} ${P} ${x}`))))]})},LAe=Y.memo(FAe),IAe=(n,e)=>K.jsx(OR,{scene:K.jsx(LAe,{}),controlPanel:K.jsx(RZ,{})}),PAe=Y.memo(Y.forwardRef(IAe)),UAe=n=>{const{children:e}=n;let{to:t}=n;return typeof t=="string"&&(t=document.querySelector(t)),sP.createPortal(e,t||document.body)},RAe=Y.memo(UAe),kAe=n=>{const{routes:e}=n,[t,r]=Y.useState(!1);return Y.useEffect(()=>{const i=()=>{document.querySelector("[data-portal-links]")?r(!0):requestAnimationFrame(i)};i()},[]),t?K.jsx(RAe,{to:"[data-portal-links]",children:K.jsx(hr,{children:e.map(({path:i,linkText:s})=>K.jsx(m0,{to:i,children:s},i))})}):null},NAe=Y.memo(kAe),DAe={trigger:0,trigger2:0,pointCount:100,sizes:[.8,.5],scales:{pointsField:.9,points:1}},LD=Il({name:"planet",initialState:DAe,reducers:{setState(n,e){const t=(r,i)=>Object.entries(r).reduce((s,[o,a])=>{if(Gm(a)){const l=i[o];return{...s,[o]:{...l,...t(a,l)}}}return{...s,[o]:a}},{});return{...n,...t(e.payload,n)}},incrementTrigger(n,e){n[e.payload]+=1}}}),{actions:u0}=LD,{reducer:OAe}=LD,QAe="_Description_1nla5_1",jAe="_describtion_1nla5_4",HAe="_left_1nla5_10",zAe="_right_1nla5_13",VAe="_top_1nla5_16",GAe="_bottom_1nla5_19",WAe="_dark_1nla5_22",Ny={Description:QAe,describtion:jAe,left:HAe,right:zAe,top:VAe,bottom:GAe,dark:WAe},KAe=(n,e)=>{const{className:t,children:r,onMouseEnter:i,onMouseLeave:s,describtion:o,...a}=n,l=Y.useRef(null);Y.useImperativeHandle(e,()=>l.current);const c=Y.useRef(null),[u,A]=Y.useState(!1),d=Y.useContext(Gb),[f,m]=Y.useState([]);Y.useEffect(()=>{const b=l.current,p=c.current;if(!b||!p)return;const v=()=>{const y=b.getBoundingClientRect(),B=p.getBoundingClientRect(),P=B.left-y.width,U=B.right+y.width,x=[];P<0?x.push("right"):U>window.innerWidth&&x.push("left");const D=B.top-y.height,Q=B.bottom+y.height;D<0?x.push("bottom"):Q>window.innerHeight&&x.push("top"),m(x)};return window.addEventListener("resize",v),v(),()=>{window.removeEventListener("resize",v)}},[]);let w=null;return K.jsxs(jr,{className:lr(Ny.Description,[t,Ny[d]]),ref:l,onMouseLeave:b=>{w&&clearTimeout(w),A(!1),s==null||s(b)},onMouseEnter:b=>{w=setTimeout(()=>{A(!0)},250),i==null||i(b)},align:"center",...a,children:[Y.cloneElement(r,{ref:c}),u&&K.jsx("div",{className:lr(Ny.describtion,[...f.map(b=>Ny[b])]),children:o})]})},qAe=Y.memo(Y.forwardRef(KAe)),XAe="_Foldden_1grx4_1",$Ae="_dark_1grx4_1",YAe="_to_1grx4_4",JAe="_crossSvg_1grx4_4",Dy={Foldden:XAe,dark:$Ae,to:YAe,crossSvg:JAe},ZAe=(n,e)=>{const{className:t,children:r,to:i,...s}=n,o=Y.useRef(null);Y.useImperativeHandle(e,()=>o.current);const[a,l]=Y.useState(!1),c=Y.useContext(Gb);return K.jsx(hr,{className:lr(Dy.Foldden,[t,Dy[c]]),ref:o,...s,children:a?K.jsxs(jr,{className:Dy.to,children:[K.jsx(pC,{className:Dy.crossSvg,onClick:()=>l(!1)}),i]}):Y.cloneElement(r,{onClick:u=>{l(!0),r==null||r.props.onClick(u)}})})},efe=Y.memo(Y.forwardRef(ZAe)),tfe="_PlanetPanel_oyx1s_1",nfe="_settingsSvg_oyx1s_7",rfe="_playRange_oyx1s_10",ife="_resol_oyx1s_13",sfe="_range_oyx1s_21",ofe="_play_oyx1s_10",afe="_is_play_oyx1s_38",lfe="_tick_oyx1s_41",mF={PlanetPanel:tfe,settingsSvg:nfe,playRange:rfe,resol:ife,range:sfe,play:ofe,is_play:afe,tick:lfe},ufe={},cfe=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const s=R0(),{sizes:o,scales:{pointsField:a,points:l}}=pl(c=>c.planet);return K.jsxs(hr,{className:lr(ufe.FieldSettings,[t]),ref:i,...r,children:[K.jsxs(jr,{children:[K.jsx(a1,{min:0,max:1,values:[a],onChange:c=>{s(u0.setState({scales:{pointsField:c[0]}}))}}),K.jsx(a1,{min:0,max:5,step:1,values:[l],onChange:c=>{s(u0.setState({scales:{points:c[0]}}))}})]}),K.jsx(jr,{children:o.map((c,u)=>K.jsx(a1,{min:0,max:100,step:1,values:[c*100],onChange:A=>{s(u0.setState({sizes:o.toSpliced(u,1,A[0]/100)}))}},u))})]})},Afe=Y.memo(Y.forwardRef(cfe)),ffe=(n,e)=>{const{className:t}=n,r=R0(),{pointCount:i}=pl(s=>s.planet);return K.jsxs(hr,{className:lr(mF.PlanetPanel,[t]),align:"end",justify:"between",gap:8,children:[K.jsx(efe,{to:K.jsx(Afe,{}),children:K.jsx(qAe,{describtion:"Настройки поля",children:K.jsx("div",{children:K.jsx(TP,{className:mF.settingsSvg})})})}),K.jsxs(hr,{align:"center",gap:8,children:[K.jsxs(jr,{gap:16,children:[K.jsx("button",{onClick:()=>{r(u0.incrementTrigger("trigger2"))},children:"Обновить"}),K.jsx("button",{onClick:()=>{r(u0.incrementTrigger("trigger"))},children:"tick"})]}),K.jsx(vd,{type:"number",max:3e5,value:i,onBlur:s=>{const o=Number(s.target.value);r(u0.setState({pointCount:o}))}})]})]})},dfe=Y.memo(Y.forwardRef(ffe)),hfe="_PlanetScene_1s9ur_1",pfe="_dark_1s9ur_6",vF={PlanetScene:hfe,dark:pfe},gfe=n=>{const{points:e,edges:t}=n,{trigger:r,trigger2:i,scales:{pointsField:s},sizes:o,pointCount:a}=pl(y=>y.planet),[l,c]=Y.useState([1,1]),u=vp(),A=Y.useRef(null);Y.useEffect(()=>{const y=()=>{const B=A.current;if(!B)return;const P=B.getBoundingClientRect();c([P.width,P.height])};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}},[o,u]);const d=Y.useMemo(()=>l.map((y,B)=>y*o[B]),[l,o]),f=Y.useMemo(()=>l.map((y,B)=>(y-d[B])/2),[l,d]),m=Y.useMemo(()=>e.map(y=>y.map((B,P)=>B*d[P]*s+f[P]+d[P]/2*(1-s))),[f,e,s,d]),w=Y.useMemo(()=>t.map(y=>y.map(B=>m[B])),[t,m]),b=Y.useMemo(()=>[[f[0],f[1]],[d[0]+f[0],f[1]],[d[0]+f[0],d[1]+f[1]],[f[0],d[1]+f[1]],[f[0],f[1]]],[f,d]),{scales:p}=pl(y=>y.planet),v=Y.useContext(Gb);return K.jsxs("svg",{className:lr(vF.PlanetScene,[vF[v]]),ref:A,children:[w.map((y,B)=>K.jsx("path",{stroke:"red",strokeWidth:p.points,fill:"none",d:y.filter(P=>P).map((P,U)=>{const[x,D]=P;return U===0?`M ${x} ${D}`:`L ${x} ${D}`}).join(" ")},B)),m.map((y,B)=>K.jsx(Y.Fragment,{children:K.jsx("circle",{cx:y[0],cy:y[1],r:p.points,fill:t[t.length-1]===B?"blue":t.includes(B)?"yellow":"white"})},B)),K.jsx("path",{stroke:"red",strokeWidth:p.points,fill:"none",d:b.map((y,B)=>{const[P,U]=y;return B===0?`M ${P} ${U}`:`L ${P} ${U}`}).join(" ")})]})},ID=Y.memo(gfe);class mfe{constructor(e){}tick(){}}const vfe=n=>{const{dist:e}=n,{trigger:t}=pl(a=>a.planet),[r,i]=Y.useState([]),s=Y.useMemo(()=>(i([]),new mfe(e.points)),[e]);Y.useEffect(()=>{if(t){const a=s.tick();a!==void 0&&i(l=>[...l,a])}},[s,t]);const o=Y.useMemo(()=>e.points,[e]);return K.jsx(ID,{points:o,edges:r})},yfe=Y.memo(vfe),wfe=n=>{const{dist:e}=n,{trigger:t}=pl(o=>o.planet),[r,i]=Y.useState([]);Y.useEffect(()=>{i([])},[e]),Y.useEffect(()=>{if(t){const o=e.get_triangles();o!==void 0&&i(o.map(a=>[...a,a[0]]))}},[e,t]);const s=Y.useMemo(()=>e.points,[e.points]);return K.jsx(ID,{points:s,edges:r})},bfe=Y.memo(wfe),xfe=(n,e)=>{const{trigger2:t,pointCount:r}=pl(o=>o.planet),i=Y.useMemo(()=>Rh.set_random_points(r,[1,1]),[r,t]),s=[{path:"convex_hull",linkText:"Выпуклая оболочка",to:K.jsx(yfe,{dist:i})},{path:"triangulation",linkText:"Триангуляция",to:K.jsx(bfe,{dist:i})}];return K.jsx(DR,{theme:"dark",children:K.jsx(OR,{scene:K.jsxs(K.Fragment,{children:[K.jsx(NAe,{routes:s}),K.jsxs(Uv,{children:[K.jsx(ac,{index:!0,element:K.jsx(fC,{to:s[0].path})}),s.map(({path:o,to:a})=>K.jsx(ac,{path:`${o}/*`,element:a},o))]})]}),controlPanel:K.jsx(dfe,{})})})},_fe=Y.memo(Y.forwardRef(xfe)),Sfe=()=>{const n=[{route:"planet",linkText:"Планета",to:K.jsx(_fe,{})},{route:"game_of_life",linkText:"Игра в жизнь",to:K.jsx(PAe,{})}];return K.jsxs("div",{className:lr(A6.App),children:[K.jsxs(Uv,{children:[K.jsx(ac,{index:!0,element:K.jsx(fC,{to:n[0].route})}),n.map(({route:e,to:t})=>K.jsx(ac,{path:`${e}/*`,element:t},e))]}),K.jsx(jr,{"data-portal-links":!0,className:A6.pageLinks,children:K.jsx(hr,{children:n.map(({route:e,linkText:t})=>K.jsx(m0,{to:e,children:t},e))})})]})},Bfe={links:[]},Cfe=Il({name:"links",initialState:Bfe,reducers:{setState(n,e){return{...n,...e.payload}}}}),{reducer:Efe}=Cfe,Mfe=n=>{const{children:e,initialState:t}=n,r={gameOfLife:CZ,planet:OAe,links:Efe};return K.jsx(wR,{rootReducers:r,initialState:t,localStateConfig:[["gameOfLife",["speed","size","resolution"]]],keyName:"scene",children:e})},Tfe=Y.memo(Mfe),Ffe=()=>K.jsx(DR,{theme:"light",children:K.jsx(Tfe,{children:K.jsx(Sfe,{})})}),b5=[{name:"Acer Nitro XV2 XV272KLVbmiipruzx",typePixel:"IPS",size:27,refreshRate:155,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/acer-27-monitor-xv272klvbmiipruzx-um-hx2ee-v18-chernyy-1453934081/?asb2=hKtGowtAMzc2dAoe6_ik6rrtgeGYKUWJ7tcgTucdIpxV-9n1_alg75H11AZPnpxfURSnC4d54SQoEEBxxq7FBQ&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:49312},{name:"cdek",link:"https://cdek.shopping/p/8265847/igrovoi-monitor-acer-xv272k-27-4k-3840x2160-160-gc-fast-ips-cyornyi",price:51736},{name:"kns",link:"https://www.kns.ru/product/monitor-acer-nitro-xv272klvbmiipruzx/",price:52992},{name:"pleer",link:"https://www.pleer.ru/product_1003314_Acer_XV272KLVbmiipruzx_UMHX2EEV18.html",price:53059},{name:"xcom",link:"https://www.xcom-shop.ru/acer_nitro_xv272klvbmiipruzx_1001900.html",price:56070},{name:"dns",link:"https://www.dns-shop.ru/product/dcaf8f172805ed20/27-monitor-acer-nitro-xv272klvbmiipruzx-cernyj/",price:64799}]},{name:"Acer Nitro VG272K V3",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/5643617/igrovoi-monitor-acer-nitro-vg272k-v3-27-3840-x-2160-160-gc-fast-ips-cernyi",price:46734}]},{name:"Acer Nitro XV273K Pbmiipx ",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"pleer",link:"https://www.pleer.ru/product_1029343_Acer_XV273KPbmiipphzx_UMHX3EEP04.html",price:64991}]},{name:"Acer Nitro XV275K P3biipruzx",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/5643599/igrovoi-monitor-acer-nitro-xv275k-p3-27-3840-x-2160-160-gc-fast-ips-cernyi",price:53277},{name:"ozon",link:"https://www.ozon.ru/product/acer-27-monitor-xv275k-miniled-1291385031/?asb2=sgGOjbGAHAVuaRP9a1kJPl1m9ipmOopwwpFAkDOjegPQsmX6NxUSqWKvbuFktccDFBu28zOnlWNs815tSezrxA&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:72057}]},{name:"Acer Nitro XV275KP",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/acer-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-nitro-xv275kp-27-4k-ips-led-144hz/140689595/p",price:68963}]},{name:"Acer Nitro XV2 XV275KVymipruzx",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"kns",link:"https://www.kns.ru/product/monitor-acer-nitro-xv275kvymipruzx/",price:50094},{name:"dns",link:"https://www.dns-shop.ru/product/41862943f23ed9cb/27-monitor-acer-nitro-xv275kvymipruzx-cernyj/",price:60299,isNotHave:!0},{name:"ozon",link:"https://www.ozon.ru/product/acer-27-monitor-nitro-xv275kvymipruzx-seryy-krasnyy-1550954838/?asb2=Dspn6rfHRs5jKCQZJpZbQc_AU6Rk9g3GtNB65z1sSDRVtYsck6ucX8I3raThSk2K8EHa6wGuwZvXx8cbZpxHoA&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:61490}]},{name:"Acer Nitro XV282K KVbmiipruzx ",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"pleer",link:"https://www.pleer.ru/product_1001977_Acer_Nitro_XV282KKVbmiipruz_UMPX2EEV07.html",price:45133},{name:"ozon",link:"https://www.ozon.ru/product/acer-28-monitor-um-hx2ee-v18-chernyy-1600460140/?asb2=YJARaZk0f9KdGjwh7xRoQFoey_epxqaOXHsxKOcGVRdz-GRVgE0HPQb--eC7BN-s&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:48642},{name:"citilink",link:"https://www.citilink.ru/product/monitor-acer-nitro-xv282kkvbmiipruzx-28-chernyi-um-px2ee-v07-1811830/",price:61990},{name:"kns",link:"https://www.kns.ru/product/monitor-acer-nitro-xv282kkvbmiipruzx/",price:69386}]},{name:"Acer Predator XB3 XB273KLVbmiipruzx",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9752908/monitor-igrovoi-acer-predator-xb273k-lv-27-3840-x-2160-160-gc-fast-ips-cernyi",price:54074},{name:"kns",link:"https://www.kns.ru/product/monitor-acer-predator-xb273klvbmiipruzx/",price:67979}]},{name:"Acer Predator X28",typePixel:"IPS",size:28,refreshRate:152,resolution:[3840,2160],stores:[{name:"05",link:"https://05.ru/catalog/computers/monitor/225622/",price:53190},{name:"kns",link:"https://www.kns.ru/product/monitor-acer-predator-x28/",price:60030},{name:"ozon",link:"https://www.ozon.ru/product/acer-28-monitor-predator-x28-chernyy-1590186687/?asb2=Kmq3Mj2iv1lv58oBcmOe-PUtG-ySv4RMxQLhIz_nbOfhqEaHpTfnqB2gx93Xlblw8x0fRZZSmcxx_8ETdWk4Zw&avtc=1&avte=2&avts=1718691193&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:76448}]},{name:"AOC AGON Pro AG276UX",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/10238469/monitor-igrovoi-aoc-agon-pro-ag276ux-27-3840-x-2160-160-gc-fast-ips-temno-seryi",price:54122}]},{name:"AOC U27G10",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9949987/igrovoi-monitor-aoc-u27g10-27-3840x2160-fast-ips-160-gc-cernyi",price:37386}]},{name:"AOC U27G3X",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/215580/monitor-aoc-u27g3x-27-4k-ips-160-gc-cernyi",price:49583}]},{name:"AOC U27G3XM",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/6392097/igrovoi-monitor-aoc-u27g3xm-27-3840-x-2160-ips-160-gc-cernyi",price:51796}]},{name:"AOC U28G2XU2/BK",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/492f18e6bc90ed20/28-monitor-aoc-u28g2xu2bk-cernyj/",price:58499,isNotHave:!0},{name:"kns",link:"https://www.kns.ru/product/monitor-aoc-u28g2xu2-bk/",price:58705},{name:"pleer",link:"https://d.docs.live.net/f6aaaef86eb8ead2/Документы/U28G2XU",price:59475},{name:"citilink",link:"https://www.citilink.ru/product/monitor-aoc-gaming-u28g2xu2-28-chernyi-krasnyi-1867099/",price:69850}]},{name:"AOpen 27XV5KVymipruzx",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"kns",link:"https://www.kns.ru/product/monitor-aopen-27xv5kvymipruzx/",price:52744}]},{name:"ARDOR GAMING NOVA ULTRA AU27H1UE",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/4c8771aa5dcced20/27-monitor-ardor-gaming-nova-ultra-au27h1ue-cernyj/",price:43499}]},{name:"ASUS ROG Strix XG27UCS",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9247931/monitor-igrovoi-asus-rog-xg27ucs-27-3840-x-2160-160-gc-fast-ips-cernyi",price:44482}]},{name:"ASUS ROG Strix XG27UQ",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9862713/monitor-igrovoi-asus-rog-xg27uq-27-3840-x-2160-144-gc-ips-cernyi",price:51759}]},{name:"ASUS ROG Strix XG27UQR",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/4294e002435ced20/27-monitor-asus-rog-strix-xg27uqr-cernyj/",price:66299}]},{name:"ASUS ROG Swift PG27UQR ",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/5880397/igrovoi-monitor-asus-rog-swift-pg27uqr-27-4k-160-gc-ips-fast-cernyi",price:55486},{name:"kns",link:"https://www.kns.ru/product/monitor-asus-rog-swift-pg27uqr/",price:115837},{name:"dns",link:"https://www.dns-shop.ru/product/f14dddccc401ed20/27-monitor-asus-rog-swift-pg27uqr-cernyj/",price:116499},{name:"citilink",link:"citilinkhttps://www.citilink.ru/product/monitor-asus-rog-swift-pg27uqr-27-chernyi-90lm03a0-b02370-1991267/",price:116490}]},{name:"ASUS ROG Swift PG27UQR-W",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/2575492/igrovoi-monitor-asus-rog-swift-pg27uqr-w-27-4k-160-gc-ips-fast-belyi",price:57661}]},{name:"Asus TUF Gaming VG28UQL1A",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/9939673/monitor-igrovoi-asus-tuf-gaming-vg28uql1a-28-3840x2160-144-gc-fast-ips-cernyi",price:53024},{name:"dns",link:"https://www.dns-shop.ru/product/daba3007435eed20/28-monitor-asus-tuf-gaming-vg28uql1a-cernyj/",price:58499},{name:"ozon",link:"https://www.ozon.ru/product/asus-28-monitor-vg28uql1a-3840x2160-chernyy-1099710391/?asb2=KYehAsmtElRZvEBic7DxKk26nGmGO0goIHPq__eVJS2GrjhmvoTaOngp3hdTX-wh&avtc=1&avte=2&avts=1718691835&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:62009},{name:"kns",link:"https://www.kns.ru/product/monitor-asus-tuf-gaming-vg28uql1a/",price:62597},{name:"citilink",link:"https://www.citilink.ru/product/monitor-asus-28-tuf-gaming-vg28uql1a-chernyi-ips-led-16-9-hdmi-display-1598571/",price:76770}]},{name:"BenQ MOBIUZ EX2710U",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"kns",link:"https://www.kns.ru/product/monitor-benq-mobiuz-ex2710u/",price:89424}]},{name:"Digma Gaming DM-MONG2740",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"citilink",link:"https://www.citilink.ru/product/monitor-digma-gaming-dm-mong2740-27-temno-seryi-1807915/",price:49990},{name:"kns",link:"https://www.kns.ru/product/monitor-digma-gaming-dm-mong2740/",price:50177}]},{name:"Gigabyte M27U ",typePixel:"IPS",size:27,refreshRate:150,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/gigabyte-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-m27u-27-4k-ips-led-160hz/140392749/p",price:54394},{name:"ozon",link:"https://www.ozon.ru/product/gigabyte-27-monitor-m27u-1605079221/?asb2=kxOYiGGA3esZJnEptAzp71y2TgRbqPzRMQTEdaLba8FWgDcW1zk2o73oibLzlDOwJCfq7SIihcWnsA3qxM8yHw&avtc=1&avte=2&avts=1718691931&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:67339},{name:"cdek",link:"https://cdek.shopping/p/5880997/igrovoi-monitor-gigabyte-m27u-27-3840-x-2160-fast-ips-160-gc-cernyi",price:64639},{name:"kns",link:"https://www.kns.ru/product/monitor-gigabyte-m27u/",price:68227},{name:"citilink",link:"https://www.citilink.ru/product/monitor-gigabyte-27-m27u-ips-4k-cher-1ms-hdmi-dp-usb-m-m-has-160hz-400-2019968/",price:69990}]},{name:"Gigabyte M28U",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/4000227/monitor-gigabyte-m28u-28-uhd-3840-x-2160-144-gc-ips-cernyi",price:44484},{name:"ozon",link:"https://www.ozon.ru/product/gigabyte-28-monitor-m28u-chernyy-1600400934/?asb2=VaWlr_FeQQ2Y1aUifqA1T2k7e-fVN9L9nP-PtwcHeK_Jb5R9jLEGxYXdmf_EozsY&avtc=1&avte=2&avts=1718691931&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:53200},{name:"dns",link:"https://www.dns-shop.ru/product/3aff51dadaf82ff2/28-monitor-gigabyte-m28u-cernyj/",price:57499,isNotHave:!0},{name:"kns",link:"https://www.kns.ru/product/monitor-gigabyte-m28u/",price:57960},{name:"citilink",link:"https://www.citilink.ru/product/monitor-gigabyte-m28u-28-chernyi-20vm0-m28uba-1ekr-2ekr-1509122/",price:59990},{name:"pleer",link:"https://www.pleer.ru/product_901184_GigaByte_M28U.html",price:63483}]},{name:"Gigabyte M28U ARM Edition",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/aoc-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-u28g2xu2-bk-28-4k-ips-wled-144hz/140619459/p",price:47046},{name:"cdek",link:"https://cdek.shopping/p/5880976/igrovoi-monitor-gigabyte-m28u-ae-315-3840-x-2160-fast-ips-144-gc-cernyi",price:49575},{name:"ozon",link:"https://www.ozon.ru/product/gigabyte-28-monitor-m28u-ae-chernyy-utsenennyy-tovar-1564531345/?asb2=paVfNYy1HHGCwfDHTeJDcd94uS21WA3istQKw0XcuYlkSbbGA0rPCnhyOVJ_hqug7oxpRiMdkA99U_Q6lM7XVA&avtc=1&avte=2&avts=1718691931&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:54323},{name:"kns",link:"https://www.kns.ru/product/monitor-gigabyte-m28u-arm-edition/",price:73775}]},{name:"Hiper Gaming JM28EUI",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/hiper-28-monitor-gaming-jm28eui-3840-2160-ultra-hd-144gts-ips-0-5ms-hdmi-dp-3d-podstavka-chernyy-1097224723/?asb2=8oziYY_w7E-nhCHxft_dmW0gHq7qpbWPX0_Xy92ytVDwhQX4Ia8iZkOdDHdKMiQT&avtc=1&avte=2&avts=1718692065&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:38498},{name:"kns",link:"https://www.kns.ru/product/monitor-hiper-gaming-jm28eui/",price:38585}]},{name:"HP OMEN 27k",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/hp-27-monitor-omen-27k-chernyy-1575934725/?asb2=nCe19ohO2eUCnMUsuKgOykrYPZZn6kmGByD70b1zKoBpq2SaZeIWenB-RMc-x76f&avtc=1&avte=2&avts=1718692128&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:63370},{name:"cdek",link:"https://cdek.shopping/p/1285325/igrovoi-monitor-hp-omen-27k-27-4k-144-gc-fast-ips-cernyi",price:64901}]},{name:"KTC M27P20 Pro",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.kns.ru/product/monitor-ktc-m27p20p/",price:56594},{name:"ozon",link:"https://www.ozon.ru/product/ktc-27-monitor-m27p20-pro-ips-160hz-3840x2160-chernyy-896920917/?asb2=ooi7O2WkH-ioRD2tsnBXM_WqQggxDG66XdESQzb14kUXE4Hprl0NUM3UmquOWZ0x&avtc=1&avte=2&avts=1718692161&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:58095}]},{name:"LC-Power LC-M27-4K-UHD-144-V2",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/lc-power-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-lc-m27-4k-uhd-144-v2-27-ips-lcd-144hz/139579894/p",price:52397}]},{name:"LG 27UQ750",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/2506565/monitor-lg-27uq750-27-4k-nano-ips-144-gc-cernyiserebristyi",price:48501}]},{name:"LG 27GP850P-B.AEU",typePixel:"IPS",size:27,refreshRate:165,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/lg-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-27gp850p-b.aeu-27-4k-ips-led-165hz/140689709/p",price:25676}]},{name:"LG 27GP95U",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/3218101/monitor-lg-27gp95u-27-4k-nano-ips-160-gc-cernyi",price:48144}]},{name:"LG 27GP95R-B",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/4737986/monitor-lg-27gp95r-27-4k-nano-ips-160-gc-cernyi",price:57149},{name:"dns",link:"https://www.dns-shop.ru/product/db68ade8ab6bed20/27-monitor-lg-27gp95r-b-cernyj/",price:75299}]},{name:"LG UltraGear 27GR93U-B",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/4665687/igrovoi-monitor-lg-ultragear-27gr93u-27-4k-ultra-fast-ips-144-gc-cyornyi",price:44885},{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/lg-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-27gr93u-b-27-4k-ips-led-144hz/140361150/p",price:46973},{name:"ozon",link:"https://www.ozon.ru/product/lg-27-monitor-27gr93u-b-aruz-chernyy-1286886109/?asb2=Km8HJ1R13OOvshi5y_-GeIkmtx3m1026bDamccHewXj8wy_QyrGTnYzxkn7iV4uP&avtc=1&avte=2&avts=1718692215&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:48904},{name:"kns",link:"https://www.kns.ru/product/monitor-lg-ultragear-27gr93u-b/",price:56552},{name:"xcom",link:"https://www.xcom-shop.ru/lg_ultragear_27gr93u-b_1072495.html",price:59010},{name:"dns",link:"https://www.dns-shop.ru/product/d5b4dcb4e58ded20/27-monitor-lg-ultragear-27gr93u-b-cernyj/",price:59999,isNotHave:!0},{name:"xcom",link:"https://www.xcom-shop.ru/lg_ultragear_27gr93u-b_1075845.html",price:61646},{name:"citilink",link:"https://www.citilink.ru/product/monitor-lg-ultragear-27gr93u-b-27-chernyi-27gr93u-b-aruz-1977402/",price:63380}]},{name:"LG UltraGear 27GP95RP-B",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/lg-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-27gp95rp-b-27-4k-ips-led-160hz/140444174/p",price:48885},{name:"pleer",link:"https://www.pleer.ru/product_1033515_LG_27GP95RP_BARUZ.html",price:59285},{name:"ozon",link:"https://www.ozon.ru/product/lg-27-monitor-ultragear-27gp95rp-b-chernyy-1590187793/?asb2=IrG8Fw8sHkkYgxwceQdwkAV7mEW1YAxmThEQp7GnZRMHe-Za-a3Y2g5o6kKb7EEF_FvkyhR9FaEfHwe6Dx2J-g&avtc=1&avte=2&avts=1718692215&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:60489},{name:"kns",link:"https://www.kns.ru/product/monitor-lg-ultragear-27gp95rp-b/",price:61106},{name:"xcom",link:"https://www.xcom-shop.ru/lg_ultragear_27gp95rp-b_1087675.html",price:64124},{name:"citilink",link:"https://www.citilink.ru/product/monitor-lg-27-27gp95rp-b-ips-4k-cher-1ms-hdmi-dp-has-piv-160hz-400cd-2003342/",price:72210}]},{name:"MSI MAG 274UPF",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/8455740/igrovoi-monitor-msi-mag274upf-27-3840x2160-fast-ips-160-gc-cyornyi",price:39523},{name:"ozon",link:"https://www.ozon.ru/product/msi-27-monitor-mag-274upf-chernyy-1459947404/?asb2=-DKtKFpgvRWfk_hyRVwk6PHQPy8dqd96O4wZo5S5LYkNgwRFBbAet2v2hul0HQ_C3J1P979qQeX3faB-uEax_w&avtc=1&avte=2&avts=1718692389&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:42622},{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/msi-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-mag-274upf-27-4k-ips-led-144hz/140910941/p",price:46502},{name:"05",link:"https://05.ru/catalog/computers/monitor/222956/",price:49990},{name:"kns",link:"https://www.kns.ru/product/monitor-msi-mag-274upf/",price:56552},{name:"dns",link:"https://www.dns-shop.ru/product/6592349205a2ed20/27-monitor-msi-mag-274upf-cernyj/",price:67999}]},{name:"MSI MAG274UPF E2",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/msi-27-monitor-mag274upf-e2-chernyy-matovyy-1546398989/?asb2=VKzy37AFCLupT0cBXgfXYeLi052Naaxupf5jL2eCZm5N04ngpfeuWsrBemRT9Db_&avtc=1&avte=2&avts=1718692389&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:37120},{name:"cdek",link:"https://cdek.shopping/p/10511101/monitor-msi-mag274upf-e2-27-3840x2160-160-gc-rapid-ips-cyornyi",price:40266}]},{name:"MSI MAG 274URFW",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/10511095/monitor-msi-mag274urfw-27-3840x2160-160-gc-rapid-ips-belyi",price:41900}]},{name:"MSI MAG 274URFW",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/msi-27-monitor-mag274urfw-belyy-1546095513/?asb2=SC68gq7AzXFwX4yvxFMICypZoCnFTiiSsmlU32TYoBiH9sO1GLJxfjTbh8xknHoZYVow2QYSCNRJjSJQeRbIvQ&avtc=1&avte=2&avts=1718692389&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:38403},{name:"cdek",link:"https://cdek.shopping/p/8767229/monitor-msi-mag-274urfw-27-3840x2160-160-gc-fast-ips-belyi",price:43089}]},{name:"MSI MPG 274URF QD",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"ozon",link:"https://www.ozon.ru/product/msi-27-monitor-optix-mpg-274urf-qd-chernyy-1579479086/?asb2=JlpwayJupWX9TFnYortVQbH8KREiq47Amkr5mlTgMXyHcm9anFK18kqf1mW3kd9AewdzRQ2N28VfiIi8ReYEMg&avtc=1&avte=2&avts=1718692389&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:63194},{name:"kns",link:"https://www.kns.ru/product/monitor-msi-mpg-274urf-qd/",price:68393},{name:"citilink",link:"https://www.citilink.ru/product/monitor-msi-27-mpg-274urf-qd-ips-4k-cher-hdmi-dp-usb-has-piv-144hz-400-2009159/",price:78780}]},{name:"MSI Optix MAG281URF",typePixel:"IPS",size:27.9,refreshRate:144,resolution:[3840,2160],stores:[{name:"05",link:"https://05.ru/catalog/computers/monitor/218715/",price:52990}]},{name:"Philips Evnia 5000 27M1F5800",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/912237/igrovoi-monitor-philips-27m1f5800-27-3840-x-2160-144-gc-nano-ips-cernyi",price:47915},{name:"kns",link:"https://www.kns.ru/product/monitor-philips-27m1f5800/",price:92239},{name:"citilink",link:"https://www.citilink.ru/product/monitor-philips-evnia-5000-27m1f5800-27-chernyi-i-seryi-27m1f5800-00-0-2006566/",price:93040}]},{name:"Philips 279M1RVE",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/912190/igrovoi-monitor-philips-279m1rve-27-3840-x-2160-144-gc-nano-ips-cernyi",price:54319}]},{name:"Philips 27M1N5900",typePixel:"IPS",size:27,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/905181/igrovoi-monitor-philips-27m1n5900-27-3840-x-2160-144-gc-ips-cernyi",price:52971}]},{name:"Titan Army P27A2V ",typePixel:"IPS",size:27,refreshRate:160,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/89079fc31626ed20/27-monitor-titan-army-p27a2v-cernyj/",price:43299}]},{name:"Samsung Odyssey G7 S28BG700EI",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"dns",link:"https://www.dns-shop.ru/product/433a91c0d954ed20/28-monitor-samsung-odyssey-g7-s28bg700ei-cernyj/",price:49999},{name:"ozon",link:"https://www.ozon.ru/product/samsung-28-monitor-s28bg700ei-chernyy-1528902988/?asb2=C2n80hlBLf1GMMS2LwogCM3NCO6YsBUVHOIODZnWE9hVxU2kDYSTIh91N39mE6Go&avtc=1&avte=2&avts=1718692647&keywords=%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80",price:52045},{name:"kns",link:"https://www.kns.ru/product/monitor-samsung-odyssey-g7-s28bg700ei/",price:52992},{name:"xcom",link:"https://www.xcom-shop.ru/samsung_s28bg700ei_1087684.html",price:56175},{name:"citilink",link:"https://www.citilink.ru/product/monitor-samsung-28-s28bg700ei-ips-4k-cher-1ms-hdmi-dp-usb-m-m-has-piv-1990682/",price:56250}]},{name:"Samsung Odyssey G7 S28BG700EP",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"tradeinn",link:"https://www.tradeinn.com/techinn/ru/samsung-%D0%B8%D0%B3%D1%80%D0%BE%D0%B2%D0%BE%D0%B9-%D0%BC%D0%BE%D0%BD%D0%B8%D1%82%D0%BE%D1%80-odyssey-g7-s28bg700ep-28-4k-ips-led-144hz/139778633/p",price:43296}]},{name:"Samsung S28BG700EC",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/4922854/monitor-samsung-s28bg700ec-28-3840-x-2160-144-gc-ips-cernyi",price:40763}]},{name:"Samsung Odyssey G7 G70B",typePixel:"IPS",size:28,refreshRate:144,resolution:[3840,2160],stores:[{name:"cdek",link:"https://cdek.shopping/p/8048709/igrovoi-monitor-samsung-odyssey-g7-g70b-28-3840x2160-144-gc-ips-cernyi",price:50869}]}],Lfe="_App_o4gj5_1",Ife="_list_o4gj5_4",Pfe="_monitor_o4gj5_10",Ufe="_isHide_o4gj5_15",Rfe="_head_o4gj5_18",kfe="_store_o4gj5_21",bh={App:Lfe,list:Ife,monitor:Pfe,isHide:Ufe,head:Rfe,store:kfe},Nfe="_Currency_1pmic_1",Dfe={Currency:Nfe},Ofe=(n,e)=>{const{value:t,currency:r,startCurrency:i}=n,s=t%1===0,o={USD:"$",RUB:"₽",EUR:"€"},[a,l]=Y.useState(t);Y.useEffect(()=>{l(t)},[t]),Y.useEffect(()=>{fetch("https://www.cbr-xml-daily.ru/daily_json.js").then(u=>u.json()).then(u=>{i!=="RUB"?r!=="RUB"&&l(t*u.Valute[i].Value/u.Valute[r].Value):r!=="RUB"&&l(t/u.Valute[r].Value)})},[r,i,t]);const c=Y.useMemo(()=>{const u=String(a.toFixed(0)).replace(/\B(?=(\d{3})+(?!\d))/g," ");return[s?u:[u,String(a.toFixed(2)).split(".")[1]].join("."),o[r]].join(" ")},[r,a,o]);return K.jsx("span",{className:Dfe.Currency,children:c})},yF=Y.memo(Y.forwardRef(Ofe)),Qfe=()=>{const[n,e]=Y.useState("name"),[t,r]=Y.useState([]),[i,s]=Y.useState(!1),[o,a]=Y.useState(!1),l=Y.useMemo(()=>b5.reduce((u,{stores:A})=>(A.map(({name:d})=>{u.includes(d)||u.push(d)}),u),[]),[]),c=Y.useMemo(()=>n?[...b5].sort((u,A)=>{if(n==="price"){let d=Math.min(...u.stores.map(({price:m})=>m)),f=Math.min(...A.stores.map(({price:m})=>m));return d>f?1:dA[n]?1:u[n]s(u.target.checked)}),K.jsx("input",{type:"checkbox",checked:o,onChange:u=>a(u.target.checked)})]}),K.jsx(hr,{gap:8,children:l.map(u=>K.jsx(hr,{align:"center",gap:8,onClick:()=>{t.includes(u)?r(t.filter(A=>A!==u)):r([...t,u])},children:K.jsx("span",{style:{backgroundColor:t.includes(u)?"red":"transparent"},children:u})}))}),K.jsx(Ib,{defaultValue:n,values:[void 0,"name","size","price"],onChange:u=>{e(u)}}),K.jsx(jr,{className:bh.list,ref:u=>{},justify:"beetwen",children:c.map(({name:u,size:A,stores:d},f)=>{const[m,w]=Y.useState(i);Y.useEffect(()=>{w(i)},[i]);const b=d.filter(({name:p,isNotHave:v})=>!t.includes(p)&&!v).length===0;return o&&b?null:K.jsxs(jr,{className:lr(bh.monitor,{[bh.isHide]:b}),gap:8,children:[K.jsxs(hr,{className:bh.head,justify:"between",onClick:()=>w(!m),children:[K.jsxs(hr,{gap:8,children:[K.jsx("span",{children:u}),K.jsxs("span",{children:[A,'"']})]}),K.jsx("b",{children:K.jsx(yF,{value:Math.min(...d.filter(({name:p,isNotHave:v})=>!t.includes(p)&&!v).map(({price:p})=>p)),currency:"RUB"})})]},u),K.jsx(hC,{in:!m,timeout:100,children:K.jsx(jr,{children:d.map(({name:p,link:v,price:y,isNotHave:B},P)=>!(o&&B)&&K.jsxs(hr,{className:lr(bh.store,{[bh.isHide]:t.includes(p)}),gap:8,children:[K.jsx("a",{href:v,children:p}),B&&K.jsx("span",{style:{color:"red"},children:"Нет в наличии"}),K.jsx(yF,{value:y,currency:"RUB",startCurrency:"RUB"})]},P))})})]},f)})})]})},jfe=()=>K.jsx(Qfe,{}),Hfe={PI:{name:"Программная инженерия",number:"09.03.04"}},Eg={DGTU:{name:"Дагестанский государственный технический университет",link:"https://dstu.ru/",specialities:Object.entries(Hfe).filter(([n])=>["PI"].includes(n)).reduce((n,[e,t])=>({...n,[e]:t}),{}),departments:{POVTIAS:{name:"программного обеспечения вычислительной техники и автоматизированных систем",link:"https://dstu.ru/sveden/kafedra-programmnogo-obespechenija-vychislitelnoi-tekhniki-i-avtomatizirovannykh-sistem1"}}}},zfe=[{univercity:Eg.DGTU,degree:"Бакалавр",department:Eg.DGTU.departments.POVTIAS,speciality:Eg.DGTU.specialities.PI,time:{start:new Date("01 September 2019 14:48 UTC"),end:new Date("06 June 2023 14:48 UTC")}},{univercity:Eg.DGTU,degree:"Магистр",department:Eg.DGTU.departments.POVTIAS,speciality:Eg.DGTU.specialities.PI,time:{start:new Date("01 September 2019 14:48 UTC")}}],J3={rustc:{link:"https://github.com/rust-lang/rust"},axum:{link:"https://docs.rs/axum/latest/axum/"},actix:{link:"https://docs.rs/actix-web/latest/actix_web/"},tokio:{link:"https://docs.rs/tokio/latest/tokio/"},diesel:{link:"https://docs.rs/diesel/latest/diesel/"},sqlx:{link:"https://docs.rs/sqlx/latest/sqlx/"},"wasm-bindgen":{link:"https://docs.rs/wasm-bindgen/latest/wasm_bindgen/"},"#[marker]":{link:"https://github.com/rust-lang/rust/issues/29864"}},fb={Axum:{stars:5,link:J3.axum.link},Actix:{stars:5,link:"https://docs.rs/actix/latest/actix/"},Tokio:{stars:4,link:J3.tokio.link},Diesel:{stars:4,link:"https://docs.rs/diesel/latest/diesel/"},Wasm:{stars:5},rustc:{stars:5,link:"https://github.com/rust-lang/rust"},CLI:{stars:3},Asynchrony:{stars:5},"Concurrency&Parallelism":{stars:5}},Vfe={Rust:{stars:5},Python:{stars:3},TypeScript:{stars:5},HTML:{stars:4},CSS:{stars:4}},Gfe={MySQL:{stars:4},Django:{stars:3},Axum:fb.Axum,Actix:fb.Actix,"REST API":{stars:4}},Wfe={React:{stars:5},"Redux Toolkit":{stars:5},Wasm:fb.Wasm,"RTK Query":{stars:4},Vite:{stars:4},Webpack:{stars:3},Storybook:{stars:3}},Kfe={Linux:{stars:4},Git:{stars:4},GitHub:{stars:4,link:"https://github.com/10takla"}},qfe=Object.entries({Rust:fb,"Языки программирования":Vfe,Backend:Gfe,Frontend:Wfe,Прочее:Kfe}).reduce((n,[e,t])=>({...n,[e]:Object.entries(t).map(([r,i])=>({name:r,...i}))}),{}),Xfe=[["The rust Programming Language","https://doc.rust-lang.org/book/"],["The rust Reference","https://doc.rust-lang.org/reference/"],["Rust Atomics and Locks. Low-Level Concurrency in Practice","https://marabos.nl/atomics/","https://marabos.nl/atomics/cover.jpg"],["Asynchronous Programming in rust","https://rust-lang.github.io/async-book/"],["The Cargo Book","https://doc.rust-lang.org/cargo/"],["The Little Book of rust Macros","https://veykril.github.io/tlborm/"],["Rust 🦀 and WebAssembly 🕸","https://rustwasm.github.io/book/"],["Rust By Example","https://doc.rust-lang.org/rust-by-example/"],["The rustdoc book","https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html"],["Чистый код. Создание, анализ и рефакторинг","https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882","https://content.img-gorod.ru/pim/products/images/5a/d8/019078a6-1495-7d9c-b59d-99614d315ad8.jpg?width=0&height=1200&fit=bounds"],["Rust Compiler Development Guide","https://rustc-dev-guide.rust-lang.org/"],["The `wasm-bindgen` Guide","https://rustwasm.github.io/wasm-bindgen/"]],$fe="_ToggleLanguage_1pkzq_1",Yfe={ToggleLanguage:$fe},Jfe=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const[s,[o,a]]=Y.useContext(aA),c=vp().pathname.split("/").pop();Y.useEffect(()=>{a(c)},[c]);const u=AC();return K.jsxs(K.Fragment,{children:[K.jsx(Uv,{children:K.jsx(ac,{index:!0,element:K.jsx(fC,{to:o})})}),K.jsx(Ib,{className:lr(Yfe.ToggleLanguage,[t]),ref:i,...r,values:[["en","Eng"],["ru","Рус"]],defaultValue:c,onChange:A=>u(A)})]})},Zfe=Y.memo(Y.forwardRef(Jfe)),as=({children:n,...e})=>{const[t,[r]]=Y.useContext(aA);return e[r]??n},ede={},tde={"Дагестанский государственный технический университет":"Dagestan State Technical University","Кафедра программного обеспечения вычислительной техники и автоматизированных систем":"Department of Computer Science Software and Automated Systems",Бакалавр:"Bachelor",Магистр:"Master","Программная инженерия":"Software engineering"},nde={"Языки программирования":"Programming Languages",Прочее:"Other"},rde={"Абакар Летифов":"Abakar Letifov",Инфо:"Info",Обучение:"Learning",Опыт:"Experience",Образование:"Education",Книги:"Books",Навыки:"Skills",...nde,...tde,...ede},aA=Y.createContext([()=>{},["en",()=>{}]]),ide=({children:n,lang:e})=>{const[t,r]=Y.useState(e),i=Y.useCallback(s=>{switch(t){case"en":return rde[s]??s;default:return s}},[t]);return K.jsx(aA.Provider,{value:[i,[t,r]],children:n})},sde="_Block_h431e_1",ode={Block:sde},ade=(n,e)=>{const{className:t,children:r,head:i,...s}=n,o=Y.useRef(null);return Y.useImperativeHandle(e,()=>o.current),K.jsxs(jr,{className:lr(ode.Block,[t]),ref:o,...s,children:[K.jsx("h4",{children:i}),r]})},PD=Y.memo(Y.forwardRef(ade)),lde="_Projects_1bbc1_1",ude={Projects:lde},cde=()=>{const n=[{name:"std-reset",descr:K.jsx(as,{en:"Many reworked implementations from the standard library, as well as new solutions for easy coding.",children:"Множество переработанных реализаций из стандартной библиотеки, а также новые решения для упрощения кодинга."})},{name:"lf-structs",descr:K.jsx(as,{en:"Various implementations of free locking and atomicity of data structures.",children:"Различные реализации свободных блокировок и атомарных структур."})},{name:"fork rust",descr:K.jsx(as,{en:K.jsxs(K.Fragment,{children:["Changing ",K.jsx(mr,{children:K.jsx(ra,{children:"#[marker]"})})," attribute and ",K.jsx("a",{href:"https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence",children:"overlap rules"})]}),children:K.jsxs(K.Fragment,{children:["Изменение атрибута ",K.jsx(mr,{children:K.jsx(ra,{children:"#[marker]"})})," и ",K.jsx("a",{href:"https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence",children:"правила перкрытий"})]})})},{name:"ulbi",descr:K.jsx(as,{en:"Web application: Platforms for publishing content",children:"Web-приложение: Платформа для публикации контента."}),githubLinks:["ulbi"]},{name:"planet",descr:K.jsx(as,{en:"Web Game: Plots of Planets",children:"Web-игра: Участки планет"}),githubLinks:["planet-frontend","planet-backend"]}];return K.jsx(jr,{className:ude.Projects,tag:"ol",gap:8,children:n.map(e=>K.jsxs("li",{children:[K.jsx("a",{href:`https://github.com/10takla/${e.name}`,children:K.jsx(mr,{children:e.name})}),K.jsx("br",{}),K.jsx("i",{children:e.descr})]},e.name))})},Ade="_Experience_jxmhp_1",fde="_algoLinks_jxmhp_14",dde="_item_jxmhp_24",hde="_lang_jxmhp_35",qm={Experience:Ade,algoLinks:fde,item:dde,lang:hde},ra=({children:n})=>{let e=J3[n];return K.jsx("a",{href:e.link,children:n})},mr=({children:n})=>K.jsx("code",{className:qm.lang,children:n}),pde=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const s=[K.jsx("p",{children:K.jsxs(as,{en:K.jsxs(K.Fragment,{children:["I've been developing in ",K.jsx(mr,{children:"rust"})," for over a year."]}),children:["Веду разработку на языке ",K.jsx(mr,{children:"rust"})," больше года."]})}),K.jsx(as,{en:K.jsxs("div",{children:["Previous experience:",K.jsxs("div",{children:["Languages I have learnt: ",K.jsx(mr,{children:"Python"}),", ",K.jsx(mr,{children:"TypeScript"}),", ",K.jsx(mr,{children:"PHP"}),".",K.jsx("br",{}),"Previously mainly learnt ",K.jsx(mr,{children:"Python"})," and ",K.jsx(mr,{children:"TypeScript"}),":",K.jsxs(jr,{tag:"ul",children:[K.jsxs("li",{children:[K.jsx(mr,{children:"Python"})," at Junior level.",K.jsx("br",{}),K.jsxs("ol",{children:["mastered ",K.jsx(mr,{children:"Django"}),", wrote a ",K.jsx("a",{href:"https://github.com/10takla/planet-backend",children:"server"})]})]}),K.jsxs("li",{children:[K.jsx(mr,{children:"React"}),"/",K.jsx(mr,{children:"TypeScript"}),"/",K.jsx(mr,{children:"Redux"})," at Junior-Middle level.",K.jsxs("ol",{children:["completed the ",K.jsx("a",{href:"https://ulbitv.ru/frontend",children:"course"})," on which I wrote the ",K.jsx("a",{href:"https://github.com/10takla/ulbi",children:"project"})]})]})]})]})]}),children:K.jsxs("div",{children:[K.jsx("b",{children:"Предыдущий опыт"}),K.jsxs("div",{children:["Языки, которые я изучал: ",K.jsx(mr,{children:"Python"}),", ",K.jsx(mr,{children:"TypeScript"}),", ",K.jsx(mr,{children:"PHP"}),".",K.jsx("br",{}),"Раньше в основном осваивал ",K.jsx(mr,{children:"Python"})," и ",K.jsx(mr,{children:"TypeScript"}),":",K.jsxs(jr,{tag:"ul",children:[K.jsxs("li",{children:[K.jsx(mr,{children:"Python"})," на уровне Junior.",K.jsx("br",{}),K.jsxs("ol",{children:["осваивал ",K.jsx(mr,{children:"Django"}),", писал ",K.jsx("a",{href:"https://github.com/10takla/planet-backend",children:"сервер"})]})]}),K.jsxs("li",{children:[K.jsx(mr,{children:"React"}),"/",K.jsx(mr,{children:"TypeScript"}),"/",K.jsx(mr,{children:"Redux"})," на уровне Junior-Middle.",K.jsxs("ol",{children:["прошел ",K.jsx("a",{href:"https://ulbitv.ru/frontend",children:"курс"})," на котором писал ",K.jsx("a",{href:"https://github.com/10takla/ulbi",children:"проект"})]})]})]})]})]})}),K.jsx(as,{en:K.jsxs("div",{children:[K.jsx("span",{children:"Used in practice:"}),K.jsx("ul",{children:[K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:K.jsx(ra,{children:"axum"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"actix"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"diesel"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"sqlx"})})]}),K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:"wasm"}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"wasm-bindgen"})}),";"]}),"ffi to c/c++/python;",K.jsxs(K.Fragment,{children:["Concurrency at ",K.jsx("u",{children:"atomics"})," level, ",K.jsx("u",{children:"memory ordering"}),", ",K.jsx("u",{children:"futex"})," system calls;"]}),K.jsxs(K.Fragment,{children:["Asynchronous programming, particularly ",K.jsx(mr,{children:K.jsx(ra,{children:"tokio"})}),";"]}),"CLI applications;","I translate all copied code into procedural, declarative macros;",K.jsxs(K.Fragment,{children:["I always accompany all logically important code with ",K.jsx("u",{children:"unit"})," and integration tests."]})].map((o,a)=>K.jsx("li",{children:o},a))})]}),children:K.jsxs("div",{children:[K.jsx("span",{children:"Использовал на практике:"}),K.jsx("ul",{children:[K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:K.jsx(ra,{children:"axum"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"actix"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"diesel"})}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"sqlx"})})]}),K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:"wasm"}),"/",K.jsx(mr,{children:K.jsx(ra,{children:"wasm-bindgen"})}),";"]}),"ffi к c/c++/python;",K.jsxs(K.Fragment,{children:["Concurrency на уровне ",K.jsx("u",{children:"atomics"}),", ",K.jsx("u",{children:"memory ordering"}),", системные вызовы ",K.jsx("u",{children:"futex"}),";"]}),K.jsxs(K.Fragment,{children:["Асинхронное программирование, в частности ",K.jsx(mr,{children:K.jsx(ra,{children:"tokio"})}),";"]}),"CLI-приложения;","Весь копипаст кода перевожу в процедурные, декларативные макросы;",K.jsxs(K.Fragment,{children:["Весь логически важный код всегда сопровождаю ",K.jsx("u",{children:"unit"})," и интеграционными тестами."]})].map((o,a)=>K.jsx("li",{children:o},a))})]})}),K.jsxs("div",{children:[K.jsx(as,{en:K.jsxs(K.Fragment,{children:["I have experience working with ",K.jsx(mr,{children:K.jsx(ra,{children:"rustc"})})," compiler. At the moment I am ",K.jsx("a",{href:"https://github.com/10takla/rust",children:"working"})," on modification of the compiler overlap rule."]}),children:K.jsxs(K.Fragment,{children:["Имею опыт работы с компилятором ",K.jsx(mr,{children:K.jsx(ra,{children:"rustc"})}),". На данный момент ",K.jsx("a",{href:"https://github.com/10takla/rust",children:"работаю"})," над модификацией правила перекрытий компилятора."]})}),K.jsx("br",{}),K.jsx(as,{en:"I am currently developing 3 pet projects:",children:"В настоящее время разрабатываю 3 pet-проекта:"}),K.jsx("ol",{children:[K.jsxs(K.Fragment,{children:[K.jsx("u",{children:"low-level concurrency"}),", ",K.jsx("u",{children:"atomics"}),", ",K.jsx("u",{children:"memory ordering"}),";"]}),K.jsxs(K.Fragment,{children:[K.jsx("u",{children:"asynchrony"}),", ",K.jsx(mr,{children:K.jsx(ra,{children:"tokio"})}),";"]}),K.jsxs(K.Fragment,{children:[K.jsx(mr,{children:K.jsx(ra,{children:"axum"})}),", ",K.jsx(mr,{children:"wasm"}),", ",K.jsx(as,{en:"graphical computing and algorithms, blockchain.",children:"графические вычисления и алгоритмы, блокчейн."}),"."]})].map((o,a)=>K.jsxs("li",{children:[K.jsx(as,{en:"Covers",children:"Охватывает"}),": ",o]},a))})]}),K.jsxs(hr,{tag:"span",align:"center",gap:8,children:[K.jsx("span",{children:K.jsxs(as,{en:K.jsxs(K.Fragment,{children:["I know algorithms and data structures, how to find optimal solutions for memory and CPU time. I constantly strive for ",K.jsx("u",{children:"O(log n)"})," and ",K.jsx("u",{children:"O(n)"})," complexity of algorithms."]}),children:["Знаю алгоритмы и структуры данных , как находить оптимальные решения для памяти и процессорного времени. Постоянно стремлюсь к ",K.jsx("u",{children:"O(log n)"})," и ",K.jsx("u",{children:"O(n)"})," сложности алгоритмов."]})}),K.jsxs(jr,{className:qm.algoLinks,align:"center",children:[K.jsx("a",{href:"https://leetcode.com/u/10takla/",children:K.jsx("img",{src:"https://assets.leetcode.com/static_assets/public/webpack_bundles/images/logo.c36eaf5e6.svg",alt:"leetcode",title:"leetcode"})}),K.jsx("a",{href:"https://www.codewars.com/users/10takla",children:K.jsx("img",{src:"https://www.codewars.com/packs/assets/logo.f607a0fb.svg",alt:"codewars",title:"codewars"})})]})]}),K.jsxs("div",{children:[K.jsx(as,{en:"Skilled in:",children:"Умею:"}),K.jsxs("ul",{children:[K.jsx("li",{children:K.jsx(as,{en:K.jsx(K.Fragment,{children:"Read, understand, and write rust documentation;"}),children:K.jsxs(K.Fragment,{children:["Читать, понимать, и писать ",K.jsx(mr,{children:"rust"}),"-овскую документацию;"]})})}),K.jsxs("li",{children:[K.jsx(as,{en:K.jsx(K.Fragment,{children:"Create and manage cargo packages in "}),children:K.jsxs(K.Fragment,{children:["Создавать и управлять пакетами ",K.jsx(mr,{children:"cargo"})," в системе "]})}),K.jsx(mr,{children:K.jsx("a",{href:"https://crates.io/",children:"crates.io"})}),"/",K.jsx(mr,{children:K.jsx("a",{href:"https://github.com/10takla",children:"github"})}),"."]})]})]}),K.jsx("div",{children:K.jsx(as,{en:K.jsxs(K.Fragment,{children:["I often communicate with the ",K.jsx(mr,{children:"rust"})," community on various forums and groups: I participate in discussions about language specifics; I suggest improvements and new ideas."]}),children:K.jsxs(K.Fragment,{children:["Часто коммуницирую с комьюнити ",K.jsx(mr,{children:"rust"})," на различных форумах и группах: участвую в обсуждениях специфик языка; предлагаю улучшения и новые идеи."]})})}),K.jsxs("div",{children:[K.jsx(as,{en:"I plan my workflow carefully. I use trackers such as ",children:"Грамотно планирую свой рабочий процесс. Использую трекеры такие как "}),K.jsx("a",{href:"https://www.jetbrains.com/youtrack/",children:"YouTrack"}),K.jsx(as,{en:" to keep track of tasks completed.",children:" для отслеживания выполненных задач."})]})];return K.jsxs(jr,{className:lr(qm.Experience,[t]),ref:i,justify:"between",...r,children:[s.map((o,a)=>K.jsx("div",{className:qm.item,children:o},a)),K.jsx(PD,{className:qm.item,head:K.jsx(as,{en:"Projects",children:"Проекты"}),children:K.jsx(cde,{})})]})},gde=Y.memo(Y.forwardRef(pde)),mde={},vde="_Books_1adal_1",yde="_book_1adal_6",wde="_cover_1adal_15",Z3={Books:vde,book:yde,cover:wde},bde=({book:n})=>{const e={name:n[0],link:n[1],cover:n[2]};return K.jsx(hr,{className:Z3.book,tag:"a",align:"center",justify:"center",href:e.link,title:e.name,children:e.cover?typeof e.cover=="string"?K.jsx("img",{src:e.cover}):e.cover:K.jsxs(hr,{className:Z3.cover,children:[K.jsx("div",{}),K.jsx("h1",{children:e.name})]})})},xde=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);return Y.useImperativeHandle(e,()=>i.current),K.jsx(hr,{className:lr(Z3.Books,[t]),ref:i,justify:"between",...r,children:Xfe.map((s,o)=>K.jsx(bde,{book:s},o))})},_de=Y.memo(Y.forwardRef(xde)),Sde="_Education_at8pr_1",Bde="_place_at8pr_4",Cde="_descript_at8pr_15",x5={Education:Sde,place:Bde,descript:Cde},Ede="_TimeLine_16al4_1",Mde="_time_16al4_1",Tde="_start_16al4_1",Fde="_end_16al4_4",Lde="_timeLine_16al4_7",Ide="_line_16al4_13",Pde="_mask_16al4_20",Ude="_leftPoint_16al4_28",Rde="_rightPoint_16al4_29",kde="_rightPointCont_16al4_30",Su={TimeLine:Ede,time:Mde,start:Tde,end:Fde,timeLine:Lde,line:Ide,mask:Pde,leftPoint:Ude,rightPoint:Rde,rightPointCont:kde},wF=n=>{const{className:e,time:t,...r}=n,[i,[s]]=Y.useContext(aA);return K.jsxs(hr,{className:lr(Su.time,[e]),tag:"span",gap:16,...r,children:[t.toLocaleString(s==="ru"?"ru-RU":"en-En",{month:"long"}),K.jsx("br",{}),t.getFullYear()]})},Nde=(n,e)=>{const{className:t,time:r,...i}=n,s=Y.useRef(null);return Y.useImperativeHandle(e,()=>s.current),K.jsxs(hr,{className:lr(Su.TimeLine,[t]),ref:s,...i,justify:"between",gap:8,align:"center",children:[K.jsx(wF,{time:r.start,className:Su.start}),K.jsxs("svg",{className:Su.timeLine,children:[K.jsxs("mask",{id:"lineMask",children:[K.jsx("rect",{width:"100%",height:"100%",fill:"white"}),K.jsx("rect",{className:Su.mask})]}),K.jsx("circle",{className:Su.leftPoint,cy:"50%"}),K.jsx("circle",{className:r.end?Su.rightPoint:Su.rightPointCont,cy:"50%"}),K.jsx("rect",{className:Su.line})]}),r.end?K.jsx(wF,{time:r.end,className:Su.end}):K.jsx("span",{className:lr(Su.time,[Su.end]),children:K.jsx(as,{en:K.jsx(K.Fragment,{children:"to date"}),children:K.jsxs(K.Fragment,{children:["по настоящее",K.jsx("br",{}),"время"]})})})]})},Dde=Y.memo(Y.forwardRef(Nde)),Ode=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const[s]=Y.useContext(aA);return K.jsx(jr,{className:lr(x5.Education,[t]),ref:i,...r,children:zfe.map((o,a)=>K.jsxs(jr,{className:x5.place,gap:4,children:[K.jsx("h4",{children:K.jsx("a",{href:o.univercity.link,children:s(o.univercity.name)})}),K.jsxs(jr,{className:x5.descript,children:[K.jsx("i",{children:K.jsx("a",{href:o.department.link,children:s(`Кафедра ${o.department.name}`)})}),K.jsxs("span",{children:[s(o.degree),K.jsxs("span",{style:{marginLeft:"0.4em"},children:[K.jsx("b",{children:o.speciality.number}),' "',s(o.speciality.name),'"']})]})]}),K.jsx(Dde,{time:o.time})]},a))})},Qde=Y.memo(Y.forwardRef(Ode)),jde=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const[s]=Y.useContext(aA),o=[[s("Образование"),K.jsx(Qde,{})],[s("Книги"),K.jsx(_de,{})]];return K.jsx(jr,{className:lr(mde.Learning,[t]),ref:i,...r,children:o.map(([a,l],c)=>K.jsxs("div",{children:[K.jsx("h3",{children:a}),l]},c))})},Hde=Y.memo(Y.forwardRef(jde)),zde="_Contacts_ybj7x_1",Vde="_contact_ybj7x_4",bF={Contacts:zde,contact:Vde},Gde=n=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#5f6368",...n},Y.createElement("path",{d:"M798-120q-125 0-247-54.5T329-329Q229-429 174.5-551T120-798q0-18 12-30t30-12h162q14 0 25 9.5t13 22.5l26 140q2 16-1 27t-11 19l-97 98q20 37 47.5 71.5T387-386q31 31 65 57.5t72 48.5l94-94q9-9 23.5-13.5T670-390l138 28q14 4 23 14.5t9 23.5v162q0 18-12 30t-30 12ZM241-600l66-66-17-94h-89q5 41 14 81t26 79Zm358 358q39 17 79.5 27t81.5 13v-88l-94-19-67 67ZM241-600Zm358 358Z"})),Wde=Gde,Kde=n=>Y.createElement("svg",{height:24,"aria-hidden":"true",viewBox:"0 0 24 24",width:24,"data-view-component":"true",className:"octicon octicon-mark-github v-align-middle color-fg-default",...n},Y.createElement("path",{d:"M12.5.75C6.146.75 1 5.896 1 12.25c0 5.089 3.292 9.387 7.863 10.91.575.101.79-.244.79-.546 0-.273-.014-1.178-.014-2.142-2.889.532-3.636-.704-3.866-1.35-.13-.331-.69-1.352-1.18-1.625-.402-.216-.977-.748-.014-.762.906-.014 1.553.834 1.769 1.179 1.035 1.74 2.688 1.25 3.349.948.1-.747.402-1.25.733-1.538-2.559-.287-5.232-1.279-5.232-5.678 0-1.25.445-2.285 1.178-3.09-.115-.288-.517-1.467.115-3.048 0 0 .963-.302 3.163 1.179.92-.259 1.897-.388 2.875-.388.977 0 1.955.13 2.875.388 2.2-1.495 3.162-1.179 3.162-1.179.633 1.581.23 2.76.115 3.048.733.805 1.179 1.825 1.179 3.09 0 4.413-2.688 5.39-5.247 5.678.417.36.776 1.05.776 2.128 0 1.538-.014 2.774-.014 3.162 0 .302.216.662.79.547C20.709 21.637 24 17.324 24 12.25 24 5.896 18.854.75 12.5.75Z"})),qde=Kde,Xde=n=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#5f6368",...n},Y.createElement("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"})),$de=Xde,Yde=n=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"24px",height:"24px",...n},Y.createElement("path",{fill:"#29b6f6",d:"M24 4A20 20 0 1 0 24 44A20 20 0 1 0 24 4Z"}),Y.createElement("path",{fill:"#fff",d:"M33.95,15l-3.746,19.126c0,0-0.161,0.874-1.245,0.874c-0.576,0-0.873-0.274-0.873-0.274l-8.114-6.733 l-3.97-2.001l-5.095-1.355c0,0-0.907-0.262-0.907-1.012c0-0.625,0.933-0.923,0.933-0.923l21.316-8.468 c-0.001-0.001,0.651-0.235,1.126-0.234C33.667,14,34,14.125,34,14.5C34,14.75,33.95,15,33.95,15z"}),Y.createElement("path",{fill:"#b0bec5",d:"M23,30.505l-3.426,3.374c0,0-0.149,0.115-0.348,0.12c-0.069,0.002-0.143-0.009-0.219-0.043 l0.964-5.965L23,30.505z"}),Y.createElement("path",{fill:"#cfd8dc",d:"M29.897,18.196c-0.169-0.22-0.481-0.26-0.701-0.093L16,26c0,0,2.106,5.892,2.427,6.912 c0.322,1.021,0.58,1.045,0.58,1.045l0.964-5.965l9.832-9.096C30.023,18.729,30.064,18.416,29.897,18.196z"})),Jde=Yde,Zde=[{link:"tel:+7 (932) 409-91-67",svg:K.jsx(Wde,{}),text:"+7 (932) 409-91-67"},{link:"https://github.com/10takla",svg:K.jsx(qde,{}),text:"10takla"},{link:"https://crates.io/users/10takla",img:"https://crates.io/assets/cargo.png",text:"crates.io"},{link:"mailto:letifovabakar50@gmail.com",svg:K.jsx($de,{}),text:"letifovabakar50@gmail.com"},{link:"https://t.me/gorog1",svg:K.jsx(Jde,{}),text:"gordon"}],ehe=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);return Y.useImperativeHandle(e,()=>i.current),K.jsx(hr,{className:lr(bF.Contacts,[t]),ref:i,align:"center",justify:"center",gap:8,...r,children:Zde.map(({link:s,svg:o,text:a,img:l})=>K.jsxs(hr,{className:bF.contact,align:"center",tag:s&&"a",href:s,children:[o&&o,l&&K.jsx("img",{src:l}),a]},s))})},the=Y.memo(Y.forwardRef(ehe)),xF={},nhe=(n,e)=>{const{className:t,...r}=n,i=Y.useRef(null);Y.useImperativeHandle(e,()=>i.current);const[s]=Y.useContext(aA);return K.jsxs(jr,{className:lr(xF.PersonalInfo,[t]),ref:i,...r,children:[K.jsx(the,{}),",",K.jsxs(jr,{className:xF.person,children:[K.jsx("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0"}),K.jsxs("div",{style:{textAlign:"center"},children:[K.jsx("h1",{style:{marginBottom:0},children:s("Абакар Летифов")}),K.jsx("h2",{style:{marginTop:"0.2em"},children:K.jsx("u",{children:"Rust Developer"})})]})]})]})},rhe=Y.memo(Y.forwardRef(nhe)),ihe="_App_10dz0_6",she="_left_10dz0_34",ohe="_chapter_10dz0_34",ahe="_head_10dz0_34",lhe="_right_10dz0_35",uhe="_topLeft_10dz0_48",che="_nonPad_10dz0_79",Ahe="_topRight_10dz0_83",fhe="_lang_10dz0_100",dhe="_skillLine_10dz0_126",ec={App:ihe,left:she,chapter:ohe,head:ahe,right:lhe,topLeft:uhe,nonPad:che,topRight:Ahe,lang:fhe,skillLine:dhe},hhe={},phe=n=>Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#5f6368",...n},Y.createElement("path",{d:"M360-460h40v-80h40q17 0 28.5-11.5T480-580v-40q0-17-11.5-28.5T440-660h-80v200Zm40-120v-40h40v40h-40Zm120 120h80q17 0 28.5-11.5T640-500v-120q0-17-11.5-28.5T600-660h-80v200Zm40-40v-120h40v120h-40Zm120 40h40v-80h40v-40h-40v-40h40v-40h-80v200ZM320-240q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320Zm0-80h480v-480H320v480ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Zm160-720v480-480Z"})),ghe=phe;var UD={exports:{}},ul=Uint8Array,cl=Uint16Array,Bv=Uint32Array,yx=new ul([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),wx=new ul([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),eB=new ul([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),RD=function(n,e){for(var t=new cl(31),r=0;r<31;++r)t[r]=e+=1<>>1|(ws&21845)<<1;Vf=(Vf&52428)>>>2|(Vf&13107)<<2,Vf=(Vf&61680)>>>4|(Vf&3855)<<4,nB[ws]=((Vf&65280)>>>8|(Vf&255)<<8)>>>1}var nA=function(n,e,t){for(var r=n.length,i=0,s=new cl(e);i>>l]=c}else for(a=new cl(r),i=0;i>>15-n[i];return a},_d=new ul(288);for(var ws=0;ws<144;++ws)_d[ws]=8;for(var ws=144;ws<256;++ws)_d[ws]=9;for(var ws=256;ws<280;++ws)_d[ws]=7;for(var ws=280;ws<288;++ws)_d[ws]=8;var Cv=new ul(32);for(var ws=0;ws<32;++ws)Cv[ws]=5;var vhe=nA(_d,9,0),yhe=nA(_d,9,1),whe=nA(Cv,5,0),bhe=nA(Cv,5,1),_5=function(n){for(var e=n[0],t=1;te&&(e=n[t]);return e},$u=function(n,e,t){var r=e/8>>0;return(n[r]|n[r+1]<<8)>>>(e&7)&t},S5=function(n,e){var t=e/8>>0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>>(e&7)},k4=function(n){return(n/8>>0)+(n&7&&1)},OD=function(n,e,t){(e==null||e<0)&&(e=0),(t==null||t>n.length)&&(t=n.length);var r=new(n instanceof cl?cl:n instanceof Bv?Bv:ul)(t-e);return r.set(n.subarray(e,t)),r},xhe=function(n,e,t){var r=n.length,i=!e||t,s=!t||t.i;t||(t={}),e||(e=new ul(r*3));var o=function(Fe){var Pe=e.length;if(Fe>Pe){var Xe=new ul(Math.max(Pe*2,Fe));Xe.set(e),e=Xe}},a=t.f||0,l=t.p||0,c=t.b||0,u=t.l,A=t.d,d=t.m,f=t.n,m=r*8;do{if(!u){t.f=a=$u(n,l,1);var w=$u(n,l+1,3);if(l+=3,w)if(w==1)u=yhe,A=bhe,d=9,f=5;else if(w==2){var y=$u(n,l,31)+257,B=$u(n,l+10,15)+4,P=y+$u(n,l+5,31)+1;l+=14;for(var U=new ul(P),x=new ul(19),D=0;Dm)break;for(var O=nA(x,Q,1),D=0;D>>4;if(b<16)U[D++]=b;else{var X=0,ee=0;for(b==16?(ee=3+$u(n,l,3),l+=2,X=U[D-1]):b==17?(ee=3+$u(n,l,7),l+=3):b==18&&(ee=11+$u(n,l,127),l+=7);ee--;)U[D++]=X}}var $=U.subarray(0,y),re=U.subarray(y);d=_5($),f=_5(re),u=nA($,d,1),A=nA(re,f,1)}else throw"invalid block type";else{var b=k4(l)+4,p=n[b-4]|n[b-3]<<8,v=b+p;if(v>r){if(s)throw"unexpected EOF";break}i&&o(c+p),e.set(n.subarray(b,v),c),t.b=c+=p,t.p=l=v*8;continue}if(l>m)throw"unexpected EOF"}i&&o(c+131072);for(var ye=(1<>>4;if(l+=X&15,l>m)throw"unexpected EOF";if(!X)throw"invalid length/literal";if(ie<256)e[c++]=ie;else if(ie==256){u=null;break}else{var Ee=ie-254;if(ie>264){var D=ie-257,J=yx[D];Ee=$u(n,l,(1<>>4;if(!fe)throw"invalid distance";l+=fe&15;var re=mhe[Ae];if(Ae>3){var J=wx[Ae];re+=S5(n,l)&(1<m)throw"unexpected EOF";i&&o(c+131072);for(var be=c+Ee;c>0;n[r]|=t,n[r+1]|=t>>>8},Nm=function(n,e,t){t<<=e&7;var r=e/8>>0;n[r]|=t,n[r+1]|=t>>>8,n[r+2]|=t>>>16},B5=function(n,e){for(var t=[],r=0;rd&&(d=s[r].s);var f=new cl(d+1),m=rB(t[u-1],f,0);if(m>e){var r=0,w=0,b=m-e,p=1<e)w+=p-(1<>>=b;w>0;){var y=s[r].s;f[y]=0&&w;--r){var B=s[r].s;f[B]==e&&(--f[B],++w)}m=e}return[new ul(f),m]},rB=function(n,e,t){return n.s==-1?Math.max(rB(n.l,e,t+1),rB(n.r,e,t+1)):e[n.s]=t},SF=function(n){for(var e=n.length;e&&!n[--e];);for(var t=new cl(++e),r=0,i=n[0],s=1,o=function(l){t[r++]=l},a=1;a<=e;++a)if(n[a]==i&&a!=e)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=n[a]}return[t.subarray(0,r),e]},Dm=function(n,e){for(var t=0,r=0;r>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var s=0;s4&&!N[eB[G-1]];--G);var X=c+5<<3,ee=Dm(i,_d)+Dm(s,Cv)+o,$=Dm(i,d)+Dm(s,w)+o+14+3*G+Dm(x,N)+(2*x[16]+3*x[17]+7*x[18]);if(X<=ee&&X<=$)return mw(e,u,n.subarray(l,l+c));var re,ye,W,le;if(NA(e,u,1+($15&&(NA(e,u,fe[D]>>>5&127),u+=fe[D]>>>12)}}else re=vhe,ye=_d,W=whe,le=Cv;for(var D=0;D255){var Ae=r[D]>>>18&31;Nm(e,u,re[Ae+257]),u+=ye[Ae+257],Ae>7&&(NA(e,u,r[D]>>>23&31),u+=yx[Ae]);var be=r[D]&31;Nm(e,u,W[be]),u+=le[be],be>3&&(Nm(e,u,r[D]>>>5&8191),u+=wx[be])}else Nm(e,u,re[r[D]]),u+=ye[r[D]];return Nm(e,u,re[256]),u+ye[256]},_he=new Bv([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),She=new ul(0),Bhe=function(n,e,t,r,i,s){var o=n.length,a=new ul(r+o+5*(1+Math.floor(o/7e3))+i),l=a.subarray(r,a.length-i),c=0;if(!e||o<8)for(var u=0;u<=o;u+=65535){var A=u+65535;A>>13,m=d&8191,w=(1<7e3||N>24576)&&re>423){c=BF(n,l,0,P,U,x,Q,N,G,u-G,c),N=D=Q=0,G=u;for(var ye=0;ye<286;++ye)U[ye]=0;for(var ye=0;ye<30;++ye)x[ye]=0}var W=2,le=0,ie=m,Ee=ee-$&32767;if(re>2&&X==B(u-Ee))for(var J=Math.min(f,re)-1,fe=Math.min(32767,u),Ae=Math.min(258,re);Ee<=fe&&--ie&&ee!=$;){if(n[u+W]==n[u+W-Ee]){for(var be=0;beW){if(W=be,le=Ee,be>J)break;for(var Fe=Math.min(Ee,be-2),Pe=0,ye=0;yePe&&(Pe=At,$=Xe)}}}ee=$,$=b[ee],Ee+=ee-$+32768&32767}if(le){P[N++]=268435456|tB[W]<<18|_F[le];var Ue=tB[W]&31,Ke=_F[le]&31;Q+=yx[Ue]+wx[Ke],++U[257+Ue],++x[Ke],O=u+W,++D}else P[N++]=n[u],++U[n[u]]}}c=BF(n,l,s,P,U,x,Q,N,G,u-G,c),s||(c=mw(l,c,She))}return OD(a,0,r+k4(c)+i)},Che=function(){var n=1,e=0;return{p:function(t){for(var r=n,i=e,s=t.length,o=0;o!=s;){for(var a=Math.min(o+5552,s);o>>8<<16|(e&255)<<8|e>>>8)+((n&255)<<23)*2}}},Ehe=function(n,e,t,r,i){return Bhe(n,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):12+e.mem,t,r,!i)},Mhe=function(n,e,t){for(;t;++e)n[e]=t,t>>>=8},The=function(n,e){var t=e.level,r=t==0?0:t<6?1:t==9?3:2;n[0]=120,n[1]=r<<6|(r?32-2*r:1)},Fhe=function(n){if((n[0]&15)!=8||n[0]>>>4>7||(n[0]<<8|n[1])%31)throw"invalid zlib data";if(n[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function iB(n,e){e===void 0&&(e={});var t=Che();t.p(n);var r=Ehe(n,e,2,4);return The(r,e),Mhe(r,r.length-4,t.d()),r}function Lhe(n,e){return xhe((Fhe(n),n.subarray(2,-4)),e)}var yr=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function C5(){yr.console&&typeof yr.console.log=="function"&&yr.console.log.apply(yr.console,arguments)}var es={log:C5,warn:function(n){yr.console&&(typeof yr.console.warn=="function"?yr.console.warn.apply(yr.console,arguments):C5.call(null,arguments))},error:function(n){yr.console&&(typeof yr.console.error=="function"?yr.console.error.apply(yr.console,arguments):C5(n))}};function E5(n,e,t){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Fh(r.response,e,t)},r.onerror=function(){es.error("could not download file")},r.send()}function CF(n){var e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Oy(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(e)}}var p1,sB,Fh=yr.saveAs||((typeof window>"u"?"undefined":Ei(window))!=="object"||window!==yr?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,t){var r=yr.URL||yr.webkitURL,i=document.createElement("a");e=e||n.name||"download",i.download=e,i.rel="noopener",typeof n=="string"?(i.href=n,i.origin!==location.origin?CF(i.href)?E5(n,e,t):Oy(i,i.target="_blank"):Oy(i)):(i.href=r.createObjectURL(n),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Oy(i)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,t){if(e=e||n.name||"download",typeof n=="string")if(CF(n))E5(n,e,t);else{var r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){Oy(r)})}else navigator.msSaveOrOpenBlob(function(i,s){return s===void 0?s={autoBom:!1}:Ei(s)!=="object"&&(es.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(n,t),e)}:function(n,e,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return E5(n,e,t);var i=n.type==="application/octet-stream",s=/constructor/i.test(yr.HTMLElement)||yr.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&s)&&(typeof FileReader>"u"?"undefined":Ei(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var u=a.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location=u,r=null},a.readAsDataURL(n)}else{var l=yr.URL||yr.webkitURL,c=l.createObjectURL(n);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} @@ -5273,7 +5273,7 @@ T* `):k.join(` Tj `),e}},Cross:{createAppearanceStream:function(n){var e={D:{Off:jn.RadioButton.Cross.OffPushDown},N:{}};return e.N[n]=jn.RadioButton.Cross.YesNormal,e.D[n]=jn.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(n){var e=kc(n);e.scope=n.scope;var t=[],r=jn.internal.calculateCross(n);return t.push("q"),t.push("1 1 "+Rr(jn.internal.getWidth(n)-2)+" "+Rr(jn.internal.getHeight(n)-2)+" re"),t.push("W"),t.push("n"),t.push(Rr(r.x1.x)+" "+Rr(r.x1.y)+" m"),t.push(Rr(r.x2.x)+" "+Rr(r.x2.y)+" l"),t.push(Rr(r.x4.x)+" "+Rr(r.x4.y)+" m"),t.push(Rr(r.x3.x)+" "+Rr(r.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(` `),e},YesPushDown:function(n){var e=kc(n);e.scope=n.scope;var t=jn.internal.calculateCross(n),r=[];return r.push("0.749023 g"),r.push("0 0 "+Rr(jn.internal.getWidth(n))+" "+Rr(jn.internal.getHeight(n))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Rr(jn.internal.getWidth(n)-2)+" "+Rr(jn.internal.getHeight(n)-2)+" re"),r.push("W"),r.push("n"),r.push(Rr(t.x1.x)+" "+Rr(t.x1.y)+" m"),r.push(Rr(t.x2.x)+" "+Rr(t.x2.y)+" l"),r.push(Rr(t.x4.x)+" "+Rr(t.x4.y)+" m"),r.push(Rr(t.x3.x)+" "+Rr(t.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(` `),e},OffPushDown:function(n){var e=kc(n);e.scope=n.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Rr(jn.internal.getWidth(n))+" "+Rr(jn.internal.getHeight(n))+" re"),t.push("f"),e.stream=t.join(` -`),e}}},createDefaultAppearanceStream:function(n){var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,t=n.scope.__private__.encodeColorString(n.color);return"/"+e+" "+n.fontSize+" Tf "+t}};jn.internal={Bezier_C:.551915024494,calculateCross:function(n){var e=jn.internal.getWidth(n),t=jn.internal.getHeight(n),r=Math.min(e,t);return{x1:{x:(e-r)/2,y:(t-r)/2+r},x2:{x:(e-r)/2+r,y:(t-r)/2},x3:{x:(e-r)/2,y:(t-r)/2},x4:{x:(e-r)/2+r,y:(t-r)/2+r}}}},jn.internal.getWidth=function(n){var e=0;return Ei(n)==="object"&&(e=FF(n.Rect[2])),e},jn.internal.getHeight=function(n){var e=0;return Ei(n)==="object"&&(e=FF(n.Rect[3])),e};var Ghe=$s.addField=function(n){if(Vhe(this,n),!(n instanceof pc))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=n).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};$s.AcroFormChoiceField=Zh,$s.AcroFormListBox=ep,$s.AcroFormComboBox=tp,$s.AcroFormEditBox=g1,$s.AcroFormButton=Ho,$s.AcroFormPushButton=m1,$s.AcroFormRadioButton=np,$s.AcroFormCheckBox=v1,$s.AcroFormTextField=hd,$s.AcroFormPasswordField=y1,$s.AcroFormAppearance=jn,$s.AcroForm={ChoiceField:Zh,ListBox:ep,ComboBox:tp,EditBox:g1,Button:Ho,PushButton:m1,RadioButton:np,CheckBox:v1,TextField:hd,PasswordField:y1,Appearance:jn},gr.AcroForm={ChoiceField:Zh,ListBox:ep,ComboBox:tp,EditBox:g1,Button:Ho,PushButton:m1,RadioButton:np,CheckBox:v1,TextField:hd,PasswordField:y1,Appearance:jn};var Whe=gr.AcroForm;function WD(n){return n.reduce(function(e,t,r){return e[t]=r,e},{})}(function(n){n.__addimage__={};var e="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=n.__addimage__.getImageFileTypeByImageData=function(O,G){var X,ee,$,re,ye,W=e;if((G=G||e)==="RGBA"||O.data!==void 0&&O.data instanceof Uint8ClampedArray&&"height"in O&&"width"in O)return"RGBA";if(U(O))for(ye in t)for($=t[ye],X=0;X<$.length;X+=1){for(re=!0,ee=0;ee<$[X].length;ee+=1)if($[X][ee]!==void 0&&$[X][ee]!==O[ee]){re=!1;break}if(re===!0){W=ye;break}}else for(ye in t)for($=t[ye],X=0;X<$.length;X+=1){for(re=!0,ee=0;ee<$[X].length;ee+=1)if($[X][ee]!==void 0&&$[X][ee]!==O.charCodeAt(ee)){re=!1;break}if(re===!0){W=ye;break}}return W===e&&G!==e&&(W=G),W},i=function O(G){for(var X=this.internal.write,ee=this.internal.putStream,$=(0,this.internal.getFilters)();$.indexOf("FlateEncode")!==-1;)$.splice($.indexOf("FlateEncode"),1);G.objectId=this.internal.newObject();var re=[];if(re.push({key:"Type",value:"/XObject"}),re.push({key:"Subtype",value:"/Image"}),re.push({key:"Width",value:G.width}),re.push({key:"Height",value:G.height}),G.colorSpace===b.INDEXED?re.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(G.palette.length/3-1)+" "+("sMask"in G&&G.sMask!==void 0?G.objectId+2:G.objectId+1)+" 0 R]"}):(re.push({key:"ColorSpace",value:"/"+G.colorSpace}),G.colorSpace===b.DEVICE_CMYK&&re.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),re.push({key:"BitsPerComponent",value:G.bitsPerComponent}),"decodeParameters"in G&&G.decodeParameters!==void 0&&re.push({key:"DecodeParms",value:"<<"+G.decodeParameters+">>"}),"transparency"in G&&Array.isArray(G.transparency)){for(var ye="",W=0,le=G.transparency.length;W>",w.content=s;var y=w.objId+" 0 R";s="<>";else if(r.options.pageNumber)switch(s="<=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(w){return o(w)&&s(w)&&e[w.charCodeAt(0)].length>=1};var c=n.__arabicParser__.arabicLetterHasFinalForm=function(w){return o(w)&&s(w)&&e[w.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(w){return o(w)&&s(w)&&e[w.charCodeAt(0)].length>=3};var u=n.__arabicParser__.arabicLetterHasMedialForm=function(w){return o(w)&&s(w)&&e[w.charCodeAt(0)].length==4},A=n.__arabicParser__.resolveLigatures=function(w){var b=0,p=t,v="",y=0;for(b=0;b>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(n){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(a){t=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(a){i=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(a){s=a}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(a){o=a}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,r){var i;if((t=t||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(gr.API),function(n){var e={left:0,top:0,bottom:0,right:0},t=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(w){l=w}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(w){c=w}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(w){u=w}});var A=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return A},set:function(w){A=w}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(w){d=w}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(w){f=w}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(w){m=w}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},n.getTextDimensions=function(l,c){r.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),A=c.font||this.getFont(),d=c.scaleFactor||this.internal.scaleFactor,f=0,m=0,w=0,b=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var p=c.maxWidth;p>0?typeof l=="string"?l=this.splitTextToSize(l,p):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(y,B){return y.concat(b.splitTextToSize(B,p))},[])):l=Array.isArray(l)?l:[l];for(var v=0;vthis.getPageHeight()?(this.cellAddPage(),l.y=A.top,f&&d&&(this.printHeaderRow(l.lineNumber,!0),l.y+=d[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,t===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};n.table=function(l,c,u,A,d){if(r.call(this),!u)throw new Error("No data for PDF table.");var f,m,w,b,p=[],v=[],y=[],B={},P={},U=[],x=[],D=(d=d||{}).autoSize||!1,Q=d.printHeaders!==!1,N=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,O=d.margins||Object.assign({width:this.getPageWidth()},e),G=typeof d.padding=="number"?d.padding:3,X=d.headerBackgroundColor||"#c8c8c8",ee=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=Q,this.internal.__cell__.margins=O,this.internal.__cell__.table_font_size=N,this.internal.__cell__.padding=G,this.internal.__cell__.headerBackgroundColor=X,this.internal.__cell__.headerTextColor=ee,this.setFontSize(N),A==null)v=p=Object.keys(u[0]),y=p.map(function(){return"left"});else if(Array.isArray(A)&&Ei(A[0])==="object")for(p=A.map(function(ie){return ie.name}),v=A.map(function(ie){return ie.prompt||ie.name||""}),y=A.map(function(ie){return ie.align||"left"}),f=0;f0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),t=!1}}(gr.API);var KD={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},qD=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],uB=WD(qD),XD=[100,200,300,400,500,600,700,800,900],Khe=WD(XD);function cB(n){var e=n.family.replace(/"|'/g,"").toLowerCase(),t=function(s){return KD[s=s||"normal"]?s:"normal"}(n.style),r=function(s){if(!s)return 400;if(typeof s=="number")return s>=100&&s<=900&&s%100==0?s:400;if(/^\d00$/.test(s))return parseInt(s);switch(s){case"bold":return 700;case"normal":default:return 400}}(n.weight),i=function(s){return typeof uB[s=s||"normal"]=="number"?s:"normal"}(n.stretch);return{family:e,style:t,weight:r,stretch:i,src:n.src||[],ref:n.ref||{name:e,style:[i,t,r].join(" ")}}}function LF(n,e,t,r){var i;for(i=t;i>=0&&i=0&&i=2?ze[1]:ve[0],ve[2]=ze.length>=3?ze[2]:ve[0],ve[3]=ze.length>=4?ze[3]:ve[1]),c.margin=ve}});var Xe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Xe},set:function(ze){Xe=ze}});var Ye=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ye},set:function(ze){Ye=ze}});var At=[];Object.defineProperty(this,"pageBreaks",{get:function(){return At},set:function(ze){At=ze}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(ze){ze instanceof u&&(c=ze)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(ze){c.path=ze}});var Ue=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ue},set:function(ze){Ue=ze}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ze){var ve;ve=d(ze),this.ctx.fillStyle=ve.style,this.ctx.isFillTransparent=ve.a===0,this.ctx.fillOpacity=ve.a,this.pdf.setFillColor(ve.r,ve.g,ve.b,{a:ve.a}),this.pdf.setTextColor(ve.r,ve.g,ve.b,{a:ve.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ze){var ve=d(ze);this.ctx.strokeStyle=ve.style,this.ctx.isStrokeTransparent=ve.a===0,this.ctx.strokeOpacity=ve.a,ve.a===0?this.pdf.setDrawColor(255,255,255):(ve.a,this.pdf.setDrawColor(ve.r,ve.g,ve.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ze){["butt","round","square"].indexOf(ze)!==-1&&(this.ctx.lineCap=ze,this.pdf.setLineCap(ze))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ze){isNaN(ze)||(this.ctx.lineWidth=ze,this.pdf.setLineWidth(ze))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ze){["bevel","round","miter"].indexOf(ze)!==-1&&(this.ctx.lineJoin=ze,this.pdf.setLineJoin(ze))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ze){isNaN(ze)||(this.ctx.miterLimit=ze,this.pdf.setMiterLimit(ze))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ze){this.ctx.textBaseline=ze}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ze){["right","end","center","left","start"].indexOf(ze)!==-1&&(this.ctx.textAlign=ze)}});var Ke=null;function Ge(ze,ve){if(Ke===null){var xe=function(se){var ke=[];return Object.keys(se).forEach(function(We){se[We].forEach(function(tt){var Je=null;switch(tt){case"bold":Je={family:We,weight:"bold"};break;case"italic":Je={family:We,style:"italic"};break;case"bolditalic":Je={family:We,weight:"bold",style:"italic"};break;case"":case"normal":Je={family:We}}Je!==null&&(Je.ref={name:We,style:tt},ke.push(Je))})}),ke}(ze.getFontList());Ke=function(se){for(var ke={},We=0;We=700||xe==="bold")&&(yt="bold"),xe==="italic"&&(yt+="italic"),yt.length===0&&(yt="normal");for(var ut="",Ht={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Dt=0;Dt=2*Math.PI&&(be=0,Fe=2*Math.PI),this.path.push({type:"arc",x:J,y:fe,radius:Ae,startAngle:be,endAngle:Fe,counterclockwise:Pe})},A.prototype.arcTo=function(J,fe,Ae,be,Fe){throw new Error("arcTo not implemented.")},A.prototype.rect=function(J,fe,Ae,be){if(isNaN(J)||isNaN(fe)||isNaN(Ae)||isNaN(be))throw es.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(J,fe),this.lineTo(J+Ae,fe),this.lineTo(J+Ae,fe+be),this.lineTo(J,fe+be),this.lineTo(J,fe),this.lineTo(J+Ae,fe),this.lineTo(J,fe)},A.prototype.fillRect=function(J,fe,Ae,be){if(isNaN(J)||isNaN(fe)||isNaN(Ae)||isNaN(be))throw es.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var Fe={};this.lineCap!=="butt"&&(Fe.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Fe.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(J,fe,Ae,be),this.fill(),Fe.hasOwnProperty("lineCap")&&(this.lineCap=Fe.lineCap),Fe.hasOwnProperty("lineJoin")&&(this.lineJoin=Fe.lineJoin)}},A.prototype.strokeRect=function(J,fe,Ae,be){if(isNaN(J)||isNaN(fe)||isNaN(Ae)||isNaN(be))throw es.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(J,fe,Ae,be),this.stroke())},A.prototype.clearRect=function(J,fe,Ae,be){if(isNaN(J)||isNaN(fe)||isNaN(Ae)||isNaN(be))throw es.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(J,fe,Ae,be))},A.prototype.save=function(J){J=typeof J!="boolean"||J;for(var fe=this.pdf.internal.getCurrentPageInfo().pageNumber,Ae=0;Ae0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(J,fe,Ae,be,Fe,Pe,Xe,Ye,At){var Ue=this.pdf.getImageProperties(J),Ke=1,Ge=1,_t=1,ze=1;be!==void 0&&Ye!==void 0&&(_t=Ye/be,ze=At/Fe,Ke=Ue.width/be*Ye/be,Ge=Ue.height/Fe*At/Fe),Pe===void 0&&(Pe=fe,Xe=Ae,fe=0,Ae=0),be!==void 0&&Ye===void 0&&(Ye=be,At=Fe),be===void 0&&Ye===void 0&&(Ye=Ue.width,At=Ue.height);for(var ve,xe=this.ctx.transform.decompose(),se=W(xe.rotate.shx),ke=new l,We=(ke=(ke=(ke=ke.multiply(xe.translate)).multiply(xe.skew)).multiply(xe.scale)).applyToRectangle(new a(Pe-fe*_t,Xe-Ae*ze,be*Ke,Fe*Ge)),tt=b.call(this,We),Je=[],Ut=0;Utyt||Htke||tt0)){for(;At>=0;At--)if(Fe[At-1].close!==!0&&Fe[At-1].begin!==!0){Fe[At-1].deltas.push(Ae),Fe[At-1].abs.push(Ye);break}}break;case"bct":Ae=[Ye.x1-Pe[Xe-1].x,Ye.y1-Pe[Xe-1].y,Ye.x2-Pe[Xe-1].x,Ye.y2-Pe[Xe-1].y,Ye.x-Pe[Xe-1].x,Ye.y-Pe[Xe-1].y],Fe[Fe.length-1].deltas.push(Ae);break;case"qct":var Ue=Pe[Xe-1].x+2/3*(Ye.x1-Pe[Xe-1].x),Ke=Pe[Xe-1].y+2/3*(Ye.y1-Pe[Xe-1].y),Ge=Ye.x+2/3*(Ye.x1-Ye.x),_t=Ye.y+2/3*(Ye.y1-Ye.y),ze=Ye.x,ve=Ye.y;Ae=[Ue-Pe[Xe-1].x,Ke-Pe[Xe-1].y,Ge-Pe[Xe-1].x,_t-Pe[Xe-1].y,ze-Pe[Xe-1].x,ve-Pe[Xe-1].y],Fe[Fe.length-1].deltas.push(Ae);break;case"arc":Fe.push({deltas:[],abs:[],arc:!0}),Array.isArray(Fe[Fe.length-1].abs)&&Fe[Fe.length-1].abs.push(Ye)}}be=fe?null:J==="stroke"?"stroke":"fill";for(var xe=!1,se=0;se=.01&&(Ue=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ue*J.scale),Ke=this.lineWidth,this.lineWidth=Ke*J.scale);var He=this.autoPaging!=="text";if(He||tn.y+tn.h<=Ut){if(He||tn.y>=tt&&tn.x<=ut){var Ve=He?J.text:this.pdf.splitTextToSize(J.text,J.maxWidth||ut-tn.x)[0],Et=v([JSON.parse(JSON.stringify(Ge))],this.posX+this.margin[3],-Dt+tt+this.ctx.prevPageLastElemOffset)[0],St=He&&(We>se||We=.01&&(this.pdf.setFontSize(Ue),this.lineWidth=Ke)}else J.scale>=.01&&(Ue=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ue*J.scale),Ke=this.lineWidth,this.lineWidth=Ke*J.scale),this.pdf.text(J.text,Pe.x+this.posX,Pe.y+this.posY,{angle:J.angle,align:fe,renderingMode:J.renderingMode,maxWidth:J.maxWidth}),J.scale>=.01&&(this.pdf.setFontSize(Ue),this.lineWidth=Ke)},X=function(J,fe,Ae,be){Ae=Ae||0,be=be||0,this.pdf.internal.out(t(J+Ae)+" "+r(fe+be)+" l")},ee=function(J,fe,Ae){return this.pdf.lines(J,fe,Ae,null,null)},$=function(J,fe,Ae,be,Fe,Pe,Xe,Ye){this.pdf.internal.out([e(i(Ae+J)),e(s(be+fe)),e(i(Fe+J)),e(s(Pe+fe)),e(i(Xe+J)),e(s(Ye+fe)),"c"].join(" "))},re=function(J,fe,Ae,be){for(var Fe=2*Math.PI,Pe=Math.PI/2;fe>Ae;)fe-=Fe;var Xe=Math.abs(Ae-fe);Xe1e-5;){var Ke=Ue+At*Math.min(Xe,Pe);Ye.push(ye.call(this,J,Ue,Ke)),Xe-=Math.abs(Ke-Ue),Ue=Ke}return Ye},ye=function(J,fe,Ae){var be=(Ae-fe)/2,Fe=J*Math.cos(be),Pe=J*Math.sin(be),Xe=Fe,Ye=-Pe,At=Xe*Xe+Ye*Ye,Ue=At+Xe*Fe+Ye*Pe,Ke=4/3*(Math.sqrt(2*At*Ue)-Ue)/(Xe*Pe-Ye*Fe),Ge=Xe-Ke*Ye,_t=Ye+Ke*Xe,ze=Ge,ve=-_t,xe=be+fe,se=Math.cos(xe),ke=Math.sin(xe);return{x1:J*Math.cos(fe),y1:J*Math.sin(fe),x2:Ge*se-_t*ke,y2:Ge*ke+_t*se,x3:ze*se-ve*ke,y3:ze*ke+ve*se,x4:J*Math.cos(Ae),y4:J*Math.sin(Ae)}},W=function(J){return 180*J/Math.PI},le=function(J,fe,Ae,be,Fe,Pe){var Xe=J+.5*(Ae-J),Ye=fe+.5*(be-fe),At=Fe+.5*(Ae-Fe),Ue=Pe+.5*(be-Pe),Ke=Math.min(J,Fe,Xe,At),Ge=Math.max(J,Fe,Xe,At),_t=Math.min(fe,Pe,Ye,Ue),ze=Math.max(fe,Pe,Ye,Ue);return new a(Ke,_t,Ge-Ke,ze-_t)},ie=function(J,fe,Ae,be,Fe,Pe,Xe,Ye){var At,Ue,Ke,Ge,_t,ze,ve,xe,se,ke,We,tt,Je,Ut,yt=Ae-J,ut=be-fe,Ht=Fe-Ae,Dt=Pe-be,Qt=Xe-Fe,tn=Ye-Pe;for(Ue=0;Ue<41;Ue++)se=(ve=(Ke=J+(At=Ue/40)*yt)+At*((_t=Ae+At*Ht)-Ke))+At*(_t+At*(Fe+At*Qt-_t)-ve),ke=(xe=(Ge=fe+At*ut)+At*((ze=be+At*Dt)-Ge))+At*(ze+At*(Pe+At*tn-ze)-xe),Ue==0?(We=se,tt=ke,Je=se,Ut=ke):(We=Math.min(We,se),tt=Math.min(tt,ke),Je=Math.max(Je,se),Ut=Math.max(Ut,ke));return new a(Math.round(We),Math.round(tt),Math.round(Je-We),Math.round(Ut-tt))},Ee=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var J,fe,Ae=(J=this.ctx.lineDash,fe=this.ctx.lineDashOffset,JSON.stringify({lineDash:J,lineDashOffset:fe}));this.prevLineDash!==Ae&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ae)}}})(gr.API),function(n){var e=function(s){var o,a,l,c,u,A,d,f,m,w;for(a=[],l=0,c=(s+=o="\0\0\0\0".slice(s.length%4||4)).length;c>l;l+=4)(u=(s.charCodeAt(l)<<24)+(s.charCodeAt(l+1)<<16)+(s.charCodeAt(l+2)<<8)+s.charCodeAt(l+3))!==0?(A=(u=((u=((u=((u=(u-(w=u%85))/85)-(m=u%85))/85)-(f=u%85))/85)-(d=u%85))/85)%85,a.push(A+33,d+33,f+33,m+33,w+33)):a.push(122);return function(b,p){for(var v=p;v>0;v--)b.pop()}(a,o.length),String.fromCharCode.apply(String,a)+"~>"},t=function(s){var o,a,l,c,u,A=String,d="length",f=255,m="charCodeAt",w="slice",b="replace";for(s[w](-2),s=s[w](0,-2)[b](/\s/g,"")[b]("z","!!!!!"),l=[],c=0,u=(s+=o="uuuuu"[w](s[d]%5||5))[d];u>c;c+=5)a=52200625*(s[m](c)-33)+614125*(s[m](c+1)-33)+7225*(s[m](c+2)-33)+85*(s[m](c+3)-33)+(s[m](c+4)-33),l.push(f&a>>24,f&a>>16,f&a>>8,f&a);return function(p,v){for(var y=v;y>0;y--)p.pop()}(l,o[d]),A.fromCharCode.apply(A,l)},r=function(s){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),o.test(s)===!1)return"";for(var a="",l=0;l",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[a]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(gr.API),function(n){n.loadFile=function(e,t,r){return function(i,s,o){s=s!==!1,o=typeof o=="function"?o:function(){};var a=void 0;try{a=function(l,c,u){var A=new XMLHttpRequest,d=0,f=function(m){var w=m.length,b=[],p=String.fromCharCode;for(d=0;dimport("./html2canvas-03ipGMwJ.js").then(o=>o.h),__vite__mapDeps([]))).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function t(){return(yr.DOMPurify?Promise.resolve(yr.DOMPurify):$3(()=>import("./purify.es-DGIRlouP.js"),__vite__mapDeps([]))).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var r=function(o){var a=Ei(o);return a==="undefined"?"undefined":a==="string"||o instanceof String?"string":a==="number"||o instanceof Number?"number":a==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":a==="object"?"object":"unknown"},i=function(o,a){var l=document.createElement(o);for(var c in a.className&&(l.className=a.className),a.innerHTML&&a.dompurify&&(l.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)l.style[c]=a.style[c];return l},s=function o(a){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,o,1,[o])).set(a)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(o,a){return o.__proto__=a||s.prototype,o},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(o,a){return this.then(function(){switch(a=a||function(l){switch(r(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o)){case"string":return this.then(t).then(function(l){return this.set({src:i("div",{innerHTML:o,dompurify:l})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},s.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},a=function l(c,u){for(var A=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),d=c.firstChild;d;d=d.nextSibling)u!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||A.appendChild(l(d,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(A.width=c.width,A.height=c.height,A.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(A.value=c.value),A.addEventListener("load",function(){A.scrollTop=c.scrollTop,A.scrollLeft=c.scrollLeft},!0)),A}(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(a){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,a(this.prop.container,l)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(a){var l=this.opt.jsPDF,c=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,A=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete A.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var d=0;dm&&(f=w,w=m,m=f);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",m>w&&(f=w,w=m,m=f)}return{width:w,height:m,unit:a,k:u,orientation:o}},n.html=function(o,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(cB):null;var l=new s(a);return a.worker?l:l.from(o).doCallback()}}(gr.API),gr.API.addJS=function(n){return kF=n,this.internal.events.subscribe("postPutResources",function(){jy=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(jy+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),RF=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+kF+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){jy!==void 0&&RF!==void 0&&this.internal.out("/Names <>")}),this},function(n){var e;n.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),s=0;s> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),s=0;s>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,i,s){var o={title:i,options:s,children:[]};return r==null&&(r=this.root),r.children.push(o),o},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(r){r.id=t.internal.newObjectDeferred();for(var i=0;i0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},t.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s0&&this.line("/Prev "+this.makeRef(r.children[s-1])),s0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var a=this.count=this.count_r({count:0},o);if(a>0&&this.line("/Count "+a),o.options&&o.options.pageNumber){var l=t.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c>"}),"transparency"in G&&Array.isArray(G.transparency)){for(var ye="",W=0,le=G.transparency.length;W>",w.content=s;var y=w.objId+" 0 R";s="<>";else if(r.options.pageNumber)switch(s="<=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(w){return o(w)&&s(w)&&e[w.charCodeAt(0)].length>=1};var c=n.__arabicParser__.arabicLetterHasFinalForm=function(w){return o(w)&&s(w)&&e[w.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(w){return o(w)&&s(w)&&e[w.charCodeAt(0)].length>=3};var u=n.__arabicParser__.arabicLetterHasMedialForm=function(w){return o(w)&&s(w)&&e[w.charCodeAt(0)].length==4},A=n.__arabicParser__.resolveLigatures=function(w){var b=0,p=t,v="",y=0;for(b=0;b>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(n){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(a){t=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(a){i=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(a){s=a}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(a){o=a}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,r){var i;if((t=t||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(gr.API),function(n){var e={left:0,top:0,bottom:0,right:0},t=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(w){l=w}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(w){c=w}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(w){u=w}});var A=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return A},set:function(w){A=w}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(w){d=w}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(w){f=w}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(w){m=w}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(l){return r.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},n.getTextDimensions=function(l,c){r.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),A=c.font||this.getFont(),d=c.scaleFactor||this.internal.scaleFactor,f=0,m=0,w=0,b=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var p=c.maxWidth;p>0?typeof l=="string"?l=this.splitTextToSize(l,p):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(y,B){return y.concat(b.splitTextToSize(B,p))},[])):l=Array.isArray(l)?l:[l];for(var v=0;vthis.getPageHeight()?(this.cellAddPage(),l.y=A.top,f&&d&&(this.printHeaderRow(l.lineNumber,!0),l.y+=d[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,t===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};n.table=function(l,c,u,A,d){if(r.call(this),!u)throw new Error("No data for PDF table.");var f,m,w,b,p=[],v=[],y=[],B={},P={},U=[],x=[],D=(d=d||{}).autoSize||!1,Q=d.printHeaders!==!1,N=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,O=d.margins||Object.assign({width:this.getPageWidth()},e),G=typeof d.padding=="number"?d.padding:3,X=d.headerBackgroundColor||"#c8c8c8",ee=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=Q,this.internal.__cell__.margins=O,this.internal.__cell__.table_font_size=N,this.internal.__cell__.padding=G,this.internal.__cell__.headerBackgroundColor=X,this.internal.__cell__.headerTextColor=ee,this.setFontSize(N),A==null)v=p=Object.keys(u[0]),y=p.map(function(){return"left"});else if(Array.isArray(A)&&Ei(A[0])==="object")for(p=A.map(function(ie){return ie.name}),v=A.map(function(ie){return ie.prompt||ie.name||""}),y=A.map(function(ie){return ie.align||"left"}),f=0;f0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),t=!1}}(gr.API);var KD={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},qD=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],uB=WD(qD),XD=[100,200,300,400,500,600,700,800,900],Khe=WD(XD);function cB(n){var e=n.family.replace(/"|'/g,"").toLowerCase(),t=function(s){return KD[s=s||"normal"]?s:"normal"}(n.style),r=function(s){if(!s)return 400;if(typeof s=="number")return s>=100&&s<=900&&s%100==0?s:400;if(/^\d00$/.test(s))return parseInt(s);switch(s){case"bold":return 700;case"normal":default:return 400}}(n.weight),i=function(s){return typeof uB[s=s||"normal"]=="number"?s:"normal"}(n.stretch);return{family:e,style:t,weight:r,stretch:i,src:n.src||[],ref:n.ref||{name:e,style:[i,t,r].join(" ")}}}function LF(n,e,t,r){var i;for(i=t;i>=0&&i=0&&i=2?ze[1]:ve[0],ve[2]=ze.length>=3?ze[2]:ve[0],ve[3]=ze.length>=4?ze[3]:ve[1]),c.margin=ve}});var Xe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Xe},set:function(ze){Xe=ze}});var Ye=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ye},set:function(ze){Ye=ze}});var At=[];Object.defineProperty(this,"pageBreaks",{get:function(){return At},set:function(ze){At=ze}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(ze){ze instanceof u&&(c=ze)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(ze){c.path=ze}});var Ue=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ue},set:function(ze){Ue=ze}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ze){var ve;ve=d(ze),this.ctx.fillStyle=ve.style,this.ctx.isFillTransparent=ve.a===0,this.ctx.fillOpacity=ve.a,this.pdf.setFillColor(ve.r,ve.g,ve.b,{a:ve.a}),this.pdf.setTextColor(ve.r,ve.g,ve.b,{a:ve.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ze){var ve=d(ze);this.ctx.strokeStyle=ve.style,this.ctx.isStrokeTransparent=ve.a===0,this.ctx.strokeOpacity=ve.a,ve.a===0?this.pdf.setDrawColor(255,255,255):(ve.a,this.pdf.setDrawColor(ve.r,ve.g,ve.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ze){["butt","round","square"].indexOf(ze)!==-1&&(this.ctx.lineCap=ze,this.pdf.setLineCap(ze))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ze){isNaN(ze)||(this.ctx.lineWidth=ze,this.pdf.setLineWidth(ze))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ze){["bevel","round","miter"].indexOf(ze)!==-1&&(this.ctx.lineJoin=ze,this.pdf.setLineJoin(ze))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ze){isNaN(ze)||(this.ctx.miterLimit=ze,this.pdf.setMiterLimit(ze))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ze){this.ctx.textBaseline=ze}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ze){["right","end","center","left","start"].indexOf(ze)!==-1&&(this.ctx.textAlign=ze)}});var Ke=null;function Ge(ze,ve){if(Ke===null){var xe=function(se){var ke=[];return Object.keys(se).forEach(function(We){se[We].forEach(function(tt){var Je=null;switch(tt){case"bold":Je={family:We,weight:"bold"};break;case"italic":Je={family:We,style:"italic"};break;case"bolditalic":Je={family:We,weight:"bold",style:"italic"};break;case"":case"normal":Je={family:We}}Je!==null&&(Je.ref={name:We,style:tt},ke.push(Je))})}),ke}(ze.getFontList());Ke=function(se){for(var ke={},We=0;We=700||xe==="bold")&&(yt="bold"),xe==="italic"&&(yt+="italic"),yt.length===0&&(yt="normal");for(var ut="",Ht={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Dt=0;Dt=2*Math.PI&&(be=0,Fe=2*Math.PI),this.path.push({type:"arc",x:J,y:fe,radius:Ae,startAngle:be,endAngle:Fe,counterclockwise:Pe})},A.prototype.arcTo=function(J,fe,Ae,be,Fe){throw new Error("arcTo not implemented.")},A.prototype.rect=function(J,fe,Ae,be){if(isNaN(J)||isNaN(fe)||isNaN(Ae)||isNaN(be))throw es.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(J,fe),this.lineTo(J+Ae,fe),this.lineTo(J+Ae,fe+be),this.lineTo(J,fe+be),this.lineTo(J,fe),this.lineTo(J+Ae,fe),this.lineTo(J,fe)},A.prototype.fillRect=function(J,fe,Ae,be){if(isNaN(J)||isNaN(fe)||isNaN(Ae)||isNaN(be))throw es.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var Fe={};this.lineCap!=="butt"&&(Fe.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Fe.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(J,fe,Ae,be),this.fill(),Fe.hasOwnProperty("lineCap")&&(this.lineCap=Fe.lineCap),Fe.hasOwnProperty("lineJoin")&&(this.lineJoin=Fe.lineJoin)}},A.prototype.strokeRect=function(J,fe,Ae,be){if(isNaN(J)||isNaN(fe)||isNaN(Ae)||isNaN(be))throw es.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(J,fe,Ae,be),this.stroke())},A.prototype.clearRect=function(J,fe,Ae,be){if(isNaN(J)||isNaN(fe)||isNaN(Ae)||isNaN(be))throw es.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(J,fe,Ae,be))},A.prototype.save=function(J){J=typeof J!="boolean"||J;for(var fe=this.pdf.internal.getCurrentPageInfo().pageNumber,Ae=0;Ae0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(J,fe,Ae,be,Fe,Pe,Xe,Ye,At){var Ue=this.pdf.getImageProperties(J),Ke=1,Ge=1,_t=1,ze=1;be!==void 0&&Ye!==void 0&&(_t=Ye/be,ze=At/Fe,Ke=Ue.width/be*Ye/be,Ge=Ue.height/Fe*At/Fe),Pe===void 0&&(Pe=fe,Xe=Ae,fe=0,Ae=0),be!==void 0&&Ye===void 0&&(Ye=be,At=Fe),be===void 0&&Ye===void 0&&(Ye=Ue.width,At=Ue.height);for(var ve,xe=this.ctx.transform.decompose(),se=W(xe.rotate.shx),ke=new l,We=(ke=(ke=(ke=ke.multiply(xe.translate)).multiply(xe.skew)).multiply(xe.scale)).applyToRectangle(new a(Pe-fe*_t,Xe-Ae*ze,be*Ke,Fe*Ge)),tt=b.call(this,We),Je=[],Ut=0;Utyt||Htke||tt0)){for(;At>=0;At--)if(Fe[At-1].close!==!0&&Fe[At-1].begin!==!0){Fe[At-1].deltas.push(Ae),Fe[At-1].abs.push(Ye);break}}break;case"bct":Ae=[Ye.x1-Pe[Xe-1].x,Ye.y1-Pe[Xe-1].y,Ye.x2-Pe[Xe-1].x,Ye.y2-Pe[Xe-1].y,Ye.x-Pe[Xe-1].x,Ye.y-Pe[Xe-1].y],Fe[Fe.length-1].deltas.push(Ae);break;case"qct":var Ue=Pe[Xe-1].x+2/3*(Ye.x1-Pe[Xe-1].x),Ke=Pe[Xe-1].y+2/3*(Ye.y1-Pe[Xe-1].y),Ge=Ye.x+2/3*(Ye.x1-Ye.x),_t=Ye.y+2/3*(Ye.y1-Ye.y),ze=Ye.x,ve=Ye.y;Ae=[Ue-Pe[Xe-1].x,Ke-Pe[Xe-1].y,Ge-Pe[Xe-1].x,_t-Pe[Xe-1].y,ze-Pe[Xe-1].x,ve-Pe[Xe-1].y],Fe[Fe.length-1].deltas.push(Ae);break;case"arc":Fe.push({deltas:[],abs:[],arc:!0}),Array.isArray(Fe[Fe.length-1].abs)&&Fe[Fe.length-1].abs.push(Ye)}}be=fe?null:J==="stroke"?"stroke":"fill";for(var xe=!1,se=0;se=.01&&(Ue=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ue*J.scale),Ke=this.lineWidth,this.lineWidth=Ke*J.scale);var He=this.autoPaging!=="text";if(He||tn.y+tn.h<=Ut){if(He||tn.y>=tt&&tn.x<=ut){var Ve=He?J.text:this.pdf.splitTextToSize(J.text,J.maxWidth||ut-tn.x)[0],Et=v([JSON.parse(JSON.stringify(Ge))],this.posX+this.margin[3],-Dt+tt+this.ctx.prevPageLastElemOffset)[0],St=He&&(We>se||We=.01&&(this.pdf.setFontSize(Ue),this.lineWidth=Ke)}else J.scale>=.01&&(Ue=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ue*J.scale),Ke=this.lineWidth,this.lineWidth=Ke*J.scale),this.pdf.text(J.text,Pe.x+this.posX,Pe.y+this.posY,{angle:J.angle,align:fe,renderingMode:J.renderingMode,maxWidth:J.maxWidth}),J.scale>=.01&&(this.pdf.setFontSize(Ue),this.lineWidth=Ke)},X=function(J,fe,Ae,be){Ae=Ae||0,be=be||0,this.pdf.internal.out(t(J+Ae)+" "+r(fe+be)+" l")},ee=function(J,fe,Ae){return this.pdf.lines(J,fe,Ae,null,null)},$=function(J,fe,Ae,be,Fe,Pe,Xe,Ye){this.pdf.internal.out([e(i(Ae+J)),e(s(be+fe)),e(i(Fe+J)),e(s(Pe+fe)),e(i(Xe+J)),e(s(Ye+fe)),"c"].join(" "))},re=function(J,fe,Ae,be){for(var Fe=2*Math.PI,Pe=Math.PI/2;fe>Ae;)fe-=Fe;var Xe=Math.abs(Ae-fe);Xe1e-5;){var Ke=Ue+At*Math.min(Xe,Pe);Ye.push(ye.call(this,J,Ue,Ke)),Xe-=Math.abs(Ke-Ue),Ue=Ke}return Ye},ye=function(J,fe,Ae){var be=(Ae-fe)/2,Fe=J*Math.cos(be),Pe=J*Math.sin(be),Xe=Fe,Ye=-Pe,At=Xe*Xe+Ye*Ye,Ue=At+Xe*Fe+Ye*Pe,Ke=4/3*(Math.sqrt(2*At*Ue)-Ue)/(Xe*Pe-Ye*Fe),Ge=Xe-Ke*Ye,_t=Ye+Ke*Xe,ze=Ge,ve=-_t,xe=be+fe,se=Math.cos(xe),ke=Math.sin(xe);return{x1:J*Math.cos(fe),y1:J*Math.sin(fe),x2:Ge*se-_t*ke,y2:Ge*ke+_t*se,x3:ze*se-ve*ke,y3:ze*ke+ve*se,x4:J*Math.cos(Ae),y4:J*Math.sin(Ae)}},W=function(J){return 180*J/Math.PI},le=function(J,fe,Ae,be,Fe,Pe){var Xe=J+.5*(Ae-J),Ye=fe+.5*(be-fe),At=Fe+.5*(Ae-Fe),Ue=Pe+.5*(be-Pe),Ke=Math.min(J,Fe,Xe,At),Ge=Math.max(J,Fe,Xe,At),_t=Math.min(fe,Pe,Ye,Ue),ze=Math.max(fe,Pe,Ye,Ue);return new a(Ke,_t,Ge-Ke,ze-_t)},ie=function(J,fe,Ae,be,Fe,Pe,Xe,Ye){var At,Ue,Ke,Ge,_t,ze,ve,xe,se,ke,We,tt,Je,Ut,yt=Ae-J,ut=be-fe,Ht=Fe-Ae,Dt=Pe-be,Qt=Xe-Fe,tn=Ye-Pe;for(Ue=0;Ue<41;Ue++)se=(ve=(Ke=J+(At=Ue/40)*yt)+At*((_t=Ae+At*Ht)-Ke))+At*(_t+At*(Fe+At*Qt-_t)-ve),ke=(xe=(Ge=fe+At*ut)+At*((ze=be+At*Dt)-Ge))+At*(ze+At*(Pe+At*tn-ze)-xe),Ue==0?(We=se,tt=ke,Je=se,Ut=ke):(We=Math.min(We,se),tt=Math.min(tt,ke),Je=Math.max(Je,se),Ut=Math.max(Ut,ke));return new a(Math.round(We),Math.round(tt),Math.round(Je-We),Math.round(Ut-tt))},Ee=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var J,fe,Ae=(J=this.ctx.lineDash,fe=this.ctx.lineDashOffset,JSON.stringify({lineDash:J,lineDashOffset:fe}));this.prevLineDash!==Ae&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ae)}}})(gr.API),function(n){var e=function(s){var o,a,l,c,u,A,d,f,m,w;for(a=[],l=0,c=(s+=o="\0\0\0\0".slice(s.length%4||4)).length;c>l;l+=4)(u=(s.charCodeAt(l)<<24)+(s.charCodeAt(l+1)<<16)+(s.charCodeAt(l+2)<<8)+s.charCodeAt(l+3))!==0?(A=(u=((u=((u=((u=(u-(w=u%85))/85)-(m=u%85))/85)-(f=u%85))/85)-(d=u%85))/85)%85,a.push(A+33,d+33,f+33,m+33,w+33)):a.push(122);return function(b,p){for(var v=p;v>0;v--)b.pop()}(a,o.length),String.fromCharCode.apply(String,a)+"~>"},t=function(s){var o,a,l,c,u,A=String,d="length",f=255,m="charCodeAt",w="slice",b="replace";for(s[w](-2),s=s[w](0,-2)[b](/\s/g,"")[b]("z","!!!!!"),l=[],c=0,u=(s+=o="uuuuu"[w](s[d]%5||5))[d];u>c;c+=5)a=52200625*(s[m](c)-33)+614125*(s[m](c+1)-33)+7225*(s[m](c+2)-33)+85*(s[m](c+3)-33)+(s[m](c+4)-33),l.push(f&a>>24,f&a>>16,f&a>>8,f&a);return function(p,v){for(var y=v;y>0;y--)p.pop()}(l,o[d]),A.fromCharCode.apply(A,l)},r=function(s){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),o.test(s)===!1)return"";for(var a="",l=0;l",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[a]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(gr.API),function(n){n.loadFile=function(e,t,r){return function(i,s,o){s=s!==!1,o=typeof o=="function"?o:function(){};var a=void 0;try{a=function(l,c,u){var A=new XMLHttpRequest,d=0,f=function(m){var w=m.length,b=[],p=String.fromCharCode;for(d=0;dimport("./html2canvas-CVxpFGJ8.js").then(o=>o.h),__vite__mapDeps([]))).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function t(){return(yr.DOMPurify?Promise.resolve(yr.DOMPurify):$3(()=>import("./purify.es-DGIRlouP.js"),__vite__mapDeps([]))).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var r=function(o){var a=Ei(o);return a==="undefined"?"undefined":a==="string"||o instanceof String?"string":a==="number"||o instanceof Number?"number":a==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":a==="object"?"object":"unknown"},i=function(o,a){var l=document.createElement(o);for(var c in a.className&&(l.className=a.className),a.innerHTML&&a.dompurify&&(l.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)l.style[c]=a.style[c];return l},s=function o(a){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,o,1,[o])).set(a)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(o,a){return o.__proto__=a||s.prototype,o},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(o,a){return this.then(function(){switch(a=a||function(l){switch(r(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o)){case"string":return this.then(t).then(function(l){return this.set({src:i("div",{innerHTML:o,dompurify:l})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},s.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},a=function l(c,u){for(var A=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),d=c.firstChild;d;d=d.nextSibling)u!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||A.appendChild(l(d,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(A.width=c.width,A.height=c.height,A.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(A.value=c.value),A.addEventListener("load",function(){A.scrollTop=c.scrollTop,A.scrollLeft=c.scrollLeft},!0)),A}(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(a){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,a(this.prop.container,l)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(a){var l=this.opt.jsPDF,c=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,A=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete A.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var d=0;dm&&(f=w,w=m,m=f);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",m>w&&(f=w,w=m,m=f)}return{width:w,height:m,unit:a,k:u,orientation:o}},n.html=function(o,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(cB):null;var l=new s(a);return a.worker?l:l.from(o).doCallback()}}(gr.API),gr.API.addJS=function(n){return kF=n,this.internal.events.subscribe("postPutResources",function(){jy=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(jy+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),RF=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+kF+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){jy!==void 0&&RF!==void 0&&this.internal.out("/Names <>")}),this},function(n){var e;n.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),s=0;s> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),s=0;s>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,i,s){var o={title:i,options:s,children:[]};return r==null&&(r=this.root),r.children.push(o),o},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(r){r.id=t.internal.newObjectDeferred();for(var i=0;i0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},t.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s0&&this.line("/Prev "+this.makeRef(r.children[s-1])),s0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var a=this.count=this.count_r({count:0},o);if(a>0&&this.line("/Count "+a),o.options&&o.options.pageNumber){var l=t.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;cO;O++)if(D[Q+O]!=N.charCodeAt(O))return!0;return!1}function r(D,Q,N,O,G){for(var X=0;XX+1?[]:new Q),!(ee.length>>0;_&j;)j>>>=1;return j?(_&j-1)+j:_}function N(_,L,j,Z,ce){e(!(Z%j));do _[L+(Z-=j)]=ce;while(0=ce),512>=ce)var he=s(512);else if((he=s(ce))==null)return 0;return function(ge,me,we,Te,Ie,pt){var gt,Ze,Kt=me,Tt=1<gt;++gt){if($e[gt]>1<(ar-=$e[gt]))return 0;for(;0<$e[gt];--$e[gt])(Te=new G).g=gt,Te.value=pt[Ze++],N(ge,Kt+Sn,Ie,mn,Te),Sn=Q(Sn,gt)}for(gt=we+1,Ie=2;15>=gt;++gt,Ie<<=1){if(hn+=ar<<=1,0>(ar-=$e[gt]))return 0;for(;0<$e[gt];--$e[gt]){if(Te=new G,(Sn&Wt)!=Yt){for(Kt+=mn,zt=1<<(Yt=gt)-we;15>Yt&&!(0>=(zt-=$e[Yt]));)++Yt,zt<<=1;Tt+=mn=1<<(zt=Yt-we),ge[me+(Yt=Sn&Wt)].g=zt+we,ge[me+Yt].value=Kt-me-Yt}Te.g=gt-we,Te.value=pt[Ze++],N(ge,Kt+(Sn>>we),Ie,mn,Te),Sn=Q(Sn,gt)}}return hn!=2*rt[15]-1?0:Tt}(_,L,j,Z,ce,he)}function G(){this.value=this.g=0}function X(){this.value=this.g=0}function ee(){this.G=o(5,G),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Ji,X)}function $(_,L,j,Z){e(_!=null),e(L!=null),e(2147483648>Z),_.Ca=254,_.I=0,_.b=-8,_.Ka=0,_.oa=L,_.pa=j,_.Jd=L,_.Yc=j+Z,_.Zc=4<=Z?j+Z-4+1:j,Pe(_)}function re(_,L){for(var j=0;0Z),_.Sb=Z,_.Ra=0,_.u=0,_.h=0,4>>=8,_.Ra+=_.oa[_.pa+_.bb]<>>0,++_.bb,_.u-=8;Ae(_)&&(_.h=1,_.u=0)}function ie(_,L){if(e(0<=L),!_.h&&L<=No){var j=fe(_)&Pr[L];return _.u+=L,le(_),j}return _.h=1,_.u=0}function Ee(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function J(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function fe(_){return _.Ra>>>(_.u&hs-1)>>>0}function Ae(_){return e(_.bb<=_.Sb),_.h||_.bb==_.Sb&&_.u>hs}function be(_,L){_.u=L,_.h=Ae(_)}function Fe(_){_.u>=Ja&&(e(_.u>=Ja),le(_))}function Pe(_){e(_!=null&&_.oa!=null),_.pa<_.Zc?(_.I=(_.oa[_.pa++]|_.I<<8)>>>0,_.b+=8):(e(_!=null&&_.oa!=null),_.pa<_.Yc?(_.b+=8,_.I=_.oa[_.pa++]|_.I<<8):_.Ka?_.b=0:(_.I<<=8,_.b+=8,_.Ka=1))}function Xe(_){return re(_,1)}function Ye(_,L){var j=_.Ca;0>_.b&&Pe(_);var Z=_.b,ce=j*L>>>8,he=(_.I>>>Z>ce)+0;for(he?(j-=ce,_.I-=ce+1<>>0):j=ce+1,Z=j,ce=0;256<=Z;)ce+=8,Z>>=8;return Z=7^ce+Ni[Z],_.b-=Z,_.Ca=(j<>24&255,_[L+1]=j>>16&255,_[L+2]=j>>8&255,_[L+3]=j>>0&255}function Ue(_,L){return _[L+0]<<0|_[L+1]<<8}function Ke(_,L){return Ue(_,L)|_[L+2]<<16}function Ge(_,L){return Ue(_,L)|Ue(_,L+2)<<16}function _t(_,L){var j=1<=ce||0>=he?0:(j[0]=ce,Z[0]=he,1)}function se(_,L){return _+(1<>>L}function ke(_,L){return((4278255360&_)+(4278255360&L)>>>0&4278255360)+((16711935&_)+(16711935&L)>>>0&16711935)>>>0}function We(_,L){D[L]=function(j,Z,ce,he,ge,me,we){var Te;for(Te=0;Te>>1)+(_&L)>>>0}function Ut(_){return 0<=_&&256>_?_:0>_?0:255<_?255:void 0}function yt(_,L){return Ut(_+(_-L+.5>>1))}function ut(_,L,j){return Math.abs(L-j)-Math.abs(_-j)}function Ht(_,L,j,Z,ce,he,ge){for(Z=he[ge-1],j=0;j>8&255,we=16711935&(we=(we=16711935&ge)+((me<<16)+me));Z[ce+he]=(4278255360&ge)+we>>>0}}function Qt(_,L){L.jd=_>>0&255,L.hd=_>>8&255,L.ud=_>>16&255}function tn(_,L,j,Z,ce,he){var ge;for(ge=0;ge>>8,Te=me,Ie=255&(Ie=(Ie=me>>>16)+((_.jd<<24>>24)*(we<<24>>24)>>>5));Te=255&(Te=(Te=Te+((_.hd<<24>>24)*(we<<24>>24)>>>5))+((_.ud<<24>>24)*(Ie<<24>>24)>>>5)),ce[he+ge]=(4278255360&me)+(Ie<<16)+Te}}function He(_,L,j,Z,ce){D[L]=function(he,ge,me,we,Te,Ie,pt,gt,Ze){for(we=pt;we>he.b,Ze=he.Ea,Kt=he.K[0],Tt=he.w;if(8>gt)for(he=(1<>=gt}else D["VP8LMapColor"+j](we,Te,Kt,Tt,Ie,pt,ge,me,Ze)}}function Ve(_,L,j,Z,ce){for(j=L+j;L>16&255,Z[ce++]=he>>8&255,Z[ce++]=he>>0&255}}function Et(_,L,j,Z,ce){for(j=L+j;L>16&255,Z[ce++]=he>>8&255,Z[ce++]=he>>0&255,Z[ce++]=he>>24&255}}function St(_,L,j,Z,ce){for(j=L+j;L>16&240|ge>>12&15,ge=ge>>0&240|ge>>28&15;Z[ce++]=he,Z[ce++]=ge}}function nn(_,L,j,Z,ce){for(j=L+j;L>16&248|ge>>13&7,ge=ge>>5&224|ge>>3&31;Z[ce++]=he,Z[ce++]=ge}}function Gt(_,L,j,Z,ce){for(j=L+j;L>0&255,Z[ce++]=he>>8&255,Z[ce++]=he>>16&255}}function Qe(_,L,j,Z,ce,he){if(he==0)for(j=L+j;L>24|he[1]>>8&65280|he[2]<<8&16711680|he[3]<<24)>>>0),ce+=32;else r(Z,ce,_,L,j)}function vt(_,L){D[L][0]=D[_+"0"],D[L][1]=D[_+"1"],D[L][2]=D[_+"2"],D[L][3]=D[_+"3"],D[L][4]=D[_+"4"],D[L][5]=D[_+"5"],D[L][6]=D[_+"6"],D[L][7]=D[_+"7"],D[L][8]=D[_+"8"],D[L][9]=D[_+"9"],D[L][10]=D[_+"10"],D[L][11]=D[_+"11"],D[L][12]=D[_+"12"],D[L][13]=D[_+"13"],D[L][14]=D[_+"0"],D[L][15]=D[_+"0"]}function _e(_){return _==df||_==hf||_==_c||_==ju}function Rt(){this.eb=[],this.size=this.A=this.fb=0}function Lt(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function on(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Rt,this.f.kb=new Lt,this.sd=null}function qt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Xt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Ot(_){return alert("todo:WebPSamplerProcessPlane"),_.T}function Vt(_,L){var j=_.T,Z=L.ba.f.RGBA,ce=Z.eb,he=Z.fb+_.ka*Z.A,ge=bo[L.ba.S],me=_.y,we=_.O,Te=_.f,Ie=_.N,pt=_.ea,gt=_.W,Ze=L.cc,Kt=L.dc,Tt=L.Mc,$e=L.Nc,rt=_.ka,zt=_.ka+_.T,Yt=_.U,Wt=Yt+1>>1;for(rt==0?ge(me,we,null,null,Te,Ie,pt,gt,Te,Ie,pt,gt,ce,he,null,null,Yt):(ge(L.ec,L.fc,me,we,Ze,Kt,Tt,$e,Te,Ie,pt,gt,ce,he-Z.A,ce,he,Yt),++j);rt+2j,ce=j==Ou||j==xc||j==wu||j==Qu||j==12||_e(j);if(L.memory=null,L.Ib=null,L.Jb=null,L.Nd=null,!wi(L.Oa,_,ce?11:12))return 0;if(ce&&_e(j)&&kt(),_.da)alert("todo:use_scaling");else{if(Z){if(L.Ib=Ot,_.Kb){if(j=_.U+1>>1,L.memory=s(_.U+2*j),L.memory==null)return 0;L.ec=L.memory,L.fc=0,L.cc=L.ec,L.dc=L.fc+_.U,L.Mc=L.cc,L.Nc=L.dc+j,L.Ib=Vt,kt()}}else alert("todo:EmitYUV");ce&&(L.Jb=dn,Z&&at())}if(Z&&!Vd){for(_=0;256>_;++_)Gd[_]=89858*(_-128)+Ks>>xo,kp[_]=-22014*(_-128)+Ks,Wd[_]=-45773*(_-128),Rp[_]=113618*(_-128)+Ks>>xo;for(_=Gl;_>xo,Np[_-Gl]=is(L,255),wf[_-Gl]=is(L+8>>4,15);Vd=1}return 1}function Hr(_){var L=_.ma,j=_.U,Z=_.T;return e(!(1&_.ka)),0>=j||0>=Z?0:(j=L.Ib(_,L),L.Jb!=null&&L.Jb(_,L,j),L.Dc+=j,1)}function $r(_){_.ma.memory=null}function bn(_,L,j,Z){return ie(_,8)!=47?0:(L[0]=ie(_,14)+1,j[0]=ie(_,14)+1,Z[0]=ie(_,1),ie(_,3)!=0?0:!_.h)}function us(_,L){if(4>_)return _+1;var j=_-2>>1;return(2+(1&_)<>4)*_+(8-(15&j)))?j:1;var j}function ts(_,L,j){var Z=fe(j),ce=_[L+=255&Z].g-8;return 0>>0,e(8>=j.g),_.g}function Bi(_,L,j){var Z=_.xc;return e((L=Z==0?0:_.vc[_.md*(j>>Z)+(L>>Z)])<_.Wb),_.Ya[L]}function Li(_,L,j,Z){var ce=_.ab,he=_.c*L,ge=_.C;L=ge+L;var me=j,we=Z;for(Z=_.Ta,j=_.Ua;0>mn.b)*hn;Tt<$e;){var ni=ar,ci=mn,en=1;for(Ea(gt,Ze,rt,zt-Yt,1,rt,zt);enYt&&(kr=Yt),(0,ps[ni[ci++]>>8&15])(gt,Ze+ +en,rt,zt+en-Yt,kr-en,rt,zt+en),en=kr}Ze+=Yt,zt+=Yt,++Tt&Sn||(mn+=hn)}pt!=Te.nc&&r(we,me-Kt,we,me+(pt-Ie-1)*Kt,Kt);break;case 1:for(Kt=gt,$e=Ze,Yt=(gt=Te.Ea)-(zt=gt&~(rt=(Ze=1<>Te.b)*Tt;Ie=ce),0he.o&&(Z=he.o),j=Z?j=0:(ce[0]+=4*he.v,he.ka=j-he.j,he.U=he.va-he.v,he.T=Z-j,j=1),j){if(me=me[0],11>(j=_.ca).S){var Ie=j.f.RGBA,pt=(Z=j.S,ce=he.U,he=he.T,Te=Ie.eb,Ie.A),gt=he;for(Ie=Ie.fb+_.Ma*Ie.A;0Z){var ce=_.l.width,he=j.ca,ge=j.tb+ce*Z,me=_.V,we=_.Ba+_.c*Z,Te=_.gc;e(_.ab==1),e(Te[0].hc==3),Ws(Te[0],Z,L,me,we,he,ge),ho(j,Z,L,he,ge,ce)}_.C=_.Ma=L}function go(_,L,j,Z,ce,he,ge){var me=_.$/Z,we=_.$%Z,Te=_.m,Ie=_.s,pt=j+_.$,gt=pt;ce=j+Z*ce;var Ze=j+Z*he,Kt=280+Ie.ua,Tt=_.Pb?me:16777216,$e=0=Tt){var Sn=pt-j;e((Tt=_).Pb),Tt.wd=Tt.m,Tt.xd=Sn,0ar.g?(be(Wt,Wt.u+ar.g),Sn[hn]=ar.value,Wt=0):(be(Wt,Wt.u+ar.g-256),e(256<=ar.value),Wt=ar.value),Wt==0&&(Yt=!0)}else Wt=ts(zt.G[0],zt.H[0],Te);if(Te.h)break;if(Yt||256>Wt){if(!Yt)if(zt.nd)L[pt]=(zt.qb|Wt<<8)>>>0;else{if(Fe(Te),Yt=ts(zt.G[1],zt.H[1],Te),Fe(Te),Sn=ts(zt.G[2],zt.H[2],Te),hn=ts(zt.G[3],zt.H[3],Te),Te.h)break;L[pt]=(hn<<24|Yt<<16|Wt<<8|Sn)>>>0}if(Yt=!1,++pt,++we>=Z&&(we=0,++me,ge!=null&&me<=he&&!(me%16)&&ge(_,me),$e!=null))for(;gt>>$e.Mb]=Wt}else if(280>Wt){if(Wt=us(Wt-256,Te),Sn=ts(zt.G[4],zt.H[4],Te),Fe(Te),Sn=xs(Z,Sn=us(Sn,Te)),Te.h)break;if(pt-j=Z;)we-=Z,++me,ge!=null&&me<=he&&!(me%16)&&ge(_,me);if(e(pt<=ce),we&rt&&(zt=Bi(Ie,we,me)),$e!=null)for(;gt>>$e.Mb]=Wt}else{if(!(Wt>>$e.Mb]=Wt;Wt=pt,e(!(Yt>>>(Sn=$e).Xa)),L[Wt]=Sn.X[Yt],Yt=!0}Yt||e(Te.h==Ae(Te))}if(_.Pb&&Te.h&&pthe?he:me),_.a=0,_.$=pt-j}return 1}return _.a=3,0}function Se(_){e(_!=null),_.vc=null,_.yc=null,_.Ya=null;var L=_.Wa;L!=null&&(L.X=null),_.vb=null,e(_!=null)}function st(){var _=new dt;return _==null?null:(_.a=0,_.xb=Hd,vt("Predictor","VP8LPredictors"),vt("Predictor","VP8LPredictors_C"),vt("PredictorAdd","VP8LPredictorsAdd"),vt("PredictorAdd","VP8LPredictorsAdd_C"),wl=Dt,ss=tn,Ki=Ve,Me=Et,qe=St,ct=nn,wt=Gt,D.VP8LMapColor32b=Gs,D.VP8LMapColor8b=Jr,_)}function xt(_,L,j,Z,ce){var he=1,ge=[_],me=[L],we=Z.m,Te=Z.s,Ie=null,pt=0;e:for(;;){if(j)for(;he&&ie(we,1);){var gt=ge,Ze=me,Kt=Z,Tt=1,$e=Kt.m,rt=Kt.gc[Kt.ab],zt=ie($e,2);if(Kt.Oc&1<=Kt.ab),zt){case 0:case 1:rt.b=ie($e,3)+2,Tt=xt(se(rt.Ea,rt.b),se(rt.nc,rt.b),0,Kt,rt.K),rt.K=rt.K[0];break;case 3:var Yt,Wt=ie($e,8)+1,Sn=16>mn.b),ci=s(ni);if(ci==null)Yt=0;else{var en=mn.K[0],kr=mn.w;for(ci[0]=mn.K[0][0],hn=1;hn<1*ar;++hn)ci[hn]=ke(en[kr+hn],ci[hn-1]);for(;hn<4*ni;++hn)ci[hn]=0;mn.K[0]=null,mn.K[0]=ci,Yt=1}}Tt=Yt;break;case 2:break;default:e(0)}he=Tt}}if(ge=ge[0],me=me[0],he&&ie(we,1)&&!(he=1<=(pt=ie(we,4))&&11>=pt)){Z.a=3;break e}var Ti;if(Ti=he)t:{var hi,ur,gs,_o=Z,Di=ge,Bs=me,si=pt,So=j,Bo=_o.m,Fi=_o.s,Zi=[null],Us=1,Zo=0,pa=Tp[si];n:for(;;){if(So&&ie(Bo,1)){var Rs=ie(Bo,3)+2,ga=se(Di,Rs),Hu=se(Bs,Rs),Wl=ga*Hu;if(!xt(ga,Hu,0,_o,Zi))break n;for(Zi=Zi[0],Fi.xc=Rs,hi=0;hi>8&65535;Zi[hi]=_l,_l>=Us&&(Us=_l+1)}}if(Bo.h)break n;for(ur=0;5>ur;++ur){var Cr=Qd[ur];!ur&&0=ms),Cs=vs;var qs=s(Zo);if(Cs==null||qs==null||Fr==null){_o.a=1;break n}var Kl=Fr;for(hi=gs=0;hiur;++ur){Cr=Qd[ur],Sl[ur]=Kl,Fa[ur]=gs,!ur&&0Tc)break r}else Oi=Tc;for(Bl=0;BlGu)Sf[Bl++]=Gu,Gu!=0&&(Xd=Gu);else{var Bf=Gu==16,_A=Gu-16,Es=G0[_A],Fc=ie(Qo,Ep[_A])+Es;if(Bl+Fc>Tc)break r;for(var Y0=Bf?Xd:0;0=ur){var Lc,SA=qs[0];for(Lc=1;LcSA&&(SA=qs[Lc]);Ec+=SA}}if(xi.nd=ql,xi.Qb=0,ql&&(xi.qb=(Sl[3][Fa[3]+0].value<<24|Sl[1][Fa[1]+0].value<<16|Sl[2][Fa[2]+0].value)>>>0,yA==0&&256>Sl[0][Fa[0]+0].value&&(xi.Qb=1,xi.qb+=Sl[0][Fa[0]+0].value<<8)),xi.jc=!xi.Qb&&6>Ec,xi.jc){var Ia,Jl=xi;for(Ia=0;Ia>=Tn(io,8,Zl),ea>>=Tn(Jl.G[1][Jl.H[1]+ea],16,Zl),ea>>=Tn(Jl.G[2][Jl.H[2]+ea],0,Zl),Tn(Jl.G[3][Jl.H[3]+ea],24,Zl))}}}Fi.vc=Zi,Fi.Wb=Us,Fi.Ya=Cs,Fi.yc=Fr,Ti=1;break t}Ti=0}if(!(he=Ti)){Z.a=3;break e}if(0Z+1?[]:0),!(ce.lengthce)return pr(_,7,"Truncated header.");var he=j[Z+0]|j[Z+1]<<8|j[Z+2]<<16,ge=_.Od;if(ge.Rb=!(1&he),ge.td=he>>1&7,ge.yd=he>>4&1,ge.ub=he>>5,3ce)return pr(_,7,"cannot parse picture header");if(!Yr(j,Z,ce))return pr(_,3,"Bad code word");me.c=16383&(j[Z+4]<<8|j[Z+3]),me.Td=j[Z+4]>>6,me.i=16383&(j[Z+6]<<8|j[Z+5]),me.Ud=j[Z+6]>>6,Z+=7,ce-=7,_.za=me.c+15>>4,_.Ub=me.i+15>>4,L.width=me.c,L.height=me.i,L.Da=0,L.j=0,L.v=0,L.va=L.width,L.o=L.height,L.da=0,L.ib=L.width,L.hb=L.height,L.U=L.width,L.T=L.height,i((he=_.Pa).jb,0,255,he.jb.length),e((he=_.Qa)!=null),he.Cb=0,he.Bb=0,he.Fb=1,i(he.Zb,0,0,he.Zb.length),i(he.Lb,0,0,he.Lb)}if(ge.ub>ce)return pr(_,7,"bad partition length");$(he=_.m,j,Z,ge.ub),Z+=ge.ub,ce-=ge.ub,ge.Rb&&(me.Ld=Xe(he),me.Kd=Xe(he)),me=_.Qa;var we,Te=_.Pa;if(e(he!=null),e(me!=null),me.Cb=Xe(he),me.Cb){if(me.Bb=Xe(he),Xe(he)){for(me.Fb=Xe(he),we=0;4>we;++we)me.Zb[we]=Xe(he)?ye(he,7):0;for(we=0;4>we;++we)me.Lb[we]=Xe(he)?ye(he,6):0}if(me.Bb)for(we=0;3>we;++we)Te.jb[we]=Xe(he)?re(he,8):255}else me.Bb=0;if(he.Ka)return pr(_,3,"cannot parse segment header");if((me=_.ed).zd=Xe(he),me.Tb=re(he,6),me.wb=re(he,3),me.Pc=Xe(he),me.Pc&&Xe(he)){for(Te=0;4>Te;++Te)Xe(he)&&(me.vd[Te]=ye(he,6));for(Te=0;4>Te;++Te)Xe(he)&&(me.od[Te]=ye(he,6))}if(_.L=me.Tb==0?0:me.zd?1:2,he.Ka)return pr(_,3,"cannot parse filter header");var Ie=ce;if(ce=we=Z,Z=we+Ie,me=Ie,_.Xb=(1<me&&(pt=me),$(_.Jc[+Ie],j,we,pt),we+=pt,me-=pt,ce+=3}$(_.Jc[+Te],j,we,me),j=wept;++pt){if(Ie.Cb){var gt=Ie.Zb[pt];Ie.Fb||(gt+=j)}else{if(0>16,8>Ze.Eb[1]&&(Ze.Eb[1]=8),Ze.Qc[0]=gf[is(gt+Te,117)],Ze.Qc[1]=zl[is(gt+we,127)],Ze.lc=gt+we}if(!ge.Rb)return pr(_,4,"Not a key frame.");for(Xe(he),ge=_.Pa,j=0;4>j;++j){for(ce=0;8>ce;++ce)for(Z=0;3>Z;++Z)for(me=0;11>me;++me)Te=Ye(he,Lp[j][ce][Z][me])?re(he,8):jd[j][ce][Z][me],ge.Wc[j][ce].Yb[Z][me]=Te;for(ce=0;17>ce;++ce)ge.Xc[j][ce]=ge.Wc[j][Ip[ce]]}return _.kc=Xe(he),_.kc&&(_.Bd=re(he,8)),_.cb=1}function cs(_,L,j,Z,ce,he,ge){var me=L[ce].Yb[j];for(j=0;16>ce;++ce){if(!Ye(_,me[j+0]))return ce;for(;!Ye(_,me[j+1]);)if(me=L[++ce].Yb[0],j=0,ce==16)return 16;var we=L[ce+1].Yb;if(Ye(_,me[j+2])){var Te=_,Ie=0;if(Ye(Te,(gt=me)[(pt=j)+3]))if(Ye(Te,gt[pt+6])){for(me=0,pt=2*(Ie=Ye(Te,gt[pt+8]))+(gt=Ye(Te,gt[pt+9+Ie])),Ie=0,gt=K0[pt];gt[me];++me)Ie+=Ie+Ye(Te,gt[me]);Ie+=3+(8<(Te=_).b&&Pe(Te);var pt,gt=Te.b,Ze=(pt=Te.Ca>>1)-(Te.I>>gt)>>31;--Te.b,Te.Ca+=Ze,Te.Ca|=1,Te.I-=(pt+1&Ze)<>4,_.zb=L.j-j>>4,0>_.yb&&(_.yb=0),0>_.zb&&(_.zb=0)),_.Va=L.o+15+j>>4,_.Hb=L.va+15+j>>4,_.Hb>_.za&&(_.Hb=_.za),_.Va>_.Ub&&(_.Va=_.Ub),0<_.L){var Z=_.ed;for(j=0;4>j;++j){var ce;if(_.Qa.Cb){var he=_.Qa.Lb[j];_.Qa.Fb||(he+=Z.Tb)}else he=Z.Tb;for(ce=0;1>=ce;++ce){var ge=_.gd[j][ce],me=he;if(Z.Pc&&(me+=Z.vd[0],ce&&(me+=Z.od[0])),0<(me=0>me?0:63>2:we>>1)>9-Z.wb&&(we=9-Z.wb),1>we&&(we=1),ge.dd=we,ge.tc=2*me+we,ge.ld=40<=me?2:15<=me?1:0}else ge.tc=0;ge.La=ce}}}j=0}else pr(_,6,"Frame setup failed"),j=_.a;if(j=j==0){if(j){_.$c=0,0<_.Aa||(_.Ic=Dp);e:{j=_.Ic,Z=4*(we=_.za);var Te=32*we,Ie=we+1,pt=0<_.L?we*(0<_.Aa?2:1):0,gt=(_.Aa==2?2:1)*we;if((ge=Z+832+(ce=3*(16*j+vA[_.L])/2*Te)+(he=_.Fa!=null&&0<_.Fa.length?_.Kc.c*_.Kc.i:0))!=ge)j=0;else{if(ge>_.Vb){if(_.Vb=0,_.Ec=s(ge),_.Fc=0,_.Ec==null){j=pr(_,1,"no memory during frame initialization.");break e}_.Vb=ge}ge=_.Ec,me=_.Fc,_.Ac=ge,_.Bc=me,me+=Z,_.Gd=o(Te,zr),_.Hd=0,_.rb=o(Ie+1,ri),_.sb=1,_.wa=pt?o(pt,qn):null,_.Y=0,_.D.Nb=0,_.D.wa=_.wa,_.D.Y=_.Y,0<_.Aa&&(_.D.Y+=we),e(!0),_.oc=ge,_.pc=me,me+=832,_.ya=o(gt,ai),_.aa=0,_.D.ya=_.ya,_.D.aa=_.aa,_.Aa==2&&(_.D.aa+=we),_.R=16*we,_.B=8*we,we=(Te=vA[_.L])*_.R,Te=Te/2*_.B,_.sa=ge,_.ta=me+we,_.qa=_.sa,_.ra=_.ta+16*j*_.R+Te,_.Ha=_.qa,_.Ia=_.ra+8*j*_.B+Te,_.$c=0,me+=ce,_.mb=he?ge:null,_.nb=he?me:null,e(me+he<=_.Fc+_.Vb),Ir(_),i(_.Ac,_.Bc,0,Z),j=1}}if(j){if(L.ka=0,L.y=_.sa,L.O=_.ta,L.f=_.qa,L.N=_.ra,L.ea=_.Ha,L.Vd=_.Ia,L.fa=_.R,L.Rc=_.B,L.F=null,L.J=0,!Dd){for(j=-255;255>=j;++j)yu[255+j]=0>j?-j:j;for(j=-1020;1020>=j;++j)kd[1020+j]=-128>j?-128:127=j;++j)Nd[112+j]=-16>j?-16:15=j;++j)fA[255+j]=0>j?0:255Wt;++Wt){var en,kr=ar[0+Wt];for(en=0;4>en;++en){kr=X0[Sn[hn+en]][kr];for(var Ti=mf[Ye(Yt,kr[0])];0>3;for(Ti=0;256>Ti;Ti+=16)Wt[ni+Ti]=Bs}gs=1,_o=hn[0]}var si=15&Yt.la,So=15&ci.la;for(Ti=0;4>Ti;++Ti){var Bo=1&So;for(Bs=ur=0;4>Bs;++Bs)si=si>>1|(Bo=(Di=gA(Sn,_o,Di=Bo+(1&si),mn.Sc,gs,Wt,ni))>gs)<<7,ur=ur<<2|(3>=4,So=So>>1|Bo<<7,en=(en<<8|ur)>>>0}for(_o=si,gs=So>>4,hi=0;4>hi;hi+=2){for(ur=0,si=Yt.la>>4+hi,So=ci.la>>4+hi,Ti=0;2>Ti;++Ti){for(Bo=1&So,Bs=0;2>Bs;++Bs)Di=Bo+(1&si),si=si>>1|(Bo=0<(Di=gA(Sn,hn[2],Di,mn.Qc,0,Wt,ni)))<<3,ur=ur<<2|(3>=2,So=So>>1|Bo<<5}kr|=ur<<4*hi,_o|=si<<4<=$e.zb&&$e.M<=$e.Va,$e.Aa==0)e:{if(Tt.M=$e.M,Tt.uc=Yt,ti($e,Tt),zt=1,Tt=(ur=$e.D).Nb,Yt=(kr=vA[$e.L])*$e.R,Sn=kr/2*$e.B,Ti=16*Tt*$e.R,Bs=8*Tt*$e.B,hn=$e.sa,ar=$e.ta-Yt+Ti,mn=$e.qa,Wt=$e.ra-Sn+Bs,ni=$e.Ha,ci=$e.Ia-Sn+Bs,So=(si=ur.M)==0,en=si>=$e.Va-1,$e.Aa==2&&ti($e,ur),ur.uc)for(Bo=(Di=$e).D.M,e(Di.D.uc),ur=Di.yb;urrt.o&&(si=rt.o),rt.F=null,rt.J=null,$e.Fa!=null&&0<$e.Fa.length&&ur>1),rt.W+=$e.B*(kr>>1),rt.F!=null&&(rt.J+=rt.width*kr)),ur>1,rt.W+=rt.v>>1,rt.F!=null&&(rt.J+=rt.v),rt.ka=ur-rt.j,rt.U=rt.va-rt.v,rt.T=si-ur,zt=rt.put(rt))}Tt+1!=$e.Ic||en||(r($e.sa,$e.ta-Yt,hn,ar+16*$e.R,Yt),r($e.qa,$e.ra-Sn,mn,Wt+8*$e.B,Sn),r($e.Ha,$e.Ia-Sn,ni,ci+8*$e.B,Sn))}if(!zt)return pr(Ze,6,"Output aborted.")}return 1}(_,L)),L.bc!=null&&L.bc(L),j&=1}return j?(_.cb=0,j):0}function _s(_,L,j,Z,ce){ce=_[L+j+32*Z]+(ce>>3),_[L+j+32*Z]=-256&ce?0>ce?0:255:ce}function qr(_,L,j,Z,ce,he){_s(_,L,0,j,Z+ce),_s(_,L,1,j,Z+he),_s(_,L,2,j,Z-he),_s(_,L,3,j,Z-ce)}function Ii(_){return(20091*_>>16)+_}function qa(_,L,j,Z){var ce,he=0,ge=s(16);for(ce=0;4>ce;++ce){var me=_[L+0]+_[L+8],we=_[L+0]-_[L+8],Te=(35468*_[L+4]>>16)-Ii(_[L+12]),Ie=Ii(_[L+4])+(35468*_[L+12]>>16);ge[he+0]=me+Ie,ge[he+1]=we+Te,ge[he+2]=we-Te,ge[he+3]=me-Ie,he+=4,L++}for(ce=he=0;4>ce;++ce)me=(_=ge[he+0]+4)+ge[he+8],we=_-ge[he+8],Te=(35468*ge[he+4]>>16)-Ii(ge[he+12]),_s(j,Z,0,0,me+(Ie=Ii(ge[he+4])+(35468*ge[he+12]>>16))),_s(j,Z,1,0,we+Te),_s(j,Z,2,0,we-Te),_s(j,Z,3,0,me-Ie),he++,Z+=32}function Ps(_,L,j,Z){var ce=_[L+0]+4,he=35468*_[L+4]>>16,ge=Ii(_[L+4]),me=35468*_[L+1]>>16;qr(j,Z,0,ce+ge,_=Ii(_[L+1]),me),qr(j,Z,1,ce+he,_,me),qr(j,Z,2,ce-he,_,me),qr(j,Z,3,ce-ge,_,me)}function uA(_,L,j,Z,ce){qa(_,L,j,Z),ce&&qa(_,L+16,j,Z+4)}function mo(_,L,j,Z){rn(_,L+0,j,Z,1),rn(_,L+32,j,Z+128,1)}function mc(_,L,j,Z){var ce;for(_=_[L+0]+4,ce=0;4>ce;++ce)for(L=0;4>L;++L)_s(j,Z,L,ce,_)}function ca(_,L,j,Z){_[L+0]&&an(_,L+0,j,Z),_[L+16]&&an(_,L+16,j,Z+4),_[L+32]&&an(_,L+32,j,Z+128),_[L+48]&&an(_,L+48,j,Z+128+4)}function hu(_,L,j,Z){var ce,he=s(16);for(ce=0;4>ce;++ce){var ge=_[L+0+ce]+_[L+12+ce],me=_[L+4+ce]+_[L+8+ce],we=_[L+4+ce]-_[L+8+ce],Te=_[L+0+ce]-_[L+12+ce];he[0+ce]=ge+me,he[8+ce]=ge-me,he[4+ce]=Te+we,he[12+ce]=Te-we}for(ce=0;4>ce;++ce)ge=(_=he[0+4*ce]+3)+he[3+4*ce],me=he[1+4*ce]+he[2+4*ce],we=he[1+4*ce]-he[2+4*ce],Te=_-he[3+4*ce],j[Z+0]=ge+me>>3,j[Z+16]=Te+we>>3,j[Z+32]=ge-me>>3,j[Z+48]=Te-we>>3,Z+=64}function Ko(_,L,j){var Z,ce=L-32,he=Do,ge=255-_[ce-1];for(Z=0;Zj;++j)r(_,L+32*j,_,L-32,16)}function Uo(_,L){var j;for(j=16;0Z;++Z)i(L,j+32*Z,_,16)}function Xo(_,L){var j,Z=16;for(j=0;16>j;++j)Z+=_[L-1+32*j]+_[L+j-32];Ro(Z>>5,_,L)}function fs(_,L){var j,Z=8;for(j=0;16>j;++j)Z+=_[L-1+32*j];Ro(Z>>4,_,L)}function Vr(_,L){var j,Z=8;for(j=0;16>j;++j)Z+=_[L+j-32];Ro(Z>>4,_,L)}function Du(_,L){Ro(128,_,L)}function ir(_,L,j){return _+2*L+j+2>>2}function vc(_,L){var j,Z=L-32;for(Z=new Uint8Array([ir(_[Z-1],_[Z+0],_[Z+1]),ir(_[Z+0],_[Z+1],_[Z+2]),ir(_[Z+1],_[Z+2],_[Z+3]),ir(_[Z+2],_[Z+3],_[Z+4])]),j=0;4>j;++j)r(_,L+32*j,Z,0,Z.length)}function cA(_,L){var j=_[L-1],Z=_[L-1+32],ce=_[L-1+64],he=_[L-1+96];At(_,L+0,16843009*ir(_[L-1-32],j,Z)),At(_,L+32,16843009*ir(j,Z,ce)),At(_,L+64,16843009*ir(Z,ce,he)),At(_,L+96,16843009*ir(ce,he,he))}function $o(_,L){var j,Z=4;for(j=0;4>j;++j)Z+=_[L+j-32]+_[L-1+32*j];for(Z>>=3,j=0;4>j;++j)i(_,L+32*j,Z,4)}function Yi(_,L){var j=_[L-1+0],Z=_[L-1+32],ce=_[L-1+64],he=_[L-1-32],ge=_[L+0-32],me=_[L+1-32],we=_[L+2-32],Te=_[L+3-32];_[L+0+96]=ir(Z,ce,_[L-1+96]),_[L+1+96]=_[L+0+64]=ir(j,Z,ce),_[L+2+96]=_[L+1+64]=_[L+0+32]=ir(he,j,Z),_[L+3+96]=_[L+2+64]=_[L+1+32]=_[L+0+0]=ir(ge,he,j),_[L+3+64]=_[L+2+32]=_[L+1+0]=ir(me,ge,he),_[L+3+32]=_[L+2+0]=ir(we,me,ge),_[L+3+0]=ir(Te,we,me)}function pu(_,L){var j=_[L+1-32],Z=_[L+2-32],ce=_[L+3-32],he=_[L+4-32],ge=_[L+5-32],me=_[L+6-32],we=_[L+7-32];_[L+0+0]=ir(_[L+0-32],j,Z),_[L+1+0]=_[L+0+32]=ir(j,Z,ce),_[L+2+0]=_[L+1+32]=_[L+0+64]=ir(Z,ce,he),_[L+3+0]=_[L+2+32]=_[L+1+64]=_[L+0+96]=ir(ce,he,ge),_[L+3+32]=_[L+2+64]=_[L+1+96]=ir(he,ge,me),_[L+3+64]=_[L+2+96]=ir(ge,me,we),_[L+3+96]=ir(me,we,we)}function gu(_,L){var j=_[L-1+0],Z=_[L-1+32],ce=_[L-1+64],he=_[L-1-32],ge=_[L+0-32],me=_[L+1-32],we=_[L+2-32],Te=_[L+3-32];_[L+0+0]=_[L+1+64]=he+ge+1>>1,_[L+1+0]=_[L+2+64]=ge+me+1>>1,_[L+2+0]=_[L+3+64]=me+we+1>>1,_[L+3+0]=we+Te+1>>1,_[L+0+96]=ir(ce,Z,j),_[L+0+64]=ir(Z,j,he),_[L+0+32]=_[L+1+96]=ir(j,he,ge),_[L+1+32]=_[L+2+96]=ir(he,ge,me),_[L+2+32]=_[L+3+96]=ir(ge,me,we),_[L+3+32]=ir(me,we,Te)}function Hs(_,L){var j=_[L+0-32],Z=_[L+1-32],ce=_[L+2-32],he=_[L+3-32],ge=_[L+4-32],me=_[L+5-32],we=_[L+6-32],Te=_[L+7-32];_[L+0+0]=j+Z+1>>1,_[L+1+0]=_[L+0+64]=Z+ce+1>>1,_[L+2+0]=_[L+1+64]=ce+he+1>>1,_[L+3+0]=_[L+2+64]=he+ge+1>>1,_[L+0+32]=ir(j,Z,ce),_[L+1+32]=_[L+0+96]=ir(Z,ce,he),_[L+2+32]=_[L+1+96]=ir(ce,he,ge),_[L+3+32]=_[L+2+96]=ir(he,ge,me),_[L+3+64]=ir(ge,me,we),_[L+3+96]=ir(me,we,Te)}function yc(_,L){var j=_[L-1+0],Z=_[L-1+32],ce=_[L-1+64],he=_[L-1+96];_[L+0+0]=j+Z+1>>1,_[L+2+0]=_[L+0+32]=Z+ce+1>>1,_[L+2+32]=_[L+0+64]=ce+he+1>>1,_[L+1+0]=ir(j,Z,ce),_[L+3+0]=_[L+1+32]=ir(Z,ce,he),_[L+3+32]=_[L+1+64]=ir(ce,he,he),_[L+3+64]=_[L+2+64]=_[L+0+96]=_[L+1+96]=_[L+2+96]=_[L+3+96]=he}function Hl(_,L){var j=_[L-1+0],Z=_[L-1+32],ce=_[L-1+64],he=_[L-1+96],ge=_[L-1-32],me=_[L+0-32],we=_[L+1-32],Te=_[L+2-32];_[L+0+0]=_[L+2+32]=j+ge+1>>1,_[L+0+32]=_[L+2+64]=Z+j+1>>1,_[L+0+64]=_[L+2+96]=ce+Z+1>>1,_[L+0+96]=he+ce+1>>1,_[L+3+0]=ir(me,we,Te),_[L+2+0]=ir(ge,me,we),_[L+1+0]=_[L+3+32]=ir(j,ge,me),_[L+1+32]=_[L+3+64]=ir(Z,j,ge),_[L+1+64]=_[L+3+96]=ir(ce,Z,j),_[L+1+96]=ir(he,ce,Z)}function ko(_,L){var j;for(j=0;8>j;++j)r(_,L+32*j,_,L-32,8)}function mu(_,L){var j;for(j=0;8>j;++j)i(_,L,_[L-1],8),L+=32}function Xa(_,L,j){var Z;for(Z=0;8>Z;++Z)i(L,j+32*Z,_,8)}function Ss(_,L){var j,Z=8;for(j=0;8>j;++j)Z+=_[L+j-32]+_[L-1+32*j];Xa(Z>>4,_,L)}function vo(_,L){var j,Z=4;for(j=0;8>j;++j)Z+=_[L+j-32];Xa(Z>>3,_,L)}function Yo(_,L){var j,Z=4;for(j=0;8>j;++j)Z+=_[L-1+32*j];Xa(Z>>3,_,L)}function $a(_,L){Xa(128,_,L)}function Ya(_,L,j){var Z=_[L-j],ce=_[L+0],he=3*(ce-Z)+dA[1020+_[L-2*j]-_[L+j]],ge=hA[112+(he+4>>3)];_[L-j]=Do[255+Z+hA[112+(he+3>>3)]],_[L+0]=Do[255+ce-ge]}function wc(_,L,j,Z){var ce=_[L+0],he=_[L+j];return wo[255+_[L-2*j]-_[L-j]]>Z||wo[255+he-ce]>Z}function fi(_,L,j,Z){return 4*wo[255+_[L-j]-_[L+0]]+wo[255+_[L-2*j]-_[L+j]]<=Z}function bc(_,L,j,Z,ce){var he=_[L-3*j],ge=_[L-2*j],me=_[L-j],we=_[L+0],Te=_[L+j],Ie=_[L+2*j],pt=_[L+3*j];return 4*wo[255+me-we]+wo[255+ge-Te]>Z?0:wo[255+_[L-4*j]-he]<=ce&&wo[255+he-ge]<=ce&&wo[255+ge-me]<=ce&&wo[255+pt-Ie]<=ce&&wo[255+Ie-Te]<=ce&&wo[255+Te-we]<=ce}function zs(_,L,j,Z){var ce=2*Z+1;for(Z=0;16>Z;++Z)fi(_,L+Z,j,ce)&&Ya(_,L+Z,j)}function Ca(_,L,j,Z){var ce=2*Z+1;for(Z=0;16>Z;++Z)fi(_,L+Z*j,1,ce)&&Ya(_,L+Z*j,1)}function rs(_,L,j,Z){var ce;for(ce=3;0>7,rt=18*zt+63>>7,zt=9*zt+63>>7;we[Te-3*Ie]=Do[255+we[Te-3*Ie]+zt],we[Te-2*Ie]=Do[255+pt+rt],we[Te-Ie]=Do[255+gt+$e],we[Te+0]=Do[255+Ze-$e],we[Te+Ie]=Do[255+Kt-rt],we[Te+2*Ie]=Do[255+Tt-zt]}L+=Z}}function ds(_,L,j,Z,ce,he,ge,me){for(he=2*he+1;0>3)],Tt=hA[112+(Tt+3>>3)],$e=Kt+1>>1;we[Te-2*Ie]=Do[255+we[Te-2*Ie]+$e],we[Te-Ie]=Do[255+pt+Tt],we[Te+0]=Do[255+gt-Kt],we[Te+Ie]=Do[255+Ze-$e]}L+=Z}}function S(_,L,j,Z,ce,he){fa(_,L,j,1,16,Z,ce,he)}function I(_,L,j,Z,ce,he){fa(_,L,1,j,16,Z,ce,he)}function H(_,L,j,Z,ce,he){var ge;for(ge=3;0Te?0:255:Te)&255,Te=we,ce[he+me]=Ie}}function Gi(_,L,j,Z){var ce=L.width,he=L.o;if(e(_!=null&&L!=null),0>j||0>=Z||j+Z>he)return null;if(!_.Cc){if(_.ga==null){var ge;if(_.ga=new Zt,(ge=_.ga==null)||(ge=L.width*L.o,e(_.Gb.length==0),_.Gb=s(ge),_.Uc=0,_.Gb==null?ge=0:(_.mb=_.Gb,_.nb=_.Uc,_.rc=null,ge=1),ge=!ge),!ge){ge=_.ga;var me=_.Fa,we=_.P,Te=_.qc,Ie=_.mb,pt=_.nb,gt=we+1,Ze=Te-1,Kt=ge.l;if(e(me!=null&&Ie!=null&&L!=null),ha[0]=null,ha[1]=nr,ha[2]=xr,ha[3]=fr,ge.ca=Ie,ge.tb=pt,ge.c=L.width,ge.i=L.height,e(0=Te)L=0;else if(ge.$a=me[we+0]>>0&3,ge.Z=me[we+0]>>2&3,ge.Lc=me[we+0]>>4&3,we=me[we+0]>>6&3,0>ge.$a||1=ge.c*ge.i;ge=!L}if(ge)return null;_.ga.Lc!=1?_.Ga=0:Z=he-j}e(_.ga!=null),e(j+Z<=he);e:{if(L=(me=_.ga).c,he=me.l.o,me.$a==0){if(gt=_.rc,Ze=_.Vc,Kt=_.Fa,we=_.P+1+j*L,Te=_.mb,Ie=_.nb+j*L,e(we<=_.P+_.qc),me.Z!=0)for(e(ha[me.Z]!=null),ge=0;ge=L)L=1;else if(me.ic||at(),me.ic){me=ge.V,gt=ge.Ba,Ze=ge.c;var Tt=ge.i,$e=(Kt=1,we=ge.$/Ze,Te=ge.$%Ze,Ie=ge.m,pt=ge.s,ge.$),rt=Ze*Tt,zt=Ze*L,Yt=pt.wc,Wt=$e(Tt=ts(Wt.G[0],Wt.H[0],Ie)))me[gt+$e]=Tt,++$e,++Te>=Ze&&(Te=0,++we<=L&&!(we%16)&&po(ge,we));else{if(!(280>Tt)){Kt=0;break t}Tt=us(Tt-256,Ie);var Sn,hn=ts(Wt.G[4],Wt.H[4],Ie);if(Fe(Ie),!($e>=(hn=xs(Ze,hn=us(hn,Ie)))&&rt-$e>=Tt)){Kt=0;break t}for(Sn=0;Sn=Ze;)Te-=Ze,++we<=L&&!(we%16)&&po(ge,we);$eL?L:we);break t}!Kt||Ie.h&&$e=he&&(_.Cc=1),Z=1}if(!Z)return null;if(_.Cc&&((Z=_.ga)!=null&&(Z.mc=null),_.ga=null,0<_.Ga))return alert("todo:WebPDequantizeLevels"),null}return _.nb+j*ce}function k(_,L,j,Z,ce,he){for(;0>23,me[we+4*ge+1]=me[we+4*ge+1]*pt>>23,me[we+4*ge+2]=me[we+4*ge+2]*pt>>23)}L+=he}}function ue(_,L,j,Z,ce){for(;0>4)*we>>16;_[L+2*he+0]=(240&ge|ge>>4)*we>>16&240|(15&ge|ge<<4)*we>>16>>4&15,_[L+2*he+1]=240&Te|me}L+=ce}}function Re(_,L,j,Z,ce,he,ge,me){var we,Te,Ie=255;for(Te=0;Te>8}function at(){no=k,yo=ue,Za=Re,AA=Oe}function ft(_,L,j){D[_]=function(Z,ce,he,ge,me,we,Te,Ie,pt,gt,Ze,Kt,Tt,$e,rt,zt,Yt){var Wt,Sn=Yt-1>>1,hn=me[we+0]|Te[Ie+0]<<16,ar=pt[gt+0]|Ze[Kt+0]<<16;e(Z!=null);var mn=3*hn+ar+131074>>2;for(L(Z[ce+0],255&mn,mn>>16,Tt,$e),he!=null&&(mn=3*ar+hn+131074>>2,L(he[ge+0],255&mn,mn>>16,rt,zt)),Wt=1;Wt<=Sn;++Wt){var ni=me[we+Wt]|Te[Ie+Wt]<<16,ci=pt[gt+Wt]|Ze[Kt+Wt]<<16,en=hn+ni+ar+ci+524296,kr=en+2*(ni+ar)>>3;mn=kr+hn>>1,hn=(en=en+2*(hn+ci)>>3)+ni>>1,L(Z[ce+2*Wt-1],255&mn,mn>>16,Tt,$e+(2*Wt-1)*j),L(Z[ce+2*Wt-0],255&hn,hn>>16,Tt,$e+(2*Wt-0)*j),he!=null&&(mn=en+ar>>1,hn=kr+ci>>1,L(he[ge+2*Wt-1],255&mn,mn>>16,rt,zt+(2*Wt-1)*j),L(he[ge+2*Wt+0],255&hn,hn>>16,rt,zt+(2*Wt+0)*j)),hn=ni,ar=ci}1&Yt||(mn=3*hn+ar+131074>>2,L(Z[ce+Yt-1],255&mn,mn>>16,Tt,$e+(Yt-1)*j),he!=null&&(mn=3*ar+hn+131074>>2,L(he[ge+Yt-1],255&mn,mn>>16,rt,zt+(Yt-1)*j)))}}function kt(){bo[pA]=vf,bo[Ou]=Bc,bo[bl]=Sc,bo[xc]=Cc,bo[wu]=ro,bo[Qu]=Pp,bo[Od]=$0,bo[df]=Bc,bo[hf]=Cc,bo[_c]=ro,bo[ju]=Pp}function fn(_){return _&~Up?0>_?0:255:_>>zd}function Dn(_,L){return fn((19077*_>>8)+(26149*L>>8)-14234)}function zn(_,L,j){return fn((19077*_>>8)-(6419*L>>8)-(13320*j>>8)+8708)}function Gn(_,L){return fn((19077*_>>8)+(33050*L>>8)-17685)}function Xn(_,L,j,Z,ce){Z[ce+0]=Dn(_,j),Z[ce+1]=zn(_,L,j),Z[ce+2]=Gn(_,L)}function Br(_,L,j,Z,ce){Z[ce+0]=Gn(_,L),Z[ce+1]=zn(_,L,j),Z[ce+2]=Dn(_,j)}function wr(_,L,j,Z,ce){var he=zn(_,L,j);L=he<<3&224|Gn(_,L)>>3,Z[ce+0]=248&Dn(_,j)|he>>5,Z[ce+1]=L}function Cn(_,L,j,Z,ce){var he=240&Gn(_,L)|15;Z[ce+0]=240&Dn(_,j)|zn(_,L,j)>>4,Z[ce+1]=he}function Pi(_,L,j,Z,ce){Z[ce+0]=255,Xn(_,L,j,Z,ce+1)}function li(_,L,j,Z,ce){Br(_,L,j,Z,ce),Z[ce+3]=255}function Wi(_,L,j,Z,ce){Xn(_,L,j,Z,ce),Z[ce+3]=255}function is(_,L){return 0>_?0:_>L?L:_}function ii(_,L,j){D[_]=function(Z,ce,he,ge,me,we,Te,Ie,pt){for(var gt=Ie+(-2&pt)*j;Ie!=gt;)L(Z[ce+0],he[ge+0],me[we+0],Te,Ie),L(Z[ce+1],he[ge+0],me[we+0],Te,Ie+j),ce+=2,++ge,++we,Ie+=2*j;1&pt&&L(Z[ce+0],he[ge+0],me[we+0],Te,Ie)}}function Vs(_,L,j){return j==0?_==0?L==0?6:5:L==0?4:0:j}function Pn(_,L,j,Z,ce){switch(_>>>30){case 3:rn(L,j,Z,ce,0);break;case 2:pn(L,j,Z,ce);break;case 1:an(L,j,Z,ce)}}function ti(_,L){var j,Z,ce=L.M,he=L.Nb,ge=_.oc,me=_.pc+40,we=_.oc,Te=_.pc+584,Ie=_.oc,pt=_.pc+600;for(j=0;16>j;++j)ge[me+32*j-1]=129;for(j=0;8>j;++j)we[Te+32*j-1]=129,Ie[pt+32*j-1]=129;for(0j;++j)r(ge,me+32*j-4,ge,me+32*j+12,4);for(j=-1;8>j;++j)r(we,Te+32*j-4,we,Te+32*j+4,4),r(Ie,pt+32*j-4,Ie,pt+32*j+4,4)}var Ze=_.Gd,Kt=_.Hd+Z,Tt=gt.ad,$e=gt.Hc;if(0=_.za-1?i(rt,zt,Ze[Kt].y[15],4):r(rt,zt,Ze[Kt+1].y,0,4)),j=0;4>j;j++)rt[zt+128+j]=rt[zt+256+j]=rt[zt+384+j]=rt[zt+0+j];for(j=0;16>j;++j,$e<<=2)rt=ge,zt=me+mA[j],Ta[gt.Ob[j]](rt,zt),Pn($e,Tt,16*+j,rt,zt)}else if(rt=Vs(Z,ce,gt.Ob[0]),Vl[rt](ge,me),$e!=0)for(j=0;16>j;++j,$e<<=2)Pn($e,Tt,16*+j,ge,me+mA[j]);for(j=gt.Gc,rt=Vs(Z,ce,gt.Dd),da[rt](we,Te),da[rt](Ie,pt),$e=Tt,rt=we,zt=Te,255&(gt=j>>0)&&(170>?vn($e,256,rt,zt):Wn($e,256,rt,zt)),gt=Ie,$e=pt,255&(j>>=8)&&(170&j?vn(Tt,320,gt,$e):Wn(Tt,320,gt,$e)),ce<_.Ub-1&&(r(Ze[Kt].y,0,ge,me+480,16),r(Ze[Kt].f,0,we,Te+224,8),r(Ze[Kt].ea,0,Ie,pt+224,8)),j=8*he*_.B,Ze=_.sa,Kt=_.ta+16*Z+16*he*_.R,Tt=_.qa,gt=_.ra+8*Z+j,$e=_.Ha,rt=_.Ia+8*Z+j,j=0;16>j;++j)r(Ze,Kt+j*_.R,ge,me+32*j,16);for(j=0;8>j;++j)r(Tt,gt+j*_.B,we,Te+32*j,8),r($e,rt+j*_.B,Ie,pt+32*j,8)}}function yi(_,L,j,Z,ce,he,ge,me,we){var Te=[0],Ie=[0],pt=0,gt=we!=null?we.kd:0,Ze=we??new nt;if(_==null||12>j)return 7;Ze.data=_,Ze.w=L,Ze.ha=j,L=[L],j=[j],Ze.gb=[Ze.gb];e:{var Kt=L,Tt=j,$e=Ze.gb;if(e(_!=null),e(Tt!=null),e($e!=null),$e[0]=0,12<=Tt[0]&&!t(_,Kt[0],"RIFF")){if(t(_,Kt[0]+8,"WEBP")){$e=3;break e}var rt=Ge(_,Kt[0]+4);if(12>rt||4294967286Tt[0]-8){$e=7;break e}$e[0]=rt,Kt[0]+=12,Tt[0]-=12}$e=0}if($e!=0)return $e;for(rt=0$e[0])$e=7;else{if(!t(zt,Tt[0],"VP8X")){if(Ge(zt,Tt[0]+4)!=10){$e=3;break e}if(18>$e[0]){$e=7;break e}var hn=Ge(zt,Tt[0]+8),ar=1+Ke(zt,Tt[0]+12);if(2147483648<=ar*(zt=1+Ke(zt,Tt[0]+15))){$e=3;break e}Sn!=null&&(Sn[0]=hn),Yt!=null&&(Yt[0]=ar),Wt!=null&&(Wt[0]=zt),Tt[0]+=18,$e[0]-=18,mn[0]=1}$e=0}}if(pt=pt[0],Kt=Kt[0],$e!=0)return $e;if(Tt=!!(2&Kt),!rt&&pt)return 3;if(he!=null&&(he[0]=!!(16&Kt)),ge!=null&&(ge[0]=Tt),me!=null&&(me[0]=0),ge=Te[0],Kt=Ie[0],pt&&Tt&&we==null){$e=0;break}if(4>j){$e=7;break}if(rt&&pt||!rt&&!pt&&!t(_,L[0],"ALPH")){j=[j],Ze.na=[Ze.na],Ze.P=[Ze.P],Ze.Sa=[Ze.Sa];e:{hn=_,$e=L,rt=j;var mn=Ze.gb;Yt=Ze.na,Wt=Ze.P,Sn=Ze.Sa,ar=22,e(hn!=null),e(rt!=null),zt=$e[0];var ni=rt[0];for(e(Yt!=null),e(Sn!=null),Yt[0]=null,Wt[0]=null,Sn[0]=0;;){if($e[0]=zt,rt[0]=ni,8>ni){$e=7;break e}var ci=Ge(hn,zt+4);if(4294967286mn){$e=3;break e}if(!t(hn,zt,"VP8 ")||!t(hn,zt,"VP8L")){$e=0;break e}if(ni[0]rt[0])$e=7;else{if(zt||ar){if(mn=Ge(mn,hn+4),12<=Yt&&mn>Yt-12){$e=3;break e}if(gt&&mn>rt[0]-8){$e=7;break e}Wt[0]=mn,$e[0]+=8,rt[0]-=8,Sn[0]=ar}else Sn[0]=5<=rt[0]&&mn[hn+0]==47&&!(mn[hn+4]>>5),Wt[0]=rt[0];$e=0}if(j=j[0],Ze.Ja=Ze.Ja[0],Ze.xa=Ze.xa[0],L=L[0],$e!=0)break;if(4294967286j){$e=7;break}me=ge,gt=Kt,Tt=he,_==null||5>j?_=0:5<=j&&_[L+0]==47&&!(_[L+4]>>5)?(rt=[0],mn=[0],Yt=[0],W(Wt=new J,_,L,j),bn(Wt,rt,mn,Yt)?(me!=null&&(me[0]=rt[0]),gt!=null&&(gt[0]=mn[0]),Tt!=null&&(Tt[0]=Yt[0]),_=1):_=0):_=0}else{if(10>j){$e=7;break}me=Kt,_==null||10>j||!Yr(_,L+3,j-3)?_=0:(gt=_[L+0]|_[L+1]<<8|_[L+2]<<16,Tt=16383&(_[L+7]<<8|_[L+6]),_=16383&(_[L+9]<<8|_[L+8]),1>||3<(gt>>1&7)||!(gt>>4&1)||gt>>5>=Ze.Ja||!Tt||!_?_=0:(ge&&(ge[0]=Tt),me&&(me[0]=_),_=1))}if(!_||(ge=ge[0],Kt=Kt[0],pt&&(Te[0]!=ge||Ie[0]!=Kt)))return 3;we!=null&&(we[0]=Ze,we.offset=L-we.w,e(4294967286>L-we.w),e(we.offset==we.ha-j));break}return $e==0||$e==7&&pt&&we==null?(he!=null&&(he[0]|=Ze.na!=null&&0j||(he&=-2,ge&=-2),0>he||0>ge||0>=me||0>=we||he+me>Z||ge+we>ce))return 0;if(L.v=he,L.j=ge,L.va=he+me,L.o=ge+we,L.U=me,L.T=we,L.da=_!=null&&0<_.da,L.da){if(!xe(me,we,j=[_.ib],he=[_.hb]))return 0;L.ib=j[0],L.hb=he[0]}return L.ob=_!=null&&_.ob,L.Kb=_==null||!_.Sd,L.da&&(L.ob=L.ib<3*Z/4&&L.hb<3*ce/4,L.Kb=0),1}function yl(_){if(_==null)return 2;if(11>_.S){var L=_.f.RGBA;L.fb+=(_.height-1)*L.A,L.A=-L.A}else L=_.f.kb,_=_.height,L.O+=(_-1)*L.fa,L.fa=-L.fa,L.N+=(_-1>>1)*L.Ab,L.Ab=-L.Ab,L.W+=(_-1>>1)*L.Db,L.Db=-L.Db,L.F!=null&&(L.J+=(_-1)*L.lb,L.lb=-L.lb);return 0}function to(_,L,j,Z){if(Z==null||0>=_||0>=L)return 2;if(j!=null){if(j.Da){var ce=j.cd,he=j.bd,ge=-2&j.v,me=-2&j.j;if(0>ge||0>me||0>=ce||0>=he||ge+ce>_||me+he>L)return 2;_=ce,L=he}if(j.da){if(!xe(_,L,ce=[j.ib],he=[j.hb]))return 2;_=ce[0],L=he[0]}}Z.width=_,Z.height=L;e:{var we=Z.width,Te=Z.height;if(_=Z.S,0>=we||0>=Te||!(_>=pA&&13>_))_=2;else{if(0>=Z.Rd&&Z.sd==null){ge=he=ce=L=0;var Ie=(me=we*Kd[_])*Te;if(11>_||(he=(Te+1)/2*(L=(we+1)/2),_==12&&(ge=(ce=we)*Te)),(Te=s(Ie+2*he+ge))==null){_=1;break e}Z.sd=Te,11>_?((we=Z.f.RGBA).eb=Te,we.fb=0,we.A=me,we.size=Ie):((we=Z.f.kb).y=Te,we.O=0,we.fa=me,we.Fd=Ie,we.f=Te,we.N=0+Ie,we.Ab=L,we.Cd=he,we.ea=Te,we.W=0+Ie+he,we.Db=L,we.Ed=he,_==12&&(we.F=Te,we.J=0+Ie+2*he),we.Tc=ge,we.lb=ce)}if(L=1,ce=Z.S,he=Z.width,ge=Z.height,ce>=pA&&13>ce)if(11>ce)_=Z.f.RGBA,L&=(me=Math.abs(_.A))*(ge-1)+he<=_.size,L&=me>=he*Kd[ce],L&=_.eb!=null;else{_=Z.f.kb,me=(he+1)/2,Ie=(ge+1)/2,we=Math.abs(_.fa),Te=Math.abs(_.Ab);var pt=Math.abs(_.Db),gt=Math.abs(_.lb),Ze=gt*(ge-1)+he;L&=we*(ge-1)+he<=_.Fd,L&=Te*(Ie-1)+me<=_.Cd,L=(L&=pt*(Ie-1)+me<=_.Ed)&we>=he&Te>=me&pt>=me,L&=_.y!=null,L&=_.f!=null,L&=_.ea!=null,ce==12&&(L&=gt>=he,L&=Ze<=_.Tc,L&=_.F!=null)}else L=0;_=L?0:2}}return _!=0||j!=null&&j.fd&&(_=yl(Z)),_}var Ji=64,Pr=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],No=24,hs=32,Ja=8,Ni=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];We("Predictor0","PredictorAdd0"),D.Predictor0=function(){return 4278190080},D.Predictor1=function(_){return _},D.Predictor2=function(_,L,j){return L[j+0]},D.Predictor3=function(_,L,j){return L[j+1]},D.Predictor4=function(_,L,j){return L[j-1]},D.Predictor5=function(_,L,j){return Je(Je(_,L[j+1]),L[j+0])},D.Predictor6=function(_,L,j){return Je(_,L[j-1])},D.Predictor7=function(_,L,j){return Je(_,L[j+0])},D.Predictor8=function(_,L,j){return Je(L[j-1],L[j+0])},D.Predictor9=function(_,L,j){return Je(L[j+0],L[j+1])},D.Predictor10=function(_,L,j){return Je(Je(_,L[j-1]),Je(L[j+0],L[j+1]))},D.Predictor11=function(_,L,j){var Z=L[j+0];return 0>=ut(Z>>24&255,_>>24&255,(L=L[j-1])>>24&255)+ut(Z>>16&255,_>>16&255,L>>16&255)+ut(Z>>8&255,_>>8&255,L>>8&255)+ut(255&Z,255&_,255&L)?Z:_},D.Predictor12=function(_,L,j){var Z=L[j+0];return(Ut((_>>24&255)+(Z>>24&255)-((L=L[j-1])>>24&255))<<24|Ut((_>>16&255)+(Z>>16&255)-(L>>16&255))<<16|Ut((_>>8&255)+(Z>>8&255)-(L>>8&255))<<8|Ut((255&_)+(255&Z)-(255&L)))>>>0},D.Predictor13=function(_,L,j){var Z=L[j-1];return(yt((_=Je(_,L[j+0]))>>24&255,Z>>24&255)<<24|yt(_>>16&255,Z>>16&255)<<16|yt(_>>8&255,Z>>8&255)<<8|yt(_>>0&255,Z>>0&255))>>>0};var Jo=D.PredictorAdd0;D.PredictorAdd1=Ht,We("Predictor2","PredictorAdd2"),We("Predictor3","PredictorAdd3"),We("Predictor4","PredictorAdd4"),We("Predictor5","PredictorAdd5"),We("Predictor6","PredictorAdd6"),We("Predictor7","PredictorAdd7"),We("Predictor8","PredictorAdd8"),We("Predictor9","PredictorAdd9"),We("Predictor10","PredictorAdd10"),We("Predictor11","PredictorAdd11"),We("Predictor12","PredictorAdd12"),We("Predictor13","PredictorAdd13");var Ea=D.PredictorAdd2;He("ColorIndexInverseTransform","MapARGB","32b",function(_){return _>>8&255},function(_){return _}),He("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(_){return _},function(_){return _>>8&255});var wl,bi=D.ColorIndexInverseTransform,Gs=D.MapARGB,Ws=D.VP8LColorIndexInverseTransformAlpha,Jr=D.MapAlpha,ps=D.VP8LPredictorsAdd=[];ps.length=16,(D.VP8LPredictors=[]).length=16,(D.VP8LPredictorsAdd_C=[]).length=16,(D.VP8LPredictors_C=[]).length=16;var ss,Ki,Me,qe,ct,wt,ht,rn,pn,vn,an,Wn,On,An,Qn,gn,Zr,ei,di,Ur,or,ui,Dr,Ma,no,yo,Za,AA,yu=s(511),kd=s(2041),Nd=s(225),fA=s(767),Dd=0,dA=kd,hA=Nd,Do=fA,wo=yu,pA=0,Ou=1,bl=2,xc=3,wu=4,Qu=5,Od=6,df=7,hf=8,_c=9,ju=10,Ep=[2,3,7],G0=[3,3,11],Qd=[280,256,256,256,40],W0=[0,1,1,1,0],pf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Mp=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Tp=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Fp=8,gf=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],zl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],gA=null,K0=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],q0=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],mf=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],jd=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],X0=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Lp=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Ip=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Vl=[],Ta=[],da=[],xl=1,Hd=2,ha=[],bo=[];ft("UpsampleRgbLinePair",Xn,3),ft("UpsampleBgrLinePair",Br,3),ft("UpsampleRgbaLinePair",Wi,4),ft("UpsampleBgraLinePair",li,4),ft("UpsampleArgbLinePair",Pi,4),ft("UpsampleRgba4444LinePair",Cn,2),ft("UpsampleRgb565LinePair",wr,2);var vf=D.UpsampleRgbLinePair,Sc=D.UpsampleBgrLinePair,Bc=D.UpsampleRgbaLinePair,Cc=D.UpsampleBgraLinePair,ro=D.UpsampleArgbLinePair,Pp=D.UpsampleRgba4444LinePair,$0=D.UpsampleRgb565LinePair,xo=16,Ks=1<Z.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Z.ca.f.kb.F!=null&&at()),Z.Pb&&0(we=j.Md)?0:100Te;++Te)12>(pt=ce.pb[Te]).lc&&(pt.ia=we*bf[0>pt.lc?0:pt.lc]>>3),Ie|=pt.ia;Ie&&(alert("todo:VP8InitRandom"),ce.ia=1)}ce.Ga=j.Id,100ce.Ga&&(ce.Ga=0)}As(_,Z)||(L=_.a)}}else L=_.a}L==0&&ge.Oa!=null&&ge.Oa.fd&&(L=yl(ge.ba))}ge=L}he=ge!=0?null:11>he?me.f.RGBA.eb:me.f.kb.y}else he=null;return he};var Kd=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(D,Q){for(var N="",O=0;O<4;O++)N+=String.fromCharCode(D[Q++]);return N}function u(D,Q){return(D[Q+0]<<0|D[Q+1]<<8|D[Q+2]<<16)>>>0}function A(D,Q){return(D[Q+0]<<0|D[Q+1]<<8|D[Q+2]<<16|D[Q+3]<<24)>>>0}new l;var d=[0],f=[0],m=[],w=new l,b=n,p=function(D,Q){var N={},O=0,G=!1,X=0,ee=0;if(N.frames=[],!function(fe,Ae,be,Fe){for(var Pe=0;Pe>1&1}ye!="ANMF"&&(Q+=le)}return N}}(b,0);p.response=b,p.rgbaoutput=!0,p.dataurl=!1;var v=p.header?p.header:null,y=p.frames?p.frames:null;if(v){v.loop_counter=v.loop_count,d=[v.canvas_height],f=[v.canvas_width];for(var B=0;B>>1)&255;return p},l=function(d,f,m){var w,b,p,v,y=[],B=d.length;y[0]=4;for(var P=0;P>>ye&255,ye+=v.bits;Q[X]=G>>>ye&255}}if(v.bits===16){D=(x=new Uint32Array(v.decodePixels().buffer)).length,N=new Uint8Array(D*(32/v.pixelBitlength)*v.colors),Q=new Uint8Array(D*(32/v.pixelBitlength)),O=v.colors>1,X=0,ee=0;for(var le=0;X>>0&255,O&&(N[ee++]=G>>>16&255,G=x[X++],N[ee++]=G>>>0&255),Q[le++]=G>>>16&255;p=8}w!==n.image_compression.NONE&&e()?(d=t(N,v.width*v.colors,v.colors,w),U=t(Q,v.width,1,w)):(d=N,U=Q,$=void 0)}if(v.colorType===3&&(b=this.color_spaces.INDEXED,P=v.palette,v.transparency.indexed)){var ie=v.transparency.indexed,Ee=0;for(X=0,D=ie.length;X=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>7-a&1];this.data[o+4*a]=l.blue,this.data[o+4*a+1]=l.green,this.data[o+4*a+2]=l.red,this.data[o+4*a+3]=255}t!==0&&(this.pos+=4-t)}},Yu.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),e=n%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i>4,l=15&s,c=this.palette[a];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}e!==0&&(this.pos+=4-e)}},Yu.prototype.bit8=function(){for(var n=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i>5&e)/e*255|0,l=(s>>10&e)/e*255|0,c=s>>15?255:0,u=r*this.width*4+4*i;this.data[u]=l,this.data[u+1]=a,this.data[u+2]=o,this.data[u+3]=c}this.pos+=n}},Yu.prototype.bit16=function(){for(var n=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,s=0;s>5&t)/t*255|0,c=(o>>11)/e*255|0,u=i*this.width*4+4*s;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=a,this.data[u+3]=255}this.pos+=n}},Yu.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,t=0;t=0;n--)for(var e=this.bottom_up?n:this.height-1-n,t=0;tr&&(i.push(n.slice(l,s)),a=0,l=s),a+=e[s],s++;return l!==s&&i.push(n.slice(l,s)),i},OF=function(n,e,t){t||(t={});var r,i,s,o,a,l,c,u=[],A=[u],d=t.textIndent||0,f=0,m=0,w=n.split(" "),b=Hy.apply(this,[" ",t])[0];if(l=t.lineIndent===-1?w[0].length+2:t.lineIndent||0){var p=Array(l).join(" "),v=[];w.map(function(B){(B=B.split(/\s*\n/)).length>1?v=v.concat(B.map(function(P,U){return(U&&P.length?` `:"")+P})):v.push(B[0])}),w=v,l=NF.apply(this,[p,t])}for(s=0,o=w.length;se||y){if(m>e){for(a=DF.apply(this,[r,i,e-(d+f),e]),u.push(a.shift()),u=[a.pop()];a.length;)A.push([a.shift()]);m=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(B,P){return B+P},0)}else u=[r];A.push(u),d=m+l,f=b}else u.push(r),d+=f+m,f=b}return c=l?function(B,P){return(P?p:"")+B.join(" ")}:function(B){return B.join(" ")},A.map(c)},Tg.splitTextToSize=function(n,e,t){var r,i=(t=t||{}).fontSize||this.internal.getFontSize(),s=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var A=this.internal.getFont(u.fontName,u.fontStyle);return A.metadata.Unicode?{widths:A.metadata.Unicode.widths||{0:1},kerning:A.metadata.Unicode.kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(n)?n:String(n).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;s.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,s.lineIndent=t.lineIndent;var a,l,c=[];for(a=0,l=r.length;aimport("./index.es-BurIVaRq.js"),__vite__mapDeps([]))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}gr.API.addSvgAsImage=function(t,r,i,s,o,a,l,c){if(isNaN(r)||isNaN(i))throw es.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(s)||isNaN(o))throw es.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=s,u.height=o;var A=u.getContext("2d");A.fillStyle="#fff",A.fillRect(0,0,u.width,u.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return e().then(function(m){return m.fromString(A,t,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(d)}).then(function(){f.addImage(u.toDataURL("image/jpeg",1),r,i,s,o,l,c)})}}(),gr.API.putTotalPages=function(n){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i1){for(u=0;ue||y){if(m>e){for(a=DF.apply(this,[r,i,e-(d+f),e]),u.push(a.shift()),u=[a.pop()];a.length;)A.push([a.shift()]);m=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(B,P){return B+P},0)}else u=[r];A.push(u),d=m+l,f=b}else u.push(r),d+=f+m,f=b}return c=l?function(B,P){return(P?p:"")+B.join(" ")}:function(B){return B.join(" ")},A.map(c)},Tg.splitTextToSize=function(n,e,t){var r,i=(t=t||{}).fontSize||this.internal.getFontSize(),s=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var A=this.internal.getFont(u.fontName,u.fontStyle);return A.metadata.Unicode?{widths:A.metadata.Unicode.widths||{0:1},kerning:A.metadata.Unicode.kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(n)?n:String(n).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;s.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,s.lineIndent=t.lineIndent;var a,l,c=[];for(a=0,l=r.length;aimport("./index.es-MQc7utcc.js"),__vite__mapDeps([]))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}gr.API.addSvgAsImage=function(t,r,i,s,o,a,l,c){if(isNaN(r)||isNaN(i))throw es.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(s)||isNaN(o))throw es.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=s,u.height=o;var A=u.getContext("2d");A.fillStyle="#fff",A.fillRect(0,0,u.width,u.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return e().then(function(m){return m.fromString(A,t,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(d)}).then(function(){f.addImage(u.toDataURL("image/jpeg",1),r,i,s,o,l,c)})}}(),gr.API.putTotalPages=function(n){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i1){for(u=0;u"u"&&qr!==void 0?function(a){return typeof a=="function"||a===qr}:function(a){return typeof a=="function"},Vl=B,ve=function(a){return typeof a=="object"?a!==null:Vl(a)},Qr=D,Dl=B,Ll=function(a){return Dl(a)?a:void 0},je=function(a,e){return arguments.length<2?Ll(Qr[a]):Qr[a]&&Qr[a][e]},kl=k,yr=kl({}.isPrototypeOf),mr=typeof navigator<"u"&&String(navigator.userAgent)||"",Do=D,Kr=mr,fn=Do.process,cn=Do.Deno,gn=fn&&fn.versions||cn&&cn.version,dn=gn&&gn.v8,ue,hr;dn&&(ue=dn.split("."),hr=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!hr&&Kr&&(ue=Kr.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=Kr.match(/Chrome\/(\d+)/),ue&&(hr=+ue[1])));var bi=hr,pn=bi,Bl=L,Fl=D,jl=Fl.String,Lo=!!Object.getOwnPropertySymbols&&!Bl(function(){var a=Symbol("symbol detection");return!jl(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&pn&&pn<41}),Ul=Lo,ko=Ul&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Gl=je,zl=B,Hl=yr,Yl=ko,Xl=Object,Bo=Yl?function(a){return typeof a=="symbol"}:function(a){var e=Gl("Symbol");return zl(e)&&Hl(e.prototype,Xl(a))},Wl=String,br=function(a){try{return Wl(a)}catch{return"Object"}},ql=B,Ql=br,Kl=TypeError,Te=function(a){if(ql(a))return a;throw new Kl(Ql(a)+" is not a function")},Zl=Te,Jl=Fe,ot=function(a,e){var t=a[e];return Jl(t)?void 0:Zl(t)},Zr=Y,Jr=B,ea=ve,eh=TypeError,th=function(a,e){var t,r;if(e==="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a))||Jr(t=a.valueOf)&&!ea(r=Zr(t,a))||e!=="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a)))return r;throw new eh("Can't convert object to primitive value")},Fo={exports:{}},yn=D,rh=Object.defineProperty,xi=function(a,e){try{rh(yn,a,{value:e,configurable:!0,writable:!0})}catch{yn[a]=e}return e},ah=D,ih=xi,mn="__core-js_shared__",bn=Fo.exports=ah[mn]||ih(mn,{});(bn.versions||(bn.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ti=Fo.exports,xn=Ti,Oi=function(a,e){return xn[a]||(xn[a]=e||{})},nh=he,sh=Object,xr=function(a){return sh(nh(a))},oh=k,uh=xr,lh=oh({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return lh(uh(e),t)},hh=k,vh=0,fh=Math.random(),ch=hh(1 .toString),jo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+ch(++vh+fh,36)},gh=D,dh=Oi,Tn=fe,ph=jo,yh=Lo,mh=ko,Ze=gh.Symbol,ta=dh("wks"),bh=mh?Ze.for||Ze:Ze&&Ze.withoutSetter||ph,z=function(a){return Tn(ta,a)||(ta[a]=yh&&Tn(Ze,a)?Ze[a]:bh("Symbol."+a)),ta[a]},xh=Y,On=ve,Sn=Bo,Th=ot,Oh=th,Sh=z,Eh=TypeError,$h=Sh("toPrimitive"),wh=function(a,e){if(!On(a)||Sn(a))return a;var t=Th(a,$h),r;if(t){if(e===void 0&&(e="default"),r=xh(t,a,e),!On(r)||Sn(r))return r;throw new Eh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Oh(a,e)},Ch=wh,Ah=Bo,Uo=function(a){var e=Ch(a,"string");return Ah(e)?e:e+""},Ph=D,En=ve,Ga=Ph.document,Rh=En(Ga)&&En(Ga.createElement),Tr=function(a){return Rh?Ga.createElement(a):{}},Nh=le,Ih=L,Mh=Tr,Go=!Nh&&!Ih(function(){return Object.defineProperty(Mh("div"),"a",{get:function(){return 7}}).a!==7}),_h=le,Vh=Y,Dh=Po,Lh=mi,kh=$t,Bh=Uo,Fh=fe,jh=Go,$n=Object.getOwnPropertyDescriptor;Et.f=_h?$n:function(e,t){if(e=kh(e),t=Bh(t),jh)try{return $n(e,t)}catch{}if(Fh(e,t))return Lh(!Vh(Dh.f,e,t),e[t])};var Oe={},Uh=le,Gh=L,zo=Uh&&Gh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),zh=ve,Hh=String,Yh=TypeError,J=function(a){if(zh(a))return a;throw new Yh(Hh(a)+" is not an object")},Xh=le,Wh=Go,qh=zo,Ut=J,wn=Uo,Qh=TypeError,ra=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,aa="enumerable",ia="configurable",na="writable";Oe.f=Xh?qh?function(e,t,r){if(Ut(e),t=wn(t),Ut(r),typeof e=="function"&&t==="prototype"&&"value"in r&&na in r&&!r[na]){var i=Kh(e,t);i&&i[na]&&(e[t]=r.value,r={configurable:ia in r?r[ia]:i[ia],enumerable:aa in r?r[aa]:i[aa],writable:!1})}return ra(e,t,r)}:ra:function(e,t,r){if(Ut(e),t=wn(t),Ut(r),Wh)try{return ra(e,t,r)}catch{}if("get"in r||"set"in r)throw new Qh("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Zh=le,Jh=Oe,ev=mi,wt=Zh?function(a,e,t){return Jh.f(a,e,ev(1,t))}:function(a,e,t){return a[e]=t,a},Ho={exports:{}},za=le,tv=fe,Yo=Function.prototype,rv=za&&Object.getOwnPropertyDescriptor,Si=tv(Yo,"name"),av=Si&&(function(){}).name==="something",iv=Si&&(!za||za&&rv(Yo,"name").configurable),Or={EXISTS:Si,PROPER:av,CONFIGURABLE:iv},nv=k,sv=B,Ha=Ti,ov=nv(Function.toString);sv(Ha.inspectSource)||(Ha.inspectSource=function(a){return ov(a)});var Ei=Ha.inspectSource,uv=D,lv=B,Cn=uv.WeakMap,hv=lv(Cn)&&/native code/.test(String(Cn)),vv=Oi,fv=jo,An=vv("keys"),$i=function(a){return An[a]||(An[a]=fv(a))},wi={},cv=hv,Xo=D,gv=ve,dv=wt,sa=fe,oa=Ti,pv=$i,yv=wi,Pn="Object already initialized",Ya=Xo.TypeError,mv=Xo.WeakMap,vr,Tt,fr,bv=function(a){return fr(a)?Tt(a):vr(a,{})},xv=function(a){return function(e){var t;if(!gv(e)||(t=Tt(e)).type!==a)throw new Ya("Incompatible receiver, "+a+" required");return t}};if(cv||oa.state){var de=oa.state||(oa.state=new mv);de.get=de.get,de.has=de.has,de.set=de.set,vr=function(a,e){if(de.has(a))throw new Ya(Pn);return e.facade=a,de.set(a,e),e},Tt=function(a){return de.get(a)||{}},fr=function(a){return de.has(a)}}else{var Ye=pv("state");yv[Ye]=!0,vr=function(a,e){if(sa(a,Ye))throw new Ya(Pn);return e.facade=a,dv(a,Ye,e),e},Tt=function(a){return sa(a,Ye)?a[Ye]:{}},fr=function(a){return sa(a,Ye)}}var Sr={set:vr,get:Tt,has:fr,enforce:bv,getterFor:xv},Ci=k,Tv=L,Ov=B,Gt=fe,Xa=le,Sv=Or.CONFIGURABLE,Ev=Ei,Wo=Sr,$v=Wo.enforce,wv=Wo.get,Rn=String,ir=Object.defineProperty,Cv=Ci("".slice),Av=Ci("".replace),Pv=Ci([].join),Rv=Xa&&!Tv(function(){return ir(function(){},"length",{value:8}).length!==8}),Nv=String(String).split("String"),Iv=Ho.exports=function(a,e,t){Cv(Rn(e),0,7)==="Symbol("&&(e="["+Av(Rn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!Gt(a,"name")||Sv&&a.name!==e)&&(Xa?ir(a,"name",{value:e,configurable:!0}):a.name=e),Rv&&t&&Gt(t,"arity")&&a.length!==t.arity&&ir(a,"length",{value:t.arity});try{t&&Gt(t,"constructor")&&t.constructor?Xa&&ir(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=$v(a);return Gt(r,"source")||(r.source=Pv(Nv,typeof e=="string"?e:"")),a};Function.prototype.toString=Iv(function(){return Ov(this)&&wv(this).source||Ev(this)},"toString");var qo=Ho.exports,Mv=B,_v=Oe,Vv=qo,Dv=xi,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Mv(t)&&Vv(t,n,r),r.global)i?a[e]=t:Dv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:_v.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},Qo={},Lv=Math.ceil,kv=Math.floor,Bv=Math.trunc||function(e){var t=+e;return(t>0?kv:Lv)(t)},Fv=Bv,Er=function(a){var e=+a;return e!==e||e===0?0:Fv(e)},jv=Er,Uv=Math.max,Gv=Math.min,zv=function(a,e){var t=jv(a);return t<0?Uv(t+e,0):Gv(t,e)},Hv=Er,Yv=Math.min,ut=function(a){var e=Hv(a);return e>0?Yv(e,9007199254740991):0},Xv=ut,Ai=function(a){return Xv(a.length)},Wv=$t,qv=zv,Qv=Ai,Nn=function(a){return function(e,t,r){var i=Wv(e),n=Qv(i);if(n===0)return!a&&-1;var o=qv(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},Ko={includes:Nn(!0),indexOf:Nn(!1)},Kv=k,ua=fe,Zv=$t,Jv=Ko.indexOf,ef=wi,In=Kv([].push),Zo=function(a,e){var t=Zv(a),r=0,i=[],n;for(n in t)!ua(ef,n)&&ua(t,n)&&In(i,n);for(;e.length>r;)ua(t,n=e[r++])&&(~Jv(i,n)||In(i,n));return i},Pi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tf=Zo,rf=Pi,af=rf.concat("length","prototype");Qo.f=Object.getOwnPropertyNames||function(e){return tf(e,af)};var Jo={};Jo.f=Object.getOwnPropertySymbols;var nf=je,sf=k,of=Qo,uf=Jo,lf=J,hf=sf([].concat),vf=nf("Reflect","ownKeys")||function(e){var t=of.f(lf(e)),r=uf.f;return r?hf(t,r(e)):t},Mn=fe,ff=vf,cf=Et,gf=Oe,df=function(a,e,t){for(var r=ff(e),i=gf.f,n=cf.f,o=0;of;f++)if(v=y(a[f]),v&&ls(vs,v))return v;return new or(!1)}l=md(a,h)}for(d=n?a.next:l.next;!(g=cd(d,l)).done;){try{v=y(g.value)}catch(x){hs(l,"throw",x)}if(typeof v=="object"&&v&&ls(vs,v))return v}return new or(!1)},Td=z,Iu=Td("iterator"),Mu=!1;try{var Od=0,fs={next:function(){return{done:!!Od++}},return:function(){Mu=!0}};fs[Iu]=function(){return this},Array.from(fs,function(){throw 2})}catch{}var Sd=function(a,e){try{if(!e&&!Mu)return!1}catch{return!1}var t=!1;try{var r={};r[Iu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},Ed=Cr,$d=Sd,wd=Pt.CONSTRUCTOR,_u=wd||!$d(function(a){Ed.all(a).then(void 0,function(){})}),Cd=ee,Ad=Y,Pd=Te,Rd=lt,Nd=_i,Id=Nu,Md=_u;Cd({target:"Promise",stat:!0,forced:Md},{all:function(e){var t=this,r=Rd.f(t),i=r.resolve,n=r.reject,o=Nd(function(){var s=Pd(t.resolve),u=[],l=0,h=1;Id(e,function(f){var c=l++,v=!1;h++,Ad(s,t,f).then(function(d){v||(v=!0,u[c]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var _d=ee,Vd=Pt.CONSTRUCTOR,ti=Cr,Dd=je,Ld=B,kd=Ue,cs=ti&&ti.prototype;_d({target:"Promise",proto:!0,forced:Vd,real:!0},{catch:function(a){return this.then(void 0,a)}});if(Ld(ti)){var gs=Dd("Promise").prototype.catch;cs.catch!==gs&&kd(cs,"catch",gs,{unsafe:!0})}var Bd=ee,Fd=Y,jd=Te,Ud=lt,Gd=_i,zd=Nu,Hd=_u;Bd({target:"Promise",stat:!0,forced:Hd},{race:function(e){var t=this,r=Ud.f(t),i=r.reject,n=Gd(function(){var o=jd(t.resolve);zd(e,function(s){Fd(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Yd=ee,Xd=lt,Wd=Pt.CONSTRUCTOR;Yd({target:"Promise",stat:!0,forced:Wd},{reject:function(e){var t=Xd.f(this),r=t.reject;return r(e),t.promise}});var qd=J,Qd=ve,Kd=lt,Zd=function(a,e){if(qd(a),Qd(e)&&e.constructor===a)return e;var t=Kd.f(a),r=t.resolve;return r(e),t.promise},Jd=ee,ep=je,tp=Pt.CONSTRUCTOR,rp=Zd;ep("Promise");Jd({target:"Promise",stat:!0,forced:tp},{resolve:function(e){return rp(this,e)}});function ds(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){t(l);return}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){ds(n,r,i,o,s,"next",u)}function s(u){ds(n,r,i,o,s,"throw",u)}o(void 0)})}}var ap=Ri,ip=String,pe=function(a){if(ap(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ip(a)},np=J,Vu=function(){var a=np(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},Bi=L,sp=D,Fi=sp.RegExp,ji=Bi(function(){var a=Fi("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),op=ji||Bi(function(){return!Fi("a","y").sticky}),up=ji||Bi(function(){var a=Fi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Du={BROKEN_CARET:up,MISSED_STICKY:op,UNSUPPORTED_Y:ji},Lu={},lp=Zo,hp=Pi,vp=Object.keys||function(e){return lp(e,hp)},fp=le,cp=zo,gp=Oe,dp=J,pp=$t,yp=vp;Lu.f=fp&&!cp?Object.defineProperties:function(e,t){dp(e);for(var r=pp(t),i=yp(t),n=i.length,o=0,s;n>o;)gp.f(e,s=i[o++],r[s]);return e};var mp=J,bp=Lu,ps=Pi,xp=wi,Tp=hu,Op=Tr,Sp=$i,ys=">",ms="<",ri="prototype",ai="script",ku=Sp("IE_PROTO"),xa=function(){},Bu=function(a){return ms+ai+ys+a+ms+"/"+ai+ys},bs=function(a){a.write(Bu("")),a.close();var e=a.parentWindow.Object;return a=null,e},Ep=function(){var a=Op("iframe"),e="java"+ai+":",t;return a.style.display="none",Tp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(Bu("document.F=Object")),t.close(),t.F},Kt,ur=function(){try{Kt=new ActiveXObject("htmlfile")}catch{}ur=typeof document<"u"?document.domain&&Kt?bs(Kt):Ep():bs(Kt);for(var a=ps.length;a--;)delete ur[ri][ps[a]];return ur()};xp[ku]=!0;var Ui=Object.create||function(e,t){var r;return e!==null?(xa[ri]=mp(e),r=new xa,xa[ri]=null,r[ku]=e):r=ur(),t===void 0?r:bp.f(r,t)},$p=L,wp=D,Cp=wp.RegExp,Ap=$p(function(){var a=Cp(".","s");return!(a.dotAll&&a.test(` +import{c as Ke,t as bl,g as Ao}from"./index-gFumAa4J.js";var vt=function(a){return a&&a.Math===Math&&a},D=vt(typeof globalThis=="object"&&globalThis)||vt(typeof window=="object"&&window)||vt(typeof self=="object"&&self)||vt(typeof Ke=="object"&&Ke)||vt(typeof Ke=="object"&&Ke)||function(){return this}()||Function("return this")(),Et={},L=function(a){try{return!!a()}catch{return!0}},xl=L,le=!xl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Tl=L,pr=!Tl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),Ol=pr,jt=Function.prototype.call,Y=Ol?jt.bind(jt):function(){return jt.apply(jt,arguments)},Po={},Ro={}.propertyIsEnumerable,No=Object.getOwnPropertyDescriptor,Sl=No&&!Ro.call({1:2},1);Po.f=Sl?function(e){var t=No(this,e);return!!t&&t.enumerable}:Ro;var mi=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},Io=pr,Mo=Function.prototype,Ua=Mo.call,El=Io&&Mo.bind.bind(Ua,Ua),k=Io?El:function(a){return function(){return Ua.apply(a,arguments)}},_o=k,$l=_o({}.toString),wl=_o("".slice),Be=function(a){return wl($l(a),8,-1)},Cl=k,Al=L,Pl=Be,Wr=Object,Rl=Cl("".split),Vo=Al(function(){return!Wr("z").propertyIsEnumerable(0)})?function(a){return Pl(a)==="String"?Rl(a,""):Wr(a)}:Wr,Fe=function(a){return a==null},Nl=Fe,Il=TypeError,he=function(a){if(Nl(a))throw new Il("Can't call method on "+a);return a},Ml=Vo,_l=he,$t=function(a){return Ml(_l(a))},qr=typeof document=="object"&&document.all,B=typeof qr>"u"&&qr!==void 0?function(a){return typeof a=="function"||a===qr}:function(a){return typeof a=="function"},Vl=B,ve=function(a){return typeof a=="object"?a!==null:Vl(a)},Qr=D,Dl=B,Ll=function(a){return Dl(a)?a:void 0},je=function(a,e){return arguments.length<2?Ll(Qr[a]):Qr[a]&&Qr[a][e]},kl=k,yr=kl({}.isPrototypeOf),mr=typeof navigator<"u"&&String(navigator.userAgent)||"",Do=D,Kr=mr,fn=Do.process,cn=Do.Deno,gn=fn&&fn.versions||cn&&cn.version,dn=gn&&gn.v8,ue,hr;dn&&(ue=dn.split("."),hr=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!hr&&Kr&&(ue=Kr.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=Kr.match(/Chrome\/(\d+)/),ue&&(hr=+ue[1])));var bi=hr,pn=bi,Bl=L,Fl=D,jl=Fl.String,Lo=!!Object.getOwnPropertySymbols&&!Bl(function(){var a=Symbol("symbol detection");return!jl(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&pn&&pn<41}),Ul=Lo,ko=Ul&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Gl=je,zl=B,Hl=yr,Yl=ko,Xl=Object,Bo=Yl?function(a){return typeof a=="symbol"}:function(a){var e=Gl("Symbol");return zl(e)&&Hl(e.prototype,Xl(a))},Wl=String,br=function(a){try{return Wl(a)}catch{return"Object"}},ql=B,Ql=br,Kl=TypeError,Te=function(a){if(ql(a))return a;throw new Kl(Ql(a)+" is not a function")},Zl=Te,Jl=Fe,ot=function(a,e){var t=a[e];return Jl(t)?void 0:Zl(t)},Zr=Y,Jr=B,ea=ve,eh=TypeError,th=function(a,e){var t,r;if(e==="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a))||Jr(t=a.valueOf)&&!ea(r=Zr(t,a))||e!=="string"&&Jr(t=a.toString)&&!ea(r=Zr(t,a)))return r;throw new eh("Can't convert object to primitive value")},Fo={exports:{}},yn=D,rh=Object.defineProperty,xi=function(a,e){try{rh(yn,a,{value:e,configurable:!0,writable:!0})}catch{yn[a]=e}return e},ah=D,ih=xi,mn="__core-js_shared__",bn=Fo.exports=ah[mn]||ih(mn,{});(bn.versions||(bn.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ti=Fo.exports,xn=Ti,Oi=function(a,e){return xn[a]||(xn[a]=e||{})},nh=he,sh=Object,xr=function(a){return sh(nh(a))},oh=k,uh=xr,lh=oh({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return lh(uh(e),t)},hh=k,vh=0,fh=Math.random(),ch=hh(1 .toString),jo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+ch(++vh+fh,36)},gh=D,dh=Oi,Tn=fe,ph=jo,yh=Lo,mh=ko,Ze=gh.Symbol,ta=dh("wks"),bh=mh?Ze.for||Ze:Ze&&Ze.withoutSetter||ph,z=function(a){return Tn(ta,a)||(ta[a]=yh&&Tn(Ze,a)?Ze[a]:bh("Symbol."+a)),ta[a]},xh=Y,On=ve,Sn=Bo,Th=ot,Oh=th,Sh=z,Eh=TypeError,$h=Sh("toPrimitive"),wh=function(a,e){if(!On(a)||Sn(a))return a;var t=Th(a,$h),r;if(t){if(e===void 0&&(e="default"),r=xh(t,a,e),!On(r)||Sn(r))return r;throw new Eh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Oh(a,e)},Ch=wh,Ah=Bo,Uo=function(a){var e=Ch(a,"string");return Ah(e)?e:e+""},Ph=D,En=ve,Ga=Ph.document,Rh=En(Ga)&&En(Ga.createElement),Tr=function(a){return Rh?Ga.createElement(a):{}},Nh=le,Ih=L,Mh=Tr,Go=!Nh&&!Ih(function(){return Object.defineProperty(Mh("div"),"a",{get:function(){return 7}}).a!==7}),_h=le,Vh=Y,Dh=Po,Lh=mi,kh=$t,Bh=Uo,Fh=fe,jh=Go,$n=Object.getOwnPropertyDescriptor;Et.f=_h?$n:function(e,t){if(e=kh(e),t=Bh(t),jh)try{return $n(e,t)}catch{}if(Fh(e,t))return Lh(!Vh(Dh.f,e,t),e[t])};var Oe={},Uh=le,Gh=L,zo=Uh&&Gh(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),zh=ve,Hh=String,Yh=TypeError,J=function(a){if(zh(a))return a;throw new Yh(Hh(a)+" is not an object")},Xh=le,Wh=Go,qh=zo,Ut=J,wn=Uo,Qh=TypeError,ra=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,aa="enumerable",ia="configurable",na="writable";Oe.f=Xh?qh?function(e,t,r){if(Ut(e),t=wn(t),Ut(r),typeof e=="function"&&t==="prototype"&&"value"in r&&na in r&&!r[na]){var i=Kh(e,t);i&&i[na]&&(e[t]=r.value,r={configurable:ia in r?r[ia]:i[ia],enumerable:aa in r?r[aa]:i[aa],writable:!1})}return ra(e,t,r)}:ra:function(e,t,r){if(Ut(e),t=wn(t),Ut(r),Wh)try{return ra(e,t,r)}catch{}if("get"in r||"set"in r)throw new Qh("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Zh=le,Jh=Oe,ev=mi,wt=Zh?function(a,e,t){return Jh.f(a,e,ev(1,t))}:function(a,e,t){return a[e]=t,a},Ho={exports:{}},za=le,tv=fe,Yo=Function.prototype,rv=za&&Object.getOwnPropertyDescriptor,Si=tv(Yo,"name"),av=Si&&(function(){}).name==="something",iv=Si&&(!za||za&&rv(Yo,"name").configurable),Or={EXISTS:Si,PROPER:av,CONFIGURABLE:iv},nv=k,sv=B,Ha=Ti,ov=nv(Function.toString);sv(Ha.inspectSource)||(Ha.inspectSource=function(a){return ov(a)});var Ei=Ha.inspectSource,uv=D,lv=B,Cn=uv.WeakMap,hv=lv(Cn)&&/native code/.test(String(Cn)),vv=Oi,fv=jo,An=vv("keys"),$i=function(a){return An[a]||(An[a]=fv(a))},wi={},cv=hv,Xo=D,gv=ve,dv=wt,sa=fe,oa=Ti,pv=$i,yv=wi,Pn="Object already initialized",Ya=Xo.TypeError,mv=Xo.WeakMap,vr,Tt,fr,bv=function(a){return fr(a)?Tt(a):vr(a,{})},xv=function(a){return function(e){var t;if(!gv(e)||(t=Tt(e)).type!==a)throw new Ya("Incompatible receiver, "+a+" required");return t}};if(cv||oa.state){var de=oa.state||(oa.state=new mv);de.get=de.get,de.has=de.has,de.set=de.set,vr=function(a,e){if(de.has(a))throw new Ya(Pn);return e.facade=a,de.set(a,e),e},Tt=function(a){return de.get(a)||{}},fr=function(a){return de.has(a)}}else{var Ye=pv("state");yv[Ye]=!0,vr=function(a,e){if(sa(a,Ye))throw new Ya(Pn);return e.facade=a,dv(a,Ye,e),e},Tt=function(a){return sa(a,Ye)?a[Ye]:{}},fr=function(a){return sa(a,Ye)}}var Sr={set:vr,get:Tt,has:fr,enforce:bv,getterFor:xv},Ci=k,Tv=L,Ov=B,Gt=fe,Xa=le,Sv=Or.CONFIGURABLE,Ev=Ei,Wo=Sr,$v=Wo.enforce,wv=Wo.get,Rn=String,ir=Object.defineProperty,Cv=Ci("".slice),Av=Ci("".replace),Pv=Ci([].join),Rv=Xa&&!Tv(function(){return ir(function(){},"length",{value:8}).length!==8}),Nv=String(String).split("String"),Iv=Ho.exports=function(a,e,t){Cv(Rn(e),0,7)==="Symbol("&&(e="["+Av(Rn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!Gt(a,"name")||Sv&&a.name!==e)&&(Xa?ir(a,"name",{value:e,configurable:!0}):a.name=e),Rv&&t&&Gt(t,"arity")&&a.length!==t.arity&&ir(a,"length",{value:t.arity});try{t&&Gt(t,"constructor")&&t.constructor?Xa&&ir(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=$v(a);return Gt(r,"source")||(r.source=Pv(Nv,typeof e=="string"?e:"")),a};Function.prototype.toString=Iv(function(){return Ov(this)&&wv(this).source||Ev(this)},"toString");var qo=Ho.exports,Mv=B,_v=Oe,Vv=qo,Dv=xi,Ue=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Mv(t)&&Vv(t,n,r),r.global)i?a[e]=t:Dv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:_v.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},Qo={},Lv=Math.ceil,kv=Math.floor,Bv=Math.trunc||function(e){var t=+e;return(t>0?kv:Lv)(t)},Fv=Bv,Er=function(a){var e=+a;return e!==e||e===0?0:Fv(e)},jv=Er,Uv=Math.max,Gv=Math.min,zv=function(a,e){var t=jv(a);return t<0?Uv(t+e,0):Gv(t,e)},Hv=Er,Yv=Math.min,ut=function(a){var e=Hv(a);return e>0?Yv(e,9007199254740991):0},Xv=ut,Ai=function(a){return Xv(a.length)},Wv=$t,qv=zv,Qv=Ai,Nn=function(a){return function(e,t,r){var i=Wv(e),n=Qv(i);if(n===0)return!a&&-1;var o=qv(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},Ko={includes:Nn(!0),indexOf:Nn(!1)},Kv=k,ua=fe,Zv=$t,Jv=Ko.indexOf,ef=wi,In=Kv([].push),Zo=function(a,e){var t=Zv(a),r=0,i=[],n;for(n in t)!ua(ef,n)&&ua(t,n)&&In(i,n);for(;e.length>r;)ua(t,n=e[r++])&&(~Jv(i,n)||In(i,n));return i},Pi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tf=Zo,rf=Pi,af=rf.concat("length","prototype");Qo.f=Object.getOwnPropertyNames||function(e){return tf(e,af)};var Jo={};Jo.f=Object.getOwnPropertySymbols;var nf=je,sf=k,of=Qo,uf=Jo,lf=J,hf=sf([].concat),vf=nf("Reflect","ownKeys")||function(e){var t=of.f(lf(e)),r=uf.f;return r?hf(t,r(e)):t},Mn=fe,ff=vf,cf=Et,gf=Oe,df=function(a,e,t){for(var r=ff(e),i=gf.f,n=cf.f,o=0;of;f++)if(v=y(a[f]),v&&ls(vs,v))return v;return new or(!1)}l=md(a,h)}for(d=n?a.next:l.next;!(g=cd(d,l)).done;){try{v=y(g.value)}catch(x){hs(l,"throw",x)}if(typeof v=="object"&&v&&ls(vs,v))return v}return new or(!1)},Td=z,Iu=Td("iterator"),Mu=!1;try{var Od=0,fs={next:function(){return{done:!!Od++}},return:function(){Mu=!0}};fs[Iu]=function(){return this},Array.from(fs,function(){throw 2})}catch{}var Sd=function(a,e){try{if(!e&&!Mu)return!1}catch{return!1}var t=!1;try{var r={};r[Iu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},Ed=Cr,$d=Sd,wd=Pt.CONSTRUCTOR,_u=wd||!$d(function(a){Ed.all(a).then(void 0,function(){})}),Cd=ee,Ad=Y,Pd=Te,Rd=lt,Nd=_i,Id=Nu,Md=_u;Cd({target:"Promise",stat:!0,forced:Md},{all:function(e){var t=this,r=Rd.f(t),i=r.resolve,n=r.reject,o=Nd(function(){var s=Pd(t.resolve),u=[],l=0,h=1;Id(e,function(f){var c=l++,v=!1;h++,Ad(s,t,f).then(function(d){v||(v=!0,u[c]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var _d=ee,Vd=Pt.CONSTRUCTOR,ti=Cr,Dd=je,Ld=B,kd=Ue,cs=ti&&ti.prototype;_d({target:"Promise",proto:!0,forced:Vd,real:!0},{catch:function(a){return this.then(void 0,a)}});if(Ld(ti)){var gs=Dd("Promise").prototype.catch;cs.catch!==gs&&kd(cs,"catch",gs,{unsafe:!0})}var Bd=ee,Fd=Y,jd=Te,Ud=lt,Gd=_i,zd=Nu,Hd=_u;Bd({target:"Promise",stat:!0,forced:Hd},{race:function(e){var t=this,r=Ud.f(t),i=r.reject,n=Gd(function(){var o=jd(t.resolve);zd(e,function(s){Fd(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var Yd=ee,Xd=lt,Wd=Pt.CONSTRUCTOR;Yd({target:"Promise",stat:!0,forced:Wd},{reject:function(e){var t=Xd.f(this),r=t.reject;return r(e),t.promise}});var qd=J,Qd=ve,Kd=lt,Zd=function(a,e){if(qd(a),Qd(e)&&e.constructor===a)return e;var t=Kd.f(a),r=t.resolve;return r(e),t.promise},Jd=ee,ep=je,tp=Pt.CONSTRUCTOR,rp=Zd;ep("Promise");Jd({target:"Promise",stat:!0,forced:tp},{resolve:function(e){return rp(this,e)}});function ds(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){t(l);return}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){ds(n,r,i,o,s,"next",u)}function s(u){ds(n,r,i,o,s,"throw",u)}o(void 0)})}}var ap=Ri,ip=String,pe=function(a){if(ap(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ip(a)},np=J,Vu=function(){var a=np(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},Bi=L,sp=D,Fi=sp.RegExp,ji=Bi(function(){var a=Fi("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),op=ji||Bi(function(){return!Fi("a","y").sticky}),up=ji||Bi(function(){var a=Fi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Du={BROKEN_CARET:up,MISSED_STICKY:op,UNSUPPORTED_Y:ji},Lu={},lp=Zo,hp=Pi,vp=Object.keys||function(e){return lp(e,hp)},fp=le,cp=zo,gp=Oe,dp=J,pp=$t,yp=vp;Lu.f=fp&&!cp?Object.defineProperties:function(e,t){dp(e);for(var r=pp(t),i=yp(t),n=i.length,o=0,s;n>o;)gp.f(e,s=i[o++],r[s]);return e};var mp=J,bp=Lu,ps=Pi,xp=wi,Tp=hu,Op=Tr,Sp=$i,ys=">",ms="<",ri="prototype",ai="script",ku=Sp("IE_PROTO"),xa=function(){},Bu=function(a){return ms+ai+ys+a+ms+"/"+ai+ys},bs=function(a){a.write(Bu("")),a.close();var e=a.parentWindow.Object;return a=null,e},Ep=function(){var a=Op("iframe"),e="java"+ai+":",t;return a.style.display="none",Tp.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(Bu("document.F=Object")),t.close(),t.F},Kt,ur=function(){try{Kt=new ActiveXObject("htmlfile")}catch{}ur=typeof document<"u"?document.domain&&Kt?bs(Kt):Ep():bs(Kt);for(var a=ps.length;a--;)delete ur[ri][ps[a]];return ur()};xp[ku]=!0;var Ui=Object.create||function(e,t){var r;return e!==null?(xa[ri]=mp(e),r=new xa,xa[ri]=null,r[ku]=e):r=ur(),t===void 0?r:bp.f(r,t)},$p=L,wp=D,Cp=wp.RegExp,Ap=$p(function(){var a=Cp(".","s");return!(a.dotAll&&a.test(` `)&&a.flags==="s")}),Pp=L,Rp=D,Np=Rp.RegExp,Ip=Pp(function(){var a=Np("(?b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$c")!=="bc"}),et=Y,Pr=k,Mp=pe,_p=Vu,Vp=Du,Dp=Oi,Lp=Ui,kp=Sr.get,Bp=Ap,Fp=Ip,jp=Dp("native-string-replace",String.prototype.replace),dr=RegExp.prototype.exec,ii=dr,Up=Pr("".charAt),Gp=Pr("".indexOf),zp=Pr("".replace),Ta=Pr("".slice),ni=function(){var a=/a/,e=/b*/g;return et(dr,a,"a"),et(dr,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),Fu=Vp.BROKEN_CARET,si=/()??/.exec("")[1]!==void 0,Hp=ni||si||Fu||Bp||Fp;Hp&&(ii=function(e){var t=this,r=kp(t),i=Mp(e),n=r.raw,o,s,u,l,h,f,c;if(n)return n.lastIndex=t.lastIndex,o=et(ii,n,i),t.lastIndex=n.lastIndex,o;var v=r.groups,d=Fu&&t.sticky,g=et(_p,t),p=t.source,y=0,x=i;if(d&&(g=zp(g,"y",""),Gp(g,"g")===-1&&(g+="g"),x=Ta(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&Up(i,t.lastIndex-1)!==` `)&&(p="(?: "+p+")",x=" "+x,y++),s=new RegExp("^(?:"+p+")",g)),si&&(s=new RegExp("^"+p+"$(?!\\s)",g)),ni&&(u=t.lastIndex),l=et(dr,d?s:t,x),d?l?(l.input=Ta(l.input,y),l[0]=Ta(l[0],y),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:ni&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),si&&l&&l.length>1&&et(jp,l[0],s,function(){for(h=1;h=n?a?"":void 0:(o=Es(r,i),o<55296||o>56319||i+1===n||(s=Es(r,i+1))<56320||s>57343?a?Jp(r,i):o:a?ey(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},ty={codeAt:$s(!1),charAt:$s(!0)},ry=ty.charAt,Yi=function(a,e,t){return e+(t?ry(a,e).length:1)},ws=Y,ay=J,iy=B,ny=Be,sy=Gi,oy=TypeError,Xi=function(a,e){var t=a.exec;if(iy(t)){var r=ws(t,a,e);return r!==null&&ay(r),r}if(ny(a)==="RegExp")return ws(sy,a,e);throw new oy("RegExp#exec called on incompatible receiver")},uy=Y,ly=zi,hy=J,vy=Fe,fy=ut,Sa=pe,cy=he,gy=ot,dy=Yi,Cs=Xi;ly("match",function(a,e,t){return[function(i){var n=cy(this),o=vy(i)?void 0:gy(i,a);return o?uy(o,i,n):new RegExp(i)[a](Sa(n))},function(r){var i=hy(this),n=Sa(r),o=t(e,i,n);if(o.done)return o.value;if(!i.global)return Cs(i,n);var s=i.unicode;i.lastIndex=0;for(var u=[],l=0,h;(h=Cs(i,n))!==null;){var f=Sa(h[0]);u[l]=f,f===""&&(i.lastIndex=dy(n,fy(i.lastIndex),s)),l++}return l===0?null:u}]});var Wi=k,py=xr,yy=Math.floor,Ea=Wi("".charAt),my=Wi("".replace),$a=Wi("".slice),by=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xy=/\$([$&'`]|\d{1,2})/g,Ty=function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=xy;return i!==void 0&&(i=py(i),u=by),my(n,u,function(l,h){var f;switch(Ea(h,0)){case"$":return"$";case"&":return a;case"`":return $a(e,0,t);case"'":return $a(e,o);case"<":f=i[$a(h,1,-1)];break;default:var c=+h;if(c===0)return l;if(c>s){var v=yy(c/10);return v===0?l:v<=s?r[v-1]===void 0?Ea(h,1):r[v-1]+Ea(h,1):l}f=r[c-1]}return f===void 0?"":f})},Oy=lu,As=Y,Rr=k,Sy=zi,Ey=L,$y=J,wy=B,Cy=Fe,Ay=Er,Py=ut,We=pe,Ry=he,Ny=Yi,Iy=ot,My=Ty,_y=Xi,Vy=z,oi=Vy("replace"),Dy=Math.max,Ly=Math.min,ky=Rr([].concat),wa=Rr([].push),Ps=Rr("".indexOf),Rs=Rr("".slice),By=function(a){return a===void 0?a:String(a)},Fy=function(){return"a".replace(/./,"$0")==="$0"}(),Ns=function(){return/./[oi]?/./[oi]("a","$0")==="":!1}(),jy=!Ey(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$")!=="7"});Sy("replace",function(a,e,t){var r=Ns?"$":"$0";return[function(n,o){var s=Ry(this),u=Cy(n)?void 0:Iy(n,oi);return u?As(u,n,s,o):As(e,We(s),n,o)},function(i,n){var o=$y(this),s=We(i);if(typeof n=="string"&&Ps(n,r)===-1&&Ps(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=wy(n);l||(n=We(n));var h=o.global,f;h&&(f=o.unicode,o.lastIndex=0);for(var c=[],v;v=_y(o,s),!(v===null||(wa(c,v),!h));){var d=We(v[0]);d===""&&(o.lastIndex=Ny(s,Py(o.lastIndex),f))}for(var g="",p=0,y=0;y=p&&(g+=Rs(s,p,b)+$,p=b+x.length)}return g+Rs(s,p)}]},!jy||!Fy||Ns);var Uy=ve,Gy=Be,zy=z,Hy=zy("match"),Yy=function(a){var e;return Uy(a)&&((e=a[Hy])!==void 0?!!e:Gy(a)==="RegExp")},Xy=Yy,Wy=TypeError,qi=function(a){if(Xy(a))throw new Wy("The method doesn't accept regular expressions");return a},qy=z,Qy=qy("match"),Qi=function(a){var e=/./;try{"/./"[a](e)}catch{try{return e[Qy]=!1,"/./"[a](e)}catch{}}return!1},Ky=ee,Zy=wr,Jy=Et.f,em=ut,Is=pe,tm=qi,rm=he,am=Qi,im=Zy("".slice),nm=Math.min,Uu=am("startsWith"),sm=!Uu&&!!function(){var a=Jy(String.prototype,"startsWith");return a&&!a.writable}();Ky({target:"String",proto:!0,forced:!sm&&!Uu},{startsWith:function(e){var t=Is(rm(this));tm(e);var r=em(nm(arguments.length>1?arguments[1]:void 0,t.length)),i=Is(e);return im(t,r,r+i.length)===i}});var om=z,um=Ui,lm=Oe.f,ui=om("unscopables"),li=Array.prototype;li[ui]===void 0&&lm(li,ui,{configurable:!0,value:um(null)});var hm=function(a){li[ui][a]=!0},vm=L,fm=!vm(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),cm=fe,gm=B,dm=xr,pm=$i,ym=fm,Ms=pm("IE_PROTO"),hi=Object,mm=hi.prototype,Gu=ym?hi.getPrototypeOf:function(a){var e=dm(a);if(cm(e,Ms))return e[Ms];var t=e.constructor;return gm(t)&&e instanceof t?t.prototype:e instanceof hi?mm:null},bm=L,xm=B,Tm=ve,_s=Gu,Om=Ue,Sm=z,vi=Sm("iterator"),zu=!1,Le,Ca,Aa;[].keys&&(Aa=[].keys(),"next"in Aa?(Ca=_s(_s(Aa)),Ca!==Object.prototype&&(Le=Ca)):zu=!0);var Em=!Tm(Le)||bm(function(){var a={};return Le[vi].call(a)!==a});Em&&(Le={});xm(Le[vi])||Om(Le,vi,function(){return this});var Hu={IteratorPrototype:Le,BUGGY_SAFARI_ITERATORS:zu},$m=Hu.IteratorPrototype,wm=Ui,Cm=mi,Am=$r,Pm=Rt,Rm=function(){return this},Nm=function(a,e,t,r){var i=e+" Iterator";return a.prototype=wm($m,{next:Cm(+!r,t)}),Am(a,i,!1),Pm[i]=Rm,a},Im=ee,Mm=Y,Yu=Or,_m=B,Vm=Nm,Vs=Gu,Ds=tu,Dm=$r,Lm=wt,Pa=Ue,km=z,Bm=Rt,Xu=Hu,Fm=Yu.PROPER,jm=Yu.CONFIGURABLE,Ls=Xu.IteratorPrototype,Zt=Xu.BUGGY_SAFARI_ITERATORS,ct=km("iterator"),ks="keys",gt="values",Bs="entries",Um=function(){return this},Gm=function(a,e,t,r,i,n,o){Vm(t,e,r);var s=function(y){if(y===i&&c)return c;if(!Zt&&y&&y in h)return h[y];switch(y){case ks:return function(){return new t(this,y)};case gt:return function(){return new t(this,y)};case Bs:return function(){return new t(this,y)}}return function(){return new t(this)}},u=e+" Iterator",l=!1,h=a.prototype,f=h[ct]||h["@@iterator"]||i&&h[i],c=!Zt&&f||s(i),v=e==="Array"&&h.entries||f,d,g,p;if(v&&(d=Vs(v.call(new a)),d!==Object.prototype&&d.next&&(Vs(d)!==Ls&&(Ds?Ds(d,Ls):_m(d[ct])||Pa(d,ct,Um)),Dm(d,u,!0))),Fm&&i===gt&&f&&f.name!==gt&&(jm?Lm(h,"name",gt):(l=!0,c=function(){return Mm(f,this)})),i)if(g={values:s(gt),keys:n?c:s(ks),entries:s(Bs)},o)for(p in g)(Zt||l||!(p in h))&&Pa(h,p,g[p]);else Im({target:e,proto:!0,forced:Zt||l},g);return h[ct]!==c&&Pa(h,ct,c,{name:i}),Bm[e]=c,g},zm=function(a,e){return{value:a,done:e}},Hm=$t,Ki=hm,Fs=Rt,Wu=Sr,Ym=Oe.f,Xm=Gm,Jt=zm,Wm=le,qu="Array Iterator",qm=Wu.set,Qm=Wu.getterFor(qu),Km=Xm(Array,"Array",function(a,e){qm(this,{type:qu,target:Hm(a),index:0,kind:e})},function(){var a=Qm(this),e=a.target,t=a.index++;if(!e||t>=e.length)return a.target=void 0,Jt(void 0,!0);switch(a.kind){case"keys":return Jt(t,!1);case"values":return Jt(e[t],!1)}return Jt([t,e[t]],!1)},"values"),js=Fs.Arguments=Fs.Array;Ki("keys");Ki("values");Ki("entries");if(Wm&&js.name!=="values")try{Ym(js,"name",{value:"values"})}catch{}var Zm={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Jm=Tr,Ra=Jm("span").classList,Us=Ra&&Ra.constructor&&Ra.constructor.prototype,e0=Us===Object.prototype?void 0:Us,Gs=D,Qu=Zm,t0=e0,pt=Km,zs=wt,r0=$r,a0=z,Na=a0("iterator"),Ia=pt.values,Ku=function(a,e){if(a){if(a[Na]!==Ia)try{zs(a,Na,Ia)}catch{a[Na]=Ia}if(r0(a,e,!0),Qu[e]){for(var t in pt)if(a[t]!==pt[t])try{zs(a,t,pt[t])}catch{a[t]=pt[t]}}}};for(var Ma in Qu)Ku(Gs[Ma]&&Gs[Ma].prototype,Ma);Ku(t0,"DOMTokenList");function Zi(a,e,t){return e=bl(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}var i0=Te,n0=xr,s0=Vo,o0=Ai,Hs=TypeError,Ys="Reduce of empty array with no initial value",Xs=function(a){return function(e,t,r,i){var n=n0(e),o=s0(n),s=o0(n);if(i0(t),s===0&&r<2)throw new Hs(Ys);var u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw new Hs(Ys)}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},u0={left:Xs(!1),right:Xs(!0)},l0=L,Zu=function(a,e){var t=[][a];return!!t&&l0(function(){t.call(null,e||function(){return 1},1)})},h0=ee,v0=u0.left,f0=Zu,Ws=bi,c0=At,g0=!c0&&Ws>79&&Ws<83,d0=g0||!f0("reduce");h0({target:"Array",proto:!0,forced:d0},{reduce:function(e){var t=arguments.length;return v0(this,e,t,t>1?arguments[1]:void 0)}});var p0=ee,y0=wr,m0=Et.f,b0=ut,qs=pe,x0=qi,T0=he,O0=Qi,S0=y0("".slice),E0=Math.min,Ju=O0("endsWith"),$0=!Ju&&!!function(){var a=m0(String.prototype,"endsWith");return a&&!a.writable}();p0({target:"String",proto:!0,forced:!$0&&!Ju},{endsWith:function(e){var t=qs(T0(this));x0(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,n=r===void 0?i:E0(b0(r),i),o=qs(e);return S0(t,n-o.length,n)===o}});var _a=Y,el=k,w0=zi,C0=J,A0=Fe,P0=he,R0=ou,N0=Yi,I0=ut,Qs=pe,M0=ot,Ks=Xi,_0=Du,V0=L,qe=_0.UNSUPPORTED_Y,D0=4294967295,L0=Math.min,Va=el([].push),Da=el("".slice),k0=!V0(function(){var a=/(?:)/,e=a.exec;a.exec=function(){return e.apply(this,arguments)};var t="ab".split(a);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),Zs="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;w0("split",function(a,e,t){var r="0".split(void 0,0).length?function(i,n){return i===void 0&&n===0?[]:_a(e,this,i,n)}:e;return[function(n,o){var s=P0(this),u=A0(n)?void 0:M0(n,a);return u?_a(u,n,s,o):_a(r,Qs(s),n,o)},function(i,n){var o=C0(this),s=Qs(i);if(!Zs){var u=t(r,o,s,n,r!==e);if(u.done)return u.value}var l=R0(o,RegExp),h=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(qe?"g":"y"),c=new l(qe?"^(?:"+o.source+")":o,f),v=n===void 0?D0:n>>>0;if(v===0)return[];if(s.length===0)return Ks(c,s)===null?[s]:[];for(var d=0,g=0,p=[];g"u"?Ke:window,er=["moz","webkit"],rt="AnimationFrame",st=be["request"+rt],St=be["cancel"+rt]||be["cancelRequest"+rt];for(var dt=0;!st&&dt3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l "+g.toRGB()+" -> "+g.toHex());d.appendChild(p),d.appendChild(y),v.appendChild(d)}catch{}return v}};const ci=Ao(tb);var rb=ee,ab=wr,ib=Ko.indexOf,nb=Zu,gi=ab([].indexOf),rl=!!gi&&1/gi([1],1,-0)<0,sb=rl||!nb("indexOf");rb({target:"Array",proto:!0,forced:sb},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return rl?gi(this,e,t)||0:ib(this,e,t)}});var ob=ee,ub=k,lb=qi,hb=he,ao=pe,vb=Qi,fb=ub("".indexOf);ob({target:"String",proto:!0,forced:!vb("includes")},{includes:function(e){return!!~fb(ao(hb(this)),ao(lb(e)),arguments.length>1?arguments[1]:void 0)}});var cb=Be,gb=Array.isArray||function(e){return cb(e)==="Array"},db=ee,pb=k,yb=gb,mb=pb([].reverse),io=[1,2];db({target:"Array",proto:!0,forced:String(io)===String(io.reverse())},{reverse:function(){return yb(this)&&(this.length=this.length),mb(this)}});/*! ***************************************************************************** diff --git a/index.html b/index.html index 2fea2c1..76ed8d9 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> Document - +