1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74902],{51175:(e,t,n)=>{n.d(t,{Ic:()=>g,RF:()=>A,XE:()=>y,eb:()=>_,p7:()=>b,yG:()=>u});let r="Something went wrong. Try again.",o={offline:"You are offline. Reconnect, then try again.",network:"Could not connect. Check your connection and try again.",timeout:"That took too long. Try again.",aborted:"That was interrupted. Try again.",chunk:"Part of this page could not load. Reload to continue.","signed-out":"You were signed out. Sign in again to continue.",forbidden:"You do not have access to this.","too-large":"That is too large. Try something smaller.","rate-limited":"Too many requests right now. Wait a moment, then try again.",server:"The server had a problem. Try again in a moment."};function l(e){return"string"==typeof e?e:""}function i(e){if("string"==typeof e)return{name:"",text:e,status:null};if("number"==typeof e)return{name:"",text:"",status:Number.isInteger(e)?e:null};if(!e||"object"!=typeof e)return{name:"",text:"",status:null};let t=e.status,n="number"==typeof t&&Number.isInteger(t)?t:null,r=e.error&&"object"==typeof e.error?l(e.error.message):"",o=l(e.detail)||l(e.error)||r||l(e.message)||l(e.statusText);return{name:l(e.name),text:o,status:n}}function a(e){return/Failed to load chunk/i.test(e)||/Loading (?:CSS )?chunk [\w./-]+ failed/i.test(e)||/error loading dynamically imported module/i.test(e)||/Failed to fetch dynamically imported module/i.test(e)||/[Ii]mporting a module script failed/.test(e)}function u(e){if("string"==typeof e)return a(e);let{name:t,text:n}=i(e);return"ChunkLoadError"===t||a(n)}let c=["failed to fetch","load failed","networkerror","network error","network request failed","network connection was lost","could not connect to the server","fetch failed","err_network","econnrefused","econnreset","socket hang up"],s=["internet connection appears to be offline","err_internet_disconnected"],d=["operation was aborted","user aborted a request","signal is aborted","fetch is aborted"],f=["the request timed out","operation timed out","signal timed out","etimedout","timeout of "],h=["undefined is not","null is not","is not an object","is not a function","is not defined","is not iterable","cannot read propert","cannot set propert","can't find variable","unexpected token","unexpected end of","is not valid json","json.parse","maximum update depth","minified react error","invariant","[object ","traceback","os error","errno","<!doctype","<html","\n at ","stack trace","internal server error"];function m(e,t){return t.some(t=>e.includes(t))}function w(e){let t=e.trim();if(/^error:\s/i.test(t)&&(t=t.slice(t.indexOf(":")+1).trim()),!t||t.length>280||/^[A-Za-z]*(?:Error|Exception)\b/.test(t)||t.startsWith("{")||t.startsWith("[")||m(t.toLowerCase(),h))return"";let n=t.charAt(0).toUpperCase()+t.slice(1);return/[.!?]$/.test(n)?n:"".concat(n,".")}function p(){return"undefined"!=typeof navigator&&!1===navigator.onLine}function y(e){var t,n;let{name:r,text:o,status:l}=i(e),u=o.toLowerCase();if("ChunkLoadError"===r||a(o))return"chunk";if(m(u,s))return"offline";if("TimeoutError"===r||m(u,f))return"timeout";if("AbortError"===r||m(u,d))return"aborted";if(m(u,c))return p()?"offline":"network";let h=0===(n=null!=(t=null!=l?l:function(e){let t=/^(?:error:\s*)?([1-5]\d\d)(?:\s|:|$)/i.exec(e.trim());if(t)return Number(t[1]);let n=/\b(?:status(?: code)?|http)\s*:?\s*([1-5]\d\d)\b/i.exec(e);return n?Number(n[1]):null}(o))?t:-1)?"network":401===n?"signed-out":403===n?"forbidden":408===n||504===n?"timeout":413===n?"too-large":429===n?"rate-limited":n>=500&&n<=599?"server":null;return h?"network"===h&&p()?"offline":h:w(o)?"message":"unknown"}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;try{var n;let l=y(e);if("message"===l)return w(i(e).text)||t||r;return null!=(n=o[l])?n:t||r}catch(e){return t||r}}function b(e,t){try{return"message"===y(e)?t:g(e,t)}catch(e){return t}}let v=Symbol.for("omega-ui.describeFailure.registry");function k(){var e;let t=globalThis;return null!=(e=t[v])?e:t[v]={contained:new WeakSet}}function A(e){e&&"object"==typeof e&&k().contained.add(e)}function _(e){return!!e&&"object"==typeof e&&k().contained.has(e)}},53601:(e,t,n)=>{function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"audio/mpeg",n=new Blob([Uint8Array.from(atob(e),e=>e.charCodeAt(0))],{type:t});return new Audio(URL.createObjectURL(n))}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.onPlay&&(e.onplay=t.onPlay),t.onEnded&&(e.onended=t.onEnded),(async()=>{try{await e.play()}catch(t){if(t instanceof DOMException&&"NotAllowedError"===t.name){let t=()=>{e.play().catch(()=>{})};window.addEventListener("click",t,{once:!0}),window.addEventListener("keydown",t,{once:!0})}}})(),e}n.d(t,{$U:()=>U,E8:()=>Q,ET:()=>f,FJ:()=>J,LW:()=>E,M8:()=>Y,Mn:()=>B,Ow:()=>o,VO:()=>V,Yj:()=>$,_m:()=>K,co:()=>c,fs:()=>r,he:()=>l,kJ:()=>q,mM:()=>O,nR:()=>s,rj:()=>z,vd:()=>u});let l={level:"orb-level",spectrum:"orb-spectrum",config:"orb-config",keyword:"orb-keyword",hello:"orb-hello"};function i(e,t){try{var n,r;let o=null==(r=window.__TAURI__)||null==(n=r.event)?void 0:n.emit(e,t);o&&"function"==typeof o.catch&&o.catch(()=>{})}catch(e){}}function a(e){i(l.level,e)}function u(e){i(l.config,e)}
1function c(e){i(l.keyword,e)}function s(){i(l.hello,null)}let d=null;function f(e){if(!e||0===e.length){d=null;return}d&&d.length===e.length||(d=new Uint8Array(e.length)),d.set(e)}function h(){if(!p)return;let e=Math.min(64,p.length),t=Array(e);for(let n=0;n<e;n++)t[n]=p[n];i(l.spectrum,t)}let m=null,w=null,p=null,y=null,g=0,b=0,v=null,k=null,A=null,_=new Set;function E(e){return _.add(e),()=>{_.delete(e)}}function T(e){_.forEach(t=>{try{t(e)}catch(e){}})}function C(){p||(p=new Uint8Array(256))}function x(){m&&"suspended"===m.state&&m.resume()}function L(){if(m)return m;let e=window.AudioContext||window.webkitAudioContext;return e?((w=(m=new e).createAnalyser()).fftSize=512,w.smoothingTimeConstant=.85,w.connect(m.destination),C(),m.addEventListener("statechange",x),window.addEventListener("focus",x),document.addEventListener("visibilitychange",x),m):null}function U(){let e=L();e&&"suspended"===e.state&&e.resume()}let S=null;function M(){let e=m;if(!e||"suspended"!==e.state||(e.resume(),S))return;S=new AbortController;let t=()=>{S=null,null==m||m.resume()};window.addEventListener("click",t,{once:!0,signal:S.signal}),window.addEventListener("keydown",t,{once:!0,signal:S.signal})}function R(e,t,n){let r,o=L();if(!o)return null;o.resume(),M();try{r=Uint8Array.from(atob(e),e=>e.charCodeAt(0))}catch(e){return null}let l={cancelled:!1,nodes:new Set};return o.decodeAudioData(r.buffer.slice(0)).then(e=>{if(l.cancelled||!w)return;let r=o.createBufferSource();r.buffer=e;let i=o.createGain();i.gain.value=t,r.connect(i),i.connect(w),r.onended=()=>{var e;null==(e=l.releaseWakeMute)||e.call(l),l.releaseWakeMute=void 0,l.nodes.delete(r);try{r.disconnect(),i.disconnect()}catch(e){}l.cancelled||null==n||n()},l.nodes.add(r),F(),"suspended"===o.state&&o.resume(),r.start()}).catch(()=>{l.cancelled||null==n||n()}),l}function W(e){var t,n;if(e){for(let r of(e.cancelled=!0,null==(t=e.releaseWakeMute)||t.call(e),e.releaseWakeMute=void 0,null==(n=e.teardown)||n.call(e),e.teardown=void 0,e.nodes)){r.onended=null;try{r.stop()}catch(e){}try{r.disconnect()}catch(e){}}e.nodes.clear()}}function I(){return null!=v||null!=k||null!=A}function F(){C(),null==y&&(y=requestAnimationFrame(j))}function j(){if(!I()){y=null,N();return}C();let e=p;if(v){let t=v();if(t&&t.length){let n=Math.min(t.length,e.length);e.set(t.subarray(0,n)),n<e.length&&e.fill(0,n)}else e.fill(0)}else w&&w.getByteFrequencyData(e);let t=0,n=Math.min(48,e.length);for(let r=0;r<n;r++)t+=e[r];let r=Math.min(1,Math.max(0,(t/n/255-.04)*2.6)),o=r>g?.45:.1;T(g+=(r-g)*o),(1&b++)==0&&(a(g),h()),y=requestAnimationFrame(j)}function N(){g=0,p&&p.fill(0),a(0),h(),T(0),null!=y&&(cancelAnimationFrame(y),y=null)}function q(){return I()&&p?p:d}function B(e){v=e,F()}function Q(e){e&&v!==e||(v=null)}function Y(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let t=arguments.length>2?arguments[2]:void 0;O(),k=R(e,1,()=>{k=null,I()||N(),null==t||t()})}function O(){W(k),k=null,I()||N()}let D=[],G=new Map,P=!0;function Z(){if(A)return;let e=D.shift();if(!e)return;let t=()=>{A=null,Z()},n=function(){try{let e=localStorage.getItem("voice_narration_volume");if(null==e)return 1;let t=JSON.parse(e),n="number"==typeof t&&t>=0&&t<=1?t:1;return n*n}catch(e){return 1}}();(A="clip"===e.kind?R(e.b64,n,t):function(e,t,n){let r=L();if(!r||!w)return null;r.resume(),M();let o=r.createGain();o.gain.value=t,o.connect(w);let l={cancelled:!1,nodes:new Set},i=0,a=null,u=!1,c=()=>{a&&clearTimeout(a),a=null,e.play=e.settle=null,G.delete(e.id);try{o.disconnect()}catch(e){}};l.teardown=c;let s=()=>{if(!u&&!l.cancelled&&!l.nodes.size){if(!e.final){null!=a||(a=setTimeout(()=>{a=null,e.final=!0,s()},8e3));return}u=!0,c(),l.teardown=void 0,n()}};for(let t of(e.settle=s,e.play=t=>{if(l.cancelled||!t.length)return;a&&clearTimeout(a),a=null;let n=r.createBuffer(1,t.length,e.sampleRate);n.copyToChannel(t,0);let u=r.createBufferSource();u.buffer=n,u.connect(o),u.onended=()=>{l.nodes.delete(u);try{u.disconnect()}catch(e){}s()};let c=r.currentTime;i?i<c&&(i=c+.05):i=c+.2,l.nodes.add(u),u.start(i),i+=n.duration,F()},e.waiting.splice(0)))e.play(t);return queueMicrotask(s),l}(e.stream,n,t))||("stream"===e.kind&&G.delete(e.stream.id),t())}function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"audio/mpeg";P&&(D.push({kind:"clip",b64:e,mime:t}),Z())}function z(e,t,n,r,o){let l=G.get(e);if(!l){if(0!==t||!P)return;l={id:e,sampleRate:r,waiting:[],carry:null,final:!1,play:null,settle:null},G.set(e,l),D.push({kind:"stream",stream:l})}if(n){let e=function(e,t){let n;try{n=Uint8Array.from(atob(t),e=>e.charCodeAt(0))}catch(e){return new Float32Array(0)}if(null!==e.carry){let t=new Uint8Array(n.length+1);t[0]=e.carry,t.set(n,1),n=t,e.carry=null}n.length%2&&(e.carry=n[n.length-1],n=n.subarray(0,n.length-1));let r=new DataView(n.buffer,n.byteOffset,n.byteLength),o=new Float32Array(n.byteLength/2);for(let e=0;e<o.length;e++)o[e]=r.getInt16(2*e,!0)/32768;return o}(l,n);e.length&&(l.play?l.play(e):l.waiting.push(e))}if(o){var i;l.final=!0,null==(i=l.settle)||i.call(l)}Z()}function J(e){P=e,e||K()}function K(){D=[],G.clear(),W(A),A=null,I()||N()}function $(){try{let e=new Audio("data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQAAAAA=");e.volume=0,e.play().catch(()=>{})}catch(e){}}}
1,72352:(e,t,n)=>{n.d(t,{E8:()=>w,NY:()=>p,QQ:()=>a,Qo:()=>h,Qp:()=>d,Zi:()=>m,d6:()=>i,hv:()=>r,kK:()=>s,lK:()=>c,rC:()=>o,sG:()=>f,uV:()=>u,y3:()=>l});class r extends Error{constructor(e){super('Native command "'.concat(e,'" was called outside the desktop app.')),this.name="DesktopUnavailableError",this.command=e}}class o extends Error{constructor(e,t){super('Your desktop app is out of date and does not support "'.concat(e,'". Please update the app.')),this.name="DesktopUpdateRequiredError",this.command=e,this.cause=t}}function l(){var e;return!!(null==(e=window.__TAURI__)?void 0:e.core)}function i(){if("undefined"==typeof document||"true"!==document.documentElement.dataset.ownShellPreview)return!1;let e=window.location.pathname;return!("/app/embed"===e||e.startsWith("/app/embed/"))}async function a(e,t){if(!l())throw new r(e);try{return await window.__TAURI__.core.invoke(e,t)}catch(t){var n;throw null!=(n=function(e,t){let n=(t instanceof Error?t.message:String(t)).toLowerCase(),r=e.toLowerCase();return n.startsWith("command ".concat(r," not found"))||n.startsWith("command ".concat(r," not allowed"))||n.includes("".concat(r," not allowed"))?new o(e,t):null}(e,t))?n:t instanceof Error?t:Error(String(t))}}async function u(e,t){if(!l())return null;try{return await window.__TAURI__.core.invoke(e,t)}catch(e){return null}}async function c(e,t){if(!l())return()=>{};try{var n,r,o;let l,i=window.__TAURI__,a=e=>t(null==e?void 0:e.payload),u=null==i||null==(r=i.webviewWindow)||null==(n=r.getCurrentWebviewWindow)?void 0:n.call(r);if(null==u?void 0:u.listen)l=await u.listen(e,a);else{if(null==i||null==(o=i.event)||!o.listen)return()=>{};l=await i.event.listen(e,a)}return"function"==typeof l?l:()=>{}}catch(e){return()=>{}}}async function s(e){e&&(l()&&await u("open_external_url",{url:e})!==null||window.open(e,"_blank","noopener,noreferrer"))}function d(){return u("check_for_updates")}function f(){return u("update_state")}function h(){return a("install_update")}function m(){return a("restart_now")}function w(){return a("stop_build",{executionId:null})}function p(e){return a("restart_when_idle",{enabled:e})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.