From 11b5b8c3ca6312cf8f41776c760c72516c6b6260 Mon Sep 17 00:00:00 2001 From: Mu-Tsun Tsai Date: Mon, 6 May 2024 17:08:19 +0800 Subject: [PATCH] Adjustable precision --- docs/index.html | 2 +- docs/service-worker.js | 2 +- docs/static/js/index.a75b7e91.js | 1 + docs/static/js/index.e76ef1a3.js | 1 - ...{locale.44053c9c.js => locale.ba8a96ac.js} | 2 +- docs/static/js/react.7f3e94f4.js | 1 - docs/static/js/react.cdaeb661.js | 1 + src/app/app.tsx | 4 ++-- src/app/components/form/exp-input.tsx | 4 +++- src/app/components/settings.tsx | 18 ++++++++------ src/app/components/solution.tsx | 24 ++++++++++++------- src/app/store.ts | 1 + src/locale/en.json | 1 + src/locale/es.json | 3 ++- src/locale/jp.json | 3 ++- src/locale/pt.json | 3 ++- src/locale/ru.json | 3 ++- src/locale/zh-CN.json | 3 ++- src/locale/zh-TW.json | 3 ++- 19 files changed, 51 insertions(+), 29 deletions(-) create mode 100644 docs/static/js/index.a75b7e91.js delete mode 100644 docs/static/js/index.e76ef1a3.js rename docs/static/js/{locale.44053c9c.js => locale.ba8a96ac.js} (52%) delete mode 100644 docs/static/js/react.7f3e94f4.js create mode 100644 docs/static/js/react.cdaeb661.js diff --git a/docs/index.html b/docs/index.html index ab7f04f..7fdcdbf 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -ReferenceFinder
\ No newline at end of file +ReferenceFinder
\ No newline at end of file diff --git a/docs/service-worker.js b/docs/service-worker.js index 697edad..b636731 100644 --- a/docs/service-worker.js +++ b/docs/service-worker.js @@ -1 +1 @@ -if(!self.define){let e,r={};const n=(n,i)=>(n=new URL(n+".js",i).href,r[n]||new Promise((r=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=r,document.head.appendChild(e)}else e=n,importScripts(n),r()})).then((()=>{let e=r[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,s)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(r[f])return;let t={};const l=e=>n(e,f),c={module:{uri:f},exports:t,require:l};r[f]=Promise.all(i.map((e=>c[e]||l(e)))).then((e=>(s(...e),t)))}}define(["./workbox-29b0ed90"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/reference-finder/index.html",revision:"85665f484893b8263ae70e09c0cb6826"},{url:"/reference-finder/static/css/index.fc316719.css",revision:null},{url:"/reference-finder/static/font/fa-solid-900.2584ff1a.woff2",revision:null},{url:"/reference-finder/static/font/fa-solid-900.6ca5a22c.ttf",revision:null},{url:"/reference-finder/static/font/twemoji.0418fc94.woff2",revision:null},{url:"/reference-finder/static/js/async/ref.8952fa06.js",revision:null},{url:"/reference-finder/static/js/index.e76ef1a3.js",revision:null},{url:"/reference-finder/static/js/locale.44053c9c.js",revision:null},{url:"/reference-finder/static/js/rabbit-ear.16b592a7.js",revision:null},{url:"/reference-finder/static/js/react.7f3e94f4.js",revision:null},{url:"/reference-finder/static/js/vendor.f5dfc1db.js",revision:null},{url:"/reference-finder/static/wasm/10bc03b3374ea954.module.wasm",revision:null}],{})})); +if(!self.define){let e,r={};const n=(n,i)=>(n=new URL(n+".js",i).href,r[n]||new Promise((r=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=r,document.head.appendChild(e)}else e=n,importScripts(n),r()})).then((()=>{let e=r[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,s)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(r[t])return;let f={};const l=e=>n(e,t),c={module:{uri:t},exports:f,require:l};r[t]=Promise.all(i.map((e=>c[e]||l(e)))).then((e=>(s(...e),f)))}}define(["./workbox-29b0ed90"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/reference-finder/index.html",revision:"f90630d231d7068d20997aee0d1d7bf9"},{url:"/reference-finder/static/css/index.fc316719.css",revision:null},{url:"/reference-finder/static/font/fa-solid-900.2584ff1a.woff2",revision:null},{url:"/reference-finder/static/font/fa-solid-900.6ca5a22c.ttf",revision:null},{url:"/reference-finder/static/font/twemoji.0418fc94.woff2",revision:null},{url:"/reference-finder/static/js/async/ref.8952fa06.js",revision:null},{url:"/reference-finder/static/js/index.a75b7e91.js",revision:null},{url:"/reference-finder/static/js/locale.ba8a96ac.js",revision:null},{url:"/reference-finder/static/js/rabbit-ear.16b592a7.js",revision:null},{url:"/reference-finder/static/js/react.cdaeb661.js",revision:null},{url:"/reference-finder/static/js/vendor.f5dfc1db.js",revision:null},{url:"/reference-finder/static/wasm/10bc03b3374ea954.module.wasm",revision:null}],{})})); diff --git a/docs/static/js/index.a75b7e91.js b/docs/static/js/index.a75b7e91.js new file mode 100644 index 0000000..f3b1e3b --- /dev/null +++ b/docs/static/js/index.a75b7e91.js @@ -0,0 +1 @@ +!function(){var e,t,n,s,i={7555:function(e){"use strict";e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e"},4497:function(e){"use strict";e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e"},5117:function(e){"use strict";e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"},1943:function(e){"use strict";e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"},1920:function(e){"use strict";e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e"},859:function(e){"use strict";e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"},2123:function(e,t,n){"use strict";e.exports=n.p+"static/font/twemoji.0418fc94.woff2"},9126:function(e,t,n){"use strict";e.exports=n.p+"static/font/fa-solid-900.6ca5a22c.ttf"},8300:function(e,t,n){"use strict";e.exports=n.p+"static/font/fa-solid-900.2584ff1a.woff2"},2648:function(e,t,n){"use strict";var s=n("2676"),i=n("5271"),r=n("4705"),a=n("3128"),l=n("4625"),c=n("2447"),o=n("2252"),d=n("3220"),u=n("3602");t.Z=function(){let{t:e}=(0,r.$G)(),t=(0,a.oR)(),n=(0,a.rV)(),[m,h]=(0,i.useState)(0),[x,p]=(0,i.useState)(!0),f=matchMedia("(prefers-color-scheme: dark)");function g(){p(f.matches)}return f.addEventListener("change",g),(0,i.useEffect)(g),(0,i.useEffect)(()=>{let e="light";(n.theme==a.Q2.dark||n.theme==a.Q2.system&&x)&&(e="dark"),n.theme==a.Q2.rabbitEar&&(e="rabbit"),document.documentElement.dataset.bsTheme=e}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"container px-4",children:[(0,s.jsxs)("div",{className:"row gx-0 py-2",children:[(0,s.jsx)("div",{className:"col small text-muted",children:t.progress&&n.showInit&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"d-none d-sm-block",children:[t.ready?"":"Initializing"," ",t.progress.lines," lines and ",t.progress.marks," marks of rank \u2264 ",t.progress.rank,t.ready?" ready.":"..."]}),(0,s.jsxs)("div",{className:"d-sm-none",style:{lineHeight:1},children:[t.progress.lines," lines",(0,s.jsx)("br",{}),t.progress.marks," marks",t.ready?"":"..."]})]})}),(0,s.jsx)("div",{className:"col-auto",children:(0,s.jsx)(u.g,{})})]}),(0,s.jsx)("h1",{children:e("phrase.referenceFinder")}),(0,s.jsx)(o.s,{onSubmit:()=>h(0)}),t.coreError&&(0,s.jsxs)("div",{className:"text-danger mb-3",children:["Error: ",t.coreError]})||0==t.solutions.length&&(!t.ready||!t.running)&&(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("div",{children:e("tip.title")}),(0,s.jsxs)("ol",{children:[(0,s.jsx)("li",{children:e("tip.origin")}),(0,s.jsx)("li",{children:e("tip.exp",{exp:"1/sqrt(2)+sin(10)",interpolation:{escapeValue:!1}})})]})]})]}),(0,s.jsx)("section",{className:"solutions d-none d-sm-flex",children:t.solutions.length>0&&(0,s.jsx)("div",{className:"container px-4",children:(0,s.jsx)("div",{className:"row gx-2",children:t.solutions.map((t,i)=>(0,s.jsx)("div",{className:"col mb-2",style:{flex:"0 1 12rem"},children:(0,s.jsxs)("button",{type:"button",onClick:()=>h(i),className:"w-100 p-1 btn btn-ld col solution-preview "+(m==i?"active":""),children:[(0,s.jsx)(c.S,{data:t.diagrams[t.diagrams.length-1]}),(0,s.jsx)("div",{children:(0,l.l)(t,n.precision)}),(0,s.jsxs)("div",{children:[e("phrase.error")," ",t.err.toFixed(n.precision)]}),(0,s.jsxs)("div",{children:["rank ",t.rank]})]})},i))})})}),(0,s.jsx)("div",{className:"container px-4 flex-grow-1",children:t.solutions.map((e,t)=>(0,s.jsx)(l.W,{data:e,show:m==t,onSelect:()=>h(t)},t))}),(0,s.jsx)(d.$,{})]})}},3220:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});var s=n("2676"),i=n("4705");function r(){let{t:e}=(0,i.$G)();return(0,s.jsx)("div",{className:"container mt-4 px-4",children:(0,s.jsxs)("footer",{className:"row justify-content-end flex-wrap pb-3",children:[(0,s.jsxs)("div",{className:"col-12 col-md-auto flex-grow-1",children:[e("phrase.coreVer"),": v4.0.2"]}),(0,s.jsxs)("div",{className:"col-12 col-md-auto",children:["\xa9 1999-2007 ",(0,s.jsx)("a",{href:"https://langorigami.com/article/referencefinder/",target:"_blank",children:"Robert J. Lang"})]}),(0,s.jsxs)("div",{className:"col-12 col-md-auto",children:["\xa9 2018-2022 ",(0,s.jsx)("a",{href:"https://github.com/robbykraft/ReferenceFinder",target:"_blank",children:"Robby Kraft"})]}),(0,s.jsxs)("div",{className:"col-12 col-md-auto",children:["\xa9 2024 ",(0,s.jsx)("a",{href:"https://github.com/mutsuntsai/reference-finder",target:"_blank",children:"Mu-Tsun Tsai"})]})]})})}},4723:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var s=n("2676"),i=n("5271");function r(e){let{value:t,className:n,children:r,onInput:a}=e,l=(0,i.useId)();return(0,s.jsxs)("div",{className:"form-check "+n,children:[(0,s.jsx)("input",{className:"form-check-input",type:"checkbox",id:l,checked:t,onChange:e=>a(e.currentTarget.checked)}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:l,children:r})]})}n("4244")},8059:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var s=n("2676"),i=n("5271"),r=n("4705"),a=n("9136"),l=n("3128");n("5075");let c=document.createElement("canvas");function o(e){let{max:t,value:n,exp:o,onInput:d}=e,{t:u}=(0,r.$G)(),m=(0,i.useRef)(null),h=(0,l.rV)(),x=(0,i.useRef)(null),[p,f]=(0,i.useState)(null!=o?o:n.toString()),[g,v]=(0,i.useState)(n),[j,b]=(0,i.useState)(null!=o?o:n.toString());function N(e){return e.toFixed(h.precision).replace(/0+$/,"").replace(/\.$/,"").replace(/^$/,"0")}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;return!isNaN(e)&&e>=0&&(void 0===t||e<=t)}function k(){return isNaN(Number(p))&&p!=g.toString()&&!isNaN(g)}return(0,i.useEffect)(()=>{(n!=g||void 0!==o&&o!=p)&&(f(null!=o?o:n.toString()),v(n))},[n,o]),(0,i.useEffect)(()=>{!y(n)&&(f("0"),v(0),d(0,"0"))}),(0,i.useEffect)(()=>{x.current.style.left=function(e,t){let n=c.getContext("2d");return n.font=getComputedStyle(e).font,n.measureText(t).width}(m.current,p)+"px"}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"position-relative",children:[(0,s.jsxs)("div",{className:"exp-container",children:[(0,s.jsx)("input",{ref:m,type:"text","aria-label":"Math expression",className:"form-control exp-input "+(y()?"":"is-invalid"),value:p,onInput:e=>(function(e){f(e);let t=(0,a.Q)(e);v(t),y(t)&&(b(e),d(t,e))})(e.currentTarget.value),onBlur:function(){!y()&&(f(j),v(n))}}),(0,s.jsx)("div",{className:"suffix-container d-none d-sm-block",children:(0,s.jsx)("span",{className:"exp-suffix",ref:x,children:k()?"= ".concat(N(g)):""})})]}),(0,s.jsx)("div",{className:"exp-suffix-sm d-block d-sm-none",children:(0,s.jsx)("span",{children:k()?"= ".concat(N(g)):""})})]}),!y()&&(0,s.jsx)("div",{className:"text-danger small mt-1",children:void 0!==t?u("invalid.expMax",{max:t}):u("invalid.exp")})]})}},2800:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var s=n("2676"),i=n("5271"),r=n("4705");function a(e){let{max:t,min:n,value:a,onInput:l}=e,{t:c}=(0,r.$G)();void 0===n&&(n=0);let[o,d]=(0,i.useState)(a.toString());function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number(o);return Number.isSafeInteger(e)&&e>=n&&(void 0===t||e<=t)}return(0,i.useEffect)(()=>{Number(o)!=a&&d(a.toString())},[a]),(0,s.jsxs)("div",{className:"position-relative",children:[(0,s.jsx)("div",{className:"exp-container",children:(0,s.jsx)("input",{type:"number","aria-label":"Integer",className:"form-control exp-input "+(u()?"":"is-invalid"),value:o,onInput:e=>(function(e){d(e);let t=Number(e);u(t)&&l(t)})(e.currentTarget.value),onBlur:function(){u()?d(Number(a).toString()):d(a.toString())}})}),!u()&&(0,s.jsx)("div",{className:"text-danger small",children:void 0!==t?c("invalid.intMax",{min:n,max:t}):c("invalid.int",{min:n})})]})}},6048:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var s=n("2676"),i=n("4705"),r=n("3128"),a=n("8059");function l(e){let{label:t,value:n,onInput:l}=e,{t:c}=(0,i.$G)(),o=(0,r.XZ)();return(0,s.jsxs)("div",{className:"row gx-2 mt-2",children:[(0,s.jsxs)("label",{className:"col-auto col-form-label capitalize",children:[c("phrase.point"),t,": (",(0,s.jsx)("span",{className:"d-none d-sm-inline",children:" x ="})]}),(0,s.jsx)("div",{className:"col",children:(0,s.jsx)(a.g,{max:o.width,value:n.x,onInput:e=>l({...n,x:e})})}),(0,s.jsxs)("label",{className:"col-auto col-form-label",children:[",",(0,s.jsx)("span",{className:"d-none d-sm-inline",children:" y ="})]}),(0,s.jsx)("div",{className:"col",children:(0,s.jsx)(a.g,{max:o.height,value:n.y,onInput:e=>l({...n,y:e})})}),(0,s.jsx)("label",{className:"col-auto col-form-label",children:")"})]})}},3913:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var s=n("2676"),i=n("470");function r(e){let{label:t,children:n,help:r}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:"col-form-label",children:[t,r&&(0,s.jsx)(i.b,{title:r})]}),(0,s.jsx)("div",{children:n})]})}},2252:function(e,t,n){"use strict";n.d(t,{s:function(){return x}});var s,i,r=n("2676"),a=n("2351"),l=n("32"),c=n("5271"),o=n("6048"),d=n("3128"),u=n("8217"),m=n("8962"),h=n("4705");function x(e){let{onSubmit:t}=e,{t:n}=(0,h.$G)(),s=(0,d.oR)(),i=(0,d.rV)(),x=(0,d.XZ)(),[p,f]=(0,c.useState)(1),[g,v]=(0,c.useState)({x:0,y:0}),[j,b]=(0,c.useState)({x:1,y:1}),N=(0,c.useMemo)(()=>a.Z.cp.rectangle(x.width,x.height),[x.width,x.height]),y=(0,c.useMemo)(()=>{let e=[[g.x,g.y]];return 2==p&&e.push([j.x,j.y]),e},[p,g.x,g.y,j.x,j.y]);return(0,r.jsxs)("div",{className:"row mt-3 justify-content-center",children:[(0,r.jsx)("div",{className:"col mb-3",style:{flex:"0 1 12rem"},children:(0,r.jsx)(l.M,{cp:N,points:y})}),(0,r.jsxs)("form",{className:"col mb-3",onSubmit:function(e){e.preventDefault();let n=[p,i.error,i.count,i.worstCaseError,g.x,g.y];2==p&&n.push(j.x,j.y),d.oR.setState({running:!0,solutions:[],coreError:null}),t(),(0,u.c)().postMessage(n.map(Number))},style:{flex:"1 0 36rem"},children:[(0,r.jsxs)("div",{className:"row mb-2 pb-1",children:[(0,r.jsx)("div",{className:"col-auto",children:(0,r.jsxs)("div",{className:"form-check",children:[(0,r.jsx)("input",{className:"form-check-input",type:"radio",name:"mode",id:"m1",checked:1==p,onChange:()=>f(1)}),(0,r.jsx)("label",{className:"form-check-label capitalize",htmlFor:"m1",children:n("phrase.findPoint")})]})}),(0,r.jsx)("div",{className:"col-auto",children:(0,r.jsxs)("div",{className:"form-check",children:[(0,r.jsx)("input",{className:"form-check-input",type:"radio",name:"mode",id:"m2",checked:2==p,onChange:()=>f(2)}),(0,r.jsx)("label",{className:"form-check-label capitalize",htmlFor:"m2",children:n("phrase.findLine")})]})})]}),(0,r.jsx)(o.i,{label:2==p?" 1":"",value:g,onInput:e=>v(e)}),2==p&&(0,r.jsx)(o.i,{label:" 2",value:j,onInput:e=>b(e)}),(0,r.jsxs)("div",{className:"row mt-2",children:[(0,r.jsx)("div",{className:"col",children:(0,r.jsx)(m.Z,{})}),(0,r.jsx)("div",{className:"col-auto text-end",children:(0,r.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:s.running,children:s.running&&!s.ready?(0,r.jsxs)("span",{className:"capitalize",children:[n("phrase.initializing"),"\xa0",(0,r.jsx)("i",{className:"fa-solid fa-spinner fa-spin"})]}):(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"fa-solid fa-play"}),"\xa0",(0,r.jsx)("span",{className:"capitalize",children:n("phrase.go")})]})})})]})]})]})}(s=i||(i={}))[s.point=1]="point",s[s.line=2]="line"},8962:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var s=n("2676"),i=n("5271"),r=n("3739"),a=n("4705"),l=n("8059"),c=n("2800"),o=n("3128"),d=n("8217"),u=n("3913"),m=n("4723"),h=n("470");function x(){let{t:e}=(0,a.$G)(),t=(0,o.XZ)(),n=(0,o.rV)(),[x,f]=(0,i.useState)(structuredClone(n)),[g,v]=(0,i.useState)(structuredClone(t)),[j,b]=(0,i.useState)(0),N=(0,i.useRef)(null),y=(e,t)=>{let n=g.axioms.concat();n[e]=t,v({...g,axioms:n})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{type:"button",className:"btn btn-secondary",onClick:()=>{f(structuredClone(n)),v(structuredClone(t)),r.u_.getOrCreateInstance(N.current,{backdrop:"static"}).show()},children:[(0,s.jsx)("i",{className:"fa-solid fa-gear"}),"\xa0",(0,s.jsx)("span",{className:"capitalize",children:e("phrase.settings")})]}),(0,s.jsx)("div",{className:"modal fade",ref:N,children:(0,s.jsx)("div",{className:"modal-dialog modal-dialog-centered",children:(0,s.jsxs)("div",{className:"modal-content",children:[(0,s.jsxs)("div",{className:"modal-body",children:[(0,s.jsxs)("ul",{className:"nav nav-tabs mb-3",children:[(0,s.jsx)("li",{className:"nav-item",children:(0,s.jsx)("span",{className:"nav-link "+(0==j?"active":""),onClick:()=>b(0),children:e("settings.basic._")})}),(0,s.jsx)("li",{className:"nav-item",children:(0,s.jsx)("span",{className:"nav-link "+(1==j?"active":""),onClick:()=>b(1),children:e("settings.advanced._")})}),(0,s.jsx)("li",{className:"nav-item",children:(0,s.jsx)("span",{className:"nav-link "+(2==j?"active":""),onClick:()=>b(2),children:e("settings.display._")})})]}),(0,s.jsxs)("div",{className:0==j?"":"d-none",children:[(0,s.jsxs)("div",{className:"grid",children:[(0,s.jsx)(u.Z,{label:e("settings.basic.width"),children:(0,s.jsx)(l.g,{value:g.width,exp:g.widthExp,onInput:(e,t)=>v({...g,width:e,widthExp:t})})}),(0,s.jsx)(u.Z,{label:e("settings.basic.height"),children:(0,s.jsx)(l.g,{value:g.height,exp:g.heightExp,onInput:(e,t)=>v({...g,height:e,heightExp:t})})}),(0,s.jsx)(u.Z,{label:"Max rank",help:e("help.maxRank"),children:(0,s.jsx)(c.G,{value:g.maxRank,min:2,onInput:e=>v({...g,maxRank:e})})}),(0,s.jsx)(u.Z,{label:"Max lines",help:e("help.maxLines"),children:(0,s.jsx)(c.G,{value:g.maxLinesV1,onInput:e=>v({...g,maxLinesV1:e})})}),(0,s.jsx)(u.Z,{label:"Max marks",help:e("help.maxMarks"),children:(0,s.jsx)(c.G,{value:g.maxMarksV1,onInput:e=>v({...g,maxMarksV1:e})})})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"mb-1",children:[(0,s.jsxs)("h6",{children:[e("settings.basic.axioms._"),(0,s.jsx)(h.b,{title:e("help.axioms")})]}),(0,s.jsxs)(m.X,{value:g.axioms[0],onInput:e=>y(0,e),children:["O1 - ",e("settings.basic.axioms.O1")]}),(0,s.jsxs)(m.X,{value:g.axioms[1],onInput:e=>y(1,e),children:["O2 - ",e("settings.basic.axioms.O2")]}),(0,s.jsxs)(m.X,{value:g.axioms[2],onInput:e=>y(2,e),children:["O3 - ",e("settings.basic.axioms.O3")]}),(0,s.jsxs)(m.X,{value:g.axioms[3],onInput:e=>y(3,e),children:["O4 - ",e("settings.basic.axioms.O4")]}),(0,s.jsxs)(m.X,{value:g.axioms[4],onInput:e=>y(4,e),children:["O5 - ",e("settings.basic.axioms.O5")]}),(0,s.jsxs)(m.X,{value:g.axioms[5],onInput:e=>y(5,e),children:["O6 - ",e("settings.basic.axioms.O6")]}),(0,s.jsxs)(m.X,{value:g.axioms[6],onInput:e=>y(6,e),children:["O7 - ",e("settings.basic.axioms.O7")]})]})]}),(0,s.jsxs)("div",{className:"grid "+(1==j?"":"d-none"),children:[(0,s.jsx)(u.Z,{label:"X divisions",help:e("help.divisions"),children:(0,s.jsx)(c.G,{value:g.numX,min:100,max:46e3,onInput:e=>v({...g,numX:e})})}),(0,s.jsx)(u.Z,{label:"Y divisions",help:e("help.divisions"),children:(0,s.jsx)(c.G,{value:g.numY,min:100,max:46e3,onInput:e=>v({...g,numY:e})})}),(0,s.jsx)(u.Z,{label:"Angle divisions",help:e("help.lineDivisions"),children:(0,s.jsx)(c.G,{value:g.numA,min:100,max:46e3,onInput:e=>v({...g,numA:e})})}),(0,s.jsx)(u.Z,{label:"Radial divisions",help:e("help.lineDivisions"),children:(0,s.jsx)(c.G,{value:g.numD,min:100,max:46e3,onInput:e=>v({...g,numD:e})})}),(0,s.jsx)(u.Z,{label:"Min aspect ratio",help:e("help.minAspectRatio"),children:(0,s.jsx)(l.g,{value:g.minAspectRatio,exp:g.minAspectRatioExp,onInput:(e,t)=>v({...g,minAspectRatio:e,minAspectRatioExp:t})})}),(0,s.jsx)(u.Z,{label:"Min angle sine",help:e("help.minAngle"),children:(0,s.jsx)(l.g,{value:g.minAngleSine,exp:g.minAngleSineExp,onInput:(e,t)=>v({...g,minAngleSine:e,minAngleSineExp:t})})}),(0,s.jsx)(u.Z,{label:"Visibility matters",help:e("help.visibility"),children:(0,s.jsx)(m.X,{className:"col-form-label",value:g.visibility,onInput:e=>v({...g,visibility:e})})}),(0,s.jsx)("div",{className:"mt-n2",style:{gridColumn:"1/3"},children:(0,s.jsx)("hr",{})}),(0,s.jsx)(u.Z,{label:"Line error mode",help:e("help.lineError"),children:(0,s.jsxs)("select",{className:"form-select",value:n.worstCaseError?"1":"",onChange:e=>o.rV.setState({worstCaseError:!!e.currentTarget.value}),children:[(0,s.jsx)("option",{value:"1",children:"Worst-case error"}),(0,s.jsx)("option",{value:"",children:"Pythagorean error"})]})}),(0,s.jsx)(u.Z,{label:"Good enough error",help:e("help.goodEnoughError"),children:(0,s.jsx)(l.g,{value:n.error,exp:n.errorExp,onInput:(e,t)=>o.rV.setState({error:e,errorExp:t})})}),(0,s.jsx)(u.Z,{label:"Solution count",children:(0,s.jsx)(c.G,{min:1,max:20,value:n.count,onInput:e=>o.rV.setState({count:e})})})]}),(0,s.jsxs)("div",{className:2==j?"":"d-none",children:[(0,s.jsxs)("div",{className:"grid",children:[(0,s.jsx)(u.Z,{label:e("settings.display.theme._"),children:(0,s.jsxs)("select",{value:n.theme,className:"form-select",onChange:e=>o.rV.setState({theme:Number(e.currentTarget.value)}),children:[(0,s.jsx)("option",{value:o.Q2.system,children:e("settings.display.theme.system")}),(0,s.jsx)("option",{value:o.Q2.light,children:e("settings.display.theme.light")}),(0,s.jsx)("option",{value:o.Q2.dark,children:e("settings.display.theme.dark")}),(0,s.jsx)("option",{value:o.Q2.rabbitEar,children:"RabbitEar"})]})}),(0,s.jsx)(u.Z,{label:e("settings.display.precision"),children:(0,s.jsx)(c.G,{min:1,max:6,value:n.precision,onInput:e=>o.rV.setState({precision:e})})})]}),(0,s.jsxs)("div",{className:"mt-3 mb-1",children:[(0,s.jsx)(m.X,{value:n.showInit,onInput:e=>o.rV.setState({showInit:e}),children:e("settings.display.showInit")}),(0,s.jsx)(m.X,{value:n.showAxiom,onInput:e=>o.rV.setState({showAxiom:e}),children:e("settings.display.showAxiom")})]})]}),p(t,g)&&(0,s.jsxs)("div",{className:"text-warning mt-2",children:["* ",e("settings.reInit")]})]}),(0,s.jsxs)("div",{className:"modal-footer",children:[(0,s.jsx)("div",{className:"flex-grow-1",children:(0,s.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:()=>{o.rV.setState(structuredClone(o.he)),v(structuredClone(o.We))},children:e("settings.reset")})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{type:"button",className:"btn btn-secondary me-2 capitalize","data-bs-dismiss":"modal",onClick:()=>{o.rV.setState(x)},children:e("settings.cancel")}),(0,s.jsx)("button",{type:"button",className:"btn btn-primary","data-bs-dismiss":"modal",onClick:()=>{p(t,g)&&(o.XZ.setState(g),(0,d.$)(g))},children:e("settings.ok")})]})]})]})})})]})}function p(e,t){for(let n in e)if(Array.isArray(e[n])){if(p(e[n],t[n]))return!0}else if(e[n]!==t[n])return!0;return!1}n("253")},4625:function(e,t,n){"use strict";n.d(t,{W:function(){return d},l:function(){return o}});var s=n("2676"),i=n("4705"),r=n("3128"),a=n("6479"),l=n("2447"),c=n("5271");function o(e,t){var n,s;let i,r=e.solution[1];let a="number"==typeof r?r.toFixed(t):(n=r,s=t,(i=Math.atan2(-n[0],n[1])/Math.PI*180)<=-90&&(i+=180),i>90&&(i-=180),i.toFixed(s)+"\xb0");return"(".concat(e.solution[0].toFixed(t),", ").concat(a,")")}function d(e){let{data:t,show:n,onSelect:d}=e,{t:u}=(0,i.$G)(),m=(0,r.rV)(),h=(0,c.useRef)(null),x=o(t,m.precision),p=t.err.toFixed(m.precision);return(0,s.jsxs)("div",{className:"card mt-3 "+(n?"":"d-sm-none"),style:{overflow:"hidden"},children:[(0,s.jsxs)("div",{className:"card-header d-none d-sm-block",children:[(0,s.jsxs)("span",{className:"d-inline-block capitalize",children:[u("phrase.solution")," ",x,","]})," ",(0,s.jsxs)("span",{className:"d-inline-block",children:[u("phrase.error")," ",p,","]})," ",(0,s.jsxs)("span",{className:"d-inline-block",children:["rank ",t.rank]})]}),n?(0,s.jsxs)("div",{ref:h,className:"card-header d-sm-none text-bg-primary",children:[(0,s.jsxs)("span",{className:"d-inline-block capitalize",children:[u("phrase.solution")," ",x,","]})," ",(0,s.jsxs)("span",{className:"d-inline-block",children:[u("phrase.error")," ",p,","]})," ",(0,s.jsxs)("span",{className:"d-inline-block",children:["rank ",t.rank]})]}):(0,s.jsx)("div",{ref:h,className:"card-header d-sm-none",onClick:()=>{d(),setTimeout(()=>{var e;return null===(e=h.current)||void 0===e?void 0:e.scrollIntoView()},0)},style:{cursor:"pointer"},children:(0,s.jsxs)("div",{className:"row gx-0 justify-content-center align-items-top",children:[(0,s.jsx)("div",{className:"col solution-preview",style:{flex:"0 1 9rem"},children:(0,s.jsx)(l.S,{data:t.diagrams[t.diagrams.length-1]})}),(0,s.jsxs)("div",{className:"col mb-2 ps-3 mt-2",style:{flex:"1 0 8rem"},children:[(0,s.jsx)("div",{children:x}),(0,s.jsxs)("div",{children:[u("phrase.error")," ",p]}),(0,s.jsxs)("div",{children:["rank ",t.rank]})]})]})}),(0,s.jsxs)("div",{className:"card-body "+(n?"":"d-none"),children:[0==t.steps.length&&(0,s.jsxs)("div",{className:"row justify-content-center",children:[(0,s.jsx)("div",{className:"col",style:{flex:"0 1 12rem"},children:(0,s.jsx)(l.S,{data:t.diagrams[0],last:!0})}),(0,s.jsx)("div",{className:"col p-2",style:{flex:"1 1 12rem"}})]}),t.steps.map((e,n)=>(0,s.jsxs)("div",{className:"row justify-content-center",children:[(0,s.jsx)("div",{className:"col",style:{flex:"0 1 12rem"},children:(0,s.jsx)(l.S,{data:t.diagrams[n],last:n==t.steps.length-1})}),(0,s.jsx)("div",{className:"col p-2",style:{flex:"1 1 12rem"},children:(0,s.jsx)("ol",{start:n+1,children:(0,s.jsx)(a.B,{data:e,last:n==t.steps.length-1})})})]},n))]})]})}},6479:function(e,t,n){"use strict";n.d(t,{B:function(){return l}});var s=n("2676"),i=n("4705"),r=n("3128");let a=/([\u3040-\u30FF\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF]) ([\u3040-\u30FF\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF])/g;function l(e){let{data:t,last:n}=e,{t:l}=(0,i.$G)(),c=(0,r.rV)(),o=structuredClone(t);function d(e){e.p0=u(e.p0,!0),e.p1=u(e.p1,!0),e.l0=u(e.l0),e.l1=u(e.l1)}function u(e,t){return"string"!=typeof e?e:e=e==e.toLowerCase()?l("paper."+e):t?l("phrase.point")+" "+e:l("phrase.line")+" "+e}function m(e){for(;e.match(a);)e=e.replace(a,"$1$2");return e}return d(o),o.intersection&&d(o.intersection),(0,s.jsx)("li",{children:0==o.axiom?m(l("intersection_solution",{...o})):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[c.showAxiom&&(0,s.jsxs)("span",{children:["[O",o.axiom,"] "]}),m(n&&!o.intersection?l("axiom_solution.".concat(o.axiom-1),{...o}):l("axiom.".concat(o.axiom-1),{...o}))]}),o.intersection&&(0,s.jsx)("div",{children:m(n?l("intersection_solution",{...o.intersection}):l("intersection",{...o.intersection}))})]})})}},2447:function(e,t,n){"use strict";n.d(t,{S:function(){return l}});var s=n("2351"),i=n("6758");n("6520");var r=n("3128");function a(e,t,n){let s=e.edges.text(t.text,t.pt);return s.setAttribute("transform","translate(".concat(n[0]," ").concat(2*t.pt[1]-.05+n[1],") scale(1 -1)")),s}function l(e){let{data:t,last:n}=e,{width:l,height:c}=t[0];return(0,i.n)({render:function(e){let i=e.origami(s.Z.cp.rectangle(l,c));for(let e of(i.setAttribute("transform","translate(0 ".concat(c,") scale(1 -1)")),t))if(e){if(e.type==r.Hd.point&&i.edges.circle(e.pt,e.style==r.SC.normal?.02:.03).classList.add("point-"+r.SC[e.style]),e.type==r.Hd.line&&i.edges.line(e.from,e.to).classList.add(e.style==r.TD.valley&&n?"target-line":"line-"+r.TD[e.style]),e.type==r.Hd.arc){let{radius:t,center:n}=e,{from:s,to:a}=e;!e.ccw&&([s,a]=[a,s]);let l=Math.abs(a-s)/8;s+=Math.min(.075/t,l),a-=Math.min(.075/t,l);let c=i.edges.arc(n[0],n[1],t,s,a);c.classList.add("arc-"+r.TD[e.style]),e.ccw&&c.classList.add("reverse"),t<.5&&(c.style.strokeWidth=Math.max(.005,.015*t/.5).toString())}if(e.type==r.Hd.label){let n=function(e,t){let n=t.filter(t=>t&&t.type==r.Hd.label&&t!=e).map(t=>{let n=e.pt[0]-t.pt[0],s=e.pt[1]-t.pt[1],i=Math.sqrt(n*n+s*s);return[n/i/i,s/i/i]});if(0==n.length)return[0,0];let s=n.map(e=>e[0]).reduce((e,t)=>e+t,0)/n.length,i=n.map(e=>e[1]).reduce((e,t)=>e+t,0)/n.length,a=Math.sqrt(s*s+i*i);return[.09*s/a,.09*i/a]}(e,t);a(i,e,n).classList.add("label-border"),a(i,e,n).classList.add("label-"+r.gF[e.style])}}},width:l,height:c})}},32:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var s=n("2351"),i=n("3128"),r=n("6758");function a(e){let{cp:t,points:n}=e,{width:a,height:l}=(0,i.XZ)(),c=s.Z.rect(0,0,a,l);return(0,r.n)({render:function(e){e.innerHTML='';let i=e.origami(t);if(i.setAttribute("transform","translate(0 ".concat(l,") scale(1 -1)")),n){for(let e of n)i.vertices.circle(e,.03).classList.add("target-point");if(2==n.length){let e=c.clip(s.Z.line.fromPoints(n[0],n[1]));try{i.edges.line(e[0],e[1]).classList.add("target-line")}catch{}}}},width:a,height:l})}},6758:function(e,t,n){"use strict";n.d(t,{n:function(){return l}});var s=n("2676"),i=n("2351"),r=n("5271");n("2923");function a(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function l(e){let{render:t,width:n,height:l}=e,c=(0,r.useRef)(null),[o,d]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!c.current)return;a(c.current);let e=function(e,t){let n=i.Z.svg();return n.size(e,t).padding(.15).strokeWidth(.01),n}(n,l);c.current.appendChild(e),d(e)},[c.current,n,l]),(0,r.useEffect)(()=>{o&&(a(o),t(o))}),(0,s.jsx)("div",{ref:c})}},470:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var s=n("2676"),i=n("5271"),r=n("3739");function a(e){let{title:t}=e,n=(0,i.useRef)(null);return(0,i.useEffect)(()=>{n.current&&r.u.getOrCreateInstance(n.current)}),(0,s.jsx)("i",{className:"fa-solid fa-circle-info text-info ms-2","data-bs-toggle":"tooltip","data-bs-title":t,ref:n})}n("4036")},9985:function(e,t,n){"use strict";var s=n("2676"),i=n("5271"),r=n("8751"),a=n("2648"),l=n("1999");n("4807"),n("5949"),!("structuredClone"in globalThis)&&(globalThis.structuredClone=l.ZP),r.createRoot(document.getElementById("root")).render((0,s.jsx)(i.StrictMode,{children:(0,s.jsx)(a.Z,{})}))},9136:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var s=n("7691");let i=new(n.n(s)());function r(e){try{return e=e.replace(/sqrt/g,"root"),i.eval(e)}catch{return NaN}}},3128:function(e,t,n){"use strict";n.d(t,{Hd:function(){return o},Q2:function(){return c},SC:function(){return d},TD:function(){return u},We:function(){return g},XZ:function(){return b},gF:function(){return m},he:function(){return p},oR:function(){return v},rV:function(){return j}});var s,i,r,a,l,c,o,d,u,m,h=n("3966"),x=n("679");(s=c||(c={}))[s.system=0]="system",s[s.light=1]="light",s[s.dark=2]="dark",s[s.rabbitEar=3]="rabbitEar";let p={showInit:!0,showAxiom:!1,theme:0,error:.005,errorExp:"1/200",worstCaseError:!0,count:5,precision:4},f={progress:null,ready:!1,running:!1,coreError:null,solutions:[]},g={width:1,widthExp:"1",height:1,heightExp:"1",maxRank:6,maxLinesV1:6e5,maxMarksV1:6e5,numX:5e3,numY:5e3,numA:5e3,numD:5e3,minAspectRatio:.1,minAspectRatioExp:"1/10",minAngleSine:.342,minAngleSineExp:"sin(20)",visibility:!0,axioms:[!0,!0,!0,!0,!0,!0,!0]},v=(0,h.Ue)(()=>f),j=(0,h.Ue)((0,x.tJ)(()=>p,{name:"settings"})),b=(0,h.Ue)((0,x.tJ)(()=>g,{name:"db"}));(i=o||(o={}))[i.point=0]="point",i[i.line=1]="line",i[i.arc=2]="arc",i[i.poly=3]="poly",i[i.label=4]="label",(r=d||(d={}))[r.normal=0]="normal",r[r.highlight=1]="highlight",r[r.action=2]="action",(a=u||(u={}))[a.crease=0]="crease",a[a.edge=1]="edge",a[a.highlight=2]="highlight",a[a.valley=3]="valley",a[a.mountain=4]="mountain",a[a.arrow=5]="arrow",(l=m||(m={}))[l.normal=0]="normal",l[l.highlight=1]="highlight",l[l.action=2]="action"},8217:function(e,t,n){"use strict";let s;n.d(t,{$:function(){return a},c:function(){return r}});var i=n("3128");function r(){return s}function a(e){s&&(s.terminate(),i.oR.setState({running:!1,ready:!1,progress:null}),console.log("Reset worker")),(s=new Worker(new URL(n.p+n.u("813"),n.b))).postMessage([e.width,e.height,e.maxRank,e.maxLinesV1,e.maxMarksV1,...e.axioms.map(Number),e.numX,e.numY,e.numA,e.numD,e.minAspectRatio,e.minAngleSine,e.visibility]),s.onmessage=e=>{let t=e.data;if(t.text){let e=t.text,{running:n,ready:s,solutions:r}=i.oR.getState();if(!s&&(e.startsWith("{")?i.oR.setState({progress:JSON.parse(e)}):console.log(e)),"Ready"==e){i.oR.setState({running:n&&!s,ready:!0});return}if(!n||!s)return;console.log(e);let a=JSON.parse(e),l=a.steps;for(let e of(a.steps=[],l))e.axiom>0||e==l[l.length-1]?a.steps.push(e):a.steps[a.steps.length-1].intersection=e;r.push(a),i.oR.setState({solutions:r.concat()})}t.err&&(i.oR.setState({coreError:t.err}),console.error(Error(t.err)))}}a(i.XZ.getState())},4244:function(e,t,n){"use strict";n.r(e.exports={})},5075:function(e,t,n){"use strict";n.r(e.exports={})},253:function(e,t,n){"use strict";n.r(e.exports={})},6520:function(e,t,n){"use strict";n.r(e.exports={})},2923:function(e,t,n){"use strict";n.r(e.exports={})},4036:function(e,t,n){"use strict";n.r(e.exports={})},5949:function(e,t,n){"use strict";n.r(e.exports={})},4786:function(e,t,n){"use strict";n.r(e.exports={})},4363:function(e){e.exports="#arrow"}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e](n,n.exports,a),n.exports}a.m=i,a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.k=function(e){return""+e+".css"},a.u=function(e){return"static/js/async/ref.8952fa06.js"},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e=[],a.O=function(t,n,s,i){if(n){i=i||0;for(var r=e.length;r>0&&e[r-1][2]>i;r--)e[r]=e[r-1];e[r]=[n,s,i];return}for(var l=1/0,r=0;r=i&&Object.keys(a.O).every(function(e){return a.O[e](n[o])})?n.splice(o--,1):(c=!1,i{let e="light";(n.theme==a.Q2.dark||n.theme==a.Q2.system&&x)&&(e="dark"),n.theme==a.Q2.rabbitEar&&(e="rabbit"),document.documentElement.dataset.bsTheme=e}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"container px-4",children:[(0,s.jsxs)("div",{className:"row gx-0 py-2",children:[(0,s.jsx)("div",{className:"col small text-muted",children:t.progress&&n.showInit&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"d-none d-sm-block",children:[t.ready?"":"Initializing"," ",t.progress.lines," lines and ",t.progress.marks," marks of rank \u2264 ",t.progress.rank,t.ready?" ready.":"..."]}),(0,s.jsxs)("div",{className:"d-sm-none",style:{lineHeight:1},children:[t.progress.lines," lines",(0,s.jsx)("br",{}),t.progress.marks," marks",t.ready?"":"..."]})]})}),(0,s.jsx)("div",{className:"col-auto",children:(0,s.jsx)(u.g,{})})]}),(0,s.jsx)("h1",{children:e("phrase.referenceFinder")}),(0,s.jsx)(o.s,{onSubmit:()=>h(0)}),t.coreError&&(0,s.jsxs)("div",{className:"text-danger mb-3",children:["Error: ",t.coreError]})||0==t.solutions.length&&(!t.ready||!t.running)&&(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("div",{children:e("tip.title")}),(0,s.jsxs)("ol",{children:[(0,s.jsx)("li",{children:e("tip.origin")}),(0,s.jsx)("li",{children:e("tip.exp",{exp:"1/sqrt(2)+sin(10)",interpolation:{escapeValue:!1}})})]})]})]}),(0,s.jsx)("section",{className:"solutions d-none d-sm-flex",children:t.solutions.length>0&&(0,s.jsx)("div",{className:"container px-4",children:(0,s.jsx)("div",{className:"row gx-2",children:t.solutions.map((t,n)=>(0,s.jsx)("div",{className:"col mb-2",style:{flex:"0 1 12rem"},children:(0,s.jsxs)("button",{type:"button",onClick:()=>h(n),className:"w-100 p-1 btn btn-ld col solution-preview "+(m==n?"active":""),children:[(0,s.jsx)(c.S,{data:t.diagrams[t.diagrams.length-1]}),(0,s.jsx)("div",{children:(0,l.l)(t)}),(0,s.jsxs)("div",{children:[e("phrase.error")," ",t.err.toFixed(4)]}),(0,s.jsxs)("div",{children:["rank ",t.rank]})]})},n))})})}),(0,s.jsx)("div",{className:"container px-4 flex-grow-1",children:t.solutions.map((e,t)=>(0,s.jsx)(l.W,{data:e,show:m==t,onSelect:()=>h(t)},t))}),(0,s.jsx)(d.$,{})]})}},3220:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});var s=n("2676"),i=n("4705");function r(){let{t:e}=(0,i.$G)();return(0,s.jsx)("div",{className:"container mt-4 px-4",children:(0,s.jsxs)("footer",{className:"row justify-content-end flex-wrap pb-3",children:[(0,s.jsxs)("div",{className:"col-12 col-md-auto flex-grow-1",children:[e("phrase.coreVer"),": v4.0.2"]}),(0,s.jsxs)("div",{className:"col-12 col-md-auto",children:["\xa9 1999-2007 ",(0,s.jsx)("a",{href:"https://langorigami.com/article/referencefinder/",target:"_blank",children:"Robert J. Lang"})]}),(0,s.jsxs)("div",{className:"col-12 col-md-auto",children:["\xa9 2018-2022 ",(0,s.jsx)("a",{href:"https://github.com/robbykraft/ReferenceFinder",target:"_blank",children:"Robby Kraft"})]}),(0,s.jsxs)("div",{className:"col-12 col-md-auto",children:["\xa9 2024 ",(0,s.jsx)("a",{href:"https://github.com/mutsuntsai/reference-finder",target:"_blank",children:"Mu-Tsun Tsai"})]})]})})}},4723:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var s=n("2676"),i=n("5271");function r(e){let{value:t,className:n,children:r,onInput:a}=e,l=(0,i.useId)();return(0,s.jsxs)("div",{className:"form-check "+n,children:[(0,s.jsx)("input",{className:"form-check-input",type:"checkbox",id:l,checked:t,onChange:e=>a(e.currentTarget.checked)}),(0,s.jsx)("label",{className:"form-check-label",htmlFor:l,children:r})]})}n("4244")},8059:function(e,t,n){"use strict";n.d(t,{g:function(){return c}});var s=n("2676"),i=n("5271"),r=n("4705"),a=n("9136");n("5075");let l=document.createElement("canvas");function c(e){let{max:t,value:n,exp:c,onInput:o}=e,{t:d}=(0,r.$G)(),u=(0,i.useRef)(null),m=(0,i.useRef)(null),[h,x]=(0,i.useState)(null!=c?c:n.toString()),[p,f]=(0,i.useState)(n),[g,v]=(0,i.useState)(null!=c?c:n.toString());function j(e){return e.toFixed(4).replace(/0+$/,"").replace(/\.$/,"").replace(/^$/,"0")}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return!isNaN(e)&&e>=0&&(void 0===t||e<=t)}function N(){return isNaN(Number(h))&&h!=p.toString()&&!isNaN(p)}return(0,i.useEffect)(()=>{(n!=p||void 0!==c&&c!=h)&&(x(null!=c?c:n.toString()),f(n))},[n,c]),(0,i.useEffect)(()=>{!b(n)&&(x("0"),f(0),o(0,"0"))}),(0,i.useEffect)(()=>{m.current.style.left=function(e,t){let n=l.getContext("2d");return n.font=getComputedStyle(e).font,n.measureText(t).width}(u.current,h)+"px"}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"position-relative",children:[(0,s.jsxs)("div",{className:"exp-container",children:[(0,s.jsx)("input",{ref:u,type:"text","aria-label":"Math expression",className:"form-control exp-input "+(b()?"":"is-invalid"),value:h,onInput:e=>(function(e){x(e);let t=(0,a.Q)(e);f(t),b(t)&&(v(e),o(t,e))})(e.currentTarget.value),onBlur:function(){!b()&&(x(g),f(n))}}),(0,s.jsx)("div",{className:"suffix-container d-none d-sm-block",children:(0,s.jsx)("span",{className:"exp-suffix",ref:m,children:N()?"= ".concat(j(p)):""})})]}),(0,s.jsx)("div",{className:"exp-suffix-sm d-block d-sm-none",children:(0,s.jsx)("span",{children:N()?"= ".concat(j(p)):""})})]}),!b()&&(0,s.jsx)("div",{className:"text-danger small mt-1",children:void 0!==t?d("invalid.expMax",{max:t}):d("invalid.exp")})]})}},2800:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var s=n("2676"),i=n("5271"),r=n("4705");function a(e){let{max:t,min:n,value:a,onInput:l}=e,{t:c}=(0,r.$G)();void 0===n&&(n=0);let[o,d]=(0,i.useState)(a.toString());function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number(o);return Number.isSafeInteger(e)&&e>=n&&(void 0===t||e<=t)}return(0,i.useEffect)(()=>{Number(o)!=a&&d(a.toString())},[a]),(0,s.jsxs)("div",{className:"position-relative",children:[(0,s.jsx)("div",{className:"exp-container",children:(0,s.jsx)("input",{type:"number","aria-label":"Integer",className:"form-control exp-input "+(u()?"":"is-invalid"),value:o,onInput:e=>(function(e){d(e);let t=Number(e);u(t)&&l(t)})(e.currentTarget.value),onBlur:function(){u()?d(Number(a).toString()):d(a.toString())}})}),!u()&&(0,s.jsx)("div",{className:"text-danger small",children:void 0!==t?c("invalid.intMax",{min:n,max:t}):c("invalid.int",{min:n})})]})}},6048:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var s=n("2676"),i=n("4705"),r=n("3128"),a=n("8059");function l(e){let{label:t,value:n,onInput:l}=e,{t:c}=(0,i.$G)(),o=(0,r.XZ)();return(0,s.jsxs)("div",{className:"row gx-2 mt-2",children:[(0,s.jsxs)("label",{className:"col-auto col-form-label capitalize",children:[c("phrase.point"),t,": (",(0,s.jsx)("span",{className:"d-none d-sm-inline",children:" x ="})]}),(0,s.jsx)("div",{className:"col",children:(0,s.jsx)(a.g,{max:o.width,value:n.x,onInput:e=>l({...n,x:e})})}),(0,s.jsxs)("label",{className:"col-auto col-form-label",children:[",",(0,s.jsx)("span",{className:"d-none d-sm-inline",children:" y ="})]}),(0,s.jsx)("div",{className:"col",children:(0,s.jsx)(a.g,{max:o.height,value:n.y,onInput:e=>l({...n,y:e})})}),(0,s.jsx)("label",{className:"col-auto col-form-label",children:")"})]})}},3913:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var s=n("2676"),i=n("470");function r(e){let{label:t,children:n,help:r}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:"col-form-label",children:[t,r&&(0,s.jsx)(i.b,{title:r})]}),(0,s.jsx)("div",{children:n})]})}},2252:function(e,t,n){"use strict";n.d(t,{s:function(){return x}});var s,i,r=n("2676"),a=n("2351"),l=n("32"),c=n("5271"),o=n("6048"),d=n("3128"),u=n("8217"),m=n("8962"),h=n("4705");function x(e){let{onSubmit:t}=e,{t:n}=(0,h.$G)(),s=(0,d.oR)(),i=(0,d.rV)(),x=(0,d.XZ)(),[p,f]=(0,c.useState)(1),[g,v]=(0,c.useState)({x:0,y:0}),[j,b]=(0,c.useState)({x:1,y:1}),N=(0,c.useMemo)(()=>a.Z.cp.rectangle(x.width,x.height),[x.width,x.height]),y=(0,c.useMemo)(()=>{let e=[[g.x,g.y]];return 2==p&&e.push([j.x,j.y]),e},[p,g.x,g.y,j.x,j.y]);return(0,r.jsxs)("div",{className:"row mt-3 justify-content-center",children:[(0,r.jsx)("div",{className:"col mb-3",style:{flex:"0 1 12rem"},children:(0,r.jsx)(l.M,{cp:N,points:y})}),(0,r.jsxs)("form",{className:"col mb-3",onSubmit:function(e){e.preventDefault();let n=[p,i.error,i.count,i.worstCaseError,g.x,g.y];2==p&&n.push(j.x,j.y),d.oR.setState({running:!0,solutions:[],coreError:null}),t(),(0,u.c)().postMessage(n.map(Number))},style:{flex:"1 0 36rem"},children:[(0,r.jsxs)("div",{className:"row mb-2 pb-1",children:[(0,r.jsx)("div",{className:"col-auto",children:(0,r.jsxs)("div",{className:"form-check",children:[(0,r.jsx)("input",{className:"form-check-input",type:"radio",name:"mode",id:"m1",checked:1==p,onChange:()=>f(1)}),(0,r.jsx)("label",{className:"form-check-label capitalize",htmlFor:"m1",children:n("phrase.findPoint")})]})}),(0,r.jsx)("div",{className:"col-auto",children:(0,r.jsxs)("div",{className:"form-check",children:[(0,r.jsx)("input",{className:"form-check-input",type:"radio",name:"mode",id:"m2",checked:2==p,onChange:()=>f(2)}),(0,r.jsx)("label",{className:"form-check-label capitalize",htmlFor:"m2",children:n("phrase.findLine")})]})})]}),(0,r.jsx)(o.i,{label:2==p?" 1":"",value:g,onInput:e=>v(e)}),2==p&&(0,r.jsx)(o.i,{label:" 2",value:j,onInput:e=>b(e)}),(0,r.jsxs)("div",{className:"row mt-2",children:[(0,r.jsx)("div",{className:"col",children:(0,r.jsx)(m.Z,{})}),(0,r.jsx)("div",{className:"col-auto text-end",children:(0,r.jsx)("button",{type:"submit",className:"btn btn-primary",disabled:s.running,children:s.running&&!s.ready?(0,r.jsxs)("span",{className:"capitalize",children:[n("phrase.initializing"),"\xa0",(0,r.jsx)("i",{className:"fa-solid fa-spinner fa-spin"})]}):(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"fa-solid fa-play"}),"\xa0",(0,r.jsx)("span",{className:"capitalize",children:n("phrase.go")})]})})})]})]})]})}(s=i||(i={}))[s.point=1]="point",s[s.line=2]="line"},8962:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var s=n("2676"),i=n("5271"),r=n("3739"),a=n("4705"),l=n("8059"),c=n("2800"),o=n("3128"),d=n("8217"),u=n("3913"),m=n("4723");n("253");var h=n("470");function x(){let{t:e}=(0,a.$G)(),t=(0,o.XZ)(),n=(0,o.rV)(),[x,f]=(0,i.useState)(structuredClone(n)),[g,v]=(0,i.useState)(structuredClone(t)),[j,b]=(0,i.useState)(0),N=(0,i.useRef)(null),y=(e,t)=>{let n=g.axioms.concat();n[e]=t,v({...g,axioms:n})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{type:"button",className:"btn btn-secondary",onClick:()=>{f(structuredClone(n)),v(structuredClone(t)),r.u_.getOrCreateInstance(N.current,{backdrop:"static"}).show()},children:[(0,s.jsx)("i",{className:"fa-solid fa-gear"}),"\xa0",(0,s.jsx)("span",{className:"capitalize",children:e("phrase.settings")})]}),(0,s.jsx)("div",{className:"modal fade",ref:N,children:(0,s.jsx)("div",{className:"modal-dialog modal-dialog-centered",children:(0,s.jsxs)("div",{className:"modal-content",children:[(0,s.jsxs)("div",{className:"modal-body",children:[(0,s.jsxs)("ul",{className:"nav nav-tabs mb-3",children:[(0,s.jsx)("li",{className:"nav-item",children:(0,s.jsx)("span",{className:"nav-link "+(0==j?"active":""),onClick:()=>b(0),children:e("settings.basic._")})}),(0,s.jsx)("li",{className:"nav-item",children:(0,s.jsx)("span",{className:"nav-link "+(1==j?"active":""),onClick:()=>b(1),children:e("settings.advanced._")})}),(0,s.jsx)("li",{className:"nav-item",children:(0,s.jsx)("span",{className:"nav-link "+(2==j?"active":""),onClick:()=>b(2),children:e("settings.display._")})})]}),(0,s.jsxs)("div",{className:0==j?"":"d-none",children:[(0,s.jsxs)("div",{className:"grid",children:[(0,s.jsx)(u.Z,{label:e("settings.basic.width"),children:(0,s.jsx)(l.g,{value:g.width,exp:g.widthExp,onInput:(e,t)=>v({...g,width:e,widthExp:t})})}),(0,s.jsx)(u.Z,{label:e("settings.basic.height"),children:(0,s.jsx)(l.g,{value:g.height,exp:g.heightExp,onInput:(e,t)=>v({...g,height:e,heightExp:t})})}),(0,s.jsx)(u.Z,{label:"Max rank",help:e("help.maxRank"),children:(0,s.jsx)(c.G,{value:g.maxRank,min:2,onInput:e=>v({...g,maxRank:e})})}),(0,s.jsx)(u.Z,{label:"Max lines",help:e("help.maxLines"),children:(0,s.jsx)(c.G,{value:g.maxLinesV1,onInput:e=>v({...g,maxLinesV1:e})})}),(0,s.jsx)(u.Z,{label:"Max marks",help:e("help.maxMarks"),children:(0,s.jsx)(c.G,{value:g.maxMarksV1,onInput:e=>v({...g,maxMarksV1:e})})})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"mb-1",children:[(0,s.jsxs)("h6",{children:[e("settings.basic.axioms._"),(0,s.jsx)(h.b,{title:e("help.axioms")})]}),(0,s.jsxs)(m.X,{value:g.axioms[0],onInput:e=>y(0,e),children:["O1 - ",e("settings.basic.axioms.O1")]}),(0,s.jsxs)(m.X,{value:g.axioms[1],onInput:e=>y(1,e),children:["O2 - ",e("settings.basic.axioms.O2")]}),(0,s.jsxs)(m.X,{value:g.axioms[2],onInput:e=>y(2,e),children:["O3 - ",e("settings.basic.axioms.O3")]}),(0,s.jsxs)(m.X,{value:g.axioms[3],onInput:e=>y(3,e),children:["O4 - ",e("settings.basic.axioms.O4")]}),(0,s.jsxs)(m.X,{value:g.axioms[4],onInput:e=>y(4,e),children:["O5 - ",e("settings.basic.axioms.O5")]}),(0,s.jsxs)(m.X,{value:g.axioms[5],onInput:e=>y(5,e),children:["O6 - ",e("settings.basic.axioms.O6")]}),(0,s.jsxs)(m.X,{value:g.axioms[6],onInput:e=>y(6,e),children:["O7 - ",e("settings.basic.axioms.O7")]})]})]}),(0,s.jsxs)("div",{className:"grid "+(1==j?"":"d-none"),children:[(0,s.jsx)(u.Z,{label:"X divisions",help:e("help.divisions"),children:(0,s.jsx)(c.G,{value:g.numX,min:100,max:46e3,onInput:e=>v({...g,numX:e})})}),(0,s.jsx)(u.Z,{label:"Y divisions",help:e("help.divisions"),children:(0,s.jsx)(c.G,{value:g.numY,min:100,max:46e3,onInput:e=>v({...g,numY:e})})}),(0,s.jsx)(u.Z,{label:"Angle divisions",help:e("help.lineDivisions"),children:(0,s.jsx)(c.G,{value:g.numA,min:100,max:46e3,onInput:e=>v({...g,numA:e})})}),(0,s.jsx)(u.Z,{label:"Radial divisions",help:e("help.lineDivisions"),children:(0,s.jsx)(c.G,{value:g.numD,min:100,max:46e3,onInput:e=>v({...g,numD:e})})}),(0,s.jsx)(u.Z,{label:"Min aspect ratio",help:e("help.minAspectRatio"),children:(0,s.jsx)(l.g,{value:g.minAspectRatio,exp:g.minAspectRatioExp,onInput:(e,t)=>v({...g,minAspectRatio:e,minAspectRatioExp:t})})}),(0,s.jsx)(u.Z,{label:"Min angle sine",help:e("help.minAngle"),children:(0,s.jsx)(l.g,{value:g.minAngleSine,exp:g.minAngleSineExp,onInput:(e,t)=>v({...g,minAngleSine:e,minAngleSineExp:t})})}),(0,s.jsx)(u.Z,{label:"Visibility matters",help:e("help.visibility"),children:(0,s.jsx)(m.X,{className:"col-form-label",value:g.visibility,onInput:e=>v({...g,visibility:e})})}),(0,s.jsx)("div",{className:"mt-n2",style:{gridColumn:"1/3"},children:(0,s.jsx)("hr",{})}),(0,s.jsx)(u.Z,{label:"Line error mode",help:e("help.lineError"),children:(0,s.jsxs)("select",{className:"form-select",value:n.worstCaseError?"1":"",onChange:e=>o.rV.setState({worstCaseError:!!e.currentTarget.value}),children:[(0,s.jsx)("option",{value:"1",children:"Worst-case error"}),(0,s.jsx)("option",{value:"",children:"Pythagorean error"})]})}),(0,s.jsx)(u.Z,{label:"Good enough error",help:e("help.goodEnoughError"),children:(0,s.jsx)(l.g,{value:n.error,exp:n.errorExp,onInput:(e,t)=>o.rV.setState({error:e,errorExp:t})})}),(0,s.jsx)(u.Z,{label:"Solution count",children:(0,s.jsx)(c.G,{min:1,max:20,value:n.count,onInput:e=>o.rV.setState({count:e})})})]}),(0,s.jsxs)("div",{className:2==j?"":"d-none",children:[(0,s.jsx)("div",{className:"grid",children:(0,s.jsx)(u.Z,{label:e("settings.display.theme._"),children:(0,s.jsxs)("select",{value:n.theme,className:"form-select",onChange:e=>o.rV.setState({theme:Number(e.currentTarget.value)}),children:[(0,s.jsx)("option",{value:o.Q2.system,children:e("settings.display.theme.system")}),(0,s.jsx)("option",{value:o.Q2.light,children:e("settings.display.theme.light")}),(0,s.jsx)("option",{value:o.Q2.dark,children:e("settings.display.theme.dark")}),(0,s.jsx)("option",{value:o.Q2.rabbitEar,children:"RabbitEar"})]})})}),(0,s.jsxs)("div",{className:"mt-3 mb-1",children:[(0,s.jsx)(m.X,{value:n.showInit,onInput:e=>o.rV.setState({showInit:e}),children:e("settings.display.showInit")}),(0,s.jsx)(m.X,{value:n.showAxiom,onInput:e=>o.rV.setState({showAxiom:e}),children:e("settings.display.showAxiom")})]})]}),p(t,g)&&(0,s.jsxs)("div",{className:"text-warning mt-2",children:["* ",e("settings.reInit")]})]}),(0,s.jsxs)("div",{className:"modal-footer",children:[(0,s.jsx)("div",{className:"flex-grow-1",children:(0,s.jsx)("button",{type:"button",className:"btn btn-secondary",onClick:()=>{o.rV.setState(structuredClone(o.he)),v(structuredClone(o.We))},children:e("settings.reset")})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{type:"button",className:"btn btn-secondary me-2 capitalize","data-bs-dismiss":"modal",onClick:()=>{o.rV.setState(x)},children:e("settings.cancel")}),(0,s.jsx)("button",{type:"button",className:"btn btn-primary","data-bs-dismiss":"modal",onClick:()=>{p(t,g)&&(o.XZ.setState(g),(0,d.$)(g))},children:e("settings.ok")})]})]})]})})})]})}function p(e,t){for(let n in e)if(Array.isArray(e[n])){if(p(e[n],t[n]))return!0}else if(e[n]!==t[n])return!0;return!1}},4625:function(e,t,n){"use strict";n.d(t,{W:function(){return o},l:function(){return c}});var s=n("2676"),i=n("4705"),r=n("6479"),a=n("2447"),l=n("5271");function c(e){var t;let n,s=e.solution[1];let i="number"==typeof s?s.toFixed(4):((n=Math.atan2(-(t=s)[0],t[1])/Math.PI*180)<=-90&&(n+=180),n>90&&(n-=180),n.toFixed(4)+"\xb0");return"(".concat(e.solution[0].toFixed(4),", ").concat(i,")")}function o(e){let{data:t,show:n,onSelect:o}=e,{t:d}=(0,i.$G)(),u=(0,l.useRef)(null),m=c(t),h=t.err.toFixed(4);return(0,s.jsxs)("div",{className:"card mt-3 "+(n?"":"d-sm-none"),style:{overflow:"hidden"},children:[(0,s.jsxs)("div",{className:"card-header d-none d-sm-block",children:[(0,s.jsxs)("span",{className:"d-inline-block capitalize",children:[d("phrase.solution")," ",m,","]})," ",(0,s.jsxs)("span",{className:"d-inline-block",children:[d("phrase.error")," ",h,","]})," ",(0,s.jsxs)("span",{className:"d-inline-block",children:["rank ",t.rank]})]}),n?(0,s.jsxs)("div",{ref:u,className:"card-header d-sm-none text-bg-primary",children:[(0,s.jsxs)("span",{className:"d-inline-block capitalize",children:[d("phrase.solution")," ",m,","]})," ",(0,s.jsxs)("span",{className:"d-inline-block",children:[d("phrase.error")," ",h,","]})," ",(0,s.jsxs)("span",{className:"d-inline-block",children:["rank ",t.rank]})]}):(0,s.jsx)("div",{ref:u,className:"card-header d-sm-none",onClick:()=>{o(),setTimeout(()=>{var e;return null===(e=u.current)||void 0===e?void 0:e.scrollIntoView()},0)},style:{cursor:"pointer"},children:(0,s.jsxs)("div",{className:"row gx-0 justify-content-center align-items-top",children:[(0,s.jsx)("div",{className:"col solution-preview",style:{flex:"0 1 9rem"},children:(0,s.jsx)(a.S,{data:t.diagrams[t.diagrams.length-1]})}),(0,s.jsxs)("div",{className:"col mb-2 ps-3 mt-2",style:{flex:"1 0 8rem"},children:[(0,s.jsx)("div",{children:m}),(0,s.jsxs)("div",{children:[d("phrase.error")," ",h]}),(0,s.jsxs)("div",{children:["rank ",t.rank]})]})]})}),(0,s.jsxs)("div",{className:"card-body "+(n?"":"d-none"),children:[0==t.steps.length&&(0,s.jsxs)("div",{className:"row justify-content-center",children:[(0,s.jsx)("div",{className:"col",style:{flex:"0 1 12rem"},children:(0,s.jsx)(a.S,{data:t.diagrams[0],last:!0})}),(0,s.jsx)("div",{className:"col p-2",style:{flex:"1 1 12rem"}})]}),t.steps.map((e,n)=>(0,s.jsxs)("div",{className:"row justify-content-center",children:[(0,s.jsx)("div",{className:"col",style:{flex:"0 1 12rem"},children:(0,s.jsx)(a.S,{data:t.diagrams[n],last:n==t.steps.length-1})}),(0,s.jsx)("div",{className:"col p-2",style:{flex:"1 1 12rem"},children:(0,s.jsx)("ol",{start:n+1,children:(0,s.jsx)(r.B,{data:e,last:n==t.steps.length-1})})})]},n))]})]})}},6479:function(e,t,n){"use strict";n.d(t,{B:function(){return l}});var s=n("2676"),i=n("4705"),r=n("3128");let a=/([\u3040-\u30FF\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF]) ([\u3040-\u30FF\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF])/g;function l(e){let{data:t,last:n}=e,{t:l}=(0,i.$G)(),c=(0,r.rV)(),o=structuredClone(t);function d(e){e.p0=u(e.p0,!0),e.p1=u(e.p1,!0),e.l0=u(e.l0),e.l1=u(e.l1)}function u(e,t){return"string"!=typeof e?e:e=e==e.toLowerCase()?l("paper."+e):t?l("phrase.point")+" "+e:l("phrase.line")+" "+e}function m(e){for(;e.match(a);)e=e.replace(a,"$1$2");return e}return d(o),o.intersection&&d(o.intersection),(0,s.jsx)("li",{children:0==o.axiom?m(l("intersection_solution",{...o})):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[c.showAxiom&&(0,s.jsxs)("span",{children:["[O",o.axiom,"] "]}),m(n&&!o.intersection?l("axiom_solution.".concat(o.axiom-1),{...o}):l("axiom.".concat(o.axiom-1),{...o}))]}),o.intersection&&(0,s.jsx)("div",{children:m(n?l("intersection_solution",{...o.intersection}):l("intersection",{...o.intersection}))})]})})}},2447:function(e,t,n){"use strict";n.d(t,{S:function(){return l}});var s=n("2351"),i=n("6758");n("6520");var r=n("3128");function a(e,t,n){let s=e.edges.text(t.text,t.pt);return s.setAttribute("transform","translate(".concat(n[0]," ").concat(2*t.pt[1]-.05+n[1],") scale(1 -1)")),s}function l(e){let{data:t,last:n}=e,{width:l,height:c}=t[0];return(0,i.n)({render:function(e){let i=e.origami(s.Z.cp.rectangle(l,c));for(let e of(i.setAttribute("transform","translate(0 ".concat(c,") scale(1 -1)")),t))if(e){if(e.type==r.Hd.point&&i.edges.circle(e.pt,e.style==r.SC.normal?.02:.03).classList.add("point-"+r.SC[e.style]),e.type==r.Hd.line&&i.edges.line(e.from,e.to).classList.add(e.style==r.TD.valley&&n?"target-line":"line-"+r.TD[e.style]),e.type==r.Hd.arc){let{radius:t,center:n}=e,{from:s,to:a}=e;!e.ccw&&([s,a]=[a,s]);let l=Math.abs(a-s)/8;s+=Math.min(.075/t,l),a-=Math.min(.075/t,l);let c=i.edges.arc(n[0],n[1],t,s,a);c.classList.add("arc-"+r.TD[e.style]),e.ccw&&c.classList.add("reverse"),t<.5&&(c.style.strokeWidth=Math.max(.005,.015*t/.5).toString())}if(e.type==r.Hd.label){let n=function(e,t){let n=t.filter(t=>t&&t.type==r.Hd.label&&t!=e).map(t=>{let n=e.pt[0]-t.pt[0],s=e.pt[1]-t.pt[1],i=Math.sqrt(n*n+s*s);return[n/i/i,s/i/i]});if(0==n.length)return[0,0];let s=n.map(e=>e[0]).reduce((e,t)=>e+t,0)/n.length,i=n.map(e=>e[1]).reduce((e,t)=>e+t,0)/n.length,a=Math.sqrt(s*s+i*i);return[.09*s/a,.09*i/a]}(e,t);a(i,e,n).classList.add("label-border"),a(i,e,n).classList.add("label-"+r.gF[e.style])}}},width:l,height:c})}},32:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var s=n("2351"),i=n("3128"),r=n("6758");function a(e){let{cp:t,points:n}=e,{width:a,height:l}=(0,i.XZ)(),c=s.Z.rect(0,0,a,l);return(0,r.n)({render:function(e){e.innerHTML='';let i=e.origami(t);if(i.setAttribute("transform","translate(0 ".concat(l,") scale(1 -1)")),n){for(let e of n)i.vertices.circle(e,.03).classList.add("target-point");if(2==n.length){let e=c.clip(s.Z.line.fromPoints(n[0],n[1]));try{i.edges.line(e[0],e[1]).classList.add("target-line")}catch{}}}},width:a,height:l})}},6758:function(e,t,n){"use strict";n.d(t,{n:function(){return l}});var s=n("2676"),i=n("2351"),r=n("5271");n("2923");function a(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function l(e){let{render:t,width:n,height:l}=e,c=(0,r.useRef)(null),[o,d]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!c.current)return;a(c.current);let e=function(e,t){let n=i.Z.svg();return n.size(e,t).padding(.15).strokeWidth(.01),n}(n,l);c.current.appendChild(e),d(e)},[c.current,n,l]),(0,r.useEffect)(()=>{o&&(a(o),t(o))}),(0,s.jsx)("div",{ref:c})}},470:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var s=n("2676"),i=n("5271"),r=n("3739");function a(e){let{title:t}=e,n=(0,i.useRef)(null);return(0,i.useEffect)(()=>{n.current&&r.u.getOrCreateInstance(n.current)}),(0,s.jsx)("i",{className:"fa-solid fa-circle-info text-info ms-2","data-bs-toggle":"tooltip","data-bs-title":t,ref:n})}n("4036")},9985:function(e,t,n){"use strict";var s=n("2676"),i=n("5271"),r=n("8751"),a=n("2648"),l=n("1999");n("4807"),n("5949"),!("structuredClone"in globalThis)&&(globalThis.structuredClone=l.ZP),r.createRoot(document.getElementById("root")).render((0,s.jsx)(i.StrictMode,{children:(0,s.jsx)(a.Z,{})}))},9136:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var s=n("7691");let i=new(n.n(s)());function r(e){try{return e=e.replace(/sqrt/g,"root"),i.eval(e)}catch{return NaN}}},3128:function(e,t,n){"use strict";n.d(t,{Hd:function(){return o},Q2:function(){return c},SC:function(){return d},TD:function(){return u},We:function(){return g},XZ:function(){return b},gF:function(){return m},he:function(){return p},oR:function(){return v},rV:function(){return j}});var s,i,r,a,l,c,o,d,u,m,h=n("3966"),x=n("679");(s=c||(c={}))[s.system=0]="system",s[s.light=1]="light",s[s.dark=2]="dark",s[s.rabbitEar=3]="rabbitEar";let p={showInit:!0,showAxiom:!1,theme:0,error:.005,errorExp:"1/200",worstCaseError:!0,count:5},f={progress:null,ready:!1,running:!1,coreError:null,solutions:[]},g={width:1,widthExp:"1",height:1,heightExp:"1",maxRank:6,maxLinesV1:6e5,maxMarksV1:6e5,numX:5e3,numY:5e3,numA:5e3,numD:5e3,minAspectRatio:.1,minAspectRatioExp:"1/10",minAngleSine:.342,minAngleSineExp:"sin(20)",visibility:!0,axioms:[!0,!0,!0,!0,!0,!0,!0]},v=(0,h.Ue)(()=>f),j=(0,h.Ue)((0,x.tJ)(()=>p,{name:"settings"})),b=(0,h.Ue)((0,x.tJ)(()=>g,{name:"db"}));(i=o||(o={}))[i.point=0]="point",i[i.line=1]="line",i[i.arc=2]="arc",i[i.poly=3]="poly",i[i.label=4]="label",(r=d||(d={}))[r.normal=0]="normal",r[r.highlight=1]="highlight",r[r.action=2]="action",(a=u||(u={}))[a.crease=0]="crease",a[a.edge=1]="edge",a[a.highlight=2]="highlight",a[a.valley=3]="valley",a[a.mountain=4]="mountain",a[a.arrow=5]="arrow",(l=m||(m={}))[l.normal=0]="normal",l[l.highlight=1]="highlight",l[l.action=2]="action"},8217:function(e,t,n){"use strict";let s;n.d(t,{$:function(){return a},c:function(){return r}});var i=n("3128");function r(){return s}function a(e){s&&(s.terminate(),i.oR.setState({running:!1,ready:!1,progress:null}),console.log("Reset worker")),(s=new Worker(new URL(n.p+n.u("813"),n.b))).postMessage([e.width,e.height,e.maxRank,e.maxLinesV1,e.maxMarksV1,...e.axioms.map(Number),e.numX,e.numY,e.numA,e.numD,e.minAspectRatio,e.minAngleSine,e.visibility]),s.onmessage=e=>{let t=e.data;if(t.text){let e=t.text,{running:n,ready:s,solutions:r}=i.oR.getState();if(!s&&(e.startsWith("{")?i.oR.setState({progress:JSON.parse(e)}):console.log(e)),"Ready"==e){i.oR.setState({running:n&&!s,ready:!0});return}if(!n||!s)return;console.log(e);let a=JSON.parse(e),l=a.steps;for(let e of(a.steps=[],l))e.axiom>0||e==l[l.length-1]?a.steps.push(e):a.steps[a.steps.length-1].intersection=e;r.push(a),i.oR.setState({solutions:r.concat()})}t.err&&(i.oR.setState({coreError:t.err}),console.error(Error(t.err)))}}a(i.XZ.getState())},4244:function(e,t,n){"use strict";n.r(e.exports={})},5075:function(e,t,n){"use strict";n.r(e.exports={})},253:function(e,t,n){"use strict";n.r(e.exports={})},6520:function(e,t,n){"use strict";n.r(e.exports={})},2923:function(e,t,n){"use strict";n.r(e.exports={})},4036:function(e,t,n){"use strict";n.r(e.exports={})},5949:function(e,t,n){"use strict";n.r(e.exports={})},4786:function(e,t,n){"use strict";n.r(e.exports={})},4363:function(e){e.exports="#arrow"}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e](n,n.exports,a),n.exports}a.m=i,a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.k=function(e){return""+e+".css"},a.u=function(e){return"static/js/async/ref.8952fa06.js"},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e=[],a.O=function(t,n,s,i){if(n){i=i||0;for(var r=e.length;r>0&&e[r-1][2]>i;r--)e[r]=e[r-1];e[r]=[n,s,i];return}for(var l=1/0,r=0;r=i&&Object.keys(a.O).every(function(e){return a.O[e](n[o])})?n.splice(o--,1):(c=!1,i{document.title=e("phrase.referenceFinder")},[t.language]),(0,n.jsx)("select",{className:"form-select flag d-inline-block",style:{width:"max-content"},"aria-label":"Language",value:t.language,onChange:e=>t.changeLanguage(e.currentTarget.value),children:s._.map(t=>(0,n.jsxs)("option",{value:t,children:[e("flag",{lng:t})," ",e("name",{lng:t})]},t))})}},4807:function(e,t,i){"use strict";i.d(t,{_:function(){return g}});var n=i("8061"),o=i("8920"),s=i("4705"),r=i("3259"),a=i("1485"),l=i("2467"),u=i("9640");let p={en:{translation:r},es:{translation:a},jp:{translation:i("6677")},pt:{translation:l},ru:{translation:u},"zh-CN":{translation:i("5534")},"zh-TW":{translation:i("5824")}},h=["zh-CN","zh-CHS","zh-Hans","zh-HK","zh-MO"];(["Asia/Shanghai","Asia/Urumqi"].includes(new Intl.DateTimeFormat().resolvedOptions().timeZone)||h.includes(navigator.language)||navigator.languages.some(e=>h.includes(e)))&&(p["zh-TW"].translation.name="\u7E41\u9AD4\u4E2D\u6587",p["zh-TW"].translation.flag="\uD83C\uDDED\uD83C\uDDF0");let g=Object.keys(p);n.ZP.use(o.Z).use(s.Db).init({resources:p,fallbackLng:"en",supportedLngs:g,detection:{order:["querystring","localStorage","navigator"],caches:["localStorage"]}})},8920:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i("99"),o=i("6670"),s=[],r=s.forEach,a=s.slice,l=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,u=function(e,t,i){var n=i||{};n.path=n.path||"/";var o=encodeURIComponent(t),s="".concat(e,"=").concat(o);if(n.maxAge>0){var r=n.maxAge-0;if(Number.isNaN(r))throw Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(r))}if(n.domain){if(!l.test(n.domain))throw TypeError("option domain is invalid");s+="; Domain=".concat(n.domain)}if(n.path){if(!l.test(n.path))throw TypeError("option path is invalid");s+="; Path=".concat(n.path)}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw TypeError("option expires is invalid");s+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"none":s+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return s},p={create:function(e,t,i,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};i&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+6e4*i)),n&&(o.domain=n),document.cookie=u(e,encodeURIComponent(t),o)},read:function(e){for(var t="".concat(e,"="),i=document.cookie.split(";"),n=0;n-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=i.substring(1).split("&"),o=0;o0&&n[o].substring(0,s)===e.lookupQuerystring&&(t=n[o].substring(s+1))}}return t}},c=null,d=function(){if(null!==c)return c;try{c="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){c=!1}return c},f={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&d()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&d()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},m=null,v=function(){if(null!==m)return m;try{m="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){m=!1}return m},x={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&v()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&v()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},y={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var i=0;i0?t:void 0}},b={name:"htmlTag",lookup:function(e){var t,i=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return i&&"function"==typeof i.getAttribute&&(t=i.getAttribute("lang")),t}},w={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array){if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof i[e.lookupFromPathIndex])return;t=i[e.lookupFromPathIndex].replace("/","")}else t=i[0].replace("/","")}}return t}},k={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,i="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[t]}},S=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.Z)(this,e),this.type="languageDetector",this.detectors={},this.init(t,i)}return(0,o.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return r.call(a.call(arguments,1),function(t){if(t)for(var i in t)void 0===e[i]&&(e[i]=t[i])}),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(h),this.addDetector(g),this.addDetector(f),this.addDetector(x),this.addDetector(y),this.addDetector(b),this.addDetector(w),this.addDetector(k)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var t=this;!e&&(e=this.options.order);var i=[];return(e.forEach(function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(i=i.concat(n))}}),i=i.map(function(e){return t.options.convertDetectedLanguage(e)}),this.services.languageUtils.getBestMatchFromCodes)?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var i=this;if(!t&&(t=this.options.caches),!!t)!(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1)&&t.forEach(function(t){i.detectors[t]&&i.detectors[t].cacheUserLanguage(e,i.options)})}}]),e}();S.type="languageDetector"},8061:function(e,t,i){"use strict";i.d(t,{ZP:function(){return V}});let n={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||n,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),i=0;i{!this.observers[e]&&(this.observers[e]=new Map);let i=this.observers[e].get(t)||0;this.observers[e].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n{let[t,n]=e;for(let e=0;e{let[n,o]=t;for(let t=0;t{e=i,t=n});return i.resolve=e,i.reject=t,i}function l(e){return null==e?"":""+e}let u=/###/g;function p(e,t,i){function n(e){return e&&e.indexOf("###")>-1?e.replace(u,"."):e}function o(){return!e||"string"==typeof e}let s="string"!=typeof t?t:t.split("."),r=0;for(;r":">",'"':""","'":"'","/":"/"};function f(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>d[e]):e}let m=[" ",",","?","!",";"],v=new class e{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}(20);function x(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(i),o=e;for(let e=0;e-1&&r0?e.replace("_","-"):e}class b extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,r=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],i&&(Array.isArray(i)?n.push(...i):"string"==typeof i&&s?n.push(...i.split(s)):n.push(i)));let a=g(this.data,n);return(!a&&!t&&!i&&e.indexOf(".")>-1&&(e=n[0],t=n[1],i=n.slice(2).join(".")),a||!r||"string"!=typeof i)?a:x(this.data&&this.data[e]&&this.data[e][t],i,s)}addResource(e,t,i,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,r=[e,t];i&&(r=r.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(r=e.split("."),n=t,t=r[1]),this.addNamespaces(t),h(this.data,r,n),!o.silent&&this.emit("added",e,t,i,n)}addResources(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in i)("string"==typeof i[n]||"[object Array]"===Object.prototype.toString.apply(i[n]))&&this.addResource(e,t,n,i[n],{silent:!0});!n.silent&&this.emit("added",e,t,i)}addResourceBundle(e,t,i,n,o){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},r=[e,t];e.indexOf(".")>-1&&(r=e.split("."),n=i,i=t,t=r[1]),this.addNamespaces(t);let a=g(this.data,r)||{};!s.skipCopy&&(i=JSON.parse(JSON.stringify(i))),n?!function e(t,i,n){for(let o in i)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof i[o]||i[o]instanceof String?n&&(t[o]=i[o]):e(t[o],i[o],n):t[o]=i[o]);return t}(a,i,o):a={...a,...i},h(this.data,r,a),!s.silent&&this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(!t&&(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var w={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,n,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,i,n,o))}),t}};let k={};class S extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),!function(e,t,i){e.forEach(e=>{t[e]&&(i[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=s.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let i=this.resolve(e,t);return i&&void 0!==i.res}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],s=i&&e.indexOf(i)>-1,r=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,i){t=t||"",i=i||"";let n=m.filter(e=>0>t.indexOf(e)&&0>i.indexOf(e));if(0===n.length)return!0;let o=v.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),s=!o.test(e);if(!s){let t=e.indexOf(i);t>0&&!o.test(e.substring(0,t))&&(s=!0)}return s}(e,i,n);if(s&&!r){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let s=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,i){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),!t&&(t={}),null==e)return"";!Array.isArray(e)&&(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:s,namespaces:r}=this.extractFromKey(e[e.length-1],t),a=r[r.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${s}`}return n?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:s}let p=this.resolve(e,t),h=p&&p.res,g=p&&p.usedKey||s,c=p&&p.exactUsedKey||s,d=Object.prototype.toString.apply(h),f=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(m&&h&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(d)&&!("string"==typeof f&&"[object Array]"===d)){if(!t.returnObjects&&!this.options.returnObjects){!this.options.returnedObjectHandler&&this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,{...t,ns:r}):`key '${s} (${this.language})' returned an object instead of string.`;return n?(p.res=e,p.usedParams=this.getUsedParamsDetails(t),p):e}if(o){let e="[object Array]"===d,i=e?[]:{},n=e?c:g;for(let e in h)if(Object.prototype.hasOwnProperty.call(h,e)){let s=`${n}${o}${e}`;i[e]=this.translate(s,{...t,joinArrays:!1,ns:r}),i[e]===s&&(i[e]=h[e])}h=i}}else if(m&&"string"==typeof f&&"[object Array]"===d)(h=h.join(f))&&(h=this.extendTranslation(h,e,t,i));else{let n=!1,r=!1,u=void 0!==t.count&&"string"!=typeof t.count,g=S.hasDefaultValue(t),c=u?this.pluralResolver.getSuffix(l,t.count,t):"",d=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",f=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=f&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${c}`]||t[`defaultValue${d}`]||t.defaultValue;!this.isValidLookup(h)&&g&&(n=!0,h=m),!this.isValidLookup(h)&&(r=!0,h=s);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:h,x=g&&m!==h&&this.options.updateMissing;if(r||n||x){if(this.logger.log(x?"updateKey":"missingKey",l,a,s,x?m:h),o){let e=this.resolve(s,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let t=0;t{let o=g&&n!==h?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,i,o,x,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,i,o,x,t),this.emit("missingKey",e,a,i,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let i=this.pluralResolver.getSuffixes(e,t);f&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>i.indexOf(`${this.options.pluralSeparator}zero`)&&i.push(`${this.options.pluralSeparator}zero`),i.forEach(i=>{n([e],s+i,t[`defaultValue${i}`]||m)})}):n(e,s,m))}h=this.extendTranslation(h,e,t,p,i),r&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${a}:${s}`),(r||n)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${s}`:s,n?h:void 0):this.options.parseMissingKeyHandler(h))}return n?(p.res=h,p.usedParams=this.getUsedParamsDetails(t),p):h}extendTranslation(e,t,i,n,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){let r;i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let a="string"==typeof e&&(i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let l=i.replace&&"string"!=typeof i.replace?i.replace:i;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,i.lng||this.language,i),a){let t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(i.nest=!1)}!i.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(i.lng=n.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let a=this.extractFromKey(e,r),l=a.key;i=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let p=void 0!==r.count&&"string"!=typeof r.count,h=p&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),g=void 0!==r.context&&("string"==typeof r.context||"number"==typeof r.context)&&""!==r.context,c=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach(e=>{!this.isValidLookup(t)&&(s=e,!k[`${c[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(k[`${c[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${c.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),c.forEach(i=>{let s;if(this.isValidLookup(t))return;o=i;let a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,i,e,r);else{let e;p&&(e=this.pluralResolver.getSuffix(i,r.count,r));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(a.push(l+e),r.ordinal&&0===e.indexOf(n)&&a.push(l+e.replace(n,this.options.pluralSeparator)),h&&a.push(l+t)),g){let i=`${l}${this.options.contextSeparator}${r.context}`;a.push(i),p&&(a.push(i+e),r.ordinal&&0===e.indexOf(n)&&a.push(i+e.replace(n,this.options.pluralSeparator)),h&&a.push(i+t))}}for(;s=a.pop();)!this.isValidLookup(t)&&(n=s,t=this.getResource(i,e,s,r))}))})}),{res:t,usedKey:i,exactUsedKey:n,usedLng:o,usedNS:s}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,n):this.resourceStore.getResource(e,t,i,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&"string"!=typeof e.replace,i=t?e.replace:e;if(t&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t)for(let e of(i={...i},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete i[e];return i}static hasDefaultValue(e){let t="defaultValue";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}class O{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=s.create("languageUtils")}getScriptPartFromCode(e){if(!(e=y(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=y(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],i=e.split("-");return this.options.lowerCaseLng?i=i.map(e=>e.toLowerCase()):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=L(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=L(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=L(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let i=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>{if(e===i||!(0>e.indexOf("-")&&0>i.indexOf("-"))&&(e.indexOf("-")>0&&0>i.indexOf("-")&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1))return e})}),!t&&(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let i=e[t];return!i&&(i=e[this.getScriptPartFromCode(t)]),!i&&(i=e[this.formatLanguageCode(t)]),!i&&(i=e[this.getLanguagePartFromCode(t)]),!i&&(i=e.default),i||[]}toResolveHierarchy(e,t){let i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach(e=>{0>n.indexOf(e)&&o(this.formatLanguageCode(e))}),n}}let R=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},C=["v1","v2","v3"],P=["v4"],$={zero:0,one:1,two:2,few:3,many:4,other:5};class I{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=s.create("pluralResolver"),(!this.options.compatibilityJSON||P.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return R.forEach(t=>{t.lngs.forEach(i=>{e[i]={numbers:t.nr,plurals:N[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(y("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,i).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((e,t)=>$[e]-$[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):i.numbers.map(i=>this.getSuffix(e,i,t)):[]}getSuffix(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,i);if(n)return this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t);return this.logger.warn(`no plural rule found for: ${e}`),""}getSuffixRetroCompatible(e,t){let i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();if("v1"===this.options.compatibilityJSON)return 1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o();if("v2"===this.options.compatibilityJSON)return o();if(this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0])return o();return this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!C.includes(this.options.compatibilityJSON)}}function j(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],s=function(e,t,i){let n=g(e,i);return void 0!==n?n:g(t,i)}(e,t,i);return!s&&o&&"string"==typeof i&&void 0===(s=x(e,i,n))&&(s=x(t,i,n)),s}class F{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=s.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!e.interpolation&&(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:f,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?c(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?c(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?c(t.nestingPrefix):t.nestingPrefixEscaped||c("$t("),this.nestingSuffix=t.nestingSuffix?c(t.nestingSuffix):t.nestingSuffixEscaped||c(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,i,n){let o,s,r;let a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}let p=e=>{if(0>e.indexOf(this.formatSeparator)){let o=j(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,i,{...n,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),s=o.shift().trim(),r=o.join(this.formatSeparator).trim();return this.format(j(t,a,s,this.options.keySeparator,this.options.ignoreJSONStructure),r,i,{...n,...t,interpolationkey:s})};this.resetRegExp();let h=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,g=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach(t=>{for(r=0;o=t.regex.exec(e);){let i=o[1].trim();if(void 0===(s=p(i))){if("function"==typeof h){let t=h(e,o,n);s="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,i))s="";else if(g){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),s=""}else"string"!=typeof s&&!this.useRawValueToEscape&&(s=l(s));let a=t.safeValue(s);if(e=e.replace(o[0],a),g?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++r>=this.maxReplaces)break}}),e}nest(e,t){let i,n,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function r(e,t){let i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;let n=e.split(RegExp(`${i}[ ]*{`)),s=`{${n[1]}`;e=n[0];let r=(s=this.interpolate(s,o)).match(/'/g),a=s.match(/"/g);(r&&r.length%2==0&&!a||a.length%2!=0)&&(s=s.replace(/'/g,'"'));try{o=JSON.parse(s),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${s}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e}for(;i=this.nestingRegexp.exec(e);){let a=[];(o=(o={...s}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(-1!==i[0].indexOf(this.formatSeparator)&&!/{.*}/.test(i[1])){let e=i[1].split(this.formatSeparator).map(e=>e.trim());i[1]=e.shift(),a=e,u=!0}if((n=t(r.call(this,i[1].trim(),o),o))&&i[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=l(n)),!n&&(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),n=""),u&&(n=a.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:i[1].trim()}),n.trim())),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}function E(e){let t={};return function(i,n,o){let s=n+JSON.stringify(o),r=t[s];return!r&&(r=e(y(n),o),t[s]=r),r(i)}}class D{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=s.create("formatter"),this.options=e,this.formats={number:E((e,t)=>{let i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)}),currency:E((e,t)=>{let i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)}),datetime:E((e,t)=>{let i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)}),relativetime:E((e,t)=>{let i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")}),list:E((e,t)=>{let i=new Intl.ListFormat(e,{...t});return e=>i.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},i=t.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=E(t)}format(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{let{formatName:o,formatOptions:s}=function(e){let t=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let o=n[1].substring(0,n[1].length-1);"currency"===t&&0>o.indexOf(":")?!i.currency&&(i.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?!i.range&&(i.range=o.trim()):o.split(";").forEach(e=>{if(!e)return;let[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,"");!i[t.trim()]&&(i[t.trim()]=o),"false"===o&&(i[t.trim()]=!1),"true"===o&&(i[t.trim()]=!0),!isNaN(o)&&(i[t.trim()]=parseInt(o,10))})}return{formatName:t,formatOptions:i}}(t);if(this.formats[o]){let t=e;try{let r=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=r.locale||r.lng||n.locale||n.lng||i;t=this.formats[o](e,a,{...s,...n,...r})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class A extends r{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=s.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,n.backend,n)}queueLoad(e,t,i,n){let o={},s={},r={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let r=`${e}|${t}`;!i.reload&&this.store.hasResourceBundle(e,t)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===s[r]&&(s[r]=!0):(this.state[r]=1,n=!1,void 0===s[r]&&(s[r]=!0),void 0===o[r]&&(o[r]=!0),void 0===a[t]&&(a[t]=!0)))}),!n&&(r[e]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(e,t,i){let n=e.split("|"),o=n[0],s=n[1];t&&this.emit("failedLoading",o,s,t),i&&this.store.addResourceBundle(o,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;let r={};this.queue.forEach(i=>{var n,a;!function(e,t,i,n){let{obj:o,k:s}=p(e,t,Object);o[s]=o[s]||[],!n&&o[s].push(i)}(i.loaded,[o],s),n=i,a=e,void 0!==n.pending[a]&&(delete n.pending[a],n.pendingCount--),t&&i.errors.push(t),0===i.pendingCount&&!i.done&&(Object.keys(i.loaded).forEach(e=>{!r[e]&&(r[e]={});let t=i.loaded[e];t.length&&t.forEach(t=>{void 0===r[e][t]&&(r[e][t]=!0)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}),this.emit("loaded",r),this.queue=this.queue.filter(e=>!e.done)}read(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:n,wait:o,callback:s});return}this.readingCalls++;let r=(r,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(r&&a&&n{this.read.call(this,e,t,i,n+1,2*o,s)},o);return}s(r,a)},a=this.backend[i].bind(this.backend);if(2===a.length){try{let i=a(e,t);i&&"function"==typeof i.then?i.then(e=>r(null,e)).catch(r):r(null,i)}catch(e){r(e)}return}return a(e,t,r)}prepareLoading(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,i,n);if(!o.toLoad.length)return!o.pending.length&&n(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),n=i[0],o=i[1];this.read(n,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,i),!i&&s&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,s),this.loaded(e,i,s)})}saveMissing(e,t,i,n,o){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=i&&""!==i){if(this.backend&&this.backend.create){let a={...s,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;(o=5===l.length?l(e,t,i,n,a):l(e,t,i,n))&&"function"==typeof o.then?o.then(e=>r(null,e)).catch(r):r(null,o)}catch(e){r(e)}else l(e,t,i,n,r,a)}e&&e[0]&&this.store.addResource(e[0],t,i,n)}}}function T(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let i=e[3]||e[2];Object.keys(i).forEach(e=>{t[e]=i[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function z(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function _(){}class M extends r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=z(e),this.services={},this.logger=s,this.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(i=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=T();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...n,...this.options,...z(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?s.init(o(this.modules.logger),this.options):s.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=D);let i=new O(this.options);this.store=new b(this.options.resources,this.options);let r=this.services;r.logger=s,r.resourceStore=this.store,r.languageUtils=i,r.pluralResolver=new I(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(r.formatter=o(t),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new F(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new A(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),o=1;o1?i-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,!i&&(i=_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let r=a(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,!this.options.isClone&&this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(t),i(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),r}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,i=t,n="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return i();let e=[],t=t=>{if(!!t&&"cimode"!==t)this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(e)})}else i(null)}reloadResources(e,t,i){let n=a();return!e&&(e=this.languages),!t&&(t=this.options.ns),!i&&(i=_),this.services.backendConnector.reload(e,t,e=>{n.resolve(),i(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&w.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!!e&&!!this.languages){if(!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;let n=a();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,s)=>{s?(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,n.resolve(function(){return i.t(...arguments)}),t&&t(e,function(){return i.t(...arguments)})},r=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let i="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);i&&(!this.language&&o(i),!this.translator.language&&this.translator.changeLanguage(i),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(i)),this.loadResources(i,e=>{s(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),n}getFixedT(e,t,i){var n=this;let o=function(e,t){let s,r;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u`${s.keyPrefix}${p}${e}`):s.keyPrefix?`${s.keyPrefix}${p}${e}`:e,n.t(r,s)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;let s=(e,t)=>{let i=this.services.backendConnector.state[`${e}|${t}`];return -1===i||2===i};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!n||s(o,e)))||!1}loadNamespaces(e,t){let i=a();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=a();"string"==typeof e&&(e=[e]);let n=this.options.preload||[],o=e.filter(e=>0>n.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=n.concat(o),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}dir(e){return(!e&&(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new O(T())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new M(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,i=e.forkResourceStore;i&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},o=new M(n);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new b(this.store.data,n),o.services.resourceStore=o.store),o.translator=new S(o.services,n),o.translator.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n{document.title=e("phrase.referenceFinder")},[t.language]),(0,n.jsx)("select",{className:"form-select flag d-inline-block",style:{width:"max-content"},"aria-label":"Language",value:t.language,onChange:e=>t.changeLanguage(e.currentTarget.value),children:s._.map(t=>(0,n.jsxs)("option",{value:t,children:[e("flag",{lng:t})," ",e("name",{lng:t})]},t))})}},4807:function(e,t,i){"use strict";i.d(t,{_:function(){return h}});var n=i("8061"),o=i("8920"),s=i("4705"),r=i("3259"),a=i("1485"),l=i("2467"),u=i("9640");let p={en:{translation:r},es:{translation:a},jp:{translation:i("6677")},pt:{translation:l},ru:{translation:u},"zh-CN":{translation:i("5534")},"zh-TW":{translation:i("5824")}},c=["zh-CN","zh-CHS","zh-Hans","zh-HK","zh-MO"];(["Asia/Shanghai","Asia/Urumqi"].includes(new Intl.DateTimeFormat().resolvedOptions().timeZone)||c.includes(navigator.language)||navigator.languages.some(e=>c.includes(e)))&&(p["zh-TW"].translation.name="\u7E41\u9AD4\u4E2D\u6587",p["zh-TW"].translation.flag="\uD83C\uDDED\uD83C\uDDF0");let h=Object.keys(p);n.ZP.use(o.Z).use(s.Db).init({resources:p,fallbackLng:"en",supportedLngs:h,detection:{order:["querystring","localStorage","navigator"],caches:["localStorage"]}})},8920:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i("99"),o=i("6670"),s=[],r=s.forEach,a=s.slice,l=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,u=function(e,t,i){var n=i||{};n.path=n.path||"/";var o=encodeURIComponent(t),s="".concat(e,"=").concat(o);if(n.maxAge>0){var r=n.maxAge-0;if(Number.isNaN(r))throw Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(r))}if(n.domain){if(!l.test(n.domain))throw TypeError("option domain is invalid");s+="; Domain=".concat(n.domain)}if(n.path){if(!l.test(n.path))throw TypeError("option path is invalid");s+="; Path=".concat(n.path)}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw TypeError("option expires is invalid");s+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"none":s+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return s},p={create:function(e,t,i,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};i&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+6e4*i)),n&&(o.domain=n),document.cookie=u(e,encodeURIComponent(t),o)},read:function(e){for(var t="".concat(e,"="),i=document.cookie.split(";"),n=0;n-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=i.substring(1).split("&"),o=0;o0&&n[o].substring(0,s)===e.lookupQuerystring&&(t=n[o].substring(s+1))}}return t}},g=null,d=function(){if(null!==g)return g;try{g="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){g=!1}return g},f={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&d()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&d()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},m=null,v=function(){if(null!==m)return m;try{m="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){m=!1}return m},y={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&v()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&v()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},x={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var i=0;i0?t:void 0}},b={name:"htmlTag",lookup:function(e){var t,i=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return i&&"function"==typeof i.getAttribute&&(t=i.getAttribute("lang")),t}},w={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array){if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof i[e.lookupFromPathIndex])return;t=i[e.lookupFromPathIndex].replace("/","")}else t=i[0].replace("/","")}}return t}},k={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,i="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[t]}},S=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.Z)(this,e),this.type="languageDetector",this.detectors={},this.init(t,i)}return(0,o.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return r.call(a.call(arguments,1),function(t){if(t)for(var i in t)void 0===e[i]&&(e[i]=t[i])}),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(c),this.addDetector(h),this.addDetector(f),this.addDetector(y),this.addDetector(x),this.addDetector(b),this.addDetector(w),this.addDetector(k)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var t=this;!e&&(e=this.options.order);var i=[];return(e.forEach(function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(i=i.concat(n))}}),i=i.map(function(e){return t.options.convertDetectedLanguage(e)}),this.services.languageUtils.getBestMatchFromCodes)?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var i=this;if(!t&&(t=this.options.caches),!!t)!(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1)&&t.forEach(function(t){i.detectors[t]&&i.detectors[t].cacheUserLanguage(e,i.options)})}}]),e}();S.type="languageDetector"},8061:function(e,t,i){"use strict";i.d(t,{ZP:function(){return V}});let n={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||n,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),i=0;i{!this.observers[e]&&(this.observers[e]=new Map);let i=this.observers[e].get(t)||0;this.observers[e].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n{let[t,n]=e;for(let e=0;e{let[n,o]=t;for(let t=0;t{e=i,t=n});return i.resolve=e,i.reject=t,i}function l(e){return null==e?"":""+e}let u=/###/g;function p(e,t,i){function n(e){return e&&e.indexOf("###")>-1?e.replace(u,"."):e}function o(){return!e||"string"==typeof e}let s="string"!=typeof t?t:t.split("."),r=0;for(;r":">",'"':""","'":"'","/":"/"};function f(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>d[e]):e}let m=[" ",",","?","!",";"],v=new class e{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}(20);function y(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(i),o=e;for(let e=0;e-1&&r0?e.replace("_","-"):e}class b extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,r=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],i&&(Array.isArray(i)?n.push(...i):"string"==typeof i&&s?n.push(...i.split(s)):n.push(i)));let a=h(this.data,n);return(!a&&!t&&!i&&e.indexOf(".")>-1&&(e=n[0],t=n[1],i=n.slice(2).join(".")),a||!r||"string"!=typeof i)?a:y(this.data&&this.data[e]&&this.data[e][t],i,s)}addResource(e,t,i,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,r=[e,t];i&&(r=r.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(r=e.split("."),n=t,t=r[1]),this.addNamespaces(t),c(this.data,r,n),!o.silent&&this.emit("added",e,t,i,n)}addResources(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in i)("string"==typeof i[n]||"[object Array]"===Object.prototype.toString.apply(i[n]))&&this.addResource(e,t,n,i[n],{silent:!0});!n.silent&&this.emit("added",e,t,i)}addResourceBundle(e,t,i,n,o){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},r=[e,t];e.indexOf(".")>-1&&(r=e.split("."),n=i,i=t,t=r[1]),this.addNamespaces(t);let a=h(this.data,r)||{};!s.skipCopy&&(i=JSON.parse(JSON.stringify(i))),n?!function e(t,i,n){for(let o in i)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof i[o]||i[o]instanceof String?n&&(t[o]=i[o]):e(t[o],i[o],n):t[o]=i[o]);return t}(a,i,o):a={...a,...i},c(this.data,r,a),!s.silent&&this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(!t&&(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var w={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,n,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,i,n,o))}),t}};let k={};class S extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),!function(e,t,i){e.forEach(e=>{t[e]&&(i[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=s.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let i=this.resolve(e,t);return i&&void 0!==i.res}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],s=i&&e.indexOf(i)>-1,r=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,i){t=t||"",i=i||"";let n=m.filter(e=>0>t.indexOf(e)&&0>i.indexOf(e));if(0===n.length)return!0;let o=v.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),s=!o.test(e);if(!s){let t=e.indexOf(i);t>0&&!o.test(e.substring(0,t))&&(s=!0)}return s}(e,i,n);if(s&&!r){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let s=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,i){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),!t&&(t={}),null==e)return"";!Array.isArray(e)&&(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:s,namespaces:r}=this.extractFromKey(e[e.length-1],t),a=r[r.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${s}`}return n?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:s}let p=this.resolve(e,t),c=p&&p.res,h=p&&p.usedKey||s,g=p&&p.exactUsedKey||s,d=Object.prototype.toString.apply(c),f=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof c&&"boolean"!=typeof c&&"number"!=typeof c;if(m&&c&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(d)&&!("string"==typeof f&&"[object Array]"===d)){if(!t.returnObjects&&!this.options.returnObjects){!this.options.returnedObjectHandler&&this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,c,{...t,ns:r}):`key '${s} (${this.language})' returned an object instead of string.`;return n?(p.res=e,p.usedParams=this.getUsedParamsDetails(t),p):e}if(o){let e="[object Array]"===d,i=e?[]:{},n=e?g:h;for(let e in c)if(Object.prototype.hasOwnProperty.call(c,e)){let s=`${n}${o}${e}`;i[e]=this.translate(s,{...t,joinArrays:!1,ns:r}),i[e]===s&&(i[e]=c[e])}c=i}}else if(m&&"string"==typeof f&&"[object Array]"===d)(c=c.join(f))&&(c=this.extendTranslation(c,e,t,i));else{let n=!1,r=!1,u=void 0!==t.count&&"string"!=typeof t.count,h=S.hasDefaultValue(t),g=u?this.pluralResolver.getSuffix(l,t.count,t):"",d=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",f=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=f&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${g}`]||t[`defaultValue${d}`]||t.defaultValue;!this.isValidLookup(c)&&h&&(n=!0,c=m),!this.isValidLookup(c)&&(r=!0,c=s);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:c,y=h&&m!==c&&this.options.updateMissing;if(r||n||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,s,y?m:c),o){let e=this.resolve(s,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let t=0;t{let o=h&&n!==c?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,i,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,i,o,y,t),this.emit("missingKey",e,a,i,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let i=this.pluralResolver.getSuffixes(e,t);f&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>i.indexOf(`${this.options.pluralSeparator}zero`)&&i.push(`${this.options.pluralSeparator}zero`),i.forEach(i=>{n([e],s+i,t[`defaultValue${i}`]||m)})}):n(e,s,m))}c=this.extendTranslation(c,e,t,p,i),r&&c===s&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${s}`),(r||n)&&this.options.parseMissingKeyHandler&&(c="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${s}`:s,n?c:void 0):this.options.parseMissingKeyHandler(c))}return n?(p.res=c,p.usedParams=this.getUsedParamsDetails(t),p):c}extendTranslation(e,t,i,n,o){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){let r;i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let a="string"==typeof e&&(i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let l=i.replace&&"string"!=typeof i.replace?i.replace:i;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,i.lng||this.language,i),a){let t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(i.nest=!1)}!i.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(i.lng=n.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let a=this.extractFromKey(e,r),l=a.key;i=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let p=void 0!==r.count&&"string"!=typeof r.count,c=p&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==r.context&&("string"==typeof r.context||"number"==typeof r.context)&&""!==r.context,g=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach(e=>{!this.isValidLookup(t)&&(s=e,!k[`${g[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(k[`${g[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(i=>{let s;if(this.isValidLookup(t))return;o=i;let a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,i,e,r);else{let e;p&&(e=this.pluralResolver.getSuffix(i,r.count,r));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(a.push(l+e),r.ordinal&&0===e.indexOf(n)&&a.push(l+e.replace(n,this.options.pluralSeparator)),c&&a.push(l+t)),h){let i=`${l}${this.options.contextSeparator}${r.context}`;a.push(i),p&&(a.push(i+e),r.ordinal&&0===e.indexOf(n)&&a.push(i+e.replace(n,this.options.pluralSeparator)),c&&a.push(i+t))}}for(;s=a.pop();)!this.isValidLookup(t)&&(n=s,t=this.getResource(i,e,s,r))}))})}),{res:t,usedKey:i,exactUsedKey:n,usedLng:o,usedNS:s}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,n):this.resourceStore.getResource(e,t,i,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&"string"!=typeof e.replace,i=t?e.replace:e;if(t&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t)for(let e of(i={...i},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete i[e];return i}static hasDefaultValue(e){let t="defaultValue";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}class O{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=s.create("languageUtils")}getScriptPartFromCode(e){if(!(e=x(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=x(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],i=e.split("-");return this.options.lowerCaseLng?i=i.map(e=>e.toLowerCase()):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=L(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=L(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=L(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let i=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>{if(e===i||!(0>e.indexOf("-")&&0>i.indexOf("-"))&&(e.indexOf("-")>0&&0>i.indexOf("-")&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1))return e})}),!t&&(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let i=e[t];return!i&&(i=e[this.getScriptPartFromCode(t)]),!i&&(i=e[this.formatLanguageCode(t)]),!i&&(i=e[this.getLanguagePartFromCode(t)]),!i&&(i=e.default),i||[]}toResolveHierarchy(e,t){let i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach(e=>{0>n.indexOf(e)&&o(this.formatLanguageCode(e))}),n}}let N=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],C={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},R=["v1","v2","v3"],P=["v4"],$={zero:0,one:1,two:2,few:3,many:4,other:5};class I{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=s.create("pluralResolver"),(!this.options.compatibilityJSON||P.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return N.forEach(t=>{t.lngs.forEach(i=>{e[i]={numbers:t.nr,plurals:C[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(x("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,i).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((e,t)=>$[e]-$[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):i.numbers.map(i=>this.getSuffix(e,i,t)):[]}getSuffix(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,i);if(n)return this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t);return this.logger.warn(`no plural rule found for: ${e}`),""}getSuffixRetroCompatible(e,t){let i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();if("v1"===this.options.compatibilityJSON)return 1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o();if("v2"===this.options.compatibilityJSON)return o();if(this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0])return o();return this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!R.includes(this.options.compatibilityJSON)}}function E(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],s=function(e,t,i){let n=h(e,i);return void 0!==n?n:h(t,i)}(e,t,i);return!s&&o&&"string"==typeof i&&void 0===(s=y(e,i,n))&&(s=y(t,i,n)),s}class F{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=s.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!e.interpolation&&(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:f,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?g(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?g(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?g(t.nestingPrefix):t.nestingPrefixEscaped||g("$t("),this.nestingSuffix=t.nestingSuffix?g(t.nestingSuffix):t.nestingSuffixEscaped||g(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,i,n){let o,s,r;let a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}let p=e=>{if(0>e.indexOf(this.formatSeparator)){let o=E(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,i,{...n,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),s=o.shift().trim(),r=o.join(this.formatSeparator).trim();return this.format(E(t,a,s,this.options.keySeparator,this.options.ignoreJSONStructure),r,i,{...n,...t,interpolationkey:s})};this.resetRegExp();let c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,h=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach(t=>{for(r=0;o=t.regex.exec(e);){let i=o[1].trim();if(void 0===(s=p(i))){if("function"==typeof c){let t=c(e,o,n);s="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,i))s="";else if(h){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),s=""}else"string"!=typeof s&&!this.useRawValueToEscape&&(s=l(s));let a=t.safeValue(s);if(e=e.replace(o[0],a),h?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++r>=this.maxReplaces)break}}),e}nest(e,t){let i,n,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function r(e,t){let i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;let n=e.split(RegExp(`${i}[ ]*{`)),s=`{${n[1]}`;e=n[0];let r=(s=this.interpolate(s,o)).match(/'/g),a=s.match(/"/g);(r&&r.length%2==0&&!a||a.length%2!=0)&&(s=s.replace(/'/g,'"'));try{o=JSON.parse(s),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${s}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e}for(;i=this.nestingRegexp.exec(e);){let a=[];(o=(o={...s}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(-1!==i[0].indexOf(this.formatSeparator)&&!/{.*}/.test(i[1])){let e=i[1].split(this.formatSeparator).map(e=>e.trim());i[1]=e.shift(),a=e,u=!0}if((n=t(r.call(this,i[1].trim(),o),o))&&i[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=l(n)),!n&&(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),n=""),u&&(n=a.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:i[1].trim()}),n.trim())),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}function j(e){let t={};return function(i,n,o){let s=n+JSON.stringify(o),r=t[s];return!r&&(r=e(x(n),o),t[s]=r),r(i)}}class D{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=s.create("formatter"),this.options=e,this.formats={number:j((e,t)=>{let i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)}),currency:j((e,t)=>{let i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)}),datetime:j((e,t)=>{let i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)}),relativetime:j((e,t)=>{let i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")}),list:j((e,t)=>{let i=new Intl.ListFormat(e,{...t});return e=>i.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},i=t.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=j(t)}format(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{let{formatName:o,formatOptions:s}=function(e){let t=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let o=n[1].substring(0,n[1].length-1);"currency"===t&&0>o.indexOf(":")?!i.currency&&(i.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?!i.range&&(i.range=o.trim()):o.split(";").forEach(e=>{if(!e)return;let[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,"");!i[t.trim()]&&(i[t.trim()]=o),"false"===o&&(i[t.trim()]=!1),"true"===o&&(i[t.trim()]=!0),!isNaN(o)&&(i[t.trim()]=parseInt(o,10))})}return{formatName:t,formatOptions:i}}(t);if(this.formats[o]){let t=e;try{let r=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=r.locale||r.lng||n.locale||n.lng||i;t=this.formats[o](e,a,{...s,...n,...r})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class A extends r{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=s.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,n.backend,n)}queueLoad(e,t,i,n){let o={},s={},r={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let r=`${e}|${t}`;!i.reload&&this.store.hasResourceBundle(e,t)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===s[r]&&(s[r]=!0):(this.state[r]=1,n=!1,void 0===s[r]&&(s[r]=!0),void 0===o[r]&&(o[r]=!0),void 0===a[t]&&(a[t]=!0)))}),!n&&(r[e]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(e,t,i){let n=e.split("|"),o=n[0],s=n[1];t&&this.emit("failedLoading",o,s,t),i&&this.store.addResourceBundle(o,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;let r={};this.queue.forEach(i=>{var n,a;!function(e,t,i,n){let{obj:o,k:s}=p(e,t,Object);o[s]=o[s]||[],!n&&o[s].push(i)}(i.loaded,[o],s),n=i,a=e,void 0!==n.pending[a]&&(delete n.pending[a],n.pendingCount--),t&&i.errors.push(t),0===i.pendingCount&&!i.done&&(Object.keys(i.loaded).forEach(e=>{!r[e]&&(r[e]={});let t=i.loaded[e];t.length&&t.forEach(t=>{void 0===r[e][t]&&(r[e][t]=!0)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}),this.emit("loaded",r),this.queue=this.queue.filter(e=>!e.done)}read(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:n,wait:o,callback:s});return}this.readingCalls++;let r=(r,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(r&&a&&n{this.read.call(this,e,t,i,n+1,2*o,s)},o);return}s(r,a)},a=this.backend[i].bind(this.backend);if(2===a.length){try{let i=a(e,t);i&&"function"==typeof i.then?i.then(e=>r(null,e)).catch(r):r(null,i)}catch(e){r(e)}return}return a(e,t,r)}prepareLoading(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,i,n);if(!o.toLoad.length)return!o.pending.length&&n(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),n=i[0],o=i[1];this.read(n,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,i),!i&&s&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,s),this.loaded(e,i,s)})}saveMissing(e,t,i,n,o){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=i&&""!==i){if(this.backend&&this.backend.create){let a={...s,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;(o=5===l.length?l(e,t,i,n,a):l(e,t,i,n))&&"function"==typeof o.then?o.then(e=>r(null,e)).catch(r):r(null,o)}catch(e){r(e)}else l(e,t,i,n,r,a)}e&&e[0]&&this.store.addResource(e[0],t,i,n)}}}function T(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let i=e[3]||e[2];Object.keys(i).forEach(e=>{t[e]=i[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function z(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function _(){}class M extends r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=z(e),this.services={},this.logger=s,this.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(i=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=T();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...n,...this.options,...z(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?s.init(o(this.modules.logger),this.options):s.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=D);let i=new O(this.options);this.store=new b(this.options.resources,this.options);let r=this.services;r.logger=s,r.resourceStore=this.store,r.languageUtils=i,r.pluralResolver=new I(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(r.formatter=o(t),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new F(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new A(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),o=1;o1?i-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,!i&&(i=_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let r=a(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,!this.options.isClone&&this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(t),i(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),r}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,i=t,n="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return i();let e=[],t=t=>{if(!!t&&"cimode"!==t)this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(e)})}else i(null)}reloadResources(e,t,i){let n=a();return!e&&(e=this.languages),!t&&(t=this.options.ns),!i&&(i=_),this.services.backendConnector.reload(e,t,e=>{n.resolve(),i(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&w.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!!e&&!!this.languages){if(!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;let n=a();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,s)=>{s?(o(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,n.resolve(function(){return i.t(...arguments)}),t&&t(e,function(){return i.t(...arguments)})},r=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let i="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);i&&(!this.language&&o(i),!this.translator.language&&this.translator.changeLanguage(i),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(i)),this.loadResources(i,e=>{s(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),n}getFixedT(e,t,i){var n=this;let o=function(e,t){let s,r;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u`${s.keyPrefix}${p}${e}`):s.keyPrefix?`${s.keyPrefix}${p}${e}`:e,n.t(r,s)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;let s=(e,t)=>{let i=this.services.backendConnector.state[`${e}|${t}`];return -1===i||2===i};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!n||s(o,e)))||!1}loadNamespaces(e,t){let i=a();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=a();"string"==typeof e&&(e=[e]);let n=this.options.preload||[],o=e.filter(e=>0>n.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=n.concat(o),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}dir(e){return(!e&&(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new O(T())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new M(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,i=e.forkResourceStore;i&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},o=new M(n);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new b(this.store.data,n),o.services.resourceStore=o.store),o.translator=new S(o.services,n),o.translator.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n{!this.usedNamespaces[e]&&(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}},7702:function(e,t,i){"use strict";i.d(t,{J:function(){return s},j:function(){return o}});let n={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:i("5140").A};function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n={...n,...e}}function s(){return n}},1834:function(e,t,i){"use strict";let n;function o(e){n=e}function s(){return n}i.d(t,{I:function(){return o},n:function(){return s}})},4705:function(e,t,i){"use strict";i.d(t,{$G:function(){return n.$},Db:function(){return o.D}}),i("9786"),i("1719");var n=i("19");i("4494"),i("5398"),i("4648"),i("7201"),i("1097");var o=i("5157");i("4335")},5157:function(e,t,i){"use strict";i.d(t,{D:function(){return s}});var n=i("7702"),o=i("1834");let s={type:"3rdParty",init(e){(0,n.j)(e.options.react),(0,o.I)(e)}}},5140:function(e,t,i){"use strict";i.d(t,{A:function(){return r}});let n=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,o={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},s=e=>o[e],r=e=>e.replace(n,s)},1097:function(e,t,i){"use strict";i("5271"),i("4335")},19:function(e,t,i){"use strict";i.d(t,{$:function(){return l}});var n=i("5271"),o=i("4335"),s=i("3055");let r=(e,t)=>{let i=(0,n.useRef)();return(0,n.useEffect)(()=>{i.current=t?i.current:e},[e,t]),i.current};function a(e,t,i,n){return e.getFixedT(t,i,n)}function l(e){var t,i,l,u;let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:c}=p,{i18n:h,defaultNS:g}=(0,n.useContext)(o.OO)||{},d=c||h||(0,o.nI)();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new o.zv),!d){(0,s.O4)("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}d.options.react&&void 0!==d.options.react.wait&&(0,s.O4)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let f={...(0,o.JP)(),...d.options.react,...p},{useSuspense:m,keyPrefix:v}=f,y=e||g||d.options&&d.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(y);let x=(d.isInitialized||d.initializedStoreOnce)&&y.every(e=>(0,s.F0)(e,d,f));let b=(t=d,i=p.lng||null,l="fallback"===f.nsMode?y:y[0],u=v,(0,n.useCallback)(a(t,i,l,u),[t,i,l,u])),w=()=>b,k=()=>a(d,p.lng||null,"fallback"===f.nsMode?y:y[0],v),[S,L]=(0,n.useState)(w),O=y.join();p.lng&&(O=`${p.lng}${O}`);let N=r(O),C=(0,n.useRef)(!0);(0,n.useEffect)(()=>{let{bindI18n:e,bindI18nStore:t}=f;function i(){C.current&&L(k)}return C.current=!0,!x&&!m&&(p.lng?(0,s.Nl)(d,p.lng,y,()=>{C.current&&L(k)}):(0,s.DC)(d,y,()=>{C.current&&L(k)})),x&&N&&N!==O&&C.current&&L(k),e&&d&&d.on(e,i),t&&d&&d.store.on(t,i),()=>{C.current=!1,e&&d&&e.split(" ").forEach(e=>d.off(e,i)),t&&d&&t.split(" ").forEach(e=>d.store.off(e,i))}},[d,O]),(0,n.useEffect)(()=>{C.current&&x&&L(w)},[d,v,x]);let R=[S,d,x];if(R.t=S,R.i18n=d,R.ready=x,x||!x&&!m)return R;throw new Promise(e=>{p.lng?(0,s.Nl)(d,p.lng,y,()=>e()):(0,s.DC)(d,y,()=>e())})}},3055:function(e,t,i){"use strict";i.d(t,{DC:function(){return r},F0:function(){return l},Nl:function(){return a},O4:function(){return o}});let n={};function o(){for(var e=arguments.length,t=Array(e),i=0;i()=>{if(e.isInitialized)t();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),t()};e.on("initialized",i)}};function r(e,t,i){e.loadNamespaces(t,s(e,i))}function a(e,t,i,n){"string"==typeof i&&(i=[i]),i.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,s(e,n))}function l(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:i.lng,precheck:(t,n)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,s=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;let r=(e,i)=>{let n=t.services.backendConnector.state[`${e}|${i}`];return -1===n||2===n};return(!(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!r(t.isLanguageChangingTo,e))&&(!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||r(n,e)&&(!o||r(s,e)))||!1)}(e,t,i):(o("i18n.languages were undefined or empty",t.languages),!0)}},7201:function(e,t,i){"use strict";i("5271"),i("1097"),i("4335")},4494:function(e,t,i){"use strict";i("5271"),i("19")},3259:function(e){"use strict";e.exports=JSON.parse('{"name":"English","flag":"\uD83C\uDDFA\uD83C\uDDF8","axiom":["Make crease {{x}} by folding through {{p0}} and {{p1}}.","Make crease {{x}} by bringing {{p0}} to {{p1}}.","Make crease {{x}} by bringing {{l0}} to {{l1}}.","Make crease {{x}} by bringing {{l0}} onto itself, passing through {{p0}}.","Make crease {{x}} by bringing {{p0}} to {{l0}}, passing through {{p1}}.","Make crease {{x}} by bringing {{p0}} to {{l0}} and {{p1}} to {{l1}}.","Make crease {{x}} by bringing {{l1}} onto itself and bringing {{p0}} to {{l0}}."],"axiom_solution":["The solution is made by folding through {{p0}} and {{p1}}.","The solution is made by bringing {{p0}} to {{p1}}.","The solution is made by bringing {{l0}} to {{l1}}.","The solution is made by bringing {{l0}} onto itself, passing through {{p0}}.","The solution is made by bringing {{p0}} to {{l0}}, passing through {{p1}}.","The solution is made by bringing {{p0}} to {{l0}} and {{p1}} to {{l1}}.","The solution is made by bringing {{l1}} onto itself and bringing {{p0}} to {{l0}}."],"intersection":"Point {{x}} is at the intersection of {{l0}} and {{l1}}.","intersection_solution":"The solution is at the intersection of {{l0}} and {{l1}}.","paper":{"ne":"the top right corner","se":"the bottom right corner","sw":"the bottom left corner","nw":"the top left corner","n":"the top edge","e":"the right edge","s":"the bottom edge","w":"the left edge","sw_ne":"the upward diagonal","nw_se":"the downward diagonal"},"settings":{"reset":"Reset to defaults","ok":"OK","cancel":"cancel","reInit":"Requires re-initializing.","basic":{"_":"Basic","width":"Sheet width","height":"Sheet height","axioms":{"_":"Huzita-Hatori axioms","O1":"Crease through two points.","O2":"Two points together.","O3":"Line to another line.","O4":"Line to self, crease through point.","O5":"Point to line, crease through point.","O6":"Two points to two lines.","O7":"Line to self, point to line."}},"advanced":{"_":"Advanced"},"display":{"theme":{"system":"System","light":"Light","dark":"Dark","_":"Theme"},"showAxiom":"Show axiom number in description.","showInit":"Show initialization progress.","precision":"Precision","_":"Display"}},"help":{"maxRank":"This sets the maximum rank for any sequence, which is the number of folds involved in the sequence. ReferenceFinder will calculate all marks and lines up to the maximum rank, subject to the two following limits. As a practical matter, you will rarely need to set this any larger than 6 or 7; rank 6 can include over a million distinct lines.","maxLines":"This sets an absolute upper bound on the number of lines to calculate. Even if you are only searching for points, ReferenceFinder needs to calculate a large number of lines since points are defined by the intersections of existing lines.","maxMarks":"This sets a absolute upper bound on the number of marks to calculate. As a rough estimate, if this setting is N, the average error in any given point is proportional to 1/(2*sqrt(N)). This is not exact, since points tend to cluster along low-rank lines, but as a good rule of thumb, half a million to a million points will give a good error performance.","axioms":"The Huzita-Hatori Axioms group lets you choose which of the 7 axioms to include in the database. The default is to include all 7, but you can exclude one or more. Of course, the more axioms you exclude, the higher the rank you\'ll need to allow to obtain a given level of accuracy.","divisions":"To avoid duplicates, ReferenceFinder keeps the lowest-rank sequence for any given mark or line. To specifically test for equivalence, the paper is divided up into a fine grid, according to the divisions settings. Two marks are considered equivalent if they fall within the same grid square, and only one of them will be kept.","lineDivisions":"Lines are characterized by their angle and distance of closest approach to the origin, and so these two settings are similarly quantized.","goodEnoughError":"When a search is performed, ReferenceFinder finds all marks (or lines) whose distance error (or an analogous quantity for lines) is better than this value. Essentially, this value is the error that you\'re willing to tolerate. Within this error, low-rank marks are considered more desirable (easier to fold) and so they will be displayed before higher-rank marks, even if the latter have lower errors.","minAspectRatio":"As a practical matter, it is very difficult to fold a long, skinny corner so that the resulting crease is straight; it is very easy for the crease to wander. If a given sequence requires the folding of a triangular flap with an aspect ratio smaller than this, it is not accepted into the database. If you don\'t care about this issue, you can set the value to zero.","minAngle":"Similarly, if two creases intersect at a very shallow angle, the location of the point at their intersection is inherently imprecise. This value is the sine of the minimum angle allowed for such intersections. If you don\'t care about this issue, you can set the value to zero.","visibility":"If this is checked, then the only alignments that are allowed are those in which all reference points are visible with opaque paper. (In some alignments, one of the layers can conceal the relevant reference point.) If you are folding with translucent paper, you can uncheck this setting, which will allow a larger number of folding sequences to be considered. ","lineError":"If this is set to \\"worst-case error\\", then the error between two lines is calculated to be the worst-case separation between the two lines within the paper. Otherwise, we use the faster (but less accurate) Pythagorean difference between the parameters that define the line. "},"tip":{"title":"Tip:","origin":"The origin of coordinates is at the lower left corner.","exp":"You can use math expression such as {{exp}} (trigonometry functions uses degrees)."},"phrase":{"settings":"settings","point":"point","line":"line","error":"error","solution":"solution","go":"go","initializing":"Initializing...","findLine":"find a line","findPoint":"find a point","referenceFinder":"ReferenceFinder","coreVer":"Core version"},"invalid":{"exp":"Should be a number at least 0, or an equivalent expression","expMax":"Should be a number from 0 to {{max}}, or an equivalent expression","int":"Should be an integer at least {{min}}","intMax":"Should be an integer from {{min}} to {{max}}"}}')},1485:function(e){"use strict";e.exports=JSON.parse('{"name":"Espa\xf1ol","flag":"\uD83C\uDDEA\uD83C\uDDF8","axiom":["Haga el pliegue {{x}} doblando entre {{p0}} y {{p1}}.","Haga el pliegue {{x}} llevando {{p0}} a {{p1}}.","Haga el pliegue {{x}} llevando {{l0}} a {{l1}}.","Haga el pliegue {{x}} que pasa por {{p0}} llevando {{l0}} sobre ella misma.","Haga que el pliegue {{x}} pase por {{p1}} llevando {{p0}} a {{l0}}.","Haga el pliegue {{x}} llevando {{p0}} a {{l0}} y {{p1}} a {{l1}}.","Haga el pliegue {{x}} que lleva {{p0}} a {{l0}} llevando {{l1}} sobre ella misma."],"axiom_solution":["La soluci\xf3n se logra plegando entre {{p0}} y {{p1}}.","La soluci\xf3n se logra llevando {{p0}} a {{p1}}.","La soluci\xf3n se logra llevando {{l0}} a {{l1}}.","La soluci\xf3n se logra llevando {{l0}} sobre ella misma, pasando por {{p0}}.","La soluci\xf3n se logra llevando {{p0}} a {{l0}}, pasando por {{p1}}.","La soluci\xf3n se logra llevando {{p0}} a {{l0}} y {{p1}} a {{l1}}.","La soluci\xf3n se logra llevando {{l1}} sobre ella misma y llevando {{p0}} a {{l0}}."],"intersection":"{{x}} es la intersecci\xf3n de {{l0}} y {{l1}}.","intersection_solution":"La soluci\xf3n es la intersecci\xf3n de {{l0}} y {{l1}}.","paper":{"ne":"la esquina superior derecha","se":"la esquina inferior derecha","sw":"la esquina inferior izquierda","nw":"la esquina superior izquierda","n":"el borde superior","e":"el borde derecho","s":"el borde inferior","w":"el borde izquierdo","sw_ne":"la diagonal que va hacia arriba","nw_se":"la diagonal que va hacia abajo"},"phrase":{"point":"punto","line":"l\xednea","error":"error","solution":"soluci\xf3n","go":"ir","findLine":"encuentre una l\xednea","findPoint":"encuentre un punto","referenceFinder":"Buscador de Referencias","settings":"ajustes","initializing":"Inicializando...","coreVer":"Versi\xf3n principal"},"settings":{"cancel":"Cancelar","ok":"DE ACUERDO","reset":"Restablecer los valores predeterminados","display":{"showAxiom":"Mostrar el n\xfamero de axioma en la descripci\xf3n.","theme":{"dark":"Oscuro","light":"Luz","system":"Sistema","_":"Tema"},"_":"Mostrar","showInit":"Mostrar el progreso de la inicializaci\xf3n.","precision":"Precisi\xf3n"},"advanced":{"_":"Avanzado"},"basic":{"_":"B\xe1sico","height":"Altura de la hoja","width":"Ancho de hoja"},"reInit":"Requiere reinicializaci\xf3n."},"invalid":{"exp":"Debe ser un n\xfamero al menos 0, o una expresi\xf3n equivalente","expMax":"Debe ser un n\xfamero del 0 al {{max}}, o una expresi\xf3n equivalente","int":"Debe ser un n\xfamero entero al menos {{min}}","intMax":"Debe ser un n\xfamero entero de {{min}} a {{max}}"},"tip":{"title":"Consejo:","exp":"Puedes usar expresiones matem\xe1ticas como {{exp}} (las funciones trigonom\xe9tricas usan grados).","origin":"El origen de coordenadas est\xe1 en la esquina inferior izquierda."}}')},6677:function(e){"use strict";e.exports=JSON.parse('{"name":"\u65E5\u672C\u8A9E","flag":"\uD83C\uDDEF\uD83C\uDDF5","axiom":["{{p0}} \u3068 {{p1}} \u3092\u6298\u308A\u76EE {{x}} \u3067\u7D50\u3073\u307E\u3059\u3002","{{p0}} \u3092 {{p1}} \u306B\u6298\u308A\u307E\u3059\u3002\u6298\u308A\u76EE\u306F {{x}} \u3067\u3059\u3002","{{l0}} \u3092 {{l1}} \u306B\u6298\u308A\u307E\u3059\u3002\u6298\u308A\u76EE\u306F {{x}} \u3067\u3059\u3002","{{l0}} \u3092\u6298\u308A\u3001\u6298\u308A\u76EE\u3092 {{p0}} \u306B\u901A\u3057\u307E\u3059\u3002\u6298\u308A\u76EE\u306F {{x}} \u3067\u3059\u3002","{{p0}} \u3092 {{l0}} \u306B\u6298\u308A\u3001\u6298\u308A\u76EE\u3092 {{p1}} \u306B\u901A\u3057\u307E\u3059\u3002\u6298\u308A\u76EE\u306F {{x}} \u3067\u3059\u3002","{{p0}} \u3092 {{l0}} \u306B\u6298\u308A\u3001\u540C\u6642\u306B {{p1}} \u3092 {{l1}} \u306B\u6298\u308A\u307E\u3059\u3002\u6298\u308A\u76EE\u306F {{x}} \u3067\u3059\u3002","{{l1}} \u3092\u6298\u308A\u3001\u540C\u6642\u306B {{p0}} \u3092 {{l0}} \u306B\u6298\u308A\u307E\u3059\u3002\u6298\u308A\u76EE\u306F {{x}} \u3067\u3059\u3002"],"axiom_solution":["{{p0}} \u3068 {{p1}} \u3092\u6298\u308A\u305F\u305F\u3093\u3067\u89E3\u7B54\u3092\u5F97\u307E\u3059\u3002","{{p0}} \u3092 {{p1}} \u306B\u6298\u308B\u3068\u89E3\u7B54\u304C\u5F97\u3089\u308C\u307E\u3059\u3002","{{l0}} \u3092 {{l1}} \u306B\u6298\u308B\u3068\u89E3\u7B54\u304C\u5F97\u3089\u308C\u307E\u3059\u3002","{{l0}} \u3092\u6298\u308A\u3001\u6298\u308A\u76EE\u3092 {{p0}} \u306B\u901A\u3059\u3068\u89E3\u7B54\u304C\u5F97\u3089\u308C\u307E\u3059\u3002","{{p0}} \u3092 {{l0}} \u306B\u6298\u308A\u3001\u6298\u308A\u76EE\u3092 {{p1}} \u306B\u901A\u3059\u3068\u89E3\u7B54\u304C\u5F97\u3089\u308C\u307E\u3059\u3002","{{p0}} \u3092 {{l0}} \u306B\u6298\u308A\u3001\u540C\u6642\u306B {{p1}} \u3092 {{l1}} \u306B\u6298\u308B\u3068\u89E3\u7B54\u304C\u5F97\u3089\u308C\u307E\u3059\u3002","{{l1}} \u3092\u6298\u308A\u3001\u540C\u6642\u306B {{p0}} \u3092 {{l0}} \u306B\u6298\u308B\u3068\u89E3\u7B54\u304C\u5F97\u3089\u308C\u307E\u3059\u3002"],"intersection":"{{l0}} \u3068 {{l1}} \u306E\u4EA4\u70B9\u306F {{x}} \u3067\u3059\u3002","intersection_solution":"{{l0}} \u3068 {{l1}} \u306E\u4EA4\u70B9\u304C\u89E3\u7B54\u3067\u3059\u3002","paper":{"e":"\u53F3\u7AEF","n":"\u4E0A\u7AEF","ne":"\u53F3\u4E0A\u9685","nw":"\u5DE6\u4E0A\u9685","nw_se":"\u4E0B\u5411\u304D\u5BFE\u89D2\u7DDA","s":"\u4E0B\u7AEF","se":"\u53F3\u4E0B\u9685","sw":"\u5DE6\u4E0B\u9685","sw_ne":"\u4E0A\u5411\u304D\u5BFE\u89D2\u7DDA","w":"\u5DE6\u7AEF"},"phrase":{"error":"\u30A8\u30E9\u30FC","findLine":"\u30E9\u30A4\u30F3\u3092\u898B\u3064\u3051\u308B","findPoint":"\u30DD\u30A4\u30F3\u30C8\u3092\u898B\u3064\u3051\u308B","go":"\u30B9\u30BF\u30FC\u30C8","line":"\u30E9\u30A4\u30F3","point":"\u30DD\u30A4\u30F3\u30C8","referenceFinder":"\u30EC\u30D5\u30A1\u30EC\u30F3\u30B9\u30D5\u30A1\u30A4\u30F3\u30C0\u30FC","settings":"\u8A2D\u5B9A","solution":"\u89E3\u7B54","initializing":"\u521D\u671F\u5316\u4E2D...","coreVer":"\u30B3\u30A2\u30D0\u30FC\u30B8\u30E7\u30F3"},"settings":{"cancel":"\u30AD\u30E3\u30F3\u30BB\u30EB","ok":"OK","reset":"\u30C7\u30D5\u30A9\u30EB\u30C8\u5024\u306B\u30EA\u30BB\u30C3\u30C8","display":{"showAxiom":"\u8AAC\u660E\u306B\u516C\u7406\u756A\u53F7\u3092\u8868\u793A\u3057\u307E\u3059\u3002","theme":{"system":"\u30B7\u30B9\u30C6\u30E0","light":"\u30E9\u30A4\u30C8","dark":"\u30C0\u30FC\u30AF","_":"\u30C6\u30FC\u30DE"},"_":"\u8868\u793A","showInit":"\u521D\u671F\u5316\u306E\u9032\u884C\u72B6\u6CC1\u3092\u8868\u793A\u3057\u307E\u3059\u3002","precision":"\u7CBE\u5EA6"},"advanced":{"_":"\u9AD8\u5EA6"},"basic":{"_":"\u57FA\u672C","height":"\u30B7\u30FC\u30C8\u306E\u9AD8\u3055","width":"\u30B7\u30FC\u30C8\u306E\u5E45"},"reInit":"\u518D\u521D\u671F\u5316\u304C\u5FC5\u8981\u3067\u3059\u3002"},"invalid":{"exp":"\u5C11\u306A\u304F\u3068\u3082 0 \u4EE5\u4E0A\u306E\u6570\u5024\u3001\u307E\u305F\u306F\u7B49\u4FA1\u306A\u5F0F\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059","expMax":"0 \u304B\u3089 {{max}} \u307E\u3067\u306E\u6570\u5024\u3001\u307E\u305F\u306F\u7B49\u4FA1\u306A\u5F0F\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059","int":"{{min}} \u4EE5\u4E0A\u306E\u6574\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059","intMax":"{{min}} \u304B\u3089 {{max}} \u307E\u3067\u306E\u6574\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"},"tip":{"title":"\u30D2\u30F3\u30C8\uFF1A","exp":"{{exp}} \u306A\u3069\u306E\u6570\u5F0F\u3092\u4F7F\u7528\u3067\u304D\u307E\u3059(\u4E09\u89D2\u95A2\u6570\u306F\u5EA6\u3092\u4F7F\u7528\u3057\u307E\u3059)\u3002","origin":"\u5EA7\u6A19\u306E\u539F\u70B9\u306F\u5DE6\u4E0B\u9685\u3067\u3059\u3002"}}')},2467:function(e){"use strict";e.exports=JSON.parse('{"name":"Portugu\xeas","flag":"\uD83C\uDDF5\uD83C\uDDF9","axiom":["Fa\xe7a o vinco {{x}} dobrando atrav\xe9s da {{p0}} e {{p1}}.","Fa\xe7a o vinco {{x}} trazendo {{p0}} para {{p1}}.","Fa\xe7a o vinco {{x}} trazendo {{l0}} para {{l1}}.","Fa\xe7a o vinco {{x}} colocando {{l0}} em si mesmo, passando por {{p0}}.","Fa\xe7a o vinco {{x}} trazendo {{p0}} para {{l0}}, passando por {{p1}}.","Fa\xe7a o vinco {{x}} trazendo {{p0}} para {{l0}} e {{p1}} para {{l1}}.","Fa\xe7a o vinco {{x}} colocando {{l1}} em si mesmo e levando {{p0}} para {{l0}}."],"axiom_solution":["A solu\xe7\u0103o \xe9 feita dobrando atrav\xe9s da {{p0}} e {{p1}}.","A solu\xe7\u0103o \xe9 feita trazendo {{p0}} para {{p1}}.","A solu\xe7\u0103o \xe9 feita trazendo {{l0}} para {{l1}}.","A solu\xe7\u0103o \xe9 feita trazendo {{l0}} para si mesmo, passando por {{p0}}.","A solu\xe7\u0103o \xe9 feita trazendo {{p0}} para {{l0}}, passando por {{p1}}.","A solu\xe7\u0103o \xe9 feita trazendo {{p0}} para {{l0}} e {{p1}} para {{l1}}.","A solu\xe7\u0103o \xe9 feita trazendo {{l1}} para si mesmo e trazendo {{p0}} para {{l0}}."],"intersection":"O ponto {{x}} est\xe1 na interse\xe7\u0103o da {{l0}} e {{l1}}.","intersection_solution":"A solu\xe7\u0103o est\xe1 na interse\xe7\u0103o da {{l0}} e {{l1}}.","paper":{"ne":"o canto superior direito","se":"o canto inferior direito","sw":"o canto inferior esquerdo","nw":"o canto superior esquerdo","n":"aresta superior","e":"aresta direita","s":"aresta inferior","w":"aresta esquerda","sw_ne":"diagonal ascendente","nw_se":"diagonal descendente"},"phrase":{"point":"ponto","line":"linha","error":"erro","solution":"solu\xe7\u0103o","go":"ir","findLine":"encontre uma linha","findPoint":"encontre um ponto","referenceFinder":"Localizador de Refer\xeancia","settings":"configura\xe7\xf5es","initializing":"Inicializando...","coreVer":"Vers\xe3o principal"},"settings":{"cancel":"cancelar","ok":"OK","reset":"Redefinir para os padr\xf5es","display":{"showAxiom":"Mostre o n\xfamero do axioma na descri\xe7\xe3o.","theme":{"dark":"Escuro","light":"Luz","system":"Sistema","_":"Tema"},"_":"Mostrar","showInit":"Mostrar o progresso da inicializa\xe7\xe3o.","precision":"Precis\xe3o"},"advanced":{"_":"Avan\xe7ado"},"basic":{"_":"B\xe1sico","height":"Altura da folha","width":"Largura da folha"},"reInit":"Requer reinicializa\xe7\xe3o."},"invalid":{"exp":"Deve ser um n\xfamero pelo menos 0 ou uma express\xe3o equivalente","expMax":"Deve ser um n\xfamero de 0 a {{max}} ou uma express\xe3o equivalente","int":"Deve ser um n\xfamero inteiro de pelo menos {{min}}","intMax":"Deve ser um n\xfamero inteiro de {{min}} a {{max}}"},"tip":{"title":"Dica:","exp":"Voc\xea pode usar express\xf5es matem\xe1ticas como {{exp}} (fun\xe7\xf5es trigonom\xe9tricas usam graus).","origin":"A origem das coordenadas est\xe1 no canto inferior esquerdo."}}')},9640:function(e){"use strict";e.exports=JSON.parse('{"name":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439","flag":"\uD83C\uDDF7\uD83C\uDDFA","axiom":["\u0421\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u043B\u0430\u0434\u043A\u0443 {{x}} \u0447\u0435\u0440\u0435\u0437 \u0442\u043E\u0447\u043A\u0443 {{p0}} \u0438 \u0442\u043E\u0447\u043A\u0443 {{p1}}.","\u0421\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u043B\u0430\u0434\u043A\u0443 {{x}} \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u0432 \u0442\u043E\u0447\u043A\u0443 {{p0}} \u0438 \u0442\u043E\u0447\u043A\u0443 {{p1}}.","\u0421\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u043B\u0430\u0434\u043A\u0443 {{x}} \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u0432 \u043B\u0438\u043D\u0438\u044E {{l0}} \u0438 \u043B\u0438\u043D\u0438\u044E {{l1}}.","\u0421\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u043B\u0430\u0434\u043A\u0443 {{x}} \u043D\u0430\u043B\u043E\u0436\u0438\u0432 \u043B\u0438\u043D\u0438\u044E {{l0}} \u043D\u0430 \u0441\u0430\u043C\u0443 \u0441\u0435\u0431\u044F, \u0442\u0430\u043A \u0447\u0442\u043E\u0431\u044B \u0441\u0433\u0438\u0431 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u043B \u0447\u0435\u0440\u0435\u0437 \u0442\u043E\u0447\u043A\u0443 {{p0}}.","\u0421\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u043B\u0430\u0434\u043A\u0443 {{x}} \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u0432 \u0442\u043E\u0447\u043A\u0443 {{p0}} \u0441 \u043B\u0438\u043D\u0438\u0435\u0439 {{l0}}, \u0442\u0430\u043A \u0447\u0442\u043E\u0431\u044B \u0441\u0433\u0438\u0431 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u043B \u0447\u0435\u0440\u0435\u0437 \u0442\u043E\u0447\u043A\u0443 {{p1}}.","\u0421\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u043B\u0430\u0434\u043A\u0443 {{x}} \u043D\u0430\u043B\u043E\u0436\u0438\u0432 \u0442\u043E\u0447\u043A\u0443 {{p0}} \u043D\u0430 \u043B\u0438\u043D\u0438\u044E {{l0}} \u0438 \u0442\u043E\u0447\u043A\u0443 {{p1}} \u043D\u0430 \u043B\u0438\u043D\u0438\u044E {{l1}}.","\u0421\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u043B\u0430\u0434\u043A\u0443 {{x}} \u043D\u0430\u043B\u043E\u0436\u0438\u0432 {{l1}} \u043D\u0430 \u0441\u0430\u043C\u0443 \u0441\u0435\u0431\u044F, \u0442\u0430\u043A \u0447\u0442\u043E\u0431\u044B \u0442\u043E\u0447\u043A\u0430 {{p0}} \u043F\u043E\u043F\u0430\u0434\u0430\u043B\u0430 \u043D\u0430 \u043B\u0438\u043D\u0438\u044E {{l0}}."],"axiom_solution":["\u0420\u0435\u0448\u0435\u043D\u0438\u0435\u043C \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0441\u043A\u043B\u0430\u0434\u043A\u0430 \u0447\u0435\u0440\u0435\u0437 \u0442\u043E\u0447\u043A\u0443 {{p0}} \u0438 \u0442\u043E\u0447\u043A\u0443 {{p1}}.","\u0420\u0435\u0448\u0435\u043D\u0438\u0435 \u0434\u043E\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044F \u043F\u0443\u0442\u0435\u043C \u0441\u043E\u0432\u043C\u0435\u0449\u0435\u043D\u0438\u044F \u0442\u043E\u0447\u043A\u0438 {{p0}} \u0438 \u0442\u043E\u0447\u043A\u0438 {{p1}}.","\u0420\u0435\u0448\u0435\u043D\u0438\u0435 \u0434\u043E\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044F \u043F\u0443\u0442\u0435\u043C \u0441\u043E\u0432\u043C\u0435\u0449\u0435\u043D\u0438\u044F \u043B\u0438\u043D\u0438\u0438 {{l0}} \u0438 \u043B\u0438\u043D\u0438\u0438 {{l1}}.","\u0420\u0435\u0448\u0435\u043D\u0438\u0435 \u0434\u043E\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044F \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u043C \u043B\u0438\u043D\u0438\u044E {{l0}} \u043D\u0430 \u0441\u0430\u043C\u0443 \u0441\u0435\u0431\u044F, \u0442\u0430\u043A \u0447\u0442\u043E\u0431\u044B \u0441\u0433\u0438\u0431 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u043B \u0447\u0435\u0440\u0435\u0437 \u0442\u043E\u0447\u043A\u0443 {{p0}}.","\u0420\u0435\u0448\u0435\u043D\u0438\u0435 \u0434\u043E\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044F \u0441\u043E\u0432\u043C\u0435\u0449\u0435\u043D\u0438\u0435\u043C \u0442\u043E\u0447\u043A\u0443 {{p0}} \u0441 \u043B\u0438\u043D\u0438\u0435\u0439 {{l0}}, \u0442\u0430\u043A \u0447\u0442\u043E\u0431\u044B \u0441\u0433\u0438\u0431 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u043B \u0447\u0435\u0440\u0435\u0437 \u0442\u043E\u0447\u043A\u0443 {{p1}}.","\u0420\u0435\u0448\u0435\u043D\u0438\u0435 \u0434\u043E\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044F \u043F\u0443\u0442\u0435\u043C \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u0442\u043E\u0447\u043A\u0438 {{p0}} \u043D\u0430 \u043B\u0438\u043D\u0438\u044E {{l0}} \u0438 \u0442\u043E\u0447\u043A\u0443 {{p1}} \u043D\u0430 \u043B\u0438\u043D\u0438\u044E {{l1}}.","\u0420\u0435\u0448\u0435\u043D\u0438\u0435 \u0434\u043E\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044F \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u0438\u0435\u043C {{l1}} \u043D\u0430 \u0441\u0430\u043C\u0443 \u0441\u0435\u0431\u044F, \u0442\u0430\u043A \u0447\u0442\u043E\u0431\u044B \u0442\u043E\u0447\u043A\u0430 {{p0}} \u043F\u043E\u043F\u0430\u0434\u0430\u043B\u0430 \u043D\u0430 \u043B\u0438\u043D\u0438\u044E {{l0}}."],"intersection":"\u0422\u043E\u0447\u043A\u0430 {{x}} \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043D\u0438\u0438 \u043B\u0438\u043D\u0438\u0438 {{l0}} \u0438 \u043B\u0438\u043D\u0438\u0438 {{l1}}.","intersection_solution":"\u0420\u0435\u0448\u0435\u043D\u0438\u0435 \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043D\u0438\u0438 \u043B\u0438\u043D\u0438\u0438 {{l0}} \u0438 \u043B\u0438\u043D\u0438\u0438 {{l1}}.","paper":{"ne":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0432\u0435\u0440\u0445\u043D\u0438\u0439 \u043F\u0440\u0430\u0432\u044B\u0439 \u0443\u0433\u043E\u043B","se":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u043D\u0438\u0436\u043D\u0438\u0439 \u043F\u0440\u0430\u0432\u044B\u0439 \u0443\u0433\u043E\u043B","sw":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u043D\u0438\u0436\u043D\u0438\u0439 \u043B\u0435\u0432\u044B\u0439 \u0443\u0433\u043E\u043B","nw":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0432\u0435\u0440\u0445\u043D\u0438\u0439 \u043B\u0435\u0432\u044B\u0439 \u0443\u0433\u043E\u043B","n":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0432\u0435\u0440\u0445\u043D\u0438\u0439 \u043A\u0440\u0430\u0439","e":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u043F\u0440\u0430\u0432\u044B\u0439 \u043A\u0440\u0430\u0439","s":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u043D\u0438\u0436\u043D\u0438\u0439 \u043A\u0440\u0430\u0439","w":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u043B\u0435\u0432\u044B\u0439 \u043A\u0440\u0430\u0439","sw_ne":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0434\u0438\u0430\u0433\u043E\u043D\u0430\u043B\u044C \u0438\u0434\u0443\u0449\u0430\u044F \u0432\u0432\u0435\u0440\u0445","nw_se":"\u043A\u043E\u0442\u043E\u0440\u0430\u044F \u043D\u0438\u0436\u043D\u044F\u044F \u0438\u0434\u0443\u0449\u0430\u044F \u0432\u043D\u0438\u0437"},"phrase":{"point":"\u0442\u043E\u0447\u043A\u0430","line":"\u043B\u0438\u043D\u0438\u044F","error":"\u043E\u0448\u0438\u0431\u043A\u0430","solution":"\u0440\u0435\u0448\u0435\u043D\u0438\u0435","go":"\u0412\u0432\u043E\u0434","findLine":"\u041D\u0430\u0439\u0442\u0438 \u043B\u0438\u043D\u0438\u044E","findPoint":"\u041D\u0430\u0439\u0442\u0438 \u0442\u043E\u0447\u043A\u0443","referenceFinder":"ReferenceFinder","settings":"\u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","initializing":"\u0418\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F...","coreVer":"\u0411\u0430\u0437\u043E\u0432\u0430\u044F \u0432\u0435\u0440\u0441\u0438\u044F"},"settings":{"cancel":"\u043E\u0442\u043C\u0435\u043D\u0430","ok":"\u0425\u041E\u0420\u041E\u0428\u041E","reset":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","display":{"showAxiom":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u043D\u043E\u043C\u0435\u0440 \u0430\u043A\u0441\u0438\u043E\u043C\u044B \u0432 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0438.","theme":{"dark":"\u0422\u0435\u043C\u043D\u044B\u0439","light":"\u0421\u0432\u0435\u0442","system":"\u0421\u0438\u0441\u0442\u0435\u043C\u0430","_":"\u0422\u0435\u043C\u0430"},"_":"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C","showInit":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0445\u043E\u0434 \u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438.","precision":"\u0422\u043E\u0447\u043D\u043E\u0441\u0442\u044C"},"advanced":{"_":"\u041F\u0435\u0440\u0435\u0434\u043E\u0432\u043E\u0439"},"basic":{"_":"\u0411\u0430\u0437\u043E\u0432\u044B\u0439","height":"\u0412\u044B\u0441\u043E\u0442\u0430 \u043B\u0438\u0441\u0442\u0430","width":"\u0428\u0438\u0440\u0438\u043D\u0430 \u043B\u0438\u0441\u0442\u0430"},"reInit":"\u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0439 \u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438."},"invalid":{"exp":"\u0414\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0447\u0438\u0441\u043B\u043E\u043C \u043D\u0435 \u043D\u0438\u0436\u0435 0 \u0438\u043B\u0438 \u044D\u043A\u0432\u0438\u0432\u0430\u043B\u0435\u043D\u0442\u043D\u044B\u043C \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435\u043C.","expMax":"\u0414\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0447\u0438\u0441\u043B\u043E\u043C \u043E\u0442 0 \u0434\u043E {{max}} \u0438\u043B\u0438 \u044D\u043A\u0432\u0438\u0432\u0430\u043B\u0435\u043D\u0442\u043D\u044B\u043C \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435\u043C.","int":"\u0414\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0446\u0435\u043B\u044B\u043C \u0447\u0438\u0441\u043B\u043E\u043C \u043D\u0435 \u043C\u0435\u043D\u0435\u0435 {{min}}","intMax":"\u0414\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0446\u0435\u043B\u044B\u043C \u0447\u0438\u0441\u043B\u043E\u043C \u043E\u0442 {{min}} \u0434\u043E {{max}}."},"tip":{"title":"\u0421\u043E\u0432\u0435\u0442:","exp":"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043C\u0430\u0442\u0435\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 {{exp}} (\u0432 \u0444\u0443\u043D\u043A\u0446\u0438\u044F\u0445 \u0442\u0440\u0438\u0433\u043E\u043D\u043E\u043C\u0435\u0442\u0440\u0438\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u0433\u0440\u0430\u0434\u0443\u0441\u044B).","origin":"\u041D\u0430\u0447\u0430\u043B\u043E \u043A\u043E\u043E\u0440\u0434\u0438\u043D\u0430\u0442 \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u043B\u0435\u0432\u043E\u043C \u043D\u0438\u0436\u043D\u0435\u043C \u0443\u0433\u043B\u0443."}}')},5534:function(e){"use strict";e.exports=JSON.parse('{"name":"\u7B80\u4F53\u4E2D\u6587","flag":"\uD83C\uDDE8\uD83C\uDDF3","axiom":["\u7A7F\u8FC7 {{p0}} \u548C {{p1}} \u6765\u5F62\u6210\u6298\u75D5 {{x}}\u3002","\u5C06 {{p0}} \u6298\u81F3 {{p1}} \u6765\u5F62\u6210\u6298\u75D5 {{x}}\u3002","\u5C06 {{l0}} \u6298\u81F3 {{l1}} \u6765\u5F62\u6210\u6298\u75D5 {{x}}\u3002","\u5C06 {{l0}} \u5BF9\u6298\u3001\u4F7F\u6298\u75D5\u8FC7 {{p0}}\uFF0C\u5F62\u6210\u6298\u75D5 {{x}}\u3002","\u5C06 {{p0}} \u6298\u81F3 {{l0}}\u3001\u4F7F\u6298\u75D5\u8FC7 {{p1}}\uFF0C\u5F62\u6210\u6298\u75D5 {{x}}\u3002","\u5C06 {{p0}} \u6298\u81F3 {{l0}} \u4E0A\u3001\u540C\u65F6\u5C06 {{p1}} \u6298\u81F3 {{l1}} \u4E0A\uFF0C\u5F62\u6210\u6298\u75D5 {{x}}\u3002","\u5C06 {{l1}} \u5BF9\u6298\u3001\u540C\u65F6\u5C06 {{p0}} \u6298\u81F3 {{l0}} \u4E0A\uFF0C\u5F62\u6210\u6298\u75D5 {{x}}\u3002"],"axiom_solution":["\u7A7F\u8FC7 {{p0}} \u548C {{p1}} \u6298\u53E0\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C06 {{p0}} \u6298\u81F3 {{p1}} \u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C06 {{l0}} \u6298\u81F3 {{l1}} \u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C06 {{l0}} \u5BF9\u6298\u3001\u4F7F\u6298\u75D5\u901A\u8FC7 {{p0}}\uFF0C\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C06 {{p0}} \u6298\u81F3 {{l0}}\u3001\u4F7F\u6298\u75D5\u901A\u8FC7 {{p1}}\uFF0C\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C06 {{p0}} \u6298\u81F3 {{l0}} \u4E0A\u3001\u540C\u65F6\u5C06 {{p1}} \u6298\u81F3 {{l1}} \u4E0A\uFF0C\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C06 {{l1}} \u5BF9\u6298\u3001\u540C\u65F6\u5C06 {{p0}} \u6298\u81F3 {{l0}} \u4E0A\uFF0C\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002"],"intersection":"\u70B9 {{x}} \u4E3A {{l0}} \u548C {{l1}} \u7684\u4EA4\u70B9\u3002","intersection_solution":"{{l0}} \u548C {{l1}} \u7684\u4EA4\u70B9\u5373\u4E3A\u89E3\u7B54\u3002","paper":{"e":"\u53F3\u8FB9\u7F18","n":"\u4E0A\u8FB9\u7F18","ne":"\u53F3\u4E0A\u89D2","nw":"\u5DE6\u4E0A\u89D2","nw_se":"\u5411\u4E0B\u7684\u5BF9\u89D2\u7EBF","s":"\u4E0B\u8FB9\u7F18","se":"\u53F3\u4E0B\u89D2","sw":"\u5DE6\u4E0B\u89D2","sw_ne":"\u5411\u4E0A\u7684\u5BF9\u89D2\u7EBF","w":"\u5DE6\u8FB9\u7F18"},"phrase":{"error":"\u8BEF\u5DEE","findLine":"\u627E\u4E00\u6761\u7EBF","findPoint":"\u627E\u4E00\u4E2A\u70B9","go":"\u5F00\u59CB","line":"\u7EBF","point":"\u70B9","referenceFinder":"ReferenceFinder","settings":"\u8BBE\u7F6E","solution":"\u89E3\u7B54","initializing":"\u6B63\u5728\u521D\u59CB\u5316...","coreVer":"\u6838\u5FC3\u7248\u672C"},"settings":{"cancel":"\u53D6\u6D88","ok":"\u786E\u5B9A","reset":"\u91CD\u8BBE\u4E3A\u9ED8\u8BA4\u503C","display":{"showAxiom":"\u5728\u63CF\u8FF0\u4E2D\u663E\u793A\u516C\u7406\u7F16\u53F7\u3002","theme":{"dark":"\u9ED1\u6697","light":"\u660E\u4EAE","system":"\u7CFB\u7EDF","_":"\u4E3B\u9898"},"_":"\u663E\u793A","showInit":"\u663E\u793A\u521D\u59CB\u5316\u8FDB\u5EA6\u3002","precision":"\u7CBE\u786E\u5EA6"},"advanced":{"_":"\u8FDB\u9636"},"basic":{"_":"\u57FA\u672C","height":"\u7EB8\u5F20\u9AD8\u5EA6","width":"\u7EB8\u5F20\u5BBD\u5EA6"},"reInit":"\u9700\u8981\u91CD\u65B0\u521D\u59CB\u5316\u3002"},"invalid":{"exp":"\u5E94\u8BE5\u662F\u81F3\u5C11 0 \u7684\u6570\u5B57\uFF0C\u6216\u7B49\u6548\u8868\u8FBE\u5F0F","expMax":"\u5E94\u8BE5\u662F 0 \u5230 {{max}} \u4E4B\u95F4\u7684\u6570\u5B57\uFF0C\u6216\u7B49\u6548\u8868\u8FBE\u5F0F","int":"\u5E94\u8BE5\u662F\u81F3\u5C11 {{min}} \u7684\u6574\u6570","intMax":"\u5E94\u8BE5\u662F\u4ECE {{min}} \u5230 {{max}} \u7684\u6574\u6570"},"tip":{"title":"\u63D0\u793A\uFF1A","exp":"\u60A8\u53EF\u4EE5\u4F7F\u7528\u6570\u5B66\u8868\u8FBE\u5F0F\u5982 {{exp}}\uFF08\u4E09\u89D2\u51FD\u6570\u4F7F\u7528\u5EA6\u6570\uFF09\u3002","origin":"\u5750\u6807\u539F\u70B9\u4F4D\u4E8E\u5DE6\u4E0B\u89D2\u3002"}}')},5824:function(e){"use strict";e.exports=JSON.parse('{"name":"\u6B63\u9AD4\u4E2D\u6587","flag":"\uD83C\uDDF9\uD83C\uDDFC","axiom":["\u7A7F\u904E {{p0}} \u548C {{p1}} \u4F86\u5F62\u6210\u647A\u75D5 {{x}}\u3002","\u5C07 {{p0}} \u647A\u81F3 {{p1}} \u4F86\u5F62\u6210\u647A\u75D5 {{x}}\u3002","\u5C07 {{l0}} \u647A\u81F3 {{l1}} \u4F86\u5F62\u6210\u647A\u75D5 {{x}}\u3002","\u5C07 {{l0}} \u5C0D\u647A\u3001\u4F7F\u647A\u75D5\u901A\u904E {{p0}}\uFF0C\u5F62\u6210\u647A\u75D5 {{x}}\u3002","\u5C07 {{p0}} \u647A\u81F3 {{l0}}\u3001\u4F7F\u647A\u75D5\u901A\u904E {{p1}}\uFF0C\u5F62\u6210\u647A\u75D5 {{x}}\u3002","\u5C07 {{p0}} \u647A\u81F3 {{l0}} \u4E0A\u3001\u540C\u6642\u5C07 {{p1}} \u647A\u81F3 {{l1}} \u4E0A\uFF0C\u5F62\u6210\u647A\u75D5 {{x}}\u3002","\u5C07 {{l1}} \u5C0D\u647A\u3001\u540C\u6642\u5C07 {{p0}} \u647A\u81F3 {{l0}} \u4E0A\uFF0C\u5F62\u6210\u647A\u75D5 {{x}}\u3002"],"axiom_solution":["\u7A7F\u904E {{p0}} \u548C {{p1}} \u647A\u758A\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C07 {{p0}} \u647A\u81F3 {{p1}} \u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C07 {{l0}} \u647A\u81F3 {{l1}} \u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C07 {{l0}} \u5C0D\u647A\u3001\u4F7F\u647A\u75D5\u901A\u904E {{p0}}\uFF0C\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C07 {{p0}} \u647A\u81F3 {{l0}}\u3001\u4F7F\u647A\u75D5\u901A\u904E {{p1}}\uFF0C\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C07 {{p0}} \u647A\u81F3 {{l0}} \u4E0A\u3001\u540C\u6642\u5C07 {{p1}} \u647A\u81F3 {{l1}} \u4E0A\uFF0C\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002","\u5C07 {{l1}} \u5C0D\u647A\u3001\u540C\u6642\u5C07 {{p0}} \u647A\u81F3 {{l0}} \u4E0A\uFF0C\u5373\u53EF\u5F97\u5230\u89E3\u7B54\u3002"],"intersection":"\u9EDE {{x}} \u70BA {{l0}} \u548C {{l1}} \u7684\u4EA4\u9EDE\u3002","intersection_solution":"{{l0}} \u548C {{l1}} \u7684\u4EA4\u9EDE\u5373\u70BA\u89E3\u7B54\u3002","paper":{"e":"\u53F3\u908A\u7DE3","n":"\u4E0A\u908A\u7DE3","ne":"\u53F3\u4E0A\u89D2","nw":"\u5DE6\u4E0A\u89D2","nw_se":"\u5411\u4E0B\u7684\u5C0D\u89D2\u7DDA","s":"\u4E0B\u908A\u7DE3","se":"\u53F3\u4E0B\u89D2","sw":"\u5DE6\u4E0B\u89D2","sw_ne":"\u5411\u4E0A\u7684\u5C0D\u89D2\u7DDA","w":"\u5DE6\u908A\u7DE3"},"phrase":{"error":"\u8AA4\u5DEE","findLine":"\u627E\u4E00\u689D\u7DDA","findPoint":"\u627E\u4E00\u500B\u9EDE","go":"\u958B\u59CB","line":"\u7DDA","point":"\u9EDE","referenceFinder":"ReferenceFinder","settings":"\u8A2D\u5B9A","solution":"\u89E3\u7B54","initializing":"\u6B63\u5728\u521D\u59CB\u5316...","coreVer":"\u6838\u5FC3\u7248\u672C"},"settings":{"cancel":"\u53D6\u6D88","ok":"\u78BA\u5B9A","reset":"\u91CD\u8A2D\u70BA\u9810\u8A2D\u503C","display":{"showAxiom":"\u5728\u63CF\u8FF0\u4E2D\u986F\u793A\u516C\u7406\u7DE8\u865F\u3002","theme":{"dark":"\u9ED1\u6697","light":"\u660E\u4EAE","system":"\u7CFB\u7D71","_":"\u4E3B\u984C"},"_":"\u986F\u793A","showInit":"\u986F\u793A\u521D\u59CB\u5316\u9032\u5EA6\u3002","precision":"\u7CBE\u78BA\u5EA6"},"advanced":{"_":"\u9032\u968E"},"basic":{"_":"\u57FA\u672C","height":"\u7D19\u5F35\u9AD8\u5EA6","width":"\u7D19\u5F35\u5BEC\u5EA6"},"reInit":"\u9700\u8981\u91CD\u65B0\u521D\u59CB\u5316\u3002"},"invalid":{"exp":"\u61C9\u8A72\u662F\u81F3\u5C11 0 \u7684\u6578\u5B57\uFF0C\u6216\u7B49\u50F9\u8868\u9054\u5F0F","expMax":"\u61C9\u8A72\u662F 0 \u5230 {{max}} \u4E4B\u9593\u7684\u6578\u5B57\uFF0C\u6216\u7B49\u50F9\u8868\u9054\u5F0F","int":"\u61C9\u8A72\u662F\u81F3\u5C11 {{min}} \u7684\u6574\u6578","intMax":"\u61C9\u8A72\u662F\u5F9E {{min}} \u5230 {{max}} \u7684\u6574\u6578"},"tip":{"title":"\u63D0\u793A\uFF1A","exp":"\u60A8\u53EF\u4EE5\u4F7F\u7528\u6578\u5B78\u8868\u9054\u5F0F\u5982 {{exp}}\uFF08\u4E09\u89D2\u51FD\u6578\u4F7F\u7528\u5EA6\u6578\uFF09\u3002","origin":"\u5EA7\u6A19\u539F\u9EDE\u4F4D\u65BC\u5DE6\u4E0B\u89D2\u3002"}}')}}]); \ No newline at end of file diff --git a/docs/static/js/react.7f3e94f4.js b/docs/static/js/react.7f3e94f4.js deleted file mode 100644 index cc7e987..0000000 --- a/docs/static/js/react.7f3e94f4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkreference_finder=self.webpackChunkreference_finder||[]).push([["966"],{6521:function(e,n,t){"use strict";var r,l,a,o,u,i,s=t("5271"),c=t("7537");function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t