@rr0/ufoathome 0.93.1 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed-scene/{SceneNames_es-DjVl7xge.js → SceneNames_es-3l2Xsebd.js} +1 -1
- package/{dist-embed-sighting/SceneNames_fr-DYU3H8s1.js → dist-embed-scene/SceneNames_fr-Ctvv7Jq8.js} +1 -1
- package/{dist-embed-sighting-editor/SceneNames_it-Box-aRN9.js → dist-embed-scene/SceneNames_it-B1_4bOob.js} +1 -1
- package/{dist-embed-sighting-editor/UfoMessages_es-8Us-3wIq.js → dist-embed-scene/UfoMessages_es-CD_68_jy.js} +1 -1
- package/dist-embed-scene/{UfoMessages_fr-BMafKxyw.js → UfoMessages_fr-6WbKsRDZ.js} +1 -1
- package/dist-embed-scene/{UfoMessages_it-C7cNoyQt.js → UfoMessages_it-CHAJPqfh.js} +1 -1
- package/dist-embed-scene/rr0-scene.mjs +331 -286
- package/dist-embed-scene/sightingSchema-Dg73RdOt.js +1 -0
- package/{dist-embed-sighting-editor/SceneNames_es-DjVl7xge.js → dist-embed-sighting/SceneNames_es-3l2Xsebd.js} +1 -1
- package/{dist-embed-sighting-editor/SceneNames_fr-DYU3H8s1.js → dist-embed-sighting/SceneNames_fr-Ctvv7Jq8.js} +1 -1
- package/{dist-embed-scene/SceneNames_it-Box-aRN9.js → dist-embed-sighting/SceneNames_it-B1_4bOob.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_es-4fj9ZZ-k.js → SightingMessages_es-C388oFa_.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_fr-BB5bN3YX.js → SightingMessages_fr-5XN3QfyS.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_it-BMcPw6Qy.js → SightingMessages_it-BC1yc_Fe.js} +1 -1
- package/{dist-embed-scene/UfoMessages_es-8Us-3wIq.js → dist-embed-sighting/UfoMessages_es-CD_68_jy.js} +1 -1
- package/dist-embed-sighting/{UfoMessages_fr-BMafKxyw.js → UfoMessages_fr-6WbKsRDZ.js} +1 -1
- package/dist-embed-sighting/{UfoMessages_it-C7cNoyQt.js → UfoMessages_it-CHAJPqfh.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +335 -290
- package/dist-embed-sighting/sightingSchema-Dg73RdOt.js +1 -0
- package/dist-embed-sighting-editor/{KmlImport-ByKlq2_E.js → KmlImport-B9mAzJwr.js} +1 -1
- package/{dist-embed-sighting/SceneNames_es-DjVl7xge.js → dist-embed-sighting-editor/SceneNames_es-3l2Xsebd.js} +1 -1
- package/{dist-embed-scene/SceneNames_fr-DYU3H8s1.js → dist-embed-sighting-editor/SceneNames_fr-Ctvv7Jq8.js} +1 -1
- package/{dist-embed-sighting/SceneNames_it-Box-aRN9.js → dist-embed-sighting-editor/SceneNames_it-B1_4bOob.js} +1 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_es-CvB2tG6p.js +1 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-DnDIaW8O.js +1 -0
- package/dist-embed-sighting-editor/{SightingEditorMessages_it-BZ7r2ECe.js → SightingEditorMessages_it-wwtLXEnV.js} +1 -1
- package/dist-embed-sighting-editor/{SightingFileEditor-CiwT0fmr.js → SightingFileEditor-Daiw_hqQ.js} +1 -1
- package/{dist-embed-sighting/UfoMessages_es-8Us-3wIq.js → dist-embed-sighting-editor/UfoMessages_es-CD_68_jy.js} +1 -1
- package/dist-embed-sighting-editor/{UfoMessages_fr-BMafKxyw.js → UfoMessages_fr-6WbKsRDZ.js} +1 -1
- package/dist-embed-sighting-editor/{UfoMessages_it-C7cNoyQt.js → UfoMessages_it-CHAJPqfh.js} +1 -1
- package/dist-embed-sighting-editor/browser-_Ncw3Jhn.js +1 -0
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +370 -285
- package/dist-embed-sighting-editor/sightingSchema-Dg73RdOt.js +1 -0
- package/package.json +1 -1
- package/dist-embed-scene/sightingSchema-Bsub_0vA.js +0 -1
- package/dist-embed-sighting/sightingSchema-Bsub_0vA.js +0 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_es-24hPje__.js +0 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-Dznf4tD5.js +0 -1
- package/dist-embed-sighting-editor/browser-c3U3mMxj.js +0 -1
- package/dist-embed-sighting-editor/sightingSchema-Bsub_0vA.js +0 -1
package/dist-embed-sighting-editor/{SightingFileEditor-CiwT0fmr.js → SightingFileEditor-Daiw_hqQ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Vc from"./sightingSchema-
|
|
1
|
+
import Vc from"./sightingSchema-Dg73RdOt.js";let Es=[],Ul=[];(()=>{let s="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,3,,4,7,2,b,2,f,,c,4,1j,2,,7,,3,,4,9,,a,2,t,3,1y,,4,6,,,,8,i,2,1p,,,8,c,8,2q,,,a,b,7,21,2,r,,,,,,4,2,1d,k,,2,5,b,,10,9,,2u,b,,6,n,4,4,3,g,4,d,,,3,6,,f,,jj,3,qa,4,s,3,t,2,u,2,1s,w,9,,19,3,,,39,2,y,,3a,c,4,c,63,5,1l,a,,,,,2,o,2,,1c,1a,2,c,k,5,1b,h,12,9,c,3,u,d,1k,e,1c,k,48,3,,l,4,,6,,2,3,5i,1s,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,n,5,4,,2b,2,1e,i,q,i,d,,12,8,p,d,18,4,1b,e,10,,1v,e,c,,8,2,1a,,1f,,,3,2,2,5,2,,,15,5,5,2,6k,8,,2,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,1t,5,8t,2,25,6,1y,b,1d,4,3e,3,1h,f,15,,2,2,a,4,19,b,7,,1p,3,10,e,g,2,18,,c,3,1c,e,8,4,,2,2k,c,6,,2,,4d,c,l,4,1j,2,,7,2,2,2,3,9,,a,2,2,7,3,5,1v,9,,,2,,,4,,5,,,e,2,2a,i,n,,29,k,6j,7,2,9,r,2,2a,h,2y,d,2t,3,2,a,74,f,6t,6,,2,2,4,,,,2,3x,7,2,7,3,,s,a,14,7,,4,8,,9,b,1a,g,5i,8,5j,8,,8,2a,m,,e,3e,6,3,,,2,,7,,,1u,5,,2,,5,9n,4,9,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,e=0;t<s.length;t++)(t%2?Ul:Es).push(e=e+s[t])})();function zc(s){if(s<768)return!1;for(let t=0,e=Es.length;;){let i=t+e>>1;if(s<Es[i])e=i;else if(s>=Ul[i])t=i+1;else return!0;if(t==e)return!1}}function ro(s){return s>=127462&&s<=127487}const oo=8205;function $c(s,t,e=!0,i=!0){return(e?Gl:qc)(s,t,i)}function Gl(s,t,e){if(t==s.length)return t;t&&Yl(s.charCodeAt(t))&&Ql(s.charCodeAt(t-1))&&t--;let i=os(s,t);for(t+=lo(i);t<s.length;){let n=os(s,t);if(i==oo||n==oo||e&&zc(n))t+=lo(n),i=n;else if(ro(n)){let r=0,o=t-2;for(;o>=0&&ro(os(s,o));)r++,o-=2;if(r%2==0)break;t+=2}else break}return t}function qc(s,t,e){for(;t>1;){let i=Gl(s,t-2,e);if(i<t)return i;t--}return 0}function os(s,t){let e=s.charCodeAt(t);if(!Ql(e)||t+1==s.length)return e;let i=s.charCodeAt(t+1);return Yl(i)?(e-55296<<10)+(i-56320)+65536:e}function Yl(s){return s>=56320&&s<57344}function Ql(s){return s>=55296&&s<56320}function lo(s){return s<65536?1:2}class W{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=Je(this,t,e);let n=[];return this.decompose(0,t,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(e,this.length,n,1),Ut.from(n,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=Je(this,t,e);let i=[];return this.decompose(t,e,i,0),Ut.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),n=new di(this),r=new di(t);for(let o=e,l=e;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(t=1){return new di(this,t)}iterRange(t,e=this.length){return new Xl(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let n=this.line(t).from;i=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new _l(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?W.empty:t.length<=32?new Q(t):Ut.from(Q.split(t,[]))}}class Q extends W{constructor(t,e=jc(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((e?i:l)>=t)return new Kc(n,l,i,o);n=l+1,i++}}decompose(t,e,i,n){let r=t<=0&&e>=this.length?this:new Q(ao(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(n&1){let o=i.pop(),l=hn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new Q(l,o.length+r.length));else{let a=l.length>>1;i.push(new Q(l.slice(0,a)),new Q(l.slice(a)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof Q))return super.replace(t,e,i);[t,e]=Je(this,t,e);let n=hn(this.text,hn(i.text,ao(this.text,0,t)),e),r=this.length+i.length-(e-t);return n.length<=32?new Q(n,r):Ut.from(Q.split(n,[]),r)}sliceString(t,e=this.length,i=`
|
|
2
2
|
`){[t,e]=Je(this,t,e);let n="";for(let r=0,o=0;r<=e&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>t&&o&&(n+=i),t<a&&e>r&&(n+=l.slice(Math.max(0,t-r),e-r)),r=a+1}return n}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],n=-1;for(let r of t)i.push(r),n+=r.length+1,i.length==32&&(e.push(new Q(i,n)),i=[],n=-1);return n>-1&&e.push(new Q(i,n)),e}}class Ut extends W{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,n){for(let r=0;;r++){let o=this.children[r],l=n+o.length,a=i+o.lines-1;if((e?a:l)>=t)return o.lineInner(t,e,i,n);n=l+1,i=a+1}}decompose(t,e,i,n){for(let r=0,o=0;o<=e&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(t<=a&&e>=o){let h=n&((o<=t?1:0)|(a>=e?2:0));o>=t&&a<=e&&!h?i.push(l):l.decompose(t-o,e-o,i,h)}o=a+1}}replace(t,e,i){if([t,e]=Je(this,t,e),i.lines<this.lines)for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],l=r+o.length;if(t>=r&&e<=l){let a=o.replace(t-r,e-r,i),h=this.lines-o.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let c=this.children.slice();return c[n]=a,new Ut(c,this.length-(e-t)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i=`
|
|
3
3
|
`){[t,e]=Je(this,t,e);let n="";for(let r=0,o=0;r<this.children.length&&o<=e;r++){let l=this.children[r],a=o+l.length;o>t&&r&&(n+=i),t<a&&e>o&&(n+=l.sliceString(t-o,e-o,i)),o=a+1}return n}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof Ut))return 0;let i=0,[n,r,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;n+=e,r+=e){if(n==o||r==l)return i;let a=this.children[n],h=t.children[r];if(a!=h)return i+a.scanIdentical(h,e);i+=a.length+1}}static from(t,e=t.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let p of t)p.flatten(d);return new Q(d,e)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,l=[],a=0,h=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof Ut)for(let m of d.children)f(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof Q&&a&&(p=c[c.length-1])instanceof Q&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new Q(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>n&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:Ut.from(c,h)),h=-1,a=c.length=0)}for(let d of t)f(d);return u(),l.length==1?l[0]:new Ut(l,e)}}W.empty=new Q([""],0);function jc(s){let t=-1;for(let e of s)t+=e.length+1;return t}function hn(s,t,e=0,i=1e9){for(let n=0,r=0,o=!0;r<s.length&&n<=i;r++){let l=s[r],a=n+l.length;a>=e&&(a>i&&(l=l.slice(0,i-n)),n<e&&(l=l.slice(e-n)),o?(t[t.length-1]+=l,o=!1):t.push(l)),n=a+1}return t}function ao(s,t,e){return hn(s,[""],t,e)}class di{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof Q?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,l=n instanceof Q?n.text.length:n.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=`
|
|
4
4
|
`,this;t--}else if(n instanceof Q){let a=n.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,a.length>Math.max(0,t))return this.value=t==0?a:e>0?a.slice(t):a.slice(0,a.length-t),this;t-=a.length}else{let a=n.children[o+(e<0?-1:0)];t>a.length?(t-=a.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(e>0?1:(a instanceof Q?a.text.length:a.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Xl{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new di(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:n}=this.cursor.next(t);return this.pos+=(n.length+t)*e,this.value=n.length<=i?n:e<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class _l{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:n}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(W.prototype[Symbol.iterator]=function(){return this.iter()},di.prototype[Symbol.iterator]=Xl.prototype[Symbol.iterator]=_l.prototype[Symbol.iterator]=function(){return this});class Kc{constructor(t,e,i,n){this.from=t,this.to=e,this.number=i,this.text=n}get length(){return this.to-this.from}}function Je(s,t,e){return t=Math.max(0,Math.min(s.length,t)),[t,Math.max(t,Math.min(s.length,e))]}function lt(s,t,e=!0,i=!0){return $c(s,t,e,i)}function Uc(s){return s>=56320&&s<57344}function Gc(s){return s>=55296&&s<56320}function St(s,t){let e=s.charCodeAt(t);if(!Gc(e)||t+1==s.length)return e;let i=s.charCodeAt(t+1);return Uc(i)?(e-55296<<10)+(i-56320)+65536:e}function Jl(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}function ie(s){return s<65536?1:2}const Is=/\r\n?|\n/;var ft=(function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s})(ft||(ft={}));class Zt{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let i=this.sections[e+1];t+=i<0?this.sections[e]:i}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let e=0,i=0,n=0;e<this.sections.length;){let r=this.sections[e++],o=this.sections[e++];o<0?(t(i,n,r),n+=r):n+=o,i+=r}}iterChangedRanges(t,e=!1){Ns(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let i=this.sections[e++],n=this.sections[e++];n<0?t.push(i,n):t.push(n,i)}return new Zt(t)}composeDesc(t){return this.empty?t:t.empty?this:Zl(this,t)}mapDesc(t,e=!1){return t.empty?this:Hs(this,t,e)}mapPos(t,e=-1,i=ft.Simple){let n=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],h=n+l;if(a<0){if(h>t)return r+(t-n);r+=l}else{if(i!=ft.Simple&&h>=t&&(i==ft.TrackDel&&n<t&&h>t||i==ft.TrackBefore&&n<t||i==ft.TrackAfter&&h>t))return null;if(h>t||h==t&&e<0&&!l)return t==n||e<0?r:r+a;r+=a}n=h}if(t>n)throw new RangeError(`Position ${t} is out of range for changeset of length ${n}`);return r}touchesRange(t,e=t){for(let i=0,n=0;i<this.sections.length&&n<=e;){let r=this.sections[i++],o=this.sections[i++],l=n+r;if(o>=0&&n<=e&&l>=t)return n<t&&l>e?"cover":!0;n=l}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let i=this.sections[e++],n=this.sections[e++];t+=(t?" ":"")+i+(n>=0?":"+n:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Zt(t)}static create(t){return new Zt(t)}}class _ extends Zt{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Ns(this,(e,i,n,r,o)=>t=t.replace(n,n+(i-e),o),!1),t}mapDesc(t,e=!1){return Hs(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let n=0,r=0;n<e.length;n+=2){let o=e[n],l=e[n+1];if(l>=0){e[n]=l,e[n+1]=o;let a=n>>1;for(;i.length<a;)i.push(W.empty);i.push(o?t.slice(r,r+o):W.empty)}r+=o}return new _(e,i)}compose(t){return this.empty?t:t.empty?this:Zl(this,t,!0)}map(t,e=!1){return t.empty?this:Hs(this,t,e,!0)}iterChanges(t,e=!1){Ns(this,t,e)}get desc(){return Zt.create(this.sections)}filter(t){let e=[],i=[],n=[],r=new ki(this);t:for(let o=0,l=0;;){let a=o==t.length?1e9:t[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break t;let c=Math.min(r.len,a-l);ot(n,c,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;ot(e,c,f),f>0&&me(i,e,r.text),r.forward(c),l+=c}let h=t[o++];for(;l<h;){if(r.done)break t;let c=Math.min(r.len,h-l);ot(e,c,-1),ot(n,c,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(c),l+=c}}return{changes:new _(e,i),filtered:Zt.create(n)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let i=this.sections[e],n=this.sections[e+1];n<0?t.push(i):n==0?t.push([i]):t.push([i].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,i){let n=[],r=[],o=0,l=null;function a(c=!1){if(!c&&!n.length)return;o<e&&ot(n,e-o,-1);let f=new _(n,r);l=l?l.compose(f.map(l)):f,n=[],r=[],o=0}function h(c){if(Array.isArray(c))for(let f of c)h(f);else if(c instanceof _){if(c.length!=e)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${e})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:u=f,insert:d}=c;if(f>u||f<0||u>e)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${e})`);let p=d?typeof d=="string"?W.of(d.split(i||Is)):d:W.empty,m=p.length;if(f==u&&m==0)return;f<o&&a(),f>o&&ot(n,f-o,-1),ot(n,u-f,m),me(r,n,p),o=u}}return h(t),a(!l),l}static empty(t){return new _(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let n=0;n<t.length;n++){let r=t[n];if(typeof r=="number")e.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)e.push(r[0],0);else{for(;i.length<n;)i.push(W.empty);i[n]=W.of(r.slice(1)),e.push(r[0],i[n].length)}}}return new _(e,i)}static createSet(t,e){return new _(t,e)}}function ot(s,t,e,i=!1){if(t==0&&e<=0)return;let n=s.length-2;n>=0&&e<=0&&e==s[n+1]?s[n]+=t:n>=0&&t==0&&s[n]==0?s[n+1]+=e:i?(s[n]+=t,s[n+1]+=e):s.push(t,e)}function me(s,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i<s.length)s[s.length-1]=s[s.length-1].append(e);else{for(;s.length<i;)s.push(W.empty);s.push(e)}}function Ns(s,t,e){let i=s.inserted;for(let n=0,r=0,o=0;o<s.sections.length;){let l=s.sections[o++],a=s.sections[o++];if(a<0)n+=l,r+=l;else{let h=n,c=r,f=W.empty;for(;h+=l,c+=a,a&&i&&(f=f.append(i[o-2>>1])),!(e||o==s.sections.length||s.sections[o+1]<0);)l=s.sections[o++],a=s.sections[o++];t(n,h,r,c,f),n=h,r=c}}}function Hs(s,t,e,i=!1){let n=[],r=i?[]:null,o=new ki(s),l=new ki(t);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);ot(n,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!e))){let h=l.len;for(ot(n,l.ins,-1);h;){let c=Math.min(o.len,h);o.ins>=0&&a<o.i&&o.len<=c&&(ot(n,0,o.ins),r&&me(r,n,o.text),a=o.i),o.forward(c),h-=c}l.next()}else if(o.ins>=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;ot(n,h,a<o.i?o.ins:0),r&&a<o.i&&me(r,n,o.text),a=o.i,o.forward(o.len-c)}else{if(o.done&&l.done)return r?_.createSet(n,r):Zt.create(n);throw new Error("Mismatched change set lengths")}}}function Zl(s,t,e=!1){let i=[],n=e?[]:null,r=new ki(s),o=new ki(t);for(let l=!1;;){if(r.done&&o.done)return n?_.createSet(i,n):Zt.create(i);if(r.ins==0)ot(i,r.len,0,l),r.next();else if(o.len==0&&!o.done)ot(i,0,o.ins,l),n&&me(n,i,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(r.len2,o.len),h=i.length;if(r.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;ot(i,a,c,l),n&&c&&me(n,i,o.text)}else o.ins==-1?(ot(i,r.off?0:r.len,a,l),n&&me(n,i,r.textBit(a))):(ot(i,r.off?0:r.len,o.off?0:o.ins,l),n&&!o.off&&me(n,i,o.text));l=(r.ins>a||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class ki{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,e=this.i-2>>1;return e>=t.length?W.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?W.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class de{constructor(t,e,i,n){this.from=t,this.to=e,this.flags=i,this.goalColumn=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get undirectional(){return(this.flags&64)>0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}map(t,e=-1){let i,n;return this.empty?i=n=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),n=t.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new de(i,n,this.flags,this.goalColumn)}extend(t,e=t,i=0){if(t<=this.anchor&&e>=this.anchor)return x.range(t,e,void 0,void 0,i);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return x.range(this.anchor,n,void 0,void 0,i)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&this.goalColumn==t.goalColumn&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return x.range(t.anchor,t.head)}static create(t,e,i,n){return new de(t,e,i,n)}}class x{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:x.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(t.ranges[i],e))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new x([this.main],0)}addRange(t,e=!0){return x.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let i=this.ranges.slice();return i[e]=t,x.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new x(t.ranges.map(e=>de.fromJSON(e)),t.main)}static single(t,e=t){return new x([x.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;n<t.length;n++){let r=t[n];if(r.empty?r.from<=i:r.from<i)return x.normalized(t.slice(),e);i=r.to}return new x(t,e)}static cursor(t,e=0,i,n){return de.create(t,t,(e==0?0:e<0?8:16)|(i==null?7:Math.min(6,i)),n)}static range(t,e,i,n,r){let o=n==null?7:Math.min(6,n);return!r&&t!=e&&(r=e<t?1:-1),r&&(o|=r<0?8:16),e<t?de.create(e,t,o|32,i):de.create(t,e,o,i)}static undirectionalRange(t,e){return de.create(t,e,64,void 0)}static normalized(t,e=0){let i=t[e];t.sort((n,r)=>n.from-r.from),e=t.indexOf(i);for(let n=1;n<t.length;n++){let r=t[n],o=t[n-1];if(r.empty?r.from<=o.to:r.from<o.to){let l=o.from,a=Math.max(r.to,o.to);n<=e&&e--,t.splice(--n,2,r.anchor>r.head?x.range(a,l):x.range(l,a))}}return new x(t,e)}}function ta(s,t){for(let e of s.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let Ar=0;class M{constructor(t,e,i,n,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=n,this.id=Ar++,this.default=t([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(t={}){return new M(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:Mr),!!t.static,t.enables)}of(t){return new cn([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new cn(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new cn(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function Mr(s,t){return s==t||s.length==t.length&&s.every((e,i)=>e===t[i])}class cn{constructor(t,e,i,n){this.dependencies=t,this.facet=e,this.type=i,this.value=n,this.id=Ar++}dynamicSlot(t){var e;let i=this.value,n=this.facet.compareInput,r=this.id,o=t[r]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:(((e=t[f.id])!==null&&e!==void 0?e:1)&1)==0&&c.push(t[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Ws(f,c)){let d=i(f);if(l?!ho(d,f.values[o],n):!n(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let m=xn(u,p);if(this.dependencies.every(g=>g instanceof M?u.facet(g)===f.facet(g):g instanceof mt?u.field(g,!1)==f.field(g,!1):!0)||(l?ho(d=i(f),m,n):n(d=i(f),m)))return f.values[o]=m,0}else d=i(f);return f.values[o]=d,1}}}get extension(){return this}}function ho(s,t,e){if(s.length!=t.length)return!1;for(let i=0;i<s.length;i++)if(!e(s[i],t[i]))return!1;return!0}function Ws(s,t){let e=!1;for(let i of t)pi(s,i)&1&&(e=!0);return e}function Yc(s,t,e){let i=e.map(a=>s[a.id]),n=e.map(a=>a.type),r=i.filter(a=>!(a&1)),o=s[t.id]>>1;function l(a){let h=[];for(let c=0;c<i.length;c++){let f=xn(a,i[c]);if(n[c]==2)for(let u of f)h.push(u);else h.push(f)}return t.combine(h)}return{create(a){for(let h of i)pi(a,h);return a.values[o]=l(a),1},update(a,h){if(!Ws(a,r))return 0;let c=l(a);return t.compare(c,a.values[o])?0:(a.values[o]=c,1)},reconfigure(a,h){let c=Ws(a,i),f=h.config.facets[t.id],u=h.facet(t);if(f&&!c&&Mr(e,f))return a.values[o]=u,0;let d=l(a);return t.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const Vi=M.define({static:!0});class mt{constructor(t,e,i,n,r){this.id=t,this.createF=e,this.updateF=i,this.compareF=n,this.spec=r,this.provides=void 0}static define(t){let e=new mt(Ar++,t.create,t.update,t.compare||((i,n)=>i===n),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(Vi).find(i=>i.field==this);return(e?.create||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,n)=>{let r=i.values[e],o=this.updateF(r,n);return this.compareF(r,o)?0:(i.values[e]=o,1)},reconfigure:(i,n)=>{let r=i.facet(Vi),o=n.facet(Vi),l;return(l=r.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(i.values[e]=l.create(i),1):n.config.address[this.id]!=null?(i.values[e]=n.field(this),0):(i.values[e]=this.create(i),1)}}}init(t){return[this,Vi.of({field:this,create:t})]}get extension(){return this}}const Te={lowest:4,low:3,default:2,high:1,highest:0};function oi(s){return t=>new ea(t,s)}const si={highest:oi(Te.highest),high:oi(Te.high),default:oi(Te.default),low:oi(Te.low),lowest:oi(Te.lowest)};class ea{constructor(t,e){this.inner=t,this.prec=e}get extension(){return this}}class $n{of(t){return new Fs(this,t)}reconfigure(t){return $n.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Fs{constructor(t,e){this.compartment=t,this.inner=e}get extension(){return this}}class bn{constructor(t,e,i,n,r,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return e==null?t.default:this.staticValues[e>>1]}static resolve(t,e,i){let n=[],r=Object.create(null),o=new Map;for(let u of Qc(t,e,o))u instanceof mt?n.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of n)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i?.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=c&&c[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=a.length<<1|1,Mr(m,d))a.push(i.facet(p));else{let g=p.combine(d.map(y=>y.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(y=>g.dynamicSlot(y)));l[p.id]=h.length<<1,h.push(g=>Yc(g,p,d))}}let f=h.map(u=>u(l));return new bn(t,o,f,l,a,r)}}function Qc(s,t,e){let i=[[],[],[],[],[]],n=new Map;function r(o,l){let a=n.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof Fs&&e.delete(o.compartment)}if(n.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof Fs){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=t.get(o.compartment)||o.inner;e.set(o.compartment,h),r(h,l)}else if(o instanceof ea)r(o.inner,o.prec);else if(o instanceof mt)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof cn)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,Te.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}).`);if(h==o)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(s,Te.default),i.reduce((o,l)=>o.concat(l))}function pi(s,t){if(t&1)return 2;let e=t>>1,i=s.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;s.status[e]=4;let n=s.computeSlot(s,s.config.dynamicSlots[e]);return s.status[e]=2|n}function xn(s,t){return t&1?s.config.staticValues[t>>1]:s.values[t>>1]}const ia=M.define(),Vs=M.define({combine:s=>s.some(t=>t),static:!0}),na=M.define({combine:s=>s.length?s[0]:void 0,static:!0}),sa=M.define(),ra=M.define(),oa=M.define(),la=M.define({combine:s=>s.length?s[0]:!1});class ae{constructor(t,e){this.type=t,this.value=e}static define(){return new Xc}}class Xc{of(t){return new ae(this,t)}}class _c{constructor(t){this.map=t}of(t){return new I(this,t)}}class I{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new I(this.type,e)}is(t){return this.type==t}static define(t={}){return new _c(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let n of t){let r=n.map(e);r&&i.push(r)}return i}}I.reconfigure=I.define();I.appendConfig=I.define();class J{constructor(t,e,i,n,r,o){this.startState=t,this.changes=e,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&ta(i,e.newLength),r.some(l=>l.type==J.time)||(this.annotations=r.concat(J.time.of(Date.now())))}static create(t,e,i,n,r,o){return new J(t,e,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(J.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}J.time=ae.define();J.userEvent=ae.define();J.addToHistory=ae.define();J.remote=ae.define();function Jc(s,t){let e=[];for(let i=0,n=0;;){let r,o;if(i<s.length&&(n==t.length||t[n]>=s[i]))r=s[i++],o=s[i++];else if(n<t.length)r=t[n++],o=t[n++];else return e;!e.length||e[e.length-1]<r?e.push(r,o):e[e.length-1]<o&&(e[e.length-1]=o)}}function aa(s,t,e){var i;let n,r,o;return e?(n=t.changes,r=_.empty(t.changes.length),o=s.changes.compose(t.changes)):(n=t.changes.map(s.changes),r=s.changes.mapDesc(t.changes,!0),o=s.changes.compose(n)),{changes:o,selection:t.selection?t.selection.map(r):(i=s.selection)===null||i===void 0?void 0:i.map(n),effects:I.mapEffects(s.effects,n).concat(I.mapEffects(t.effects,r)),annotations:s.annotations.length?s.annotations.concat(t.annotations):t.annotations,scrollIntoView:s.scrollIntoView||t.scrollIntoView}}function zs(s,t,e){let i=t.selection,n=Ue(t.annotations);return t.userEvent&&(n=n.concat(J.userEvent.of(t.userEvent))),{changes:t.changes instanceof _?t.changes:_.of(t.changes||[],e,s.facet(na)),selection:i&&(i instanceof x?i:x.single(i.anchor,i.head)),effects:Ue(t.effects),annotations:n,scrollIntoView:!!t.scrollIntoView}}function ha(s,t,e){let i=zs(s,t.length?t[0]:{},s.doc.length);t.length&&t[0].filter===!1&&(e=!1);for(let r=1;r<t.length;r++){t[r].filter===!1&&(e=!1);let o=!!t[r].sequential;i=aa(i,zs(s,t[r],o?i.changes.newLength:s.doc.length),o)}let n=J.create(s,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return tf(e?Zc(n):n)}function Zc(s){let t=s.startState,e=!0;for(let n of t.facet(sa)){let r=n(s);if(r===!1){e=!1;break}Array.isArray(r)&&(e=e===!0?r:Jc(e,r))}if(e!==!0){let n,r;if(e===!1)r=s.changes.invertedDesc,n=_.empty(t.doc.length);else{let o=s.changes.filter(e);n=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}s=J.create(t,n,s.selection&&s.selection.map(r),I.mapEffects(s.effects,r),s.annotations,s.scrollIntoView)}let i=t.facet(ra);for(let n=i.length-1;n>=0;n--){let r=i[n](s);r instanceof J?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof J?s=r[0]:s=ha(t,Ue(r),!1)}return s}function tf(s){let t=s.startState,e=t.facet(oa),i=s;for(let n=e.length-1;n>=0;n--){let r=e[n](s);r&&Object.keys(r).length&&(i=aa(i,zs(t,r,s.changes.newLength),!0))}return i==s?s:J.create(t,s.changes,s.selection,i.effects,i.annotations,i.scrollIntoView)}const ef=[];function Ue(s){return s==null?ef:Array.isArray(s)?s:[s]}var Tt=(function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s})(Tt||(Tt={}));const nf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let $s;try{$s=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function sf(s){if($s)return $s.test(s);for(let t=0;t<s.length;t++){let e=s[t];if(/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||nf.test(e)))return!0}return!1}function rf(s){return t=>{if(!/\S/.test(t))return Tt.Space;if(sf(t))return Tt.Word;for(let e=0;e<s.length;e++)if(t.indexOf(s[e])>-1)return Tt.Word;return Tt.Other}}class V{constructor(t,e,i,n,r,o){this.config=t,this.doc=e,this.selection=i,this.values=n,this.status=t.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)pi(this,l<<1);this.computeSlot=null}field(t,e=!0){let i=this.config.address[t.id];if(i==null){if(e)throw new RangeError("Field is not present in this state");return}return pi(this,i),xn(this,i)}update(...t){return ha(this,t,!0)}applyTransaction(t){let e=this.config,{base:i,compartments:n}=e;for(let l of t.effects)l.is($n.reconfigure)?(e&&(n=new Map,e.compartments.forEach((a,h)=>n.set(h,a)),e=null),n.set(l.value.compartment,l.value.extension)):l.is(I.reconfigure)?(e=null,i=l.value):l.is(I.appendConfig)&&(e=null,i=Ue(i).concat(l.value));let r;e?r=t.startState.values.slice():(e=bn.resolve(i,n,this),r=new V(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=t.startState.facet(Vs)?t.newSelection:t.newSelection.asSingle();new V(e,t.newDoc,o,r,(l,a)=>a.update(l,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:x.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),n=this.changes(i.changes),r=[i.range],o=Ue(i.effects);for(let l=1;l<e.ranges.length;l++){let a=t(e.ranges[l]),h=this.changes(a.changes),c=h.map(n);for(let u=0;u<l;u++)r[u]=r[u].map(c);let f=n.mapDesc(h,!0);r.push(a.range.map(f)),n=n.compose(c),o=I.mapEffects(o,c).concat(I.mapEffects(Ue(a.effects),f))}return{changes:n,selection:x.create(r,e.mainIndex),effects:o}}changes(t=[]){return t instanceof _?t:_.of(t,this.doc.length,this.facet(V.lineSeparator))}toText(t){return W.of(t.split(this.facet(V.lineSeparator)||Is))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return e==null?t.default:(pi(this,e),xn(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let i in t){let n=t[i];n instanceof mt&&this.config.address[n.id]!=null&&(e[i]=n.spec.toJSON(this.field(t[i]),this))}return e}static fromJSON(t,e={},i){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(i){for(let r in i)if(Object.prototype.hasOwnProperty.call(t,r)){let o=i[r],l=t[r];n.push(o.init(a=>o.spec.fromJSON(l,a)))}}return V.create({doc:t.doc,selection:x.fromJSON(t.selection),extensions:e.extensions?n.concat([e.extensions]):n})}static create(t={}){let e=bn.resolve(t.extensions||[],new Map),i=t.doc instanceof W?t.doc:W.of((t.doc||"").split(e.staticFacet(V.lineSeparator)||Is)),n=t.selection?t.selection instanceof x?t.selection:x.single(t.selection.anchor,t.selection.head):x.single(0);return ta(n,i.length),e.staticFacet(Vs)||(n=n.asSingle()),new V(e,i,n,e.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(V.tabSize)}get lineBreak(){return this.facet(V.lineSeparator)||`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={play:"Reproducir",pause:"Pausa",noDuration:"Sin duración de observación",currentPosition:"Posición actual",duration:"Duración",switchToElapsed:"haz clic para mostrar el tiempo transcurrido",switchToClockTime:"haz clic para mostrar la hora del día",fullscreen:"Pantalla completa",exitFullscreen:"Salir de pantalla completa",mute:"Silenciar",unmute:"Activar el sonido",moments:"Momentos",moreControls:"Más controles",fewerControls:"Menos controles",showObserverMap:"Ver dónde estaba el observador",hideObserverMap:"Ocultar dónde estaba el observador",mapImageryUnavailable:"Vista aérea no disponible",zoomMapIn:"Acercar",zoomMapOut:"Alejar",fitMap:"Volver al trayecto completo",placeObserverHere:"Poner al observador aquí",showReferences:"Ver las fotos del lugar",hideReferences:"Ocultar las fotos del lugar",showTraces:"Ver los trazos del investigador",hideTraces:"Ocultar los trazos del investigador",referenceOpacity:"Opacidad de las fotos",showMilestones:"Ver los momentos del relato",hideMilestones:"Ocultar los momentos del relato",observerHere:"El observador, aquí",decorHere:"Elemento del decorado",recordingIssues:"{count} problema(s) en esta grabación: puede que no se reproduzca como su autor quería",issueTemplates:{"unknown-key":"{path}: clave desconocida, ignorada","wrong-type":"{path}: se esperaba {expected}, se encontró {found}","not-in-list":"{path}: {found} no es uno de {expected}",defaulted:"{path}: ausente, se usa {expected}",unplaced:"{path}: sin aim (ni bounds), dibujado en el centro de la vista",unsized:"{path}: sin tamaño angular (ni bounds), dibujado de un píxel de ancho","pixels-over-angles":"{path}: bounds repetido sin aim ni angular, así que la forma sigue los píxeles"}};export{e as ufoMessages_es};
|
|
1
|
+
const e={play:"Reproducir",pause:"Pausa",noDuration:"Sin duración de observación",currentPosition:"Posición actual",duration:"Duración",switchToElapsed:"haz clic para mostrar el tiempo transcurrido",switchToClockTime:"haz clic para mostrar la hora del día",fullscreen:"Pantalla completa",exitFullscreen:"Salir de pantalla completa",mute:"Silenciar",unmute:"Activar el sonido",moments:"Momentos",moreControls:"Más controles",fewerControls:"Menos controles",showObserverMap:"Ver dónde estaba el observador",hideObserverMap:"Ocultar dónde estaba el observador",mapImageryUnavailable:"Vista aérea no disponible",zoomMapIn:"Acercar",zoomMapOut:"Alejar",fitMap:"Volver al trayecto completo",placeObserverHere:"Poner al observador aquí",showReferences:"Ver las fotos del lugar",hideReferences:"Ocultar las fotos del lugar",showTraces:"Ver los trazos del investigador",hideTraces:"Ocultar los trazos del investigador",referenceOpacity:"Opacidad de las fotos",referencesMenu:"Fotos del lugar",showMilestones:"Ver los momentos del relato",hideMilestones:"Ocultar los momentos del relato",observerHere:"El observador, aquí",decorHere:"Elemento del decorado",recordingIssues:"{count} problema(s) en esta grabación: puede que no se reproduzca como su autor quería",issueTemplates:{"unknown-key":"{path}: clave desconocida, ignorada","wrong-type":"{path}: se esperaba {expected}, se encontró {found}","not-in-list":"{path}: {found} no es uno de {expected}",defaulted:"{path}: ausente, se usa {expected}",unplaced:"{path}: sin aim (ni bounds), dibujado en el centro de la vista",unsized:"{path}: sin tamaño angular (ni bounds), dibujado de un píxel de ancho","pixels-over-angles":"{path}: bounds repetido sin aim ni angular, así que la forma sigue los píxeles"}};export{e as ufoMessages_es};
|
package/dist-embed-sighting-editor/{UfoMessages_fr-BMafKxyw.js → UfoMessages_fr-6WbKsRDZ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={play:"Lecture",pause:"Pause",noDuration:"Aucune durée d'observation",currentPosition:"Position actuelle",duration:"Durée",switchToElapsed:"cliquer pour afficher la durée écoulée",switchToClockTime:"cliquer pour afficher l'heure de l'observation",fullscreen:"Plein écran",exitFullscreen:"Quitter le plein écran",mute:"Couper le son",unmute:"Rétablir le son",moments:"Moments",moreControls:"Plus de commandes",fewerControls:"Moins de commandes",showObserverMap:"Voir où était l'observateur",hideObserverMap:"Masquer où était l'observateur",mapImageryUnavailable:"Vue aérienne indisponible",zoomMapIn:"Zoomer",zoomMapOut:"Dézoomer",fitMap:"Revenir au trajet entier",placeObserverHere:"Placer l'observateur ici",showReferences:"Voir les photos des lieux",hideReferences:"Masquer les photos des lieux",showTraces:"Voir les tracés d'enquêteur",hideTraces:"Masquer les tracés d'enquêteur",referenceOpacity:"Opacité des photos",showMilestones:"Voir les moments du récit",hideMilestones:"Masquer les moments du récit",observerHere:"L'observateur, ici",decorHere:"Élément de décor",recordingIssues:"{count} problème(s) dans cet enregistrement : il peut ne pas jouer ce que son auteur voulait",issueTemplates:{"unknown-key":"{path} : clé inconnue, ignorée","wrong-type":"{path} : {expected} attendu, {found} trouvé","not-in-list":"{path} : {found} ne fait pas partie de {expected}",defaulted:"{path} : absent, {expected} utilisé",unplaced:"{path} : ni aim ni bounds, dessiné au milieu de la vue",unsized:"{path} : ni taille angulaire ni bounds, dessiné large d'un pixel","pixels-over-angles":"{path} : bounds redonné sans aim ni angular, la forme suit les pixels"}};export{e as ufoMessages_fr};
|
|
1
|
+
const e={play:"Lecture",pause:"Pause",noDuration:"Aucune durée d'observation",currentPosition:"Position actuelle",duration:"Durée",switchToElapsed:"cliquer pour afficher la durée écoulée",switchToClockTime:"cliquer pour afficher l'heure de l'observation",fullscreen:"Plein écran",exitFullscreen:"Quitter le plein écran",mute:"Couper le son",unmute:"Rétablir le son",moments:"Moments",moreControls:"Plus de commandes",fewerControls:"Moins de commandes",showObserverMap:"Voir où était l'observateur",hideObserverMap:"Masquer où était l'observateur",mapImageryUnavailable:"Vue aérienne indisponible",zoomMapIn:"Zoomer",zoomMapOut:"Dézoomer",fitMap:"Revenir au trajet entier",placeObserverHere:"Placer l'observateur ici",showReferences:"Voir les photos des lieux",hideReferences:"Masquer les photos des lieux",showTraces:"Voir les tracés d'enquêteur",hideTraces:"Masquer les tracés d'enquêteur",referenceOpacity:"Opacité des photos",referencesMenu:"Photos des lieux",showMilestones:"Voir les moments du récit",hideMilestones:"Masquer les moments du récit",observerHere:"L'observateur, ici",decorHere:"Élément de décor",recordingIssues:"{count} problème(s) dans cet enregistrement : il peut ne pas jouer ce que son auteur voulait",issueTemplates:{"unknown-key":"{path} : clé inconnue, ignorée","wrong-type":"{path} : {expected} attendu, {found} trouvé","not-in-list":"{path} : {found} ne fait pas partie de {expected}",defaulted:"{path} : absent, {expected} utilisé",unplaced:"{path} : ni aim ni bounds, dessiné au milieu de la vue",unsized:"{path} : ni taille angulaire ni bounds, dessiné large d'un pixel","pixels-over-angles":"{path} : bounds redonné sans aim ni angular, la forme suit les pixels"}};export{e as ufoMessages_fr};
|
package/dist-embed-sighting-editor/{UfoMessages_it-C7cNoyQt.js → UfoMessages_it-CHAJPqfh.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={play:"Riproduci",pause:"Pausa",noDuration:"Nessuna durata di osservazione",currentPosition:"Posizione attuale",duration:"Durata",switchToElapsed:"fai clic per mostrare il tempo trascorso",switchToClockTime:"fai clic per mostrare l'ora del giorno",fullscreen:"Schermo intero",exitFullscreen:"Esci dallo schermo intero",mute:"Disattiva audio",unmute:"Attiva audio",moments:"Momenti",moreControls:"Altri controlli",fewerControls:"Meno controlli",showObserverMap:"Mostra dove si trovava l'osservatore",hideObserverMap:"Nascondi dove si trovava l'osservatore",mapImageryUnavailable:"Vista aerea non disponibile",zoomMapIn:"Ingrandisci",zoomMapOut:"Riduci",fitMap:"Torna all'intero percorso",placeObserverHere:"Metti qui l'osservatore",showReferences:"Mostra le foto del luogo",hideReferences:"Nascondi le foto del luogo",showTraces:"Mostra i tracciati dell'investigatore",hideTraces:"Nascondi i tracciati dell'investigatore",referenceOpacity:"Opacità delle foto",showMilestones:"Mostra i momenti del resoconto",hideMilestones:"Nascondi i momenti del resoconto",observerHere:"L'osservatore, qui",decorHere:"Elemento della scenografia",recordingIssues:"{count} problema/i in questa registrazione: potrebbe non essere riprodotta come voleva il suo autore",issueTemplates:{"unknown-key":"{path}: chiave sconosciuta, ignorata","wrong-type":"{path}: atteso {expected}, trovato {found}","not-in-list":"{path}: {found} non è tra {expected}",defaulted:"{path}: assente, usato {expected}",unplaced:"{path}: nessun aim (né bounds), disegnato al centro della vista",unsized:"{path}: nessuna dimensione angolare (né bounds), disegnato largo un pixel","pixels-over-angles":"{path}: bounds ripetuto senza aim né angular, quindi la forma segue i pixel"}};export{e as ufoMessages_it};
|
|
1
|
+
const e={play:"Riproduci",pause:"Pausa",noDuration:"Nessuna durata di osservazione",currentPosition:"Posizione attuale",duration:"Durata",switchToElapsed:"fai clic per mostrare il tempo trascorso",switchToClockTime:"fai clic per mostrare l'ora del giorno",fullscreen:"Schermo intero",exitFullscreen:"Esci dallo schermo intero",mute:"Disattiva audio",unmute:"Attiva audio",moments:"Momenti",moreControls:"Altri controlli",fewerControls:"Meno controlli",showObserverMap:"Mostra dove si trovava l'osservatore",hideObserverMap:"Nascondi dove si trovava l'osservatore",mapImageryUnavailable:"Vista aerea non disponibile",zoomMapIn:"Ingrandisci",zoomMapOut:"Riduci",fitMap:"Torna all'intero percorso",placeObserverHere:"Metti qui l'osservatore",showReferences:"Mostra le foto del luogo",hideReferences:"Nascondi le foto del luogo",showTraces:"Mostra i tracciati dell'investigatore",hideTraces:"Nascondi i tracciati dell'investigatore",referenceOpacity:"Opacità delle foto",referencesMenu:"Foto del luogo",showMilestones:"Mostra i momenti del resoconto",hideMilestones:"Nascondi i momenti del resoconto",observerHere:"L'osservatore, qui",decorHere:"Elemento della scenografia",recordingIssues:"{count} problema/i in questa registrazione: potrebbe non essere riprodotta come voleva il suo autore",issueTemplates:{"unknown-key":"{path}: chiave sconosciuta, ignorata","wrong-type":"{path}: atteso {expected}, trovato {found}","not-in-list":"{path}: {found} non è tra {expected}",defaulted:"{path}: assente, usato {expected}",unplaced:"{path}: nessun aim (né bounds), disegnato al centro della vista",unsized:"{path}: nessuna dimensione angolare (né bounds), disegnato largo un pixel","pixels-over-angles":"{path}: bounds ripetuto senza aim né angular, quindi la forma segue i pixel"}};export{e as ufoMessages_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var z=Uint8Array,Q=Uint16Array,Tr=Int32Array,gr=new z([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),wr=new z([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Mr=new z([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Hr=function(r,e){for(var n=new Q(31),a=0;a<31;++a)n[a]=e+=1<<r[a-1];for(var v=new Tr(n[30]),a=1;a<30;++a)for(var f=n[a];f<n[a+1];++f)v[f]=f-n[a]<<5|a;return{b:n,r:v}},Or=Hr(gr,2),Vr=Or.b,Sr=Or.r;Vr[28]=258,Sr[258]=28;var Yr=Hr(wr,0),Pr=Yr.b,Br=Yr.r,Ar=new Q(32768);for(var C=0;C<32768;++C){var b=(C&43690)>>1|(C&21845)<<1;b=(b&52428)>>2|(b&13107)<<2,b=(b&61680)>>4|(b&3855)<<4,Ar[C]=((b&65280)>>8|(b&255)<<8)>>1}var j=(function(r,e,n){for(var a=r.length,v=0,f=new Q(e);v<a;++v)r[v]&&++f[r[v]-1];var o=new Q(e);for(v=1;v<e;++v)o[v]=o[v-1]+f[v-1]<<1;var t;if(n){t=new Q(1<<e);var g=15-e;for(v=0;v<a;++v)if(r[v])for(var u=v<<4|r[v],l=e-r[v],i=o[r[v]-1]++<<l,h=i|(1<<l)-1;i<=h;++i)t[Ar[i]>>g]=u}else for(t=new Q(a),v=0;v<a;++v)r[v]&&(t[v]=Ar[o[r[v]-1]++]>>15-r[v]);return t}),d=new z(288);for(var C=0;C<144;++C)d[C]=8;for(var C=144;C<256;++C)d[C]=9;for(var C=256;C<280;++C)d[C]=7;for(var C=280;C<288;++C)d[C]=8;var or=new z(32);for(var C=0;C<32;++C)or[C]=5;var Qr=j(d,9,0),Rr=j(d,9,1),Wr=j(or,5,0),Xr=j(or,5,1),sr=function(r){for(var e=r[0],n=1;n<r.length;++n)r[n]>e&&(e=r[n]);return e},X=function(r,e,n){var a=e/8|0;return(r[a]|r[a+1]<<8)>>(e&7)&n},xr=function(r,e){var n=e/8|0;return(r[n]|r[n+1]<<8|r[n+2]<<16)>>(e&7)},mr=function(r){return(r+7)/8|0},tr=function(r,e,n){return(e==null||e<0)&&(e=0),(n==null||n>r.length)&&(n=r.length),new z(r.subarray(e,n))},Zr=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Y=function(r,e,n){var a=new Error(e||Zr[r]);if(a.code=r,Error.captureStackTrace&&Error.captureStackTrace(a,Y),!n)throw a;return a},$r=function(r,e,n,a){var v=r.length,f=a?a.length:0;if(!v||e.f&&!e.l)return n||new z(0);var o=!n,t=o||e.i!=2,g=e.i;o&&(n=new z(v*3));var u=function(vr){var fr=n.length;if(vr>fr){var nr=new z(Math.max(fr*2,vr));nr.set(n),n=nr}},l=e.f||0,i=e.p||0,h=e.b||0,c=e.l,y=e.d,x=e.m,M=e.n,m=v*8;do{if(!c){l=X(r,i,1);var O=X(r,i+1,3);if(i+=3,O)if(O==1)c=Rr,y=Xr,x=9,M=5;else if(O==2){var U=X(r,i,31)+257,T=X(r,i+10,15)+4,s=U+X(r,i+5,31)+1;i+=14;for(var w=new z(s),D=new z(19),B=0;B<T;++B)D[Mr[B]]=X(r,i+B*3,7);i+=T*3;for(var V=sr(D),p=(1<<V)-1,K=j(D,V,1),B=0;B<s;){var G=K[X(r,i,p)];i+=G&15;var F=G>>4;if(F<16)w[B++]=F;else{var I=0,S=0;for(F==16?(S=3+X(r,i,3),i+=2,I=w[B-1]):F==17?(S=3+X(r,i,7),i+=3):F==18&&(S=11+X(r,i,127),i+=7);S--;)w[B++]=I}}var J=w.subarray(0,U),q=w.subarray(U);x=sr(J),M=sr(q),c=j(J,x,1),y=j(q,M,1)}else Y(1);else{var F=mr(i)+4,k=r[F-4]|r[F-3]<<8,E=F+k;if(E>v){g&&Y(0);break}t&&u(h+k),n.set(r.subarray(F,E),h),e.b=h+=k,e.p=i=E*8,e.f=l;continue}if(i>m){g&&Y(0);break}}t&&u(h+131072);for(var ar=(1<<x)-1,R=(1<<M)-1,L=i;;L=i){var I=c[xr(r,i)&ar],N=I>>4;if(i+=I&15,i>m){g&&Y(0);break}if(I||Y(2),N<256)n[h++]=N;else if(N==256){L=i,c=null;break}else{var P=N-254;if(N>264){var B=N-257,A=gr[B];P=X(r,i,(1<<A)-1)+Vr[B],i+=A}var Z=y[xr(r,i)&R],rr=Z>>4;Z||Y(3),i+=Z&15;var q=Pr[rr];if(rr>3){var A=wr[rr];q+=xr(r,i)&(1<<A)-1,i+=A}if(i>m){g&&Y(0);break}t&&u(h+131072);var er=h+P;if(h<q){var ur=f-q,hr=Math.min(q,er);for(ur+h<0&&Y(3);h<hr;++h)n[h]=a[ur+h]}for(;h<er;++h)n[h]=n[h-q]}}e.l=c,e.p=L,e.b=h,e.f=l,c&&(l=1,e.m=x,e.d=y,e.n=M)}while(!l);return h!=n.length&&o?tr(n,0,h):n.subarray(0,h)},_=function(r,e,n){n<<=e&7;var a=e/8|0;r[a]|=n,r[a+1]|=n>>8},ir=function(r,e,n){n<<=e&7;var a=e/8|0;r[a]|=n,r[a+1]|=n>>8,r[a+2]|=n>>16},yr=function(r,e){for(var n=[],a=0;a<r.length;++a)r[a]&&n.push({s:a,f:r[a]});var v=n.length,f=n.slice();if(!v)return{t:Jr,l:0};if(v==1){var o=new z(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(E,U){return E.f-U.f}),n.push({s:-1,f:25001});var t=n[0],g=n[1],u=0,l=1,i=2;for(n[0]={s:-1,f:t.f+g.f,l:t,r:g};l!=v-1;)t=n[n[u].f<n[i].f?u++:i++],g=n[u!=l&&n[u].f<n[i].f?u++:i++],n[l++]={s:-1,f:t.f+g.f,l:t,r:g};for(var h=f[0].s,a=1;a<v;++a)f[a].s>h&&(h=f[a].s);var c=new Q(h+1),y=zr(n[l-1],c,0);if(y>e){var a=0,x=0,M=y-e,m=1<<M;for(f.sort(function(U,T){return c[T.s]-c[U.s]||U.f-T.f});a<v;++a){var O=f[a].s;if(c[O]>e)x+=m-(1<<y-c[O]),c[O]=e;else break}for(x>>=M;x>0;){var F=f[a].s;c[F]<e?x-=1<<e-c[F]++-1:++a}for(;a>=0&&x;--a){var k=f[a].s;c[k]==e&&(--c[k],++x)}y=e}return{t:new z(c),l:y}},zr=function(r,e,n){return r.s==-1?Math.max(zr(r.l,e,n+1),zr(r.r,e,n+1)):e[r.s]=n},Er=function(r){for(var e=r.length;e&&!r[--e];);for(var n=new Q(++e),a=0,v=r[0],f=1,o=function(g){n[a++]=g},t=1;t<=e;++t)if(r[t]==v&&t!=e)++f;else{if(!v&&f>2){for(;f>138;f-=138)o(32754);f>2&&(o(f>10?f-11<<5|28690:f-3<<5|12305),f=0)}else if(f>3){for(o(v),--f;f>6;f-=6)o(8304);f>2&&(o(f-3<<5|8208),f=0)}for(;f--;)o(v);f=1,v=r[t]}return{c:n.subarray(0,a),n:e}},lr=function(r,e){for(var n=0,a=0;a<e.length;++a)n+=r[a]*e[a];return n},Gr=function(r,e,n){var a=n.length,v=mr(e+2);r[v]=a&255,r[v+1]=a>>8,r[v+2]=r[v]^255,r[v+3]=r[v+1]^255;for(var f=0;f<a;++f)r[v+f+4]=n[f];return(v+4+a)*8},Ur=function(r,e,n,a,v,f,o,t,g,u,l){_(e,l++,n),++v[256];for(var i=yr(v,15),h=i.t,c=i.l,y=yr(f,15),x=y.t,M=y.l,m=Er(h),O=m.c,F=m.n,k=Er(x),E=k.c,U=k.n,T=new Q(19),s=0;s<O.length;++s)++T[O[s]&31];for(var s=0;s<E.length;++s)++T[E[s]&31];for(var w=yr(T,7),D=w.t,B=w.l,V=19;V>4&&!D[Mr[V-1]];--V);var p=u+5<<3,K=lr(v,d)+lr(f,or)+o,G=lr(v,h)+lr(f,x)+o+14+3*V+lr(T,D)+2*T[16]+3*T[17]+7*T[18];if(g>=0&&p<=K&&p<=G)return Gr(e,l,r.subarray(g,g+u));var I,S,J,q;if(_(e,l,1+(G<K)),l+=2,G<K){I=j(h,c,0),S=h,J=j(x,M,0),q=x;var ar=j(D,B,0);_(e,l,F-257),_(e,l+5,U-1),_(e,l+10,V-4),l+=14;for(var s=0;s<V;++s)_(e,l+3*s,D[Mr[s]]);l+=3*V;for(var R=[O,E],L=0;L<2;++L)for(var N=R[L],s=0;s<N.length;++s){var P=N[s]&31;_(e,l,ar[P]),l+=D[P],P>15&&(_(e,l,N[s]>>5&127),l+=N[s]>>12)}}else I=Qr,S=d,J=Wr,q=or;for(var s=0;s<t;++s){var A=a[s];if(A>255){var P=A>>18&31;ir(e,l,I[P+257]),l+=S[P+257],P>7&&(_(e,l,A>>23&31),l+=gr[P]);var Z=A&31;ir(e,l,J[Z]),l+=q[Z],Z>3&&(ir(e,l,A>>5&8191),l+=wr[Z])}else ir(e,l,I[A]),l+=S[A]}return ir(e,l,I[256]),l+S[256]},jr=new Tr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Jr=new z(0),Lr=function(r,e,n,a,v,f){var o=f.z||r.length,t=new z(a+o+5*(1+Math.ceil(o/7e3))+v),g=t.subarray(a,t.length-v),u=f.l,l=(f.r||0)&7;if(e){l&&(g[0]=f.r>>3);for(var i=jr[e-1],h=i>>13,c=i&8191,y=(1<<n)-1,x=f.p||new Q(32768),M=f.h||new Q(y+1),m=Math.ceil(n/3),O=2*m,F=function(cr){return(r[cr]^r[cr+1]<<m^r[cr+2]<<O)&y},k=new Tr(25e3),E=new Q(288),U=new Q(32),T=0,s=0,w=f.i||0,D=0,B=f.w||0,V=0;w+2<o;++w){var p=F(w),K=w&32767,G=M[p];if(x[K]=G,M[p]=K,B<=w){var I=o-w;if((T>7e3||D>24576)&&(I>423||!u)){l=Ur(r,g,0,k,E,U,s,D,V,w-V,l),D=T=s=0,V=w;for(var S=0;S<286;++S)E[S]=0;for(var S=0;S<30;++S)U[S]=0}var J=2,q=0,ar=c,R=K-G&32767;if(I>2&&p==F(w-R))for(var L=Math.min(h,I)-1,N=Math.min(32767,w),P=Math.min(258,I);R<=N&&--ar&&K!=G;){if(r[w+J]==r[w+J-R]){for(var A=0;A<P&&r[w+A]==r[w+A-R];++A);if(A>J){if(J=A,q=R,A>L)break;for(var Z=Math.min(R,A-2),rr=0,S=0;S<Z;++S){var er=w-R+S&32767,ur=x[er],hr=er-ur&32767;hr>rr&&(rr=hr,G=er)}}}K=G,G=x[K],R+=K-G&32767}if(q){k[D++]=268435456|Sr[J]<<18|Br[q];var vr=Sr[J]&31,fr=Br[q]&31;s+=gr[vr]+wr[fr],++E[257+vr],++U[fr],B=w+J,++T}else k[D++]=r[w],++E[r[w]]}}for(w=Math.max(w,B);w<o;++w)k[D++]=r[w],++E[r[w]];l=Ur(r,g,u,k,E,U,s,D,V,w-V,l),u||(f.r=l&7|g[l/8|0]<<3,l-=7,f.h=M,f.p=x,f.i=w,f.w=B)}else{for(var w=f.w||0;w<o+u;w+=65535){var nr=w+65535;nr>=o&&(g[l/8|0]=u,nr=o),l=Gr(g,l+1,r.subarray(w,nr))}f.i=o}return tr(t,0,a+mr(l)+v)},_r=(function(){for(var r=new Int32Array(256),e=0;e<256;++e){for(var n=e,a=9;--a;)n=(n&1&&-306674912)^n>>>1;r[e]=n}return r})(),pr=function(){var r=-1;return{p:function(e){for(var n=r,a=0;a<e.length;++a)n=_r[n&255^e[a]]^n>>>8;r=n},d:function(){return~r}}},br=function(r,e,n,a,v){if(!v&&(v={l:1},e.dictionary)){var f=e.dictionary.subarray(-32768),o=new z(f.length+r.length);o.set(f),o.set(r,f.length),r=o,v.w=f.length}return Lr(r,e.level==null?6:e.level,e.mem==null?v.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,n,a,v)},Kr=function(r,e){var n={};for(var a in r)n[a]=r[a];for(var a in e)n[a]=e[a];return n},$=function(r,e){return r[e]|r[e+1]<<8},W=function(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24)>>>0},Cr=function(r,e){return W(r,e)+W(r,e+4)*4294967296},H=function(r,e,n){for(;n;++e)r[e]=n,n>>>=8};function dr(r,e){return br(r,e||{},0,0)}function re(r,e){return $r(r,{i:2},e&&e.out,e&&e.dictionary)}var Nr=function(r,e,n,a){for(var v in r){var f=r[v],o=e+v,t=a;Array.isArray(f)&&(t=Kr(a,f[1]),f=f[0]),ArrayBuffer.isView(f)?n[o]=[f,t]:(n[o+="/"]=[new z(0),t],Nr(f,o,n,a))}},Dr=typeof TextEncoder<"u"&&new TextEncoder,Fr=typeof TextDecoder<"u"&&new TextDecoder,ee=0;try{Fr.decode(Jr,{stream:!0}),ee=1}catch{}var ne=function(r){for(var e="",n=0;;){var a=r[n++],v=(a>127)+(a>223)+(a>239);if(n+v>r.length)return{s:e,r:tr(r,n-1)};v?v==3?(a=((a&15)<<18|(r[n++]&63)<<12|(r[n++]&63)<<6|r[n++]&63)-65536,e+=String.fromCharCode(55296|a>>10,56320|a&1023)):v&1?e+=String.fromCharCode((a&31)<<6|r[n++]&63):e+=String.fromCharCode((a&15)<<12|(r[n++]&63)<<6|r[n++]&63):e+=String.fromCharCode(a)}};function Ir(r,e){if(e){for(var n=new z(r.length),a=0;a<r.length;++a)n[a]=r.charCodeAt(a);return n}if(Dr)return Dr.encode(r);for(var v=r.length,f=new z(r.length+(r.length>>1)),o=0,t=function(l){f[o++]=l},a=0;a<v;++a){if(o+5>f.length){var g=new z(o+8+(v-a<<1));g.set(f),f=g}var u=r.charCodeAt(a);u<128||e?t(u):u<2048?(t(192|u>>6),t(128|u&63)):u>55295&&u<57344?(u=65536+(u&1047552)|r.charCodeAt(++a)&1023,t(240|u>>18),t(128|u>>12&63),t(128|u>>6&63),t(128|u&63)):(t(224|u>>12),t(128|u>>6&63),t(128|u&63))}return tr(f,0,o)}function ae(r,e){if(e){for(var n="",a=0;a<r.length;a+=16384)n+=String.fromCharCode.apply(null,r.subarray(a,a+16384));return n}else{if(Fr)return Fr.decode(r);var v=ne(r),f=v.s,n=v.r;return n.length&&Y(8),f}}var ve=function(r,e){return e+30+$(r,e+26)+$(r,e+28)},fe=function(r,e,n){var a=$(r,e+28),v=$(r,e+30),f=ae(r.subarray(e+46,e+46+a),!($(r,e+8)&2048)),o=e+46+a,t=ie(r,o,v,n,W(r,e+20),W(r,e+24),W(r,e+42)),g=t[0],u=t[1],l=t[2];return[$(r,e+10),g,u,f,o+v+$(r,e+32),l]},ie=function(r,e,n,a,v,f,o){var t=v==4294967295,g=f==4294967295,u=o==4294967295,l=e+n,i=t+g+u;if(a&&i){for(;e+4<l;e+=4+$(r,e+2))if($(r,e)==1)return[t?Cr(r,e+4+8*g):v,g?Cr(r,e+4):f,u?Cr(r,e+4+8*(g+t)):o,1];a<2&&Y(13)}return[v,f,o,0]},kr=function(r){var e=0;if(r)for(var n in r){var a=r[n].length;a>65535&&Y(9),e+=a+4}return e},qr=function(r,e,n,a,v,f,o,t){var g=a.length,u=n.extra,l=t&&t.length,i=kr(u);H(r,e,o!=null?33639248:67324752),e+=4,o!=null&&(r[e++]=20,r[e++]=n.os),r[e]=20,e+=2,r[e++]=n.flag<<1|(f<0&&8),r[e++]=v&&8,r[e++]=n.compression&255,r[e++]=n.compression>>8;var h=new Date(n.mtime==null?Date.now():n.mtime),c=h.getFullYear()-1980;if((c<0||c>119)&&Y(10),H(r,e,c<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),e+=4,f!=-1&&(H(r,e,n.crc),H(r,e+4,f<0?-f-2:f),H(r,e+8,n.size)),H(r,e+12,g),H(r,e+14,i),e+=16,o!=null&&(H(r,e,l),H(r,e+6,n.attrs),H(r,e+10,o),e+=14),r.set(a,e),e+=g,i)for(var y in u){var x=u[y],M=x.length;H(r,e,+y),H(r,e+2,M),r.set(x,e+4),e+=4+M}return l&&(r.set(t,e),e+=l),e},le=function(r,e,n,a,v){H(r,e,101010256),H(r,e+8,n),H(r,e+10,n),H(r,e+12,a),H(r,e+16,v)};function oe(r,e){e||(e={});var n={},a=[];Nr(r,"",n,e);var v=0,f=0;for(var o in n){var t=n[o],g=t[0],u=t[1],l=u.level==0?0:8,i=Ir(o),h=i.length,c=u.comment,y=c&&Ir(c),x=y&&y.length,M=kr(u.extra);h>65535&&Y(11);var m=l?dr(g,u):g,O=m.length,F=pr();F.p(g),a.push(Kr(u,{size:g.length,crc:F.d(),c:m,f:i,m:y,u:h!=o.length||y&&c.length!=x,o:v,compression:l})),v+=30+h+M+O,f+=76+2*(h+M)+(x||0)+O}for(var k=new z(f+22),E=v,U=f-v,T=0;T<a.length;++T){var i=a[T];qr(k,i.o,i,i.f,i.u,i.c.length);var s=30+i.f.length+kr(i.extra);k.set(i.c,i.o+s),qr(k,v,i,i.f,i.u,i.c.length,i.o,i.m),v+=16+s+(i.m?i.m.length:0)}return le(k,v,a.length,U,E),k}function te(r,e){for(var n={},a=r.length-22;W(r,a)!=101010256;--a)(!a||r.length-a>65558)&&Y(13);var v=$(r,a+8);if(!v)return{};var f=W(r,a+16),o=W(r,a-20)==117853008;if(o){var t=W(r,a-12);o=W(r,t)==101075792,o&&(v=W(r,t+32),f=W(r,t+48))}for(var g=e&&e.filter,u=0;u<v;++u){var l=fe(r,f,o),i=l[0],h=l[1],c=l[2],y=l[3],x=l[4],M=l[5],m=ve(r,M);f=x,(!g||g({name:y,size:h,originalSize:c,compression:i}))&&(i?i==8?n[y]=re(r.subarray(m,m+h),{out:new z(c)}):Y(14,"unknown compression type "+i):n[y]=tr(r,m,m+h))}return n}export{dr as deflateSync,re as inflateSync,ae as strFromU8,Ir as strToU8,te as unzipSync,oe as zipSync};
|