-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.js
More file actions
4 lines (4 loc) · 110 KB
/
Copy pathmod.js
File metadata and controls
4 lines (4 loc) · 110 KB
1
2
3
4
// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
/// <reference types="./mod.d.ts" />
var r=/./,e="function"==typeof Object.defineProperty?Object.defineProperty:null;var t=Object.defineProperty;function n(r){return"number"==typeof r}function i(r){var e,t="";for(e=0;e<r;e++)t+="0";return t}function o(r,e,t){var n=!1,o=e-r.length;return o<0||(function(r){return"-"===r[0]}(r)&&(n=!0,r=r.substr(1)),r=t?r+i(o):i(o)+r,n&&(r="-"+r)),r}var a=String.prototype.toLowerCase,u=String.prototype.toUpperCase;function f(r){var e,t,i;switch(r.specifier){case"b":e=2;break;case"o":e=8;break;case"x":case"X":e=16;break;default:e=10}if(t=r.arg,i=parseInt(t,10),!isFinite(i)){if(!n(t))throw new Error("invalid integer. Value: "+t);i=0}return i<0&&("u"===r.specifier||10!==e)&&(i=4294967295+i+1),i<0?(t=(-i).toString(e),r.precision&&(t=o(t,r.precision,r.padRight)),t="-"+t):(t=i.toString(e),i||r.precision?r.precision&&(t=o(t,r.precision,r.padRight)):t="",r.sign&&(t=r.sign+t)),16===e&&(r.alternate&&(t="0x"+t),t=r.specifier===u.call(r.specifier)?u.call(t):a.call(t)),8===e&&r.alternate&&"0"!==t.charAt(0)&&(t="0"+t),t}var s=Math.abs,l=String.prototype.toLowerCase,h=String.prototype.toUpperCase,c=String.prototype.replace,p=/e\+(\d)$/,g=/e-(\d)$/,y=/^(\d+)$/,m=/^(\d+)e/,w=/\.0$/,v=/\.0*e/,b=/(\..*[^0])0*e/;function d(r,e){var t,n;switch(e.specifier){case"e":case"E":n=r.toExponential(e.precision);break;case"f":case"F":n=r.toFixed(e.precision);break;case"g":case"G":s(r)<1e-4?((t=e.precision)>0&&(t-=1),n=r.toExponential(t)):n=r.toPrecision(e.precision),e.alternate||(n=c.call(n,b,"$1e"),n=c.call(n,v,"e"),n=c.call(n,w,""));break;default:throw new Error("invalid double notation. Value: "+e.specifier)}return n=c.call(n,p,"e+0$1"),n=c.call(n,g,"e-0$1"),e.alternate&&(n=c.call(n,y,"$1."),n=c.call(n,m,"$1.e")),r>=0&&e.sign&&(n=e.sign+n),n=e.specifier===h.call(e.specifier)?h.call(n):l.call(n)}function E(r){var e,t="";for(e=0;e<r;e++)t+=" ";return t}var T=String.fromCharCode,_=Array.isArray;function V(r){return r!=r}function x(r){var e={};return e.specifier=r.specifier,e.precision=void 0===r.precision?1:r.precision,e.width=r.width,e.flags=r.flags||"",e.mapping=r.mapping,e}function A(r){var e,t,i,a,u,s,l,h,c,p,g,y,m,w;if(!_(r))throw new TypeError("invalid argument. First argument must be an array. Value: `"+r+"`.");for(s="",l=1,c=0;c<r.length;c++)if(i=r[c],"string"==typeof i)s+=i;else{if(e=void 0!==i.precision,!(i=x(i)).specifier)throw new TypeError("invalid argument. Token is missing `specifier` property. Index: `"+c+"`. Value: `"+i+"`.");for(i.mapping&&(l=i.mapping),t=i.flags,p=0;p<t.length;p++)switch(a=t.charAt(p)){case" ":i.sign=" ";break;case"+":i.sign="+";break;case"-":i.padRight=!0,i.padZeros=!1;break;case"0":i.padZeros=t.indexOf("-")<0;break;case"#":i.alternate=!0;break;default:throw new Error("invalid flag: "+a)}if("*"===i.width){if(i.width=parseInt(arguments[l],10),l+=1,V(i.width))throw new TypeError("the argument for * width at position "+l+" is not a number. Value: `"+i.width+"`.");i.width<0&&(i.padRight=!0,i.width=-i.width)}if(e&&"*"===i.precision){if(i.precision=parseInt(arguments[l],10),l+=1,V(i.precision))throw new TypeError("the argument for * precision at position "+l+" is not a number. Value: `"+i.precision+"`.");i.precision<0&&(i.precision=1,e=!1)}switch(i.arg=arguments[l],i.specifier){case"b":case"o":case"x":case"X":case"d":case"i":case"u":e&&(i.padZeros=!1),i.arg=f(i);break;case"s":i.maxWidth=e?i.precision:-1,i.arg=String(i.arg);break;case"c":if(!V(i.arg)){if((u=parseInt(i.arg,10))<0||u>127)throw new Error("invalid character code. Value: "+i.arg);i.arg=V(u)?String(i.arg):T(u)}break;case"e":case"E":case"f":case"F":case"g":case"G":if(e||(i.precision=6),h=parseFloat(i.arg),!isFinite(h)){if(!n(i.arg))throw new Error("invalid floating-point number. Value: "+s);h=i.arg,i.padZeros=!1}i.arg=d(h,i);break;default:throw new Error("invalid specifier: "+i.specifier)}i.maxWidth>=0&&i.arg.length>i.maxWidth&&(i.arg=i.arg.substring(0,i.maxWidth)),i.padZeros?i.arg=o(i.arg,i.width||i.precision,i.padRight):i.width&&(i.arg=(g=i.arg,y=i.width,m=i.padRight,w=void 0,(w=y-g.length)<0?g:g=m?g+E(w):E(w)+g)),s+=i.arg||"",l+=1}return s}var F=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;function j(r){var e={mapping:r[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]};return"."===r[4]&&void 0===r[5]&&(e.precision="1"),e}function S(r){var e,t,n,i;for(t=[],i=0,n=F.exec(r);n;)(e=r.slice(i,F.lastIndex-n[0].length)).length&&t.push(e),"%"===n[6]?t.push("%"):t.push(j(n)),i=F.lastIndex,n=F.exec(r);return(e=r.slice(i)).length&&t.push(e),t}function k(r){var e,t;if("string"!=typeof r)throw new TypeError(k("invalid argument. First argument must be a string. Value: `%s`.",r));for(e=[S(r)],t=1;t<arguments.length;t++)e.push(arguments[t]);return A.apply(null,e)}var L,R=Object.prototype,B=R.toString,I=R.__defineGetter__,O=R.__defineSetter__,C=R.__lookupGetter__,M=R.__lookupSetter__;L=function(){try{return e({},"x",{}),!0}catch(r){return!1}}()?t:function(r,e,t){var n,i,o,a;if("object"!=typeof r||null===r||"[object Array]"===B.call(r))throw new TypeError(k("invalid argument. First argument must be an object. Value: `%s`.",r));if("object"!=typeof t||null===t||"[object Array]"===B.call(t))throw new TypeError(k("invalid argument. Property descriptor must be an object. Value: `%s`.",t));if((i="value"in t)&&(C.call(r,e)||M.call(r,e)?(n=r.__proto__,r.__proto__=R,delete r[e],r[e]=t.value,r.__proto__=n):r[e]=t.value),o="get"in t,a="set"in t,i&&(o||a))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return o&&I&&I.call(r,e,t.get),a&&O&&O.call(r,e,t.set),r};var P=L;function N(r,e,t){P(r,e,{configurable:!1,enumerable:!1,writable:!1,value:t})}function U(r){return"boolean"==typeof r}var Y="function"==typeof Symbol&&"symbol"==typeof Symbol("foo");function W(){return Y&&"symbol"==typeof Symbol.toStringTag}var Z=Object.prototype.toString;var $=Object.prototype.hasOwnProperty;function G(r,e){return null!=r&&$.call(r,e)}var J="function"==typeof Symbol?Symbol:void 0,D="function"==typeof J?J.toStringTag:"";var X=W()?function(r){var e,t,n;if(null==r)return Z.call(r);t=r[D],e=G(r,D);try{r[D]=void 0}catch(e){return Z.call(r)}return n=Z.call(r),e?r[D]=t:delete r[D],n}:function(r){return Z.call(r)},z=Boolean,q=Boolean.prototype.toString;var H=W();function K(r){return"object"==typeof r&&(r instanceof z||(H?function(r){try{return q.call(r),!0}catch(r){return!1}}(r):"[object Boolean]"===X(r)))}function Q(r){return U(r)||K(r)}N(Q,"isPrimitive",U),N(Q,"isObject",K);var rr="object"==typeof self?self:null,er="object"==typeof window?window:null,tr="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},nr="object"==typeof tr?tr:null,ir="object"==typeof globalThis?globalThis:null;var or=function(r){if(arguments.length){if(!U(r))throw new TypeError(k("invalid argument. Must provide a boolean. Value: `%s`.",r));if(r)return new Function("return this;")()}if(ir)return ir;if(rr)return rr;if(er)return er;if(nr)return nr;throw new Error("unexpected error. Unable to resolve global object.")}(),ar=or.document&&or.document.childNodes,ur=Int8Array;function fr(){return/^\s*function\s*([^(]*)/i}var sr=/^\s*function\s*([^(]*)/i;N(fr,"REGEXP",sr);var lr=Array.isArray?Array.isArray:function(r){return"[object Array]"===X(r)};function hr(r){if("function"!=typeof r)throw new TypeError(k("invalid argument. Must provide a function. Value: `%s`.",r));return function(e){var t,n;if(!lr(e))return!1;if(0===(t=e.length))return!1;for(n=0;n<t;n++)if(!1===r(e[n]))return!1;return!0}}function cr(r){return null!==r&&"object"==typeof r}function pr(r){return cr(r)&&(r._isBuffer||r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r))}function gr(r){var e,t,n;if(("Object"===(t=X(r).slice(8,-1))||"Error"===t)&&r.constructor){if("string"==typeof(n=r.constructor).name)return n.name;if(e=sr.exec(n.toString()))return e[1]}return pr(r)?"Buffer":t}N(cr,"isObjectLikeArray",hr(cr));var yr="function"==typeof r||"object"==typeof ur||"function"==typeof ar?function(r){return gr(r).toLowerCase()}:function(r){var e;return null===r?"null":"object"===(e=typeof r)?gr(r).toLowerCase():e};function mr(r){return"function"===yr(r)}function wr(r){return"string"==typeof r}var vr=String.prototype.valueOf;var br=W();function dr(r){return"object"==typeof r&&(r instanceof String||(br?function(r){try{return vr.call(r),!0}catch(r){return!1}}(r):"[object String]"===X(r)))}function Er(r){return wr(r)||dr(r)}function Tr(r){return"object"==typeof r&&null!==r&&!lr(r)}N(Er,"isPrimitive",wr),N(Er,"isObject",dr);var _r,Vr=Object,xr=Object.getPrototypeOf;_r=mr(Object.getPrototypeOf)?xr:function(r){var e=function(r){return r.__proto__}(r);return e||null===e?e:"[object Function]"===X(r.constructor)?r.constructor.prototype:r instanceof Vr?Vr.prototype:null};var Ar=_r;var Fr=Object.prototype;function jr(r){var e;return!!Tr(r)&&(e=function(r){return null==r?null:(r=Vr(r),Ar(r))}(r),!e||!G(r,"constructor")&&G(e,"constructor")&&mr(e.constructor)&&"[object Function]"===X(e.constructor)&&G(e,"isPrototypeOf")&&mr(e.isPrototypeOf)&&(e===Fr||function(r){var e;for(e in r)if(!G(r,e))return!1;return!0}(r)))}var Sr="function";function kr(r){return typeof r.get===Sr&&typeof r.set===Sr}var Lr={complex128:function(r,e){return r.get(e)},complex64:function(r,e){return r.get(e)},default:function(r,e){return r.get(e)}};function Rr(r){var e=Lr[r];return"function"==typeof e?e:Lr.default}var Br={float64:function(r,e){return r[e]},float32:function(r,e){return r[e]},int32:function(r,e){return r[e]},int16:function(r,e){return r[e]},int8:function(r,e){return r[e]},uint32:function(r,e){return r[e]},uint16:function(r,e){return r[e]},uint8:function(r,e){return r[e]},uint8c:function(r,e){return r[e]},generic:function(r,e){return r[e]},default:function(r,e){return r[e]}};function Ir(r){var e=Br[r];return"function"==typeof e?e:Br.default}var Or={Float32Array:"float32",Float64Array:"float64",Array:"generic",Int16Array:"int16",Int32Array:"int32",Int8Array:"int8",Uint16Array:"uint16",Uint32Array:"uint32",Uint8Array:"uint8",Uint8ClampedArray:"uint8c",Complex64Array:"complex64",Complex128Array:"complex128",BooleanArray:"bool"},Cr="function"==typeof Float64Array;var Mr="function"==typeof Float64Array?Float64Array:null;var Pr="function"==typeof Float64Array?Float64Array:void 0;var Nr=function(){var r,e,t;if("function"!=typeof Mr)return!1;try{e=new Mr([1,3.14,-3.14,NaN]),t=e,r=(Cr&&t instanceof Float64Array||"[object Float64Array]"===X(t))&&1===e[0]&&3.14===e[1]&&-3.14===e[2]&&e[3]!=e[3]}catch(e){r=!1}return r}()?Pr:function(){throw new Error("not implemented")},Ur="function"==typeof Float32Array;var Yr=Number.POSITIVE_INFINITY,Wr="function"==typeof Float32Array?Float32Array:null;var Zr="function"==typeof Float32Array?Float32Array:void 0;var $r=function(){var r,e,t;if("function"!=typeof Wr)return!1;try{e=new Wr([1,3.14,-3.14,5e40]),t=e,r=(Ur&&t instanceof Float32Array||"[object Float32Array]"===X(t))&&1===e[0]&&3.140000104904175===e[1]&&-3.140000104904175===e[2]&&e[3]===Yr}catch(e){r=!1}return r}()?Zr:function(){throw new Error("not implemented")},Gr="function"==typeof Uint32Array;var Jr="function"==typeof Uint32Array?Uint32Array:null;var Dr="function"==typeof Uint32Array?Uint32Array:void 0;var Xr=function(){var r,e,t;if("function"!=typeof Jr)return!1;try{e=new Jr(e=[1,3.14,-3.14,4294967296,4294967297]),t=e,r=(Gr&&t instanceof Uint32Array||"[object Uint32Array]"===X(t))&&1===e[0]&&3===e[1]&&4294967293===e[2]&&0===e[3]&&1===e[4]}catch(e){r=!1}return r}()?Dr:function(){throw new Error("not implemented")},zr="function"==typeof Int32Array;var qr="function"==typeof Int32Array?Int32Array:null;var Hr="function"==typeof Int32Array?Int32Array:void 0;var Kr=function(){var r,e,t;if("function"!=typeof qr)return!1;try{e=new qr([1,3.14,-3.14,2147483648]),t=e,r=(zr&&t instanceof Int32Array||"[object Int32Array]"===X(t))&&1===e[0]&&3===e[1]&&-3===e[2]&&-2147483648===e[3]}catch(e){r=!1}return r}()?Hr:function(){throw new Error("not implemented")},Qr="function"==typeof Uint16Array;var re="function"==typeof Uint16Array?Uint16Array:null;var ee="function"==typeof Uint16Array?Uint16Array:void 0;var te=function(){var r,e,t;if("function"!=typeof re)return!1;try{e=new re(e=[1,3.14,-3.14,65536,65537]),t=e,r=(Qr&&t instanceof Uint16Array||"[object Uint16Array]"===X(t))&&1===e[0]&&3===e[1]&&65533===e[2]&&0===e[3]&&1===e[4]}catch(e){r=!1}return r}()?ee:function(){throw new Error("not implemented")},ne="function"==typeof Int16Array;var ie="function"==typeof Int16Array?Int16Array:null;var oe="function"==typeof Int16Array?Int16Array:void 0;var ae=function(){var r,e,t;if("function"!=typeof ie)return!1;try{e=new ie([1,3.14,-3.14,32768]),t=e,r=(ne&&t instanceof Int16Array||"[object Int16Array]"===X(t))&&1===e[0]&&3===e[1]&&-3===e[2]&&-32768===e[3]}catch(e){r=!1}return r}()?oe:function(){throw new Error("not implemented")},ue="function"==typeof Uint8Array;var fe="function"==typeof Uint8Array?Uint8Array:null;var se="function"==typeof Uint8Array?Uint8Array:void 0;var le=function(){var r,e,t;if("function"!=typeof fe)return!1;try{e=new fe(e=[1,3.14,-3.14,256,257]),t=e,r=(ue&&t instanceof Uint8Array||"[object Uint8Array]"===X(t))&&1===e[0]&&3===e[1]&&253===e[2]&&0===e[3]&&1===e[4]}catch(e){r=!1}return r}()?se:function(){throw new Error("not implemented")},he="function"==typeof Uint8ClampedArray;var ce="function"==typeof Uint8ClampedArray?Uint8ClampedArray:null;var pe="function"==typeof Uint8ClampedArray?Uint8ClampedArray:void 0;var ge=function(){var r,e,t;if("function"!=typeof ce)return!1;try{e=new ce([-1,0,1,3.14,4.99,255,256]),t=e,r=(he&&t instanceof Uint8ClampedArray||"[object Uint8ClampedArray]"===X(t))&&0===e[0]&&0===e[1]&&1===e[2]&&3===e[3]&&5===e[4]&&255===e[5]&&255===e[6]}catch(e){r=!1}return r}()?pe:function(){throw new Error("not implemented")},ye="function"==typeof Int8Array;var me="function"==typeof Int8Array?Int8Array:null;var we="function"==typeof Int8Array?Int8Array:void 0;var ve=function(){var r,e,t;if("function"!=typeof me)return!1;try{e=new me([1,3.14,-3.14,128]),t=e,r=(ye&&t instanceof Int8Array||"[object Int8Array]"===X(t))&&1===e[0]&&3===e[1]&&-3===e[2]&&-128===e[3]}catch(e){r=!1}return r}()?we:function(){throw new Error("not implemented")};function be(r){return"number"==typeof r}var de=Number,Ee=de.prototype.toString;var Te=W();function _e(r){return"object"==typeof r&&(r instanceof de||(Te?function(r){try{return Ee.call(r),!0}catch(r){return!1}}(r):"[object Number]"===X(r)))}function Ve(r){return be(r)||_e(r)}N(Ve,"isPrimitive",be),N(Ve,"isObject",_e);var xe=de.NEGATIVE_INFINITY,Ae=Math.floor;function Fe(r){return Ae(r)===r}function je(r){return r<Yr&&r>xe&&Fe(r)}function Se(r){return be(r)&&je(r)}function ke(r){return _e(r)&&je(r.valueOf())}function Le(r){return Se(r)||ke(r)}function Re(r){return Se(r)&&r>=0}function Be(r){return ke(r)&&r.valueOf()>=0}function Ie(r){return Re(r)||Be(r)}N(Le,"isPrimitive",Se),N(Le,"isObject",ke),N(Ie,"isPrimitive",Re),N(Ie,"isObject",Be);var Oe=4294967295;function Ce(r){return"object"==typeof r&&null!==r&&"number"==typeof r.length&&Fe(r.length)&&r.length>=0&&r.length<=Oe}var Me=9007199254740991;function Pe(r){return"object"==typeof r&&null!==r&&"number"==typeof r.length&&Fe(r.length)&&r.length>=0&&r.length<=Me}var Ne="function"==typeof ArrayBuffer;function Ue(r){return Ne&&r instanceof ArrayBuffer||"[object ArrayBuffer]"===X(r)}var Ye=hr(Er.isPrimitive),We=hr(Er.isObject),Ze=hr(Er);function $e(r,e,t){P(r,e,{configurable:!1,enumerable:!0,writable:!1,value:t})}function Ge(r,e){if(!(this instanceof Ge))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!be(r))throw new TypeError(k("invalid argument. Real component must be a number. Value: `%s`.",r));if(!be(e))throw new TypeError(k("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return $e(this,"re",r),$e(this,"im",e),this}N(Ze,"primitives",Ye),N(Ze,"objects",We),N(Ge,"name","Complex128"),N(Ge,"BYTES_PER_ELEMENT",8),N(Ge.prototype,"BYTES_PER_ELEMENT",8),N(Ge.prototype,"byteLength",16),N(Ge.prototype,"toString",(function(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i"})),N(Ge.prototype,"toJSON",(function(){var r={type:"Complex128"};return r.re=this.re,r.im=this.im,r}));var Je="function"==typeof Math.fround?Math.fround:null,De=new $r(1);var Xe="function"==typeof Je?Je:function(r){return De[0]=r,De[0]};function ze(r,e){if(!(this instanceof ze))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!be(r))throw new TypeError(k("invalid argument. Real component must be a number. Value: `%s`.",r));if(!be(e))throw new TypeError(k("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return $e(this,"re",Xe(r)),$e(this,"im",Xe(e)),this}function qe(r){return r instanceof Ge||r instanceof ze||"object"==typeof r&&null!==r&&"number"==typeof r.re&&"number"==typeof r.im}function He(r){return Fe(r/2)}N(ze,"name","Complex64"),N(ze,"BYTES_PER_ELEMENT",4),N(ze.prototype,"BYTES_PER_ELEMENT",4),N(ze.prototype,"byteLength",8),N(ze.prototype,"toString",(function(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i"})),N(ze.prototype,"toJSON",(function(){var r={type:"Complex64"};return r.re=this.re,r.im=this.im,r}));var Ke=8;function Qe(r){return"object"==typeof r&&null!==r&&"Complex64Array"===r.constructor.name&&r.BYTES_PER_ELEMENT===Ke}var rt=16;function et(r){return"object"==typeof r&&null!==r&&"Complex128Array"===r.constructor.name&&r.BYTES_PER_ELEMENT===rt}function tt(){return"function"==typeof J&&"symbol"==typeof J("foo")&&G(J,"iterator")&&"symbol"==typeof J.iterator}var nt=tt()?Symbol.iterator:null;function it(r,e,t){P(r,e,{configurable:!1,enumerable:!1,get:t})}function ot(r){return r.re}function at(r){return r.im}function ut(r,e){return new $r(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}function ft(r,e){return new Nr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}function st(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ce(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!qe(n))return new TypeError(k("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(ot(n),at(n))}return e}var lt=2*$r.BYTES_PER_ELEMENT,ht=tt();function ct(r){return r instanceof yt||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function pt(r){return r===yt||"Complex128Array"===r.name}function gt(r,e){return new ze(r[e*=2],r[e+1])}function yt(){var r,e,t,n;if(e=arguments.length,!(this instanceof yt))return 0===e?new yt:1===e?new yt(arguments[0]):2===e?new yt(arguments[0],arguments[1]):new yt(arguments[0],arguments[1],arguments[2]);if(0===e)t=new $r(0);else if(1===e)if(Re(arguments[0]))t=new $r(2*arguments[0]);else if(Pe(arguments[0]))if((n=(t=arguments[0]).length)&&lr(t)&&qe(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;i<t;i++){if(!qe(n=e[i]))return null;r[o]=ot(n),r[o+1]=at(n),o+=2}return r}(new $r(2*n),t),null===t){if(!He(n))throw new RangeError(k("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",n));t=new $r(arguments[0])}}else{if(Qe(t))t=ut(t,0);else if(et(t))t=ft(t,0);else if(!He(n))throw new RangeError(k("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",n));t=new $r(t)}else if(Ue(arguments[0])){if(!Fe((t=arguments[0]).byteLength/lt))throw new RangeError(k("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",lt,t.byteLength));t=new $r(t)}else{if(!Tr(arguments[0]))throw new TypeError(k("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));if(t=arguments[0],!1===ht)throw new TypeError(k("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",t));if(!mr(t[nt]))throw new TypeError(k("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",t));if(!mr((t=t[nt]()).next))throw new TypeError(k("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",t));if((t=st(t))instanceof Error)throw t;t=new $r(t)}else{if(!Ue(t=arguments[0]))throw new TypeError(k("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",t));if(!Re(r=arguments[1]))throw new TypeError(k("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!Fe(r/lt))throw new RangeError(k("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",lt,r));if(2===e){if(!Fe((n=t.byteLength-r)/lt))throw new RangeError(k("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",lt,n));t=new $r(t,r)}else{if(!Re(n=arguments[2]))throw new TypeError(k("invalid argument. Length must be a nonnegative integer. Value: `%s`.",n));if(n*lt>t.byteLength-r)throw new RangeError(k("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*lt));t=new $r(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function mt(r){return r.re}function wt(r){return r.im}function vt(r){var e,t,n;for(e=[];!(t=r.next()).done;)if(Ce(n=t.value)&&n.length>=2)e.push(n[0],n[1]);else{if(!qe(n))return new TypeError(k("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));e.push(mt(n),wt(n))}return e}N(yt,"BYTES_PER_ELEMENT",lt),N(yt,"name","Complex64Array"),N(yt,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!mr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!pt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!mr(n=arguments[1]))throw new TypeError(k("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(ct(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h<f;h++){if(qe(l=n.call(e,r.get(h),h)))o[c]=ot(l),o[c+1]=at(l);else{if(!(Ce(l)&&l.length>=2))throw new TypeError(k("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Pe(r)){if(n){for(f=r.length,u=r.get&&r.set?Rr("default"):Ir("default"),h=0;h<f;h++)if(!qe(u(r,h))){s=!0;break}if(s){if(!He(f))throw new RangeError(k("invalid argument. First argument must have a length which is a multiple of %u. Length: `%u`.",2,f));for(o=(i=new this(f/2))._buffer,h=0;h<f;h++)o[h]=n.call(e,u(r,h),h);return i}for(o=(i=new this(f))._buffer,c=0,h=0;h<f;h++){if(qe(l=n.call(e,u(r,h),h)))o[c]=ot(l),o[c+1]=at(l);else{if(!(Ce(l)&&l.length>=2))throw new TypeError(k("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Tr(r)&&ht&&mr(r[nt])){if(!mr((o=r[nt]()).next))throw new TypeError(k("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ce(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!qe(o))return new TypeError(k("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(ot(o),at(o))}return n}(o,n,e):st(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h<f;h++)o[h]=a[h];return i}throw new TypeError(k("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r))})),N(yt,"of",(function(){var r,e;if(!mr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!pt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(r=[],e=0;e<arguments.length;e++)r.push(arguments[e]);return new this(r)})),N(yt.prototype,"at",(function(r){if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fe(r))throw new TypeError(k("invalid argument. Must provide an integer. Value: `%s`.",r));if(r<0&&(r+=this._length),!(r<0||r>=this._length))return gt(this._buffer,r)})),it(yt.prototype,"buffer",(function(){return this._buffer.buffer})),it(yt.prototype,"byteLength",(function(){return this._buffer.byteLength})),it(yt.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(yt.prototype,"BYTES_PER_ELEMENT",yt.BYTES_PER_ELEMENT),N(yt.prototype,"copyWithin",(function(r,e){if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(yt.prototype,"entries",(function(){var r,e,t,n,i,o;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return r=this,n=this._buffer,t=this._length,o=-1,N(e={},"next",(function(){if(o+=1,i||o>=t)return{done:!0};return{value:[o,gt(n,o)],done:!1}})),N(e,"return",(function(r){if(i=!0,arguments.length)return{value:r,done:!0};return{done:!0}})),nt&&N(e,nt,(function(){return r.entries()})),e})),N(yt.prototype,"every",(function(r,e){var t,n;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(!r.call(e,gt(t,n),n,this))return!1;return!0})),N(yt.prototype,"fill",(function(r,e,t){var n,i,o,a,u,f;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!qe(r))throw new TypeError(k("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(n=this._buffer,i=this._length,arguments.length>1){if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!Fe(t))throw new TypeError(k("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=ot(r),u=at(r),f=e;f<t;f++)n[o=2*f]=a,n[o+1]=u;return this})),N(yt.prototype,"filter",(function(r,e){var t,n,i,o;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=[],i=0;i<this._length;i++)o=gt(t,i),r.call(e,o,i,this)&&n.push(o);return new this.constructor(n)})),N(yt.prototype,"find",(function(r,e){var t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(i=gt(t,n),r.call(e,i,n,this))return i})),N(yt.prototype,"findIndex",(function(r,e){var t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(i=gt(t,n),r.call(e,i,n,this))return n;return-1})),N(yt.prototype,"findLast",(function(r,e){var t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=gt(t,n),r.call(e,i,n,this))return i})),N(yt.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=gt(t,n),r.call(e,i,n,this))return n;return-1})),N(yt.prototype,"forEach",(function(r,e){var t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)i=gt(t,n),r.call(e,i,n,this)})),N(yt.prototype,"get",(function(r){if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Re(r))throw new TypeError(k("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));if(!(r>=this._length))return gt(this._buffer,r)})),N(yt.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!qe(r))throw new TypeError(k("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=ot(r),o=at(r),t=this._buffer,a=e;a<this._length;a++)if(i===t[n=2*a]&&o===t[n+1])return!0;return!1})),N(yt.prototype,"indexOf",(function(r,e){var t,n,i,o,a;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!qe(r))throw new TypeError(k("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=ot(r),o=at(r),t=this._buffer,a=e;a<this._length;a++)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),N(yt.prototype,"join",(function(r){var e,t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(0===arguments.length)n=",";else{if(!wr(r))throw new TypeError(k("invalid argument. First argument must be a string. Value: `%s`.",r));n=r}for(e=[],t=this._buffer,i=0;i<this._length;i++)e.push(gt(t,i).toString());return e.join(n)})),N(yt.prototype,"keys",(function(){var r,e,t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return r=this,t=this._length,i=-1,N(e={},"next",(function(){if(i+=1,n||i>=t)return{done:!0};return{value:i,done:!1}})),N(e,"return",(function(r){if(n=!0,arguments.length)return{value:r,done:!0};return{done:!0}})),nt&&N(e,nt,(function(){return r.keys()})),e})),N(yt.prototype,"lastIndexOf",(function(r,e){var t,n,i,o,a;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!qe(r))throw new TypeError(k("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=ot(r),o=at(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),it(yt.prototype,"length",(function(){return this._length})),N(yt.prototype,"map",(function(r,e){var t,n,i,o,a;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o<this._length;o++)if(qe(a=r.call(e,gt(n,o),o,this)))t[2*o]=ot(a),t[2*o+1]=at(a);else{if(!Ce(a)||2!==a.length)throw new TypeError(k("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",a));t[2*o]=a[0],t[2*o+1]=a[1]}return i})),N(yt.prototype,"reduce",(function(r,e){var t,n,i,o;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));if(t=this._buffer,i=this._length,arguments.length>1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=gt(t,0),o=1}for(;o<i;o++)n=r(n,gt(t,o),o,this);return n})),N(yt.prototype,"reduceRight",(function(r,e){var t,n,i,o;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));if(t=this._buffer,i=this._length,arguments.length>1)n=e,o=i-1;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=gt(t,i-1),o=i-2}for(;o>=0;o--)n=r(n,gt(t,o),o,this);return n})),N(yt.prototype,"reverse",(function(){var r,e,t,n,i,o;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,r=this._buffer,n=Ae(t/2),i=0;i<n;i++)o=t-i-1,e=r[2*i],r[2*i]=r[2*o],r[2*o]=e,e=r[2*i+1],r[2*i+1]=r[2*o+1],r[2*o+1]=e;return this})),N(yt.prototype,"set",(function(r){var e,t,n,i,o,a,u,f,s;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,arguments.length>1){if(!Re(t=arguments[1]))throw new TypeError(k("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(qe(r)){if(t>=this._length)throw new RangeError(k("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=ot(r),void(n[t+1]=at(r))}if(ct(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*lt,e.buffer===n.buffer&&e.byteOffset<s&&e.byteOffset+e.byteLength>s){for(i=new $r(e.length),f=0;f<e.length;f++)i[f]=e[f];e=i}for(t*=2,s=0,f=0;f<a;f++)n[t]=e[s],n[t+1]=e[s+1],t+=2,s+=2}else{if(!Pe(r))throw new TypeError(k("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",r));for(a=r.length,f=0;f<a;f++)if(!qe(r[f])){o=!0;break}if(o){if(!He(a))throw new RangeError(k("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",a));if(t+a/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*lt,e.buffer===n.buffer&&e.byteOffset<s&&e.byteOffset+e.byteLength>s){for(i=new $r(a),f=0;f<a;f++)i[f]=e[f];e=i}for(t*=2,a/=2,s=0,f=0;f<a;f++)n[t]=e[s],n[t+1]=e[s+1],t+=2,s+=2;return}if(t+a>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;f<a;f++)u=r[f],n[t]=ot(u),n[t+1]=at(u),t+=2}})),N(yt.prototype,"slice",(function(r,e){var t,n,i,o,a,u,f;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(a=this._buffer,u=this._length,0===arguments.length)r=0,e=u;else{if(!Fe(r))throw new TypeError(k("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=u)<0&&(r=0),1===arguments.length)e=u;else{if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=u)<0&&(e=0):e>u&&(e=u)}}for(t=r<e?e-r:0,n=(i=new this.constructor(t))._buffer,f=0;f<t;f++)o=2*(f+r),n[2*f]=a[o],n[2*f+1]=a[o+1];return i})),N(yt.prototype,"some",(function(r,e){var t,n;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(r.call(e,gt(t,n),n,this))return!0;return!1})),N(yt.prototype,"sort",(function(r){var e,t,n,i,o;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length,e=[],i=0;i<n;i++)e.push(gt(t,i));for(e.sort(r),i=0;i<n;i++)t[o=2*i]=ot(e[i]),t[o+1]=at(e[i]);return this})),N(yt.prototype,"subarray",(function(r,e){var t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,i=this._length,0===arguments.length)r=0,e=i;else{if(!Fe(r))throw new TypeError(k("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=i)<0&&(r=0),1===arguments.length)e=i;else{if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=i)<0&&(e=0):e>i&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*lt):(i=e-r,t=n.byteOffset+r*lt),new this.constructor(n.buffer,t,i<0?0:i)})),N(yt.prototype,"toLocaleString",(function(r,e){var t,n,i,o,a;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(0===arguments.length)n=[];else{if(!wr(r)&&!Ye(r))throw new TypeError(k("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",r));n=r}if(arguments.length<2)t={};else{if(!Tr(e))throw new TypeError(k("invalid argument. Options argument must be an object. Value: `%s`.",e));t=e}for(o=this._buffer,i=[],a=0;a<this._length;a++)i.push(gt(o,a).toLocaleString(n,t));return i.join(",")})),N(yt.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i<t;i++)o=t-i-1,r[2*i]=n[2*o],r[2*i+1]=n[2*o+1];return e})),N(yt.prototype,"toSorted",(function(r){var e,t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length,e=[],i=0;i<n;i++)e.push(gt(t,i));return e.sort(r),new yt(e)})),N(yt.prototype,"toString",(function(){var r,e,t;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(r=[],e=this._buffer,t=0;t<this._length;t++)r.push(gt(e,t).toString());return r.join(",")})),N(yt.prototype,"values",(function(){var r,e,t,n,i,o;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,i=this._buffer,t=this._length,o=-1,N(r={},"next",(function(){if(o+=1,n||o>=t)return{done:!0};return{value:gt(i,o),done:!1}})),N(r,"return",(function(r){if(n=!0,arguments.length)return{value:r,done:!0};return{done:!0}})),nt&&N(r,nt,(function(){return e.values()})),r})),N(yt.prototype,"with",(function(r,e){var t,n,i;if(!ct(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fe(r))throw new TypeError(k("invalid argument. First argument must be an integer. Value: `%s`.",r));if(i=this._length,r<0&&(r+=i),r<0||r>=i)throw new RangeError(k("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!qe(e))throw new TypeError(k("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=ot(e),t[2*r+1]=at(e),n}));var bt=2*Nr.BYTES_PER_ELEMENT,dt=tt();function Et(r){return r instanceof Vt||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function Tt(r){return r===Vt||"Complex64Array"===r.name}function _t(r,e){return new Ge(r[e*=2],r[e+1])}function Vt(){var r,e,t,n;if(e=arguments.length,!(this instanceof Vt))return 0===e?new Vt:1===e?new Vt(arguments[0]):2===e?new Vt(arguments[0],arguments[1]):new Vt(arguments[0],arguments[1],arguments[2]);if(0===e)t=new Nr(0);else if(1===e)if(Re(arguments[0]))t=new Nr(2*arguments[0]);else if(Pe(arguments[0]))if((n=(t=arguments[0]).length)&&lr(t)&&qe(t[0])){if(t=function(r,e){var t,n,i,o;for(t=e.length,o=0,i=0;i<t;i++){if(!qe(n=e[i]))return null;r[o]=mt(n),r[o+1]=wt(n),o+=2}return r}(new Nr(2*n),t),null===t){if(!He(n))throw new RangeError(k("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",n));t=new Nr(arguments[0])}}else{if(Qe(t))t=ut(t,0);else if(et(t))t=ft(t,0);else if(!He(n))throw new RangeError(k("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",n));t=new Nr(t)}else if(Ue(arguments[0])){if(!Fe((t=arguments[0]).byteLength/bt))throw new RangeError(k("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",bt,t.byteLength));t=new Nr(t)}else{if(!Tr(arguments[0]))throw new TypeError(k("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));if(t=arguments[0],!1===dt)throw new TypeError(k("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",t));if(!mr(t[nt]))throw new TypeError(k("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",t));if(!mr((t=t[nt]()).next))throw new TypeError(k("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",t));if((t=vt(t))instanceof Error)throw t;t=new Nr(t)}else{if(!Ue(t=arguments[0]))throw new TypeError(k("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",t));if(!Re(r=arguments[1]))throw new TypeError(k("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!Fe(r/bt))throw new RangeError(k("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",bt,r));if(2===e){if(!Fe((n=t.byteLength-r)/bt))throw new RangeError(k("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",bt,n));t=new Nr(t,r)}else{if(!Re(n=arguments[2]))throw new TypeError(k("invalid argument. Length must be a nonnegative integer. Value: `%s`.",n));if(n*bt>t.byteLength-r)throw new RangeError(k("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*bt));t=new Nr(t,r,2*n)}}return N(this,"_buffer",t),N(this,"_length",t.length/2),this}function xt(r){var e,t;for(e=[];!(t=r.next()).done;)e.push(z(t.value));return e}N(Vt,"BYTES_PER_ELEMENT",bt),N(Vt,"name","Complex128Array"),N(Vt,"from",(function(r){var e,t,n,i,o,a,u,f,s,l,h,c;if(!mr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Tt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((t=arguments.length)>1){if(!mr(n=arguments[1]))throw new TypeError(k("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(Et(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h<f;h++){if(qe(l=n.call(e,r.get(h),h)))o[c]=mt(l),o[c+1]=wt(l);else{if(!(Ce(l)&&l.length>=2))throw new TypeError(k("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Pe(r)){if(n){for(f=r.length,u=r.get&&r.set?Rr("default"):Ir("default"),h=0;h<f;h++)if(!qe(u(r,h))){s=!0;break}if(s){if(!He(f))throw new RangeError(k("invalid argument. First argument must have a length which is a multiple of two. Length: `%u`.",f));for(o=(i=new this(f/2))._buffer,h=0;h<f;h++)o[h]=n.call(e,u(r,h),h);return i}for(o=(i=new this(f))._buffer,c=0,h=0;h<f;h++){if(qe(l=n.call(e,u(r,h),h)))o[c]=mt(l),o[c+1]=wt(l);else{if(!(Ce(l)&&l.length>=2))throw new TypeError(k("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Tr(r)&&dt&&mr(r[nt])){if(!mr((o=r[nt]()).next))throw new TypeError(k("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,e,t){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,Ce(o=e.call(t,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!qe(o))return new TypeError(k("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(mt(o),wt(o))}return n}(o,n,e):vt(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h<f;h++)o[h]=a[h];return i}throw new TypeError(k("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r))})),N(Vt,"of",(function(){var r,e;if(!mr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Tt(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(r=[],e=0;e<arguments.length;e++)r.push(arguments[e]);return new this(r)})),N(Vt.prototype,"at",(function(r){if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fe(r))throw new TypeError(k("invalid argument. Must provide an integer. Value: `%s`.",r));if(r<0&&(r+=this._length),!(r<0||r>=this._length))return _t(this._buffer,r)})),it(Vt.prototype,"buffer",(function(){return this._buffer.buffer})),it(Vt.prototype,"byteLength",(function(){return this._buffer.byteLength})),it(Vt.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(Vt.prototype,"BYTES_PER_ELEMENT",Vt.BYTES_PER_ELEMENT),N(Vt.prototype,"copyWithin",(function(r,e){if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*e):this._buffer.copyWithin(2*r,2*e,2*arguments[2]),this})),N(Vt.prototype,"entries",(function(){var r,e,t,n,i,o,a;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,r=this._buffer,n=this._length,o=-1,a=-2,N(t={},"next",(function(){var e;if(o+=1,i||o>=n)return{done:!0};return e=new Ge(r[a+=2],r[a+1]),{value:[o,e],done:!1}})),N(t,"return",(function(r){if(i=!0,arguments.length)return{value:r,done:!0};return{done:!0}})),nt&&N(t,nt,(function(){return e.entries()})),t})),N(Vt.prototype,"every",(function(r,e){var t,n;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(!r.call(e,_t(t,n),n,this))return!1;return!0})),N(Vt.prototype,"fill",(function(r,e,t){var n,i,o,a,u,f;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!qe(r))throw new TypeError(k("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(n=this._buffer,i=this._length,arguments.length>1){if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!Fe(t))throw new TypeError(k("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(a=mt(r),u=wt(r),f=e;f<t;f++)n[o=2*f]=a,n[o+1]=u;return this})),N(Vt.prototype,"filter",(function(r,e){var t,n,i,o;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=[],i=0;i<this._length;i++)o=_t(t,i),r.call(e,o,i,this)&&n.push(o);return new this.constructor(n)})),N(Vt.prototype,"find",(function(r,e){var t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(i=_t(t,n),r.call(e,i,n,this))return i})),N(Vt.prototype,"findIndex",(function(r,e){var t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(i=_t(t,n),r.call(e,i,n,this))return n;return-1})),N(Vt.prototype,"findLast",(function(r,e){var t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=_t(t,n),r.call(e,i,n,this))return i})),N(Vt.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length-1;n>=0;n--)if(i=_t(t,n),r.call(e,i,n,this))return n;return-1})),N(Vt.prototype,"forEach",(function(r,e){var t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)i=_t(t,n),r.call(e,i,n,this)})),N(Vt.prototype,"get",(function(r){if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Re(r))throw new TypeError(k("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));if(!(r>=this._length))return _t(this._buffer,r)})),it(Vt.prototype,"length",(function(){return this._length})),N(Vt.prototype,"includes",(function(r,e){var t,n,i,o,a;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!qe(r))throw new TypeError(k("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=wt(r),t=this._buffer,a=e;a<this._length;a++)if(i===t[n=2*a]&&o===t[n+1])return!0;return!1})),N(Vt.prototype,"indexOf",(function(r,e){var t,n,i,o,a;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!qe(r))throw new TypeError(k("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(i=mt(r),o=wt(r),t=this._buffer,a=e;a<this._length;a++)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),N(Vt.prototype,"join",(function(r){var e,t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(0===arguments.length)n=",";else{if(!Er(r))throw new TypeError(k("invalid argument. First argument must be a string. Value: `%s`.",r));n=r}for(e=[],t=this._buffer,i=0;i<this._length;i++)e.push(_t(t,i).toString());return e.join(n)})),N(Vt.prototype,"keys",(function(){var r,e,t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return r=this,t=this._length,i=-1,N(e={},"next",(function(){if(i+=1,n||i>=t)return{done:!0};return{value:i,done:!1}})),N(e,"return",(function(r){if(n=!0,arguments.length)return{value:r,done:!0};return{done:!0}})),nt&&N(e,nt,(function(){return r.keys()})),e})),N(Vt.prototype,"lastIndexOf",(function(r,e){var t,n,i,o,a;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!qe(r))throw new TypeError(k("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=mt(r),o=wt(r),t=this._buffer,a=e;a>=0;a--)if(i===t[n=2*a]&&o===t[n+1])return a;return-1})),N(Vt.prototype,"map",(function(r,e){var t,n,i,o,a;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,t=(i=new this.constructor(this._length))._buffer,o=0;o<this._length;o++)if(qe(a=r.call(e,_t(n,o),o,this)))t[2*o]=mt(a),t[2*o+1]=wt(a);else{if(!Ce(a)||2!==a.length)throw new TypeError(k("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",a));t[2*o]=a[0],t[2*o+1]=a[1]}return i})),N(Vt.prototype,"reduce",(function(r,e){var t,n,i,o;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));if(t=this._buffer,i=this._length,arguments.length>1)n=e,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=_t(t,0),o=1}for(;o<i;o++)n=r(n,_t(t,o),o,this);return n})),N(Vt.prototype,"reduceRight",(function(r,e){var t,n,i,o;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));if(t=this._buffer,i=this._length,arguments.length>1)n=e,o=i-1;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=_t(t,i-1),o=i-2}for(;o>=0;o--)n=r(n,_t(t,o),o,this);return n})),N(Vt.prototype,"reverse",(function(){var r,e,t,n,i,o;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,r=this._buffer,n=Ae(t/2),i=0;i<n;i++)o=t-i-1,e=r[2*i],r[2*i]=r[2*o],r[2*o]=e,e=r[2*i+1],r[2*i+1]=r[2*o+1],r[2*o+1]=e;return this})),N(Vt.prototype,"set",(function(r){var e,t,n,i,o,a,u,f,s;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,arguments.length>1){if(!Re(t=arguments[1]))throw new TypeError(k("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(qe(r)){if(t>=this._length)throw new RangeError(k("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));return n[t*=2]=mt(r),void(n[t+1]=wt(r))}if(Et(r)){if(t+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r._buffer,s=n.byteOffset+t*bt,e.buffer===n.buffer&&e.byteOffset<s&&e.byteOffset+e.byteLength>s){for(i=new Nr(e.length),f=0;f<e.length;f++)i[f]=e[f];e=i}for(t*=2,s=0,f=0;f<a;f++)n[t]=e[s],n[t+1]=e[s+1],t+=2,s+=2}else{if(!Pe(r))throw new TypeError(k("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",r));for(a=r.length,f=0;f<a;f++)if(!qe(r[f])){o=!0;break}if(o){if(!He(a))throw new RangeError(k("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",a));if(t+a/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=r,s=n.byteOffset+t*bt,e.buffer===n.buffer&&e.byteOffset<s&&e.byteOffset+e.byteLength>s){for(i=new Nr(a),f=0;f<a;f++)i[f]=e[f];e=i}for(t*=2,a/=2,s=0,f=0;f<a;f++)n[t]=e[s],n[t+1]=e[s+1],t+=2,s+=2;return}if(t+a>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,f=0;f<a;f++)u=r[f],n[t]=mt(u),n[t+1]=wt(u),t+=2}})),N(Vt.prototype,"slice",(function(r,e){var t,n,i,o,a,u,f;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(a=this._buffer,u=this._length,0===arguments.length)r=0,e=u;else{if(!Fe(r))throw new TypeError(k("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=u)<0&&(r=0),1===arguments.length)e=u;else{if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=u)<0&&(e=0):e>u&&(e=u)}}for(t=r<e?e-r:0,n=(i=new this.constructor(t))._buffer,f=0;f<t;f++)o=2*(f+r),n[2*f]=a[o],n[2*f+1]=a[o+1];return i})),N(Vt.prototype,"some",(function(r,e){var t,n;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(r.call(e,_t(t,n),n,this))return!0;return!1})),N(Vt.prototype,"sort",(function(r){var e,t,n,i,o;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length,e=[],i=0;i<n;i++)e.push(_t(t,i));for(e.sort(r),i=0;i<n;i++)t[o=2*i]=mt(e[i]),t[o+1]=wt(e[i]);return this})),N(Vt.prototype,"subarray",(function(r,e){var t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,i=this._length,0===arguments.length)r=0,e=i;else{if(!Fe(r))throw new TypeError(k("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=i)<0&&(r=0),1===arguments.length)e=i;else{if(!Fe(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=i)<0&&(e=0):e>i&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*bt):(i=e-r,t=n.byteOffset+r*bt),new this.constructor(n.buffer,t,i<0?0:i)})),N(Vt.prototype,"toLocaleString",(function(r,e){var t,n,i,o,a;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(0===arguments.length)n=[];else{if(!Er(r)&&!Ye(r))throw new TypeError(k("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",r));n=r}if(arguments.length<2)t={};else{if(!Tr(e))throw new TypeError(k("invalid argument. Options argument must be an object. Value: `%s`.",e));t=e}for(o=this._buffer,i=[],a=0;a<this._length;a++)i.push(_t(o,a).toLocaleString(n,t));return i.join(",")})),N(Vt.prototype,"toReversed",(function(){var r,e,t,n,i,o;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i<t;i++)o=t-i-1,r[2*i]=n[2*o],r[2*i+1]=n[2*o+1];return e})),N(Vt.prototype,"toSorted",(function(r){var e,t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=this._length,e=[],i=0;i<n;i++)e.push(_t(t,i));return e.sort(r),new Vt(e)})),N(Vt.prototype,"toString",(function(){var r,e,t;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(r=[],e=this._buffer,t=0;t<this._length;t++)r.push(_t(e,t).toString());return r.join(",")})),N(Vt.prototype,"values",(function(){var r,e,t,n,i,o;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,i=this._buffer,t=this._length,o=-1,N(r={},"next",(function(){if(o+=1,n||o>=t)return{done:!0};return{value:_t(i,o),done:!1}})),N(r,"return",(function(r){if(n=!0,arguments.length)return{value:r,done:!0};return{done:!0}})),nt&&N(r,nt,(function(){return e.values()})),r})),N(Vt.prototype,"with",(function(r,e){var t,n,i;if(!Et(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fe(r))throw new TypeError(k("invalid argument. First argument must be an integer. Value: `%s`.",r));if(i=this._length,r<0&&(r+=i),r<0||r>=i)throw new RangeError(k("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!qe(e))throw new TypeError(k("invalid argument. Second argument must be a complex number. Value: `%s`.",e));return(t=(n=new this.constructor(this._buffer))._buffer)[2*r]=mt(e),t[2*r+1]=wt(e),n}));var At=le.BYTES_PER_ELEMENT,Ft=tt();function jt(r){return"object"==typeof r&&null!==r&&"BooleanArray"===r.constructor.name&&r.BYTES_PER_ELEMENT===At}function St(r){return r===kt}function kt(){var r,e,t,n,i;if(e=arguments.length,!(this instanceof kt))return 0===e?new kt:1===e?new kt(arguments[0]):2===e?new kt(arguments[0],arguments[1]):new kt(arguments[0],arguments[1],arguments[2]);if(0===e)t=new le(0);else if(1===e)if(Re(i=arguments[0]))t=new le(i);else if(Pe(i))t=function(r,e){var t,n;for(t=e.length,n=0;n<t;n++)r[n]=z(e[n]);return r}(new le(i.length),i);else if(Ue(i))t=new le(i);else{if(!Tr(i))throw new TypeError(k("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",i));if(!1===Ft)throw new TypeError(k("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",i));if(!mr(i[nt]))throw new TypeError(k("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",i));if(!mr((t=i[nt]()).next))throw new TypeError(k("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",i));t=new le(xt(t))}else{if(!Ue(t=arguments[0]))throw new TypeError(k("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",t));if(!Re(r=arguments[1]))throw new TypeError(k("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(2===e)t=new le(t,r);else{if(!Re(n=arguments[2]))throw new TypeError(k("invalid argument. Length must be a nonnegative integer. Value: `%s`.",n));if(n*At>t.byteLength-r)throw new RangeError(k("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*At));t=new le(t,r,n)}}return N(this,"_buffer",t),N(this,"_length",t.length),this}N(kt,"BYTES_PER_ELEMENT",At),N(kt,"name","BooleanArray"),N(kt,"from",(function(r){var e,t,n,i,o,a,u,f,s;if(!mr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!St(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if((t=arguments.length)>1){if(!mr(n=arguments[1]))throw new TypeError(k("invalid argument. Second argument must be a function. Value: `%s`.",n));t>2&&(e=arguments[2])}if(Pe(r)){if(n){for(f=r.length,u=r.get&&r.set?Rr("default"):Ir("default"),o=(i=new this(f))._buffer,s=0;s<f;s++)o[s]=z(n.call(e,u(r,s),s));return i}return new this(r)}if(Tr(r)&&Ft&&mr(r[nt])){if(!mr((o=r[nt]()).next))throw new TypeError(k("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));for(a=n?function(r,e,t){var n,i,o;for(n=[],o=-1;!(i=r.next()).done;)o+=1,n.push(z(e.call(t,i.value,o)));return n}(o,n,e):xt(o),o=(i=new this(f=a.length))._buffer,s=0;s<f;s++)o[s]=a[s];return i}throw new TypeError(k("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r))})),N(kt,"of",(function(){var r,e;if(!mr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!St(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(r=[],e=0;e<arguments.length;e++)r.push(arguments[e]);return new this(r)})),N(kt.prototype,"at",(function(r){var e,t;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Se(r))throw new TypeError(k("invalid argument. Must provide an integer. Value: `%s`.",r));if(t=this._length,e=this._buffer,r<0&&(r+=t),!(r<0||r>=t))return z(e[r])})),it(kt.prototype,"buffer",(function(){return this._buffer.buffer})),it(kt.prototype,"byteLength",(function(){return this._buffer.byteLength})),it(kt.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),N(kt.prototype,"BYTES_PER_ELEMENT",kt.BYTES_PER_ELEMENT),N(kt.prototype,"copyWithin",(function(r,e){if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return 2===arguments.length?this._buffer.copyWithin(r,e):this._buffer.copyWithin(r,e,arguments[2]),this})),N(kt.prototype,"entries",(function(){var r,e,t,n,i,o;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return r=this,n=this._buffer,t=this._length,o=-1,N(e={},"next",(function(){if(o+=1,i||o>=t)return{done:!0};return{value:[o,z(n[o])],done:!1}})),N(e,"return",(function(r){if(i=!0,arguments.length)return{value:r,done:!0};return{done:!0}})),nt&&N(e,nt,(function(){return r.entries()})),e})),N(kt.prototype,"every",(function(r,e){var t,n;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(!r.call(e,z(t[n]),n,this))return!1;return!0})),N(kt.prototype,"fill",(function(r,e,t){var n,i,o,a;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!U(r))throw new TypeError(k("invalid argument. First argument must be a boolean. Value: `%s`.",r));if(n=this._buffer,i=this._length,arguments.length>1){if(!Se(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i)<0&&(e=0),arguments.length>2){if(!Se(t))throw new TypeError(k("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i)<0&&(t=0),t>i&&(t=i)}else t=i}else e=0,t=i;for(o=r?1:0,a=e;a<t;a++)n[a]=o;return this})),N(kt.prototype,"filter",(function(r,e){var t,n,i,o;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=[],i=0;i<this._length;i++)o=z(t[i]),r.call(e,o,i,this)&&n.push(o);return new this.constructor(n)})),N(kt.prototype,"find",(function(r,e){var t,n,i;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,i=0;i<this._length;i++)if(n=z(t[i]),r.call(e,n,i,this))return n})),N(kt.prototype,"findIndex",(function(r,e){var t,n,i;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,i=0;i<this._length;i++)if(n=z(t[i]),r.call(e,n,i,this))return i;return-1})),N(kt.prototype,"findLast",(function(r,e){var t,n,i;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,i=this._length-1;i>=0;i--)if(n=z(t[i]),r.call(e,n,i,this))return n})),N(kt.prototype,"findLastIndex",(function(r,e){var t,n,i;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,i=this._length-1;i>=0;i--)if(n=z(t[i]),r.call(e,n,i,this))return i;return-1})),N(kt.prototype,"forEach",(function(r,e){var t,n;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)r.call(e,z(t[n]),n,this)})),N(kt.prototype,"get",(function(r){if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Re(r))throw new TypeError(k("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));if(!(r>=this._length))return z(this._buffer[r])})),N(kt.prototype,"includes",(function(r,e){var t,n;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!U(r))throw new TypeError(k("invalid argument. First argument must be a boolean. Value: `%s`.",r));if(arguments.length>1){if(!Se(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(t=this._buffer,n=e;n<this._length;n++)if(r===z(t[n]))return!0;return!1})),N(kt.prototype,"indexOf",(function(r,e){var t,n;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!U(r))throw new TypeError(k("invalid argument. First argument must be a boolean. Value: `%s`.",r));if(arguments.length>1){if(!Se(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0&&(e+=this._length)<0&&(e=0)}else e=0;for(t=this._buffer,n=e;n<this._length;n++)if(r===z(t[n]))return n;return-1})),N(kt.prototype,"join",(function(r){var e,t,n;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length>0){if(!wr(r))throw new TypeError(k("invalid argument. First argument must be a string. Value: `%s`.",r))}else r=",";for(e=this._buffer,t=[],n=0;n<this._length;n++)e[n]?t.push("true"):t.push("false");return t.join(r)})),N(kt.prototype,"keys",(function(){var r,e,t,n,i;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return r=this,t=this._length,i=-1,N(e={},"next",(function(){if(i+=1,n||i>=t)return{done:!0};return{value:i,done:!1}})),N(e,"return",(function(r){if(n=!0,arguments.length)return{value:r,done:!0};return{done:!0}})),nt&&N(e,nt,(function(){return r.keys()})),e})),N(kt.prototype,"lastIndexOf",(function(r,e){var t,n;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!U(r))throw new TypeError(k("invalid argument. First argument must be a boolean. Value: `%s`.",r));if(arguments.length>1){if(!Se(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e>=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(t=this._buffer,n=e;n>=0;n--)if(r===z(t[n]))return n;return-1})),it(kt.prototype,"length",(function(){return this._length})),N(kt.prototype,"map",(function(r,e){var t,n,i,o;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",r);for(i=this._buffer,t=(n=new this.constructor(this._length))._buffer,o=0;o<this._length;o++)t[o]=z(r.call(e,z(i[o]),o,this));return n})),N(kt.prototype,"reduce",(function(r,e){var t,n,i,o;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));if(t=this._buffer,n=this._length,arguments.length>1)i=e,o=0;else{if(0===n)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=z(t[0]),o=1}for(;o<n;o++)i=r(i,z(t[o]),o,this);return i})),N(kt.prototype,"reduceRight",(function(r,e){var t,n,i,o;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));if(t=this._buffer,n=this._length,arguments.length>1)i=e,o=n-1;else{if(0===n)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=z(t[n-1]),o=n-2}for(;o>=0;o--)i=r(i,z(t[o]),o,this);return i})),N(kt.prototype,"reverse",(function(){var r,e,t,n,i,o;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(r=this._buffer,t=this._length,n=Ae(t/2),i=0;i<n;i++)o=t-i-1,e=r[i],r[i]=r[o],r[o]=e;return this})),N(kt.prototype,"set",(function(r){var e,t,n,i,o,a,u;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(n=this._buffer,arguments.length>1){if(!Re(t=arguments[1]))throw new TypeError(k("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(Pe(r)){if(t+(o=r.length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=jt(r)?r._buffer:r,u=n.byteOffset+t*At,e.buffer===n.buffer&&e.byteOffset<u&&e.byteOffset+e.byteLength>u){for(i=new le(e.length),a=0;a<e.length;a++)i[a]=e[a];e=i}for(a=0;a<o;t++,a++)n[t]=e[a]?1:0}else{if(t>=this._length)throw new RangeError(k("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));n[t]=r?1:0}})),N(kt.prototype,"slice",(function(r,e){var t,n,i,o,a,u;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,a=this._length,0===arguments.length)r=0,e=a;else{if(!Se(r))throw new TypeError(k("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=a)<0&&(r=0),1===arguments.length)e=a;else{if(!Se(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=a)<0&&(e=0):e>a&&(e=a)}}for(t=r<e?e-r:0,n=(i=new this.constructor(t))._buffer,u=0;u<t;u++)n[u]=o[u+r];return i})),N(kt.prototype,"some",(function(r,e){var t,n;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));for(t=this._buffer,n=0;n<this._length;n++)if(r.call(e,z(t[n]),n,this))return!0;return!1})),N(kt.prototype,"sort",(function(r){var e;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(e=this._buffer,0===arguments.length)return e.sort(),this;if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));return e.sort((function(e,t){return r(z(e),z(t))})),this})),N(kt.prototype,"subarray",(function(r,e){var t,n,i;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(n=this._buffer,i=this._length,0===arguments.length)r=0,e=i;else{if(!Se(r))throw new TypeError(k("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=i)<0&&(r=0),1===arguments.length)e=i;else{if(!Se(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=i)<0&&(e=0):e>i&&(e=i)}}return r>=i?(i=0,t=n.byteLength):r>=e?(i=0,t=n.byteOffset+r*At):(i=e-r,t=n.byteOffset+r*At),new this.constructor(n.buffer,t,i<0?0:i)})),N(kt.prototype,"toLocaleString",(function(r,e){var t,n,i,o,a;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(0===arguments.length)n=[];else{if(!wr(r)&&!Ye(r))throw new TypeError(k("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",r));n=r}if(arguments.length<2)t={};else{if(!Tr(e))throw new TypeError(k("invalid argument. Options argument must be an object. Value: `%s`.",e));t=e}for(o=this._buffer,i=[],a=0;a<this._length;a++)i.push(z(o[a]).toLocaleString(n,t));return i.join(",")})),N(kt.prototype,"toReversed",(function(){var r,e,t,n,i;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(t=this._length,e=new this.constructor(t),n=this._buffer,r=e._buffer,i=0;i<t;i++)r[i]=n[t-i-1];return e})),N(kt.prototype,"toSorted",(function(r){var e,t,n,i,o;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(n=this._length,t=new this.constructor(n),i=this._buffer,e=t._buffer,o=0;o<n;o++)e[o]=i[o];if(0===arguments.length)return e.sort(),t;if(!mr(r))throw new TypeError(k("invalid argument. First argument must be a function. Value: `%s`.",r));return e.sort((function(e,t){return r(z(e),z(t))})),t})),N(kt.prototype,"toString",(function(){var r,e,t;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(r=[],e=this._buffer,t=0;t<this._length;t++)e[t]?r.push("true"):r.push("false");return r.join(",")})),N(kt.prototype,"values",(function(){var r,e,t,n,i,o;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return e=this,i=this._buffer,t=this._length,o=-1,N(r={},"next",(function(){if(o+=1,n||o>=t)return{done:!0};return{value:z(i[o]),done:!1}})),N(r,"return",(function(r){if(n=!0,arguments.length)return{value:r,done:!0};return{done:!0}})),nt&&N(r,nt,(function(){return e.values()})),r})),N(kt.prototype,"with",(function(r,e){var t,n;if(!jt(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Se(r))throw new TypeError(k("invalid argument. First argument must be an integer. Value: `%s`.",r));if(n=this._length,r<0&&(r+=n),r<0||r>=n)throw new RangeError(k("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!U(e))throw new TypeError(k("invalid argument. Second argument must be a boolean. Value: `%s`.",e));return(t=new this.constructor(this._buffer))._buffer[r]=e?1:0,t}));var Lt=[Nr,$r,Kr,Xr,ae,te,ve,le,ge,yt,Vt,kt],Rt=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"],Bt=Rt.length;function It(r){var e;if(lr(r))return"generic";if(pr(r))return null;for(e=0;e<Bt;e++)if(r instanceof Lt[e])return Rt[e];return Or[gr(r)]||null}function Ot(r){var e,t,n;if(!Pe(r))throw new TypeError(k("invalid argument. Must provide an array-like object. Value: `%s`.",r));return n=It(r),kr(r)&&(e=Rr(n)),t=r.length,void 0===e?function(e){var n;for(n=0;n<t;n++)if(r[n]===e)return!0;return!1}:function(n){var i;for(i=0;i<t;i++)if(e(r,i)===n)return!0;return!1}}N((function(r,e){var t,n,i,o;for(i=It(r),n=kr(r)?Rr(i):Ir(i),t=r.length,o=0;o<t;o++)if(n(r,o)===e)return!0;return!1}),"factory",Ot);var Ct=/[\uDC00-\uDFFF]/,Mt=/[\uD800-\uDBFF]/;var Pt=65536,Nt=1024,Ut=55296,Yt=56319,Wt=56320,Zt=57343;function $t(r,e,t){var n;if(!wr(r))throw new TypeError(k("invalid argument. First argument must be a string. Value: `%s`.",r));if(!Se(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=r.length),e<0||e>=r.length)throw new RangeError(k("invalid argument. Second argument must be a valid position (i.e., be within string bounds). Value: `%d`.",e));if(arguments.length>2){if(!U(t))throw new TypeError(k("invalid argument. Third argument must be a boolean. Value: `%s`.",t));n=t}else n=!1;return function(r,e,t){var n,i,o;return e<0&&(e+=r.length),(n=r.charCodeAt(e))>=Ut&&n<=Yt&&e<r.length-1?(o=n,i=r.charCodeAt(e+1),Wt<=i&&i<=Zt?(o-Ut)*Nt+(i-Wt)+Pt:o):t&&n>=Wt&&n<=Zt&&e>=1?(o=r.charCodeAt(e-1),i=n,Ut<=o&&o<=Yt?(o-Ut)*Nt+(i-Wt)+Pt:i):n}(r,e,n)}var Gt=55296,Jt=56319,Dt=56320,Xt=57343;function zt(r,e){var t,n;if(!wr(r))throw new TypeError(k("invalid argument. Must provide a string. Value: `%s`.",r));if(!Re(e))throw new TypeError(k("invalid argument. Must provide a valid position (i.e., a nonnegative integer). Value: `%s`.",e));if(e>=r.length)throw new RangeError(k("invalid argument. Must provide a valid position (i.e., within string bounds). Value: `%u`.",e));return t=r.charCodeAt(e),n=r.charCodeAt(e+1),t>=Gt&&t<=Jt&&n>=Dt&&n<=Xt}var qt={CR:0,LF:1,Control:2,Extend:3,RegionalIndicator:4,SpacingMark:5,L:6,V:7,T:8,LV:9,LVT:10,Other:11,Prepend:12,ZWJ:13,NotBreak:0,BreakStart:1,Break:2,BreakLastRegional:3,BreakPenultimateRegional:4,ExtendedPictographic:101};function Ht(r,e,t,n){var i;for(t>=r.length&&(t=r.length-1),i=e;i<=t;i++)if(r[i]!==n)return!1;return!0}function Kt(r,e,t,n){var i;for(e>=r.length-1&&(e=r.length-1),i=e;i>=t;i--)if(r[i]===n)return i;return-1}var Qt={};N(Qt,"constants",qt),N(Qt,"breakType",(function(r,e){var t,n,i,o,a;return i=r[(a=r.length-1)-1],n=r[a],t=e[a],(o=Kt(r,a,0,qt.RegionalIndicator))>0&&i!==qt.Prepend&&i!==qt.RegionalIndicator&&Ht(r,1,o-1,qt.RegionalIndicator)?function(r,e,t,n){var i,o;for(t>=r.length&&(t=r.length-1),i=0,o=e;o<=t;o++)r[o]===n&&(i+=1);return i}(r,0,a,qt.RegionalIndicator)%2==1?qt.BreakLastRegional:qt.BreakPenultimateRegional:i===qt.CR&&n===qt.LF?qt.NotBreak:i===qt.Control||i===qt.CR||i===qt.LF||n===qt.Control||n===qt.CR||n===qt.LF?qt.BreakStart:(i!==qt.L||n!==qt.L&&n!==qt.V&&n!==qt.LV&&n!==qt.LVT)&&(i!==qt.LV&&i!==qt.V||n!==qt.V&&n!==qt.T)&&(i!==qt.LVT&&i!==qt.T||n!==qt.T)?n===qt.Extend||n===qt.ZWJ||n===qt.SpacingMark||i===qt.Prepend||(o=Kt(e,a-1,0,qt.ExtendedPictographic))>=0&&i===qt.ZWJ&&t===qt.ExtendedPictographic&&e[o]===qt.ExtendedPictographic&&Ht(r,o+1,a-2,qt.Extend)?qt.NotBreak:function(r,e,t,n){var i;for(t>=r.length&&(t=r.length-1),i=e;i<=t;i++)if(r[i]===n)return i;return-1}(r,1,a-1,qt.RegionalIndicator)>=0?qt.Break:i===qt.RegionalIndicator&&n===qt.RegionalIndicator?qt.NotBreak:qt.BreakStart:qt.NotBreak})),N(Qt,"emojiProperty",(function(r){return 169===r||174===r||8252===r||8265===r||8482===r||8505===r||8596<=r&&r<=8601||8617<=r&&r<=8618||8986<=r&&r<=8987||9e3===r||9096===r||9167===r||9193<=r&&r<=9196||9197<=r&&r<=9198||9199===r||9200===r||9201<=r&&r<=9202||9203===r||9208<=r&&r<=9210||9410===r||9642<=r&&r<=9643||9654===r||9664===r||9723<=r&&r<=9726||9728<=r&&r<=9729||9730<=r&&r<=9731||9732===r||9733===r||9735<=r&&r<=9741||9742===r||9743<=r&&r<=9744||9745===r||9746===r||9748<=r&&r<=9749||9750<=r&&r<=9751||9752===r||9753<=r&&r<=9756||9757===r||9758<=r&&r<=9759||9760===r||9761===r||9762<=r&&r<=9763||9764<=r&&r<=9765||9766===r||9767<=r&&r<=9769||9770===r||9771<=r&&r<=9773||9774===r||9775===r||9776<=r&&r<=9783||9784<=r&&r<=9785||9786===r||9787<=r&&r<=9791||9792===r||9793===r||9794===r||9795<=r&&r<=9799||9800<=r&&r<=9811||9812<=r&&r<=9822||9823===r||9824===r||9825<=r&&r<=9826||9827===r||9828===r||9829<=r&&r<=9830||9831===r||9832===r||9833<=r&&r<=9850||9851===r||9852<=r&&r<=9853||9854===r||9855===r||9856<=r&&r<=9861||9872<=r&&r<=9873||9874===r||9875===r||9876===r||9877===r||9878<=r&&r<=9879||9880===r||9881===r||9882===r||9883<=r&&r<=9884||9885<=r&&r<=9887||9888<=r&&r<=9889||9890<=r&&r<=9894||9895===r||9896<=r&&r<=9897||9898<=r&&r<=9899||9900<=r&&r<=9903||9904<=r&&r<=9905||9906<=r&&r<=9916||9917<=r&&r<=9918||9919<=r&&r<=9923||9924<=r&&r<=9925||9926<=r&&r<=9927||9928===r||9929<=r&&r<=9933||9934===r||9935===r||9936===r||9937===r||9938===r||9939===r||9940===r||9941<=r&&r<=9960||9961===r||9962===r||9963<=r&&r<=9967||9968<=r&&r<=9969||9970<=r&&r<=9971||9972===r||9973===r||9974===r||9975<=r&&r<=9977||9978===r||9979<=r&&r<=9980||9981===r||9982<=r&&r<=9985||9986===r||9987<=r&&r<=9988||9989===r||9992<=r&&r<=9996||9997===r||9998===r||9999===r||1e4<=r&&r<=10001||10002===r||10004===r||10006===r||10013===r||10017===r||10024===r||10035<=r&&r<=10036||10052===r||10055===r||10060===r||10062===r||10067<=r&&r<=10069||10071===r||10083===r||10084===r||10085<=r&&r<=10087||10133<=r&&r<=10135||10145===r||10160===r||10175===r||10548<=r&&r<=10549||11013<=r&&r<=11015||11035<=r&&r<=11036||11088===r||11093===r||12336===r||12349===r||12951===r||12953===r||126976<=r&&r<=126979||126980===r||126981<=r&&r<=127182||127183===r||127184<=r&&r<=127231||127245<=r&&r<=127247||127279===r||127340<=r&&r<=127343||127344<=r&&r<=127345||127358<=r&&r<=127359||127374===r||127377<=r&&r<=127386||127405<=r&&r<=127461||127489<=r&&r<=127490||127491<=r&&r<=127503||127514===r||127535===r||127538<=r&&r<=127546||127548<=r&&r<=127551||127561<=r&&r<=127567||127568<=r&&r<=127569||127570<=r&&r<=127743||127744<=r&&r<=127756||127757<=r&&r<=127758||127759===r||127760===r||127761===r||127762===r||127763<=r&&r<=127765||127766<=r&&r<=127768||127769===r||127770===r||127771===r||127772===r||127773<=r&&r<=127774||127775<=r&&r<=127776||127777===r||127778<=r&&r<=127779||127780<=r&&r<=127788||127789<=r&&r<=127791||127792<=r&&r<=127793||127794<=r&&r<=127795||127796<=r&&r<=127797||127798===r||127799<=r&&r<=127818||127819===r||127820<=r&&r<=127823||127824===r||127825<=r&&r<=127867||127868===r||127869===r||127870<=r&&r<=127871||127872<=r&&r<=127891||127892<=r&&r<=127893||127894<=r&&r<=127895||127896===r||127897<=r&&r<=127899||127900<=r&&r<=127901||127902<=r&&r<=127903||127904<=r&&r<=127940||127941===r||127942===r||127943===r||127944===r||127945===r||127946===r||127947<=r&&r<=127950||127951<=r&&r<=127955||127956<=r&&r<=127967||127968<=r&&r<=127971||127972===r||127973<=r&&r<=127984||127985<=r&&r<=127986||127987===r||127988===r||127989===r||127990===r||127991===r||127992<=r&&r<=127994||128e3<=r&&r<=128007||128008===r||128009<=r&&r<=128011||128012<=r&&r<=128014||128015<=r&&r<=128016||128017<=r&&r<=128018||128019===r||128020===r||128021===r||128022===r||128023<=r&&r<=128041||128042===r||128043<=r&&r<=128062||128063===r||128064===r||128065===r||128066<=r&&r<=128100||128101===r||128102<=r&&r<=128107||128108<=r&&r<=128109||128110<=r&&r<=128172||128173===r||128174<=r&&r<=128181||128182<=r&&r<=128183||128184<=r&&r<=128235||128236<=r&&r<=128237||128238===r||128239===r||128240<=r&&r<=128244||128245===r||128246<=r&&r<=128247||128248===r||128249<=r&&r<=128252||128253===r||128254===r||128255<=r&&r<=128258||128259===r||128260<=r&&r<=128263||128264===r||128265===r||128266<=r&&r<=128276||128277===r||128278<=r&&r<=128299||128300<=r&&r<=128301||128302<=r&&r<=128317||128326<=r&&r<=128328||128329<=r&&r<=128330||128331<=r&&r<=128334||128335===r||128336<=r&&r<=128347||128348<=r&&r<=128359||128360<=r&&r<=128366||128367<=r&&r<=128368||128369<=r&&r<=128370||128371<=r&&r<=128377||128378===r||128379<=r&&r<=128390||128391===r||128392<=r&&r<=128393||128394<=r&&r<=128397||128398<=r&&r<=128399||128400===r||128401<=r&&r<=128404||128405<=r&&r<=128406||128407<=r&&r<=128419||128420===r||128421===r||128422<=r&&r<=128423||128424===r||128425<=r&&r<=128432||128433<=r&&r<=128434||128435<=r&&r<=128443||128444===r||128445<=r&&r<=128449||128450<=r&&r<=128452||128453<=r&&r<=128464||128465<=r&&r<=128467||128468<=r&&r<=128475||128476<=r&&r<=128478||128479<=r&&r<=128480||128481===r||128482===r||128483===r||128484<=r&&r<=128487||128488===r||128489<=r&&r<=128494||128495===r||128496<=r&&r<=128498||128499===r||128500<=r&&r<=128505||128506===r||128507<=r&&r<=128511||128512===r||128513<=r&&r<=128518||128519<=r&&r<=128520||128521<=r&&r<=128525||128526===r||128527===r||128528===r||128529===r||128530<=r&&r<=128532||128533===r||128534===r||128535===r||128536===r||128537===r||128538===r||128539===r||128540<=r&&r<=128542||128543===r||128544<=r&&r<=128549||128550<=r&&r<=128551||128552<=r&&r<=128555||128556===r||128557===r||128558<=r&&r<=128559||128560<=r&&r<=128563||128564===r||128565===r||128566===r||128567<=r&&r<=128576||128577<=r&&r<=128580||128581<=r&&r<=128591||128640===r||128641<=r&&r<=128642||128643<=r&&r<=128645||128646===r||128647===r||128648===r||128649===r||128650<=r&&r<=128651||128652===r||128653===r||128654===r||128655===r||128656===r||128657<=r&&r<=128659||128660===r||128661===r||128662===r||128663===r||128664===r||128665<=r&&r<=128666||128667<=r&&r<=128673||128674===r||128675===r||128676<=r&&r<=128677||128678===r||128679<=r&&r<=128685||128686<=r&&r<=128689||128690===r||128691<=r&&r<=128693||128694===r||128695<=r&&r<=128696||128697<=r&&r<=128702||128703===r||128704===r||128705<=r&&r<=128709||128710<=r&&r<=128714||128715===r||128716===r||128717<=r&&r<=128719||128720===r||128721<=r&&r<=128722||128723<=r&&r<=128724||128725===r||128726<=r&&r<=128727||128728<=r&&r<=128735||128736<=r&&r<=128741||128742<=r&&r<=128744||128745===r||128746===r||128747<=r&&r<=128748||128749<=r&&r<=128751||128752===r||128753<=r&&r<=128754||128755===r||128756<=r&&r<=128758||128759<=r&&r<=128760||128761===r||128762===r||128763<=r&&r<=128764||128765<=r&&r<=128767||128884<=r&&r<=128895||128981<=r&&r<=128991||128992<=r&&r<=129003||129004<=r&&r<=129023||129036<=r&&r<=129039||129096<=r&&r<=129103||129114<=r&&r<=129119||129160<=r&&r<=129167||129198<=r&&r<=129279||129292===r||129293<=r&&r<=129295||129296<=r&&r<=129304||129305<=r&&r<=129310||129311===r||129312<=r&&r<=129319||129320<=r&&r<=129327||129328===r||129329<=r&&r<=129330||129331<=r&&r<=129338||129340<=r&&r<=129342||129343===r||129344<=r&&r<=129349||129351<=r&&r<=129355||129356===r||129357<=r&&r<=129359||129360<=r&&r<=129374||129375<=r&&r<=129387||129388<=r&&r<=129392||129393===r||129394===r||129395<=r&&r<=129398||129399<=r&&r<=129400||129401===r||129402===r||129403===r||129404<=r&&r<=129407||129408<=r&&r<=129412||129413<=r&&r<=129425||129426<=r&&r<=129431||129432<=r&&r<=129442||129443<=r&&r<=129444||129445<=r&&r<=129450||129451<=r&&r<=129453||129454<=r&&r<=129455||129456<=r&&r<=129465||129466<=r&&r<=129471||129472===r||129473<=r&&r<=129474||129475<=r&&r<=129482||129483===r||129484===r||129485<=r&&r<=129487||129488<=r&&r<=129510||129511<=r&&r<=129535||129536<=r&&r<=129647||129648<=r&&r<=129651||129652===r||129653<=r&&r<=129655||129656<=r&&r<=129658||129659<=r&&r<=129663||129664<=r&&r<=129666||129667<=r&&r<=129670||129671<=r&&r<=129679||129680<=r&&r<=129685||129686<=r&&r<=129704||129705<=r&&r<=129711||129712<=r&&r<=129718||129719<=r&&r<=129727||129728<=r&&r<=129730||129731<=r&&r<=129743||129744<=r&&r<=129750||129751<=r&&r<=129791||130048<=r&&r<=131069?qt.ExtendedPictographic:qt.Other})),N(Qt,"breakProperty",(function(r){return 1536<=r&&r<=1541||1757===r||1807===r||2274===r||3406===r||69821===r||69837===r||70082<=r&&r<=70083||71999===r||72001===r||72250===r||72324<=r&&r<=72329||73030===r?qt.Prepend:13===r?qt.CR:10===r?qt.LF:0<=r&&r<=9||11<=r&&r<=12||14<=r&&r<=31||127<=r&&r<=159||173===r||1564===r||6158===r||8203===r||8206<=r&&r<=8207||8232===r||8233===r||8234<=r&&r<=8238||8288<=r&&r<=8292||8293===r||8294<=r&&r<=8303||65279===r||65520<=r&&r<=65528||65529<=r&&r<=65531||78896<=r&&r<=78904||113824<=r&&r<=113827||119155<=r&&r<=119162||917504===r||917505===r||917506<=r&&r<=917535||917632<=r&&r<=917759||918e3<=r&&r<=921599?qt.Control:768<=r&&r<=879||1155<=r&&r<=1159||1160<=r&&r<=1161||1425<=r&&r<=1469||1471===r||1473<=r&&r<=1474||1476<=r&&r<=1477||1479===r||1552<=r&&r<=1562||1611<=r&&r<=1631||1648===r||1750<=r&&r<=1756||1759<=r&&r<=1764||1767<=r&&r<=1768||1770<=r&&r<=1773||1809===r||1840<=r&&r<=1866||1958<=r&&r<=1968||2027<=r&&r<=2035||2045===r||2070<=r&&r<=2073||2075<=r&&r<=2083||2085<=r&&r<=2087||2089<=r&&r<=2093||2137<=r&&r<=2139||2259<=r&&r<=2273||2275<=r&&r<=2306||2362===r||2364===r||2369<=r&&r<=2376||2381===r||2385<=r&&r<=2391||2402<=r&&r<=2403||2433===r||2492===r||2494===r||2497<=r&&r<=2500||2509===r||2519===r||2530<=r&&r<=2531||2558===r||2561<=r&&r<=2562||2620===r||2625<=r&&r<=2626||2631<=r&&r<=2632||2635<=r&&r<=2637||2641===r||2672<=r&&r<=2673||2677===r||2689<=r&&r<=2690||2748===r||2753<=r&&r<=2757||2759<=r&&r<=2760||2765===r||2786<=r&&r<=2787||2810<=r&&r<=2815||2817===r||2876===r||2878===r||2879===r||2881<=r&&r<=2884||2893===r||2901<=r&&r<=2902||2903===r||2914<=r&&r<=2915||2946===r||3006===r||3008===r||3021===r||3031===r||3072===r||3076===r||3134<=r&&r<=3136||3142<=r&&r<=3144||3146<=r&&r<=3149||3157<=r&&r<=3158||3170<=r&&r<=3171||3201===r||3260===r||3263===r||3266===r||3270===r||3276<=r&&r<=3277||3285<=r&&r<=3286||3298<=r&&r<=3299||3328<=r&&r<=3329||3387<=r&&r<=3388||3390===r||3393<=r&&r<=3396||3405===r||3415===r||3426<=r&&r<=3427||3457===r||3530===r||3535===r||3538<=r&&r<=3540||3542===r||3551===r||3633===r||3636<=r&&r<=3642||3655<=r&&r<=3662||3761===r||3764<=r&&r<=3772||3784<=r&&r<=3789||3864<=r&&r<=3865||3893===r||3895===r||3897===r||3953<=r&&r<=3966||3968<=r&&r<=3972||3974<=r&&r<=3975||3981<=r&&r<=3991||3993<=r&&r<=4028||4038===r||4141<=r&&r<=4144||4146<=r&&r<=4151||4153<=r&&r<=4154||4157<=r&&r<=4158||4184<=r&&r<=4185||4190<=r&&r<=4192||4209<=r&&r<=4212||4226===r||4229<=r&&r<=4230||4237===r||4253===r||4957<=r&&r<=4959||5906<=r&&r<=5908||5938<=r&&r<=5940||5970<=r&&r<=5971||6002<=r&&r<=6003||6068<=r&&r<=6069||6071<=r&&r<=6077||6086===r||6089<=r&&r<=6099||6109===r||6155<=r&&r<=6157||6277<=r&&r<=6278||6313===r||6432<=r&&r<=6434||6439<=r&&r<=6440||6450===r||6457<=r&&r<=6459||6679<=r&&r<=6680||6683===r||6742===r||6744<=r&&r<=6750||6752===r||6754===r||6757<=r&&r<=6764||6771<=r&&r<=6780||6783===r||6832<=r&&r<=6845||6846===r||6847<=r&&r<=6848||6912<=r&&r<=6915||6964===r||6965===r||6966<=r&&r<=6970||6972===r||6978===r||7019<=r&&r<=7027||7040<=r&&r<=7041||7074<=r&&r<=7077||7080<=r&&r<=7081||7083<=r&&r<=7085||7142===r||7144<=r&&r<=7145||7149===r||7151<=r&&r<=7153||7212<=r&&r<=7219||7222<=r&&r<=7223||7376<=r&&r<=7378||7380<=r&&r<=7392||7394<=r&&r<=7400||7405===r||7412===r||7416<=r&&r<=7417||7616<=r&&r<=7673||7675<=r&&r<=7679||8204===r||8400<=r&&r<=8412||8413<=r&&r<=8416||8417===r||8418<=r&&r<=8420||8421<=r&&r<=8432||11503<=r&&r<=11505||11647===r||11744<=r&&r<=11775||12330<=r&&r<=12333||12334<=r&&r<=12335||12441<=r&&r<=12442||42607===r||42608<=r&&r<=42610||42612<=r&&r<=42621||42654<=r&&r<=42655||42736<=r&&r<=42737||43010===r||43014===r||43019===r||43045<=r&&r<=43046||43052===r||43204<=r&&r<=43205||43232<=r&&r<=43249||43263===r||43302<=r&&r<=43309||43335<=r&&r<=43345||43392<=r&&r<=43394||43443===r||43446<=r&&r<=43449||43452<=r&&r<=43453||43493===r||43561<=r&&r<=43566||43569<=r&&r<=43570||43573<=r&&r<=43574||43587===r||43596===r||43644===r||43696===r||43698<=r&&r<=43700||43703<=r&&r<=43704||43710<=r&&r<=43711||43713===r||43756<=r&&r<=43757||43766===r||44005===r||44008===r||44013===r||64286===r||65024<=r&&r<=65039||65056<=r&&r<=65071||65438<=r&&r<=65439||66045===r||66272===r||66422<=r&&r<=66426||68097<=r&&r<=68099||68101<=r&&r<=68102||68108<=r&&r<=68111||68152<=r&&r<=68154||68159===r||68325<=r&&r<=68326||68900<=r&&r<=68903||69291<=r&&r<=69292||69446<=r&&r<=69456||69633===r||69688<=r&&r<=69702||69759<=r&&r<=69761||69811<=r&&r<=69814||69817<=r&&r<=69818||69888<=r&&r<=69890||69927<=r&&r<=69931||69933<=r&&r<=69940||70003===r||70016<=r&&r<=70017||70070<=r&&r<=70078||70089<=r&&r<=70092||70095===r||70191<=r&&r<=70193||70196===r||70198<=r&&r<=70199||70206===r||70367===r||70371<=r&&r<=70378||70400<=r&&r<=70401||70459<=r&&r<=70460||70462===r||70464===r||70487===r||70502<=r&&r<=70508||70512<=r&&r<=70516||70712<=r&&r<=70719||70722<=r&&r<=70724||70726===r||70750===r||70832===r||70835<=r&&r<=70840||70842===r||70845===r||70847<=r&&r<=70848||70850<=r&&r<=70851||71087===r||71090<=r&&r<=71093||71100<=r&&r<=71101||71103<=r&&r<=71104||71132<=r&&r<=71133||71219<=r&&r<=71226||71229===r||71231<=r&&r<=71232||71339===r||71341===r||71344<=r&&r<=71349||71351===r||71453<=r&&r<=71455||71458<=r&&r<=71461||71463<=r&&r<=71467||71727<=r&&r<=71735||71737<=r&&r<=71738||71984===r||71995<=r&&r<=71996||71998===r||72003===r||72148<=r&&r<=72151||72154<=r&&r<=72155||72160===r||72193<=r&&r<=72202||72243<=r&&r<=72248||72251<=r&&r<=72254||72263===r||72273<=r&&r<=72278||72281<=r&&r<=72283||72330<=r&&r<=72342||72344<=r&&r<=72345||72752<=r&&r<=72758||72760<=r&&r<=72765||72767===r||72850<=r&&r<=72871||72874<=r&&r<=72880||72882<=r&&r<=72883||72885<=r&&r<=72886||73009<=r&&r<=73014||73018===r||73020<=r&&r<=73021||73023<=r&&r<=73029||73031===r||73104<=r&&r<=73105||73109===r||73111===r||73459<=r&&r<=73460||92912<=r&&r<=92916||92976<=r&&r<=92982||94031===r||94095<=r&&r<=94098||94180===r||113821<=r&&r<=113822||119141===r||119143<=r&&r<=119145||119150<=r&&r<=119154||119163<=r&&r<=119170||119173<=r&&r<=119179||119210<=r&&r<=119213||119362<=r&&r<=119364||121344<=r&&r<=121398||121403<=r&&r<=121452||121461===r||121476===r||121499<=r&&r<=121503||121505<=r&&r<=121519||122880<=r&&r<=122886||122888<=r&&r<=122904||122907<=r&&r<=122913||122915<=r&&r<=122916||122918<=r&&r<=122922||123184<=r&&r<=123190||123628<=r&&r<=123631||125136<=r&&r<=125142||125252<=r&&r<=125258||127995<=r&&r<=127999||917536<=r&&r<=917631||917760<=r&&r<=917999?qt.Extend:127462<=r&&r<=127487?qt.RegionalIndicator:2307===r||2363===r||2366<=r&&r<=2368||2377<=r&&r<=2380||2382<=r&&r<=2383||2434<=r&&r<=2435||2495<=r&&r<=2496||2503<=r&&r<=2504||2507<=r&&r<=2508||2563===r||2622<=r&&r<=2624||2691===r||2750<=r&&r<=2752||2761===r||2763<=r&&r<=2764||2818<=r&&r<=2819||2880===r||2887<=r&&r<=2888||2891<=r&&r<=2892||3007===r||3009<=r&&r<=3010||3014<=r&&r<=3016||3018<=r&&r<=3020||3073<=r&&r<=3075||3137<=r&&r<=3140||3202<=r&&r<=3203||3262===r||3264<=r&&r<=3265||3267<=r&&r<=3268||3271<=r&&r<=3272||3274<=r&&r<=3275||3330<=r&&r<=3331||3391<=r&&r<=3392||3398<=r&&r<=3400||3402<=r&&r<=3404||3458<=r&&r<=3459||3536<=r&&r<=3537||3544<=r&&r<=3550||3570<=r&&r<=3571||3635===r||3763===r||3902<=r&&r<=3903||3967===r||4145===r||4155<=r&&r<=4156||4182<=r&&r<=4183||4228===r||6070===r||6078<=r&&r<=6085||6087<=r&&r<=6088||6435<=r&&r<=6438||6441<=r&&r<=6443||6448<=r&&r<=6449||6451<=r&&r<=6456||6681<=r&&r<=6682||6741===r||6743===r||6765<=r&&r<=6770||6916===r||6971===r||6973<=r&&r<=6977||6979<=r&&r<=6980||7042===r||7073===r||7078<=r&&r<=7079||7082===r||7143===r||7146<=r&&r<=7148||7150===r||7154<=r&&r<=7155||7204<=r&&r<=7211||7220<=r&&r<=7221||7393===r||7415===r||43043<=r&&r<=43044||43047===r||43136<=r&&r<=43137||43188<=r&&r<=43203||43346<=r&&r<=43347||43395===r||43444<=r&&r<=43445||43450<=r&&r<=43451||43454<=r&&r<=43456||43567<=r&&r<=43568||43571<=r&&r<=43572||43597===r||43755===r||43758<=r&&r<=43759||43765===r||44003<=r&&r<=44004||44006<=r&&r<=44007||44009<=r&&r<=44010||44012===r||69632===r||69634===r||69762===r||69808<=r&&r<=69810||69815<=r&&r<=69816||69932===r||69957<=r&&r<=69958||70018===r||70067<=r&&r<=70069||70079<=r&&r<=70080||70094===r||70188<=r&&r<=70190||70194<=r&&r<=70195||70197===r||70368<=r&&r<=70370||70402<=r&&r<=70403||70463===r||70465<=r&&r<=70468||70471<=r&&r<=70472||70475<=r&&r<=70477||70498<=r&&r<=70499||70709<=r&&r<=70711||70720<=r&&r<=70721||70725===r||70833<=r&&r<=70834||70841===r||70843<=r&&r<=70844||70846===r||70849===r||71088<=r&&r<=71089||71096<=r&&r<=71099||71102===r||71216<=r&&r<=71218||71227<=r&&r<=71228||71230===r||71340===r||71342<=r&&r<=71343||71350===r||71456<=r&&r<=71457||71462===r||71724<=r&&r<=71726||71736===r||71985<=r&&r<=71989||71991<=r&&r<=71992||71997===r||72e3===r||72002===r||72145<=r&&r<=72147||72156<=r&&r<=72159||72164===r||72249===r||72279<=r&&r<=72280||72343===r||72751===r||72766===r||72873===r||72881===r||72884===r||73098<=r&&r<=73102||73107<=r&&r<=73108||73110===r||73461<=r&&r<=73462||94033<=r&&r<=94087||94192<=r&&r<=94193||119142===r||119149===r?qt.SpacingMark:4352<=r&&r<=4447||43360<=r&&r<=43388?qt.L:4448<=r&&r<=4519||55216<=r&&r<=55238?qt.V:4520<=r&&r<=4607||55243<=r&&r<=55291?qt.T:44032===r||44060===r||44088===r||44116===r||44144===r||44172===r||44200===r||44228===r||44256===r||44284===r||44312===r||44340===r||44368===r||44396===r||44424===r||44452===r||44480===r||44508===r||44536===r||44564===r||44592===r||44620===r||44648===r||44676===r||44704===r||44732===r||44760===r||44788===r||44816===r||44844===r||44872===r||44900===r||44928===r||44956===r||44984===r||45012===r||45040===r||45068===r||45096===r||45124===r||45152===r||45180===r||45208===r||45236===r||45264===r||45292===r||45320===r||45348===r||45376===r||45404===r||45432===r||45460===r||45488===r||45516===r||45544===r||45572===r||45600===r||45628===r||45656===r||45684===r||45712===r||45740===r||45768===r||45796===r||45824===r||45852===r||45880===r||45908===r||45936===r||45964===r||45992===r||46020===r||46048===r||46076===r||46104===r||46132===r||46160===r||46188===r||46216===r||46244===r||46272===r||46300===r||46328===r||46356===r||46384===r||46412===r||46440===r||46468===r||46496===r||46524===r||46552===r||46580===r||46608===r||46636===r||46664===r||46692===r||46720===r||46748===r||46776===r||46804===r||46832===r||46860===r||46888===r||46916===r||46944===r||46972===r||47e3===r||47028===r||47056===r||47084===r||47112===r||47140===r||47168===r||47196===r||47224===r||47252===r||47280===r||47308===r||47336===r||47364===r||47392===r||47420===r||47448===r||47476===r||47504===r||47532===r||47560===r||47588===r||47616===r||47644===r||47672===r||47700===r||47728===r||47756===r||47784===r||47812===r||47840===r||47868===r||47896===r||47924===r||47952===r||47980===r||48008===r||48036===r||48064===r||48092===r||48120===r||48148===r||48176===r||48204===r||48232===r||48260===r||48288===r||48316===r||48344===r||48372===r||48400===r||48428===r||48456===r||48484===r||48512===r||48540===r||48568===r||48596===r||48624===r||48652===r||48680===r||48708===r||48736===r||48764===r||48792===r||48820===r||48848===r||48876===r||48904===r||48932===r||48960===r||48988===r||49016===r||49044===r||49072===r||49100===r||49128===r||49156===r||49184===r||49212===r||49240===r||49268===r||49296===r||49324===r||49352===r||49380===r||49408===r||49436===r||49464===r||49492===r||49520===r||49548===r||49576===r||49604===r||49632===r||49660===r||49688===r||49716===r||49744===r||49772===r||49800===r||49828===r||49856===r||49884===r||49912===r||49940===r||49968===r||49996===r||50024===r||50052===r||50080===r||50108===r||50136===r||50164===r||50192===r||50220===r||50248===r||50276===r||50304===r||50332===r||50360===r||50388===r||50416===r||50444===r||50472===r||50500===r||50528===r||50556===r||50584===r||50612===r||50640===r||50668===r||50696===r||50724===r||50752===r||50780===r||50808===r||50836===r||50864===r||50892===r||50920===r||50948===r||50976===r||51004===r||51032===r||51060===r||51088===r||51116===r||51144===r||51172===r||51200===r||51228===r||51256===r||51284===r||51312===r||51340===r||51368===r||51396===r||51424===r||51452===r||51480===r||51508===r||51536===r||51564===r||51592===r||51620===r||51648===r||51676===r||51704===r||51732===r||51760===r||51788===r||51816===r||51844===r||51872===r||51900===r||51928===r||51956===r||51984===r||52012===r||52040===r||52068===r||52096===r||52124===r||52152===r||52180===r||52208===r||52236===r||52264===r||52292===r||52320===r||52348===r||52376===r||52404===r||52432===r||52460===r||52488===r||52516===r||52544===r||52572===r||52600===r||52628===r||52656===r||52684===r||52712===r||52740===r||52768===r||52796===r||52824===r||52852===r||52880===r||52908===r||52936===r||52964===r||52992===r||53020===r||53048===r||53076===r||53104===r||53132===r||53160===r||53188===r||53216===r||53244===r||53272===r||53300===r||53328===r||53356===r||53384===r||53412===r||53440===r||53468===r||53496===r||53524===r||53552===r||53580===r||53608===r||53636===r||53664===r||53692===r||53720===r||53748===r||53776===r||53804===r||53832===r||53860===r||53888===r||53916===r||53944===r||53972===r||54e3===r||54028===r||54056===r||54084===r||54112===r||54140===r||54168===r||54196===r||54224===r||54252===r||54280===r||54308===r||54336===r||54364===r||54392===r||54420===r||54448===r||54476===r||54504===r||54532===r||54560===r||54588===r||54616===r||54644===r||54672===r||54700===r||54728===r||54756===r||54784===r||54812===r||54840===r||54868===r||54896===r||54924===r||54952===r||54980===r||55008===r||55036===r||55064===r||55092===r||55120===r||55148===r||55176===r?qt.LV:44033<=r&&r<=44059||44061<=r&&r<=44087||44089<=r&&r<=44115||44117<=r&&r<=44143||44145<=r&&r<=44171||44173<=r&&r<=44199||44201<=r&&r<=44227||44229<=r&&r<=44255||44257<=r&&r<=44283||44285<=r&&r<=44311||44313<=r&&r<=44339||44341<=r&&r<=44367||44369<=r&&r<=44395||44397<=r&&r<=44423||44425<=r&&r<=44451||44453<=r&&r<=44479||44481<=r&&r<=44507||44509<=r&&r<=44535||44537<=r&&r<=44563||44565<=r&&r<=44591||44593<=r&&r<=44619||44621<=r&&r<=44647||44649<=r&&r<=44675||44677<=r&&r<=44703||44705<=r&&r<=44731||44733<=r&&r<=44759||44761<=r&&r<=44787||44789<=r&&r<=44815||44817<=r&&r<=44843||44845<=r&&r<=44871||44873<=r&&r<=44899||44901<=r&&r<=44927||44929<=r&&r<=44955||44957<=r&&r<=44983||44985<=r&&r<=45011||45013<=r&&r<=45039||45041<=r&&r<=45067||45069<=r&&r<=45095||45097<=r&&r<=45123||45125<=r&&r<=45151||45153<=r&&r<=45179||45181<=r&&r<=45207||45209<=r&&r<=45235||45237<=r&&r<=45263||45265<=r&&r<=45291||45293<=r&&r<=45319||45321<=r&&r<=45347||45349<=r&&r<=45375||45377<=r&&r<=45403||45405<=r&&r<=45431||45433<=r&&r<=45459||45461<=r&&r<=45487||45489<=r&&r<=45515||45517<=r&&r<=45543||45545<=r&&r<=45571||45573<=r&&r<=45599||45601<=r&&r<=45627||45629<=r&&r<=45655||45657<=r&&r<=45683||45685<=r&&r<=45711||45713<=r&&r<=45739||45741<=r&&r<=45767||45769<=r&&r<=45795||45797<=r&&r<=45823||45825<=r&&r<=45851||45853<=r&&r<=45879||45881<=r&&r<=45907||45909<=r&&r<=45935||45937<=r&&r<=45963||45965<=r&&r<=45991||45993<=r&&r<=46019||46021<=r&&r<=46047||46049<=r&&r<=46075||46077<=r&&r<=46103||46105<=r&&r<=46131||46133<=r&&r<=46159||46161<=r&&r<=46187||46189<=r&&r<=46215||46217<=r&&r<=46243||46245<=r&&r<=46271||46273<=r&&r<=46299||46301<=r&&r<=46327||46329<=r&&r<=46355||46357<=r&&r<=46383||46385<=r&&r<=46411||46413<=r&&r<=46439||46441<=r&&r<=46467||46469<=r&&r<=46495||46497<=r&&r<=46523||46525<=r&&r<=46551||46553<=r&&r<=46579||46581<=r&&r<=46607||46609<=r&&r<=46635||46637<=r&&r<=46663||46665<=r&&r<=46691||46693<=r&&r<=46719||46721<=r&&r<=46747||46749<=r&&r<=46775||46777<=r&&r<=46803||46805<=r&&r<=46831||46833<=r&&r<=46859||46861<=r&&r<=46887||46889<=r&&r<=46915||46917<=r&&r<=46943||46945<=r&&r<=46971||46973<=r&&r<=46999||47001<=r&&r<=47027||47029<=r&&r<=47055||47057<=r&&r<=47083||47085<=r&&r<=47111||47113<=r&&r<=47139||47141<=r&&r<=47167||47169<=r&&r<=47195||47197<=r&&r<=47223||47225<=r&&r<=47251||47253<=r&&r<=47279||47281<=r&&r<=47307||47309<=r&&r<=47335||47337<=r&&r<=47363||47365<=r&&r<=47391||47393<=r&&r<=47419||47421<=r&&r<=47447||47449<=r&&r<=47475||47477<=r&&r<=47503||47505<=r&&r<=47531||47533<=r&&r<=47559||47561<=r&&r<=47587||47589<=r&&r<=47615||47617<=r&&r<=47643||47645<=r&&r<=47671||47673<=r&&r<=47699||47701<=r&&r<=47727||47729<=r&&r<=47755||47757<=r&&r<=47783||47785<=r&&r<=47811||47813<=r&&r<=47839||47841<=r&&r<=47867||47869<=r&&r<=47895||47897<=r&&r<=47923||47925<=r&&r<=47951||47953<=r&&r<=47979||47981<=r&&r<=48007||48009<=r&&r<=48035||48037<=r&&r<=48063||48065<=r&&r<=48091||48093<=r&&r<=48119||48121<=r&&r<=48147||48149<=r&&r<=48175||48177<=r&&r<=48203||48205<=r&&r<=48231||48233<=r&&r<=48259||48261<=r&&r<=48287||48289<=r&&r<=48315||48317<=r&&r<=48343||48345<=r&&r<=48371||48373<=r&&r<=48399||48401<=r&&r<=48427||48429<=r&&r<=48455||48457<=r&&r<=48483||48485<=r&&r<=48511||48513<=r&&r<=48539||48541<=r&&r<=48567||48569<=r&&r<=48595||48597<=r&&r<=48623||48625<=r&&r<=48651||48653<=r&&r<=48679||48681<=r&&r<=48707||48709<=r&&r<=48735||48737<=r&&r<=48763||48765<=r&&r<=48791||48793<=r&&r<=48819||48821<=r&&r<=48847||48849<=r&&r<=48875||48877<=r&&r<=48903||48905<=r&&r<=48931||48933<=r&&r<=48959||48961<=r&&r<=48987||48989<=r&&r<=49015||49017<=r&&r<=49043||49045<=r&&r<=49071||49073<=r&&r<=49099||49101<=r&&r<=49127||49129<=r&&r<=49155||49157<=r&&r<=49183||49185<=r&&r<=49211||49213<=r&&r<=49239||49241<=r&&r<=49267||49269<=r&&r<=49295||49297<=r&&r<=49323||49325<=r&&r<=49351||49353<=r&&r<=49379||49381<=r&&r<=49407||49409<=r&&r<=49435||49437<=r&&r<=49463||49465<=r&&r<=49491||49493<=r&&r<=49519||49521<=r&&r<=49547||49549<=r&&r<=49575||49577<=r&&r<=49603||49605<=r&&r<=49631||49633<=r&&r<=49659||49661<=r&&r<=49687||49689<=r&&r<=49715||49717<=r&&r<=49743||49745<=r&&r<=49771||49773<=r&&r<=49799||49801<=r&&r<=49827||49829<=r&&r<=49855||49857<=r&&r<=49883||49885<=r&&r<=49911||49913<=r&&r<=49939||49941<=r&&r<=49967||49969<=r&&r<=49995||49997<=r&&r<=50023||50025<=r&&r<=50051||50053<=r&&r<=50079||50081<=r&&r<=50107||50109<=r&&r<=50135||50137<=r&&r<=50163||50165<=r&&r<=50191||50193<=r&&r<=50219||50221<=r&&r<=50247||50249<=r&&r<=50275||50277<=r&&r<=50303||50305<=r&&r<=50331||50333<=r&&r<=50359||50361<=r&&r<=50387||50389<=r&&r<=50415||50417<=r&&r<=50443||50445<=r&&r<=50471||50473<=r&&r<=50499||50501<=r&&r<=50527||50529<=r&&r<=50555||50557<=r&&r<=50583||50585<=r&&r<=50611||50613<=r&&r<=50639||50641<=r&&r<=50667||50669<=r&&r<=50695||50697<=r&&r<=50723||50725<=r&&r<=50751||50753<=r&&r<=50779||50781<=r&&r<=50807||50809<=r&&r<=50835||50837<=r&&r<=50863||50865<=r&&r<=50891||50893<=r&&r<=50919||50921<=r&&r<=50947||50949<=r&&r<=50975||50977<=r&&r<=51003||51005<=r&&r<=51031||51033<=r&&r<=51059||51061<=r&&r<=51087||51089<=r&&r<=51115||51117<=r&&r<=51143||51145<=r&&r<=51171||51173<=r&&r<=51199||51201<=r&&r<=51227||51229<=r&&r<=51255||51257<=r&&r<=51283||51285<=r&&r<=51311||51313<=r&&r<=51339||51341<=r&&r<=51367||51369<=r&&r<=51395||51397<=r&&r<=51423||51425<=r&&r<=51451||51453<=r&&r<=51479||51481<=r&&r<=51507||51509<=r&&r<=51535||51537<=r&&r<=51563||51565<=r&&r<=51591||51593<=r&&r<=51619||51621<=r&&r<=51647||51649<=r&&r<=51675||51677<=r&&r<=51703||51705<=r&&r<=51731||51733<=r&&r<=51759||51761<=r&&r<=51787||51789<=r&&r<=51815||51817<=r&&r<=51843||51845<=r&&r<=51871||51873<=r&&r<=51899||51901<=r&&r<=51927||51929<=r&&r<=51955||51957<=r&&r<=51983||51985<=r&&r<=52011||52013<=r&&r<=52039||52041<=r&&r<=52067||52069<=r&&r<=52095||52097<=r&&r<=52123||52125<=r&&r<=52151||52153<=r&&r<=52179||52181<=r&&r<=52207||52209<=r&&r<=52235||52237<=r&&r<=52263||52265<=r&&r<=52291||52293<=r&&r<=52319||52321<=r&&r<=52347||52349<=r&&r<=52375||52377<=r&&r<=52403||52405<=r&&r<=52431||52433<=r&&r<=52459||52461<=r&&r<=52487||52489<=r&&r<=52515||52517<=r&&r<=52543||52545<=r&&r<=52571||52573<=r&&r<=52599||52601<=r&&r<=52627||52629<=r&&r<=52655||52657<=r&&r<=52683||52685<=r&&r<=52711||52713<=r&&r<=52739||52741<=r&&r<=52767||52769<=r&&r<=52795||52797<=r&&r<=52823||52825<=r&&r<=52851||52853<=r&&r<=52879||52881<=r&&r<=52907||52909<=r&&r<=52935||52937<=r&&r<=52963||52965<=r&&r<=52991||52993<=r&&r<=53019||53021<=r&&r<=53047||53049<=r&&r<=53075||53077<=r&&r<=53103||53105<=r&&r<=53131||53133<=r&&r<=53159||53161<=r&&r<=53187||53189<=r&&r<=53215||53217<=r&&r<=53243||53245<=r&&r<=53271||53273<=r&&r<=53299||53301<=r&&r<=53327||53329<=r&&r<=53355||53357<=r&&r<=53383||53385<=r&&r<=53411||53413<=r&&r<=53439||53441<=r&&r<=53467||53469<=r&&r<=53495||53497<=r&&r<=53523||53525<=r&&r<=53551||53553<=r&&r<=53579||53581<=r&&r<=53607||53609<=r&&r<=53635||53637<=r&&r<=53663||53665<=r&&r<=53691||53693<=r&&r<=53719||53721<=r&&r<=53747||53749<=r&&r<=53775||53777<=r&&r<=53803||53805<=r&&r<=53831||53833<=r&&r<=53859||53861<=r&&r<=53887||53889<=r&&r<=53915||53917<=r&&r<=53943||53945<=r&&r<=53971||53973<=r&&r<=53999||54001<=r&&r<=54027||54029<=r&&r<=54055||54057<=r&&r<=54083||54085<=r&&r<=54111||54113<=r&&r<=54139||54141<=r&&r<=54167||54169<=r&&r<=54195||54197<=r&&r<=54223||54225<=r&&r<=54251||54253<=r&&r<=54279||54281<=r&&r<=54307||54309<=r&&r<=54335||54337<=r&&r<=54363||54365<=r&&r<=54391||54393<=r&&r<=54419||54421<=r&&r<=54447||54449<=r&&r<=54475||54477<=r&&r<=54503||54505<=r&&r<=54531||54533<=r&&r<=54559||54561<=r&&r<=54587||54589<=r&&r<=54615||54617<=r&&r<=54643||54645<=r&&r<=54671||54673<=r&&r<=54699||54701<=r&&r<=54727||54729<=r&&r<=54755||54757<=r&&r<=54783||54785<=r&&r<=54811||54813<=r&&r<=54839||54841<=r&&r<=54867||54869<=r&&r<=54895||54897<=r&&r<=54923||54925<=r&&r<=54951||54953<=r&&r<=54979||54981<=r&&r<=55007||55009<=r&&r<=55035||55037<=r&&r<=55063||55065<=r&&r<=55091||55093<=r&&r<=55119||55121<=r&&r<=55147||55149<=r&&r<=55175||55177<=r&&r<=55203?qt.LVT:8205===r?qt.ZWJ:qt.Other}));var rn=Qt.breakType,en=Qt.breakProperty,tn=Qt.emojiProperty;function nn(r,e){var t,n,i,o,a,u;if(!wr(r))throw new TypeError(k("invalid argument. First argument must be a string. Value: `%s`.",r));if(arguments.length>1){if(!Se(e))throw new TypeError(k("invalid argument. Second argument must be an integer. Value: `%s`.",e));o=e}else o=0;if(i=r.length,o<0&&(o+=i)<0&&(o=0),0===i||o>=i)return-1;for(t=[],n=[],a=$t(r,o),t.push(en(a)),n.push(tn(a)),u=o+1;u<i;u++)if(!zt(r,u-1)&&(a=$t(r,u),t.push(en(a)),n.push(tn(a)),rn(t,n)>0))return u;return-1}function on(){var r,e=arguments,t="https://stdlib.io/e/"+e[0]+"?";for(r=1;r<e.length;r++)t+="&arg[]="+encodeURIComponent(e[r]);return t}var an=["grapheme","code_point","code_unit"],un={grapheme:function(r,e,t){var n,i,o;for(n=r.length,i=0;i<n;)-1===(o=nn(r,i))&&(o=n),e.call(t,r.substring(i,o),i,r),i=o;return r},code_point:function(r,e,t){var n,i,o,a,u,f;for(n=r.length,f=0;f<n;f++)a=f,u=i=r[f],f<n-1&&Mt.test(i)&&(o=r[f+1],Ct.test(o)&&(u+=o,f+=1)),e.call(t,u,a,r);return r},code_unit:function(r,e,t){var n;for(n=0;n<r.length;n++)e.call(t,r[n],n,r);return r}},fn=Ot(an);function sn(r,e,t){var n,i,o,a;if(!wr(r))throw new TypeError(on("1gr3F",r));if(o={mode:"grapheme"},2===(i=arguments.length))a=e,e=null;else if(3===i)jr(e)?a=t:(a=e,e=null,n=t);else{if(!jr(e))throw new TypeError(on("1gr2V",e));a=t,n=arguments[3]}if(!mr(a))throw new TypeError(on("1gr2b",a));if(e&&G(e,"mode")&&(o.mode=e.mode,!fn(o.mode)))throw new TypeError(on("1grE1","mode",an.join('", "'),o.mode));return un[o.mode](r,a,n),r}export{sn as default};
//# sourceMappingURL=mod.js.map