PageSourceSearch

https://go-velo.com.ua/cdn/shop/t/34/assets/esm.js?v=38307283668914047601782396883

js go-velo.com.ua collected 2026-10-07 23:40:04 UTC 57,498 bytes, 1 lines download raw bytes

1function e(e){return typeof e==`string`||e instanceof String}function t(e){var t;return typeof e==`object`&&!!e&&(e==null||(t=e.constructor)==null?void 0:t.name)===`Object`}function n(e,t){return Array.isArray(t)?n(e,(e,n)=>t.includes(n)):Object.entries(e).reduce((e,n)=>{let[r,i]=n;return t(i,r)&&(e[r]=i),e},{})}var r={NONE:`NONE`,LEFT:`LEFT`,FORCE_LEFT:`FORCE_LEFT`,RIGHT:`RIGHT`,FORCE_RIGHT:`FORCE_RIGHT`};function i(e){switch(e){case r.LEFT:return r.FORCE_LEFT;case r.RIGHT:return r.FORCE_RIGHT;default:return e}}function a(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,`\\$1`)}function o(e,t){if(t===e)return!0;let n=Array.isArray(t),r=Array.isArray(e),i;if(n&&r){if(t.length!=e.length)return!1;for(i=0;i<t.length;i++)if(!o(t[i],e[i]))return!1;return!0}if(n!=r)return!1;if(t&&e&&typeof t==`object`&&typeof e==`object`){let n=t instanceof Date,r=e instanceof Date;if(n&&r)return t.getTime()==e.getTime();if(n!=r)return!1;let a=t instanceof RegExp,s=e instanceof RegExp;if(a&&s)return t.toString()==e.toString();if(a!=s)return!1;let c=Object.keys(t);for(i=0;i<c.length;i++)if(!Object.prototype.hasOwnProperty.call(e,c[i]))return!1;for(i=0;i<c.length;i++)if(!o(e[c[i]],t[c[i]]))return!1;return!0}else if(t&&e&&typeof t==`function`&&typeof e==`function`)return t.toString()===e.toString();return!1}var s=class{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?r.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?r.RIGHT:r.LEFT}};function c(e,t){return new c.InputMask(e,t)}function l(t){if(t==null)throw Error(`mask property should be defined`);return t instanceof RegExp?c.MaskedRegExp:e(t)?c.MaskedPattern:t===Date?c.MaskedDate:t===Number?c.MaskedNumber:Array.isArray(t)||t===Array?c.MaskedDynamic:c.Masked&&t.prototype instanceof c.Masked?t:c.Masked&&t instanceof c.Masked?t.constructor:t instanceof Function?c.MaskedFunction:(console.warn(`Mask not found for mask`,t),c.Masked)}function u(e){if(!e)throw Error(`Options in not defined`);if(c.Masked){if(e.prototype instanceof c.Masked)return{mask:e};let{mask:r=void 0,...i}=e instanceof c.Masked?{mask:e}:t(e)&&e.mask instanceof c.Masked?e:{};if(r){let e=r.mask;return{...n(r,(e,t)=>!t.startsWith(`_`)),mask:r.constructor,_mask:e,...i}}}return t(e)?{...e}:{mask:e}}function d(e){if(c.Masked&&e instanceof c.Masked)return e;let t=u(e),n=l(t.mask);if(!n)throw Error(`Masked class is not found for provided mask `+t.mask+`, appropriate module needs to be imported manually before creating mask.`);return t.mask===n&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new n(t)}c.createMask=d;var f=class{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}};c.MaskElement=f;var p=90,m=89,h=class extends f{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e;return(e=this.input).getRootNode?.call(e)??document}get isActive(){return this.input===this.rootElement.activeElement}
1bindEvents(e){this.input.addEventListener(`keydown`,this._onKeydown),this.input.addEventListener(`input`,this._onInput),this.input.addEventListener(`beforeinput`,this._onBeforeinput),this.input.addEventListener(`compositionend`,this._onCompositionEnd),this.input.addEventListener(`drop`,e.drop),this.input.addEventListener(`click`,e.click),this.input.addEventListener(`focus`,e.focus),this.input.addEventListener(`blur`,e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===p&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===m&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===p&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType===`historyUndo`&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType===`historyRedo`&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener(`keydown`,this._onKeydown),this.input.removeEventListener(`input`,this._onInput),this.input.removeEventListener(`beforeinput`,this._onBeforeinput),this.input.removeEventListener(`compositionend`,this._onCompositionEnd),this.input.removeEventListener(`drop`,this._handlers.drop),this.input.removeEventListener(`click`,this._handlers.click),this.input.removeEventListener(`focus`,this._handlers.focus),this.input.removeEventListener(`blur`,this._handlers.commit),this._handlers={}}};c.HTMLMaskElement=h;var g=class extends h{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart==null?this.value.length:this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}};c.HTMLMaskElement=h;var _=class extends h{get _unsafeSelectionStart(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,r=t&&t.focusOffset;return r==null||n==null||n<r?n:r}get _unsafeSelectionEnd(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,r=t&&t.focusOffset;return r==null||n==null||n>r?n:r}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;let n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);let r=this.rootElement,i=r.getSelection&&r.getSelection();i&&(i.removeAllRanges(),i.addRange(n))}get value(){return this.input.textContent||``}set value(e){this.input.textContent=e}};c.HTMLContenteditableMaskElement=_;var v=class e{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(t),this.states.length>e.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};v.MAX_LENGTH=100,c.InputMask=class{constructor(e,t){this.el=e instanceof f?e:e.isContentEditable&&e.tagName!==`INPUT`&&e.tagName!==`TEXTAREA`?new _(e):new g(e),this.masked=d(t),this._listeners={},this._value=``,this._unmaskedValue=``,this._rawInputValue=``,this.history=new v,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){return e==null||this.masked?.maskEquals(e)}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof c.Masked)&&this.masked.constructor===l(e)){this.masked.updateOptions({mask:e});return}let t=e instanceof c.Masked?e:d({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(`auto`))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(`auto`))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(`auto`))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){let n=this._listeners[e];
1n&&n.forEach(e=>e(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){let t=this.masked.unmaskedValue,n=this.masked.value,r=this.masked.rawInputValue,i=this.displayValue,a=this.unmaskedValue!==t||this.value!==n||this._rawInputValue!==r;this._unmaskedValue=t,this._value=n,this._rawInputValue=r,this.el.value!==i&&(this.el.value=i),e===`auto`?this.alignCursor():e!=null&&(this.cursorPos=e),a&&this._fireChangeEvents(),!this._historyChanging&&(a||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){let{mask:t,...n}=e,r=!this.maskEquals(t),i=this.masked.optionsIsChanged(n);r&&(this.mask=t),i&&this.masked.updateOptions(n),(r||i)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent(`accept`,this._inputEvent),this.masked.isComplete&&this._fireEvent(`complete`,this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,r.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;let n=this._listeners[e].indexOf(t);return n>=0&&this._listeners[e].splice(n,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();let t=new s({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,i=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,a=n===this.masked.rawInputValue?t.removeDirection:r.NONE,o=this.masked.nearestInputPos(t.startChangePos+i,a);a!==r.NONE&&(o=this.masked.nearestInputPos(o,r.NONE)),this.updateControl(o),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};var y=class e{static normalize(t){return Array.isArray(t)?t:[t,new e]}constructor(e){Object.assign(this,{inserted:``,rawInserted:``,tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}};c.ChangeDetails=y;var b=class{constructor(e,t,n){e===void 0&&(e=``),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=n}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return``;let t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return``;let e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}},x=class t{constructor(e){this._value=``,this._update({...t.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=``}get value(){return this._value}
1set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,``),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new b(this.extractInput(e,t),e)}appendTail(t){return e(t)&&(t=new b(String(t))),t.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new y({inserted:e,rawInserted:e})):new y}_appendChar(e,t,n){t===void 0&&(t={});let r=this.state,i;if([e,i]=this.doPrepareChar(e,t),e&&(i=i.aggregate(this._appendCharRaw(e,t)),!i.rawInserted&&this.autofix===`pad`)){let n=this.state;this.state=r;let a=this.pad(t),o=this._appendCharRaw(e,t);a=a.aggregate(o),o.rawInserted||a.equals(i)?i=a:this.state=n}if(i.inserted){let e,a=this.doValidate(t)!==!1;if(a&&n!=null){let t=this.state;if(this.overwrite===!0){e=n.state;for(let e=0;e<i.rawInserted.length;++e)n.unshift(this.displayValue.length-i.tailShift)}let r=this.appendTail(n);if(a=r.rawInserted.length===n.toString().length,!(a&&r.inserted)&&this.overwrite===`shift`){this.state=t,e=n.state;for(let e=0;e<i.rawInserted.length;++e)n.shift();r=this.appendTail(n),a=r.rawInserted.length===n.toString().length}a&&r.inserted&&(this.state=t)}a||(i=new y,this.state=r,n&&e&&(n.state=e))}return i}_appendPlaceholder(){return new y}_appendEager(){return new y}append(t,n,r){if(!e(t))throw Error(`value should be string`);let i=e(r)?new b(String(r)):r;n!=null&&n.tail&&(n._beforeTailState=this.state);let a;[t,a]=this.doPrepare(t,n);for(let e=0;e<t.length;++e){let r=this._appendChar(t[e],n,i);if(!r.rawInserted&&!this.doSkipInvalid(t[e],n,i))break;a.aggregate(r)}return(this.eager===!0||this.eager===`append`)&&n!=null&&n.input&&t&&a.aggregate(this._appendEager()),i!=null&&(a.tailShift+=this.appendTail(i).tailShift),a}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new y}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;let t=this.rawInputValue,n=this.value,r=e();return this.rawInputValue=t,this.value&&this.value!==n&&n.indexOf(this.value)===0&&(this.append(n.slice(this.displayValue.length),{},``),this.doCommit()),delete this._refreshing,r}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;let t=this.state,n=e(this);return this.state=t,delete this._isolated,n}doSkipInvalid(e,t,n){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),y.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),y.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,n,a,o){n===void 0&&(n=``),a===void 0&&(a=r.NONE),o===void 0&&(o={input:!0});let s=e+t,c=this.extractTail(s),l=this.eager===!0||this.eager===`remove`,u;l&&(a=i(a),u=this.extractInput(0,s,{raw:!0}));let d=e,f=new y;if(a!==r.NONE&&(d=this.nearestInputPos(e,t>1&&e!==0&&!l?r.NONE:a),f.tailShift=d-e),f.aggregate(this.remove(d)),l&&a!==r.NONE&&u===this.rawInputValue)if(a===r.FORCE_LEFT){let e;for(;u===this.rawInputValue&&(e=this.displayValue.length);)f.aggregate(new y({tailShift:-1})).aggregate(this.remove(e-1))}else a===r.FORCE_RIGHT&&c.unshift();return f.aggregate(this.append(n,o,c))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!o(this,e)}typedValueEquals(e){let n=this.typedValue;return e===n||t.EMPTY_VALUES.includes(e)&&t.EMPTY_VALUES.includes(n)||(this.format?this.format(e,this)===this.format(this.t
1ypedValue,this):!1)}pad(e){return new y}};x.DEFAULTS={skipInvalid:!0},x.EMPTY_VALUES=[void 0,null,``],c.Masked=x;var S=class t{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join(``)}extend(n){if(!String(n))return;n=e(n)?new b(String(n)):n;let r=this.chunks[this.chunks.length-1],i=r&&(r.stop===n.stop||n.stop==null)&&n.from===r.from+r.toString().length;if(n instanceof b)i?r.extend(n.toString()):this.chunks.push(n);else if(n instanceof t){if(n.stop==null){let e;for(;n.chunks.length&&n.chunks[0].stop==null;)e=n.chunks.shift(),e.from+=n.from,this.extend(e)}n.toString()&&(n.stop=n.blockIndex,this.chunks.push(n))}}appendTo(e){if(!(e instanceof c.MaskedPattern))return new b(this.toString()).appendTo(e);let n=new y;for(let r=0;r<this.chunks.length;++r){let i=this.chunks[r],a=e._mapPosToBlock(e.displayValue.length),o=i.stop,s;if(o!=null&&(!a||a.index<=o)&&((i instanceof t||e._stops.indexOf(o)>=0)&&n.aggregate(e._appendPlaceholder(o)),s=i instanceof t&&e._blocks[o]),s){let t=s.appendTail(i);n.aggregate(t);let r=i.toString().slice(t.rawInserted.length);r&&n.aggregate(e.append(r,{tail:!0}))}else n.aggregate(e.append(i.toString(),{tail:!0}))}return n}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){let{chunks:n,...r}=e;Object.assign(this,r),this.chunks=n.map(e=>{let n=`chunks`in e?new t:new b;return n.state=e,n})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return``;let t=e==null?e:e-this.from,n=0;for(;n<this.chunks.length;){let e=this.chunks[n],r=e.unshift(t);if(e.toString()){if(!r)break;++n}else this.chunks.splice(n,1);if(r)return r}return``}shift(){if(!this.chunks.length)return``;let e=this.chunks.length-1;for(;0<=e;){let t=this.chunks[e],n=t.shift();if(t.toString()){if(!n)break;--e}else this.chunks.splice(e,1);if(n)return n}return``}},C=class{constructor(e,t){this.masked=e,this._log=[];let{offset:n,index:r}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=r,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){let e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(t=this.block)?.displayValue.length||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,r.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,r.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,r.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,r.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,r.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,r.NONE),!0})}},w=class{constructor(e){Object.assign(this,e),this._value=``,this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:``}get rawInputValue(){return this._isRawInput?this.value:``}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=``}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new y}nearestInputPos(e,t){t===void 0&&(t=r.NONE);let n=this._value.length;switch(t){case r.LEFT:case r.FORCE_LEFT:return 0;case r.NONE:case r.RIGHT:case r.FORCE_RIGHT:default:return n}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(e,t)||``}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new y;let n=this.eager===!0||this.eager===`append`,r=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!n)&&
1!t.tail,i=new y({inserted:this.char,rawInserted:r?this.char:``});return this._value=this.char,this._isRawInput=r&&(t.raw||t.input),i}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let e=new y;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new b(``)}appendTail(t){return e(t)&&(t=new b(String(t))),t.appendTo(this)}append(e,t,n){let r=this._appendChar(e[0],t);return n!=null&&(r.tailShift+=this.appendTail(n).tailShift),r}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}},T=class{constructor(e){let{parent:t,isOptional:n,placeholderChar:r,displayChar:i,lazy:a,eager:o,...s}=e;this.masked=d(s),Object.assign(this,{parent:t,isOptional:n,placeholderChar:r,displayChar:i,lazy:a,eager:o})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new y}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:``)}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new y;let n=this.masked.state,r=this.masked._appendChar(e,this.currentMaskFlags(t));return r.inserted&&this.doValidate(t)===!1&&(r=new y,this.masked.state=n),!r.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(r.inserted=this.placeholderChar),r.skip=!r.inserted&&!this.isOptional,this.isFilled=!!r.inserted,r}append(e,t,n){return this.masked.append(e,this.currentMaskFlags(t),n)}_appendPlaceholder(){return this.isFilled||this.isOptional?new y:(this.isFilled=!0,new y({inserted:this.placeholderChar}))}_appendEager(){return new y}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,n)}nearestInputPos(e,t){t===void 0&&(t=r.NONE);let n=this.value.length,i=Math.min(Math.max(e,0),n);switch(t){case r.LEFT:case r.FORCE_LEFT:return this.isComplete?i:0;case r.RIGHT:case r.FORCE_RIGHT:return this.isComplete?i:n;case r.NONE:default:return i}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||e?._beforeTailState}}pad(e){return new y}};T.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u
10EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},c.MaskedRegExp=class extends x{updateOptions(e){super.updateOptions(e)}_update(e){let t=e.mask;t&&(e.validate=e=>e.search(t)>=0),super._update(e)}};var E=class e extends x{constructor(t){super({...e.DEFAULTS,...t,definitions:Object.assign({},T.DEFAULT_DEFINITIONS,t?.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){let t=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let n=this.mask;if(!n||!t)return;let r=!1,i=!1;for(let a=0;a<n.length;++a){if(this.blocks){let e=n.slice(a),t=Object.keys(this.blocks).filter(t=>e.indexOf(t)===0);t.sort((e,t)=>t.length-e.length);let r=t[0];if(r){let{expose:e,repeat:t,...n}=u(this.blocks[r]),i={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...n,repeat:t,parent:this},o=t==null?d(i):new c.RepeatBlock(i);o&&(this._blocks.push(o),e&&(this.exposeBlock=o),this._maskedBlocks[r]||(this._maskedBlocks[r]=[]),this._maskedBlocks[r].push(this._blocks.length-1)),a+=r.length-1;continue}}let o=n[a],s=o in t;if(o===e.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(o===`{`||o===`}`){r=!r;continue}if(o===`[`||o===`]`){i=!i;continue}if(o===e.ESCAPE_CHAR){if(++a,o=n[a],!o)break;s=!1}let l=s?new T({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...u(t[o]),parent:this}):new w({char:o,eager:this.eager,isUnmasking:r});this._blocks.push(l)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}let{_blocks:t,...n}=e;this._blocks.forEach((e,n)=>e.state=t[n]),super.state=n}
1reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,``)}set unmaskedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,``)}set value(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,``)}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){let e=new y,t=this._mapPosToBlock(this.displayValue.length)?.index;if(t==null)return e;this._blocks[t].isFilled&&++t;for(let n=t;n<this._blocks.length;++n){let t=this._blocks[n]._appendEager();if(!t.inserted)break;e.aggregate(t)}return e}_appendCharRaw(e,t){t===void 0&&(t={});let n=this._mapPosToBlock(this.displayValue.length),r=new y;if(!n)return r;for(let a=n.index,o;o=this._blocks[a];++a){var i;let n=o._appendChar(e,{...t,_beforeTailState:(i=t._beforeTailState)==null||(i=i._blocks)==null?void 0:i[a]});if(r.aggregate(n),n.consumed)break}return r}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=new S;return e===t||this._forEachBlocksInRange(e,t,(e,t,r,i)=>{let a=e.extractTail(r,i);a.stop=this._findStopBefore(t),a.from=this._blockStartPos(t),a instanceof S&&(a.blockIndex=t),n.extend(a)}),n}extractInput(e,t,n){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),n===void 0&&(n={}),e===t)return``;let r=``;return this._forEachBlocksInRange(e,t,(e,t,i,a)=>{r+=e.extractInput(i,a,n)}),r}_findStopBefore(e){let t;for(let n=0;n<this._stops.length;++n){let r=this._stops[n];if(r<=e)t=r;else break}return t}_appendPlaceholder(e){let t=new y;if(this.lazy&&e==null)return t;let n=this._mapPosToBlock(this.displayValue.length);if(!n)return t;let r=n.index,i=e??this._blocks.length;return this._blocks.slice(r,i).forEach(n=>{(!n.lazy||e!=null)&&t.aggregate(n._appendPlaceholder(n._blocks?.length))}),t}_mapPosToBlock(e){let t=``;for(let n=0;n<this._blocks.length;++n){let r=this._blocks[n],i=t.length;if(t+=r.displayValue,e<=t.length)return{index:n,offset:e-i}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((e,t)=>e+=t.displayValue.length,0)}_forEachBlocksInRange(e,t,n){t===void 0&&(t=this.displayValue.length);let r=this._mapPosToBlock(e);if(r){let e=this._mapPosToBlock(t),i=e&&r.index===e.index,a=r.offset,o=e&&i?e.offset:this._blocks[r.index].displayValue.length;if(n(this._blocks[r.index],r.index,a,o),e&&!i){for(let t=r.index+1;t<e.index;++t)n(this._blocks[t],t,0,this._blocks[t].displayValue.length);n(this._blocks[e.index],e.index,0,e.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=super.remove(e,t);return this._forEachBlocksInRange(e,t,(e,t,r,i)=>{n.aggregate(e.remove(r,i))}),n}nearestInputPos(e,t){if(t===void 0&&(t=r.NONE),!this._blocks.length)return 0;let n=new C(this,e);if(t===r.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(t===r.LEFT||t===r.FORCE_LEFT){if(t===r.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===e)return e;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),t===r.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=e||(n.popState(),n.ok&&n.pos<=e))return n.pos;n.popState()}return n.ok?n.pos:t===r.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return t===r.RIGHT||t===r.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:t===r.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(e,r.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=0;
1return this._forEachBlocksInRange(e,t,(e,t,r,i)=>{n+=e.totalInputPositions(r,i)}),n}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){let t=this._maskedBlocks[e];return t?t.map(e=>this._blocks[e]):[]}pad(e){let t=new y;return this._forEachBlocksInRange(0,this.displayValue.length,n=>t.aggregate(n.pad(e))),t}};E.DEFAULTS={...x.DEFAULTS,lazy:!0,placeholderChar:`_`},E.STOP_CHAR="`",E.ESCAPE_CHAR=`\\`,E.InputDefinition=T,E.FixedDefinition=w,c.MaskedPattern=E;var D=class extends E{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){let{to:t=this.to||0,from:n=this.from||0,maxLength:r=this.maxLength||0,autofix:i=this.autofix,...a}=e;this.to=t,this.from=n,this.maxLength=Math.max(String(t).length,r),this.autofix=i;let o=String(this.from).padStart(this.maxLength,`0`),s=String(this.to).padStart(this.maxLength,`0`),c=0;for(;c<s.length&&s[c]===o[c];)++c;a.mask=s.slice(0,c).replace(/0/g,`\\0`)+`0`.repeat(this.maxLength-c),super._update(a)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t=``,n=``,[,r,i]=e.match(/^(\D*)(\d*)(\D*)/)||[];return i&&(t=`0`.repeat(r.length)+i,n=`9`.repeat(r.length)+i),t=t.padEnd(this.maxLength,`0`),n=n.padEnd(this.maxLength,`9`),[t,n]}doPrepareChar(e,t){t===void 0&&(t={});let n;return[e,n]=super.doPrepareChar(e.replace(/\D/g,``),t),e||(n.skip=!this.isComplete),[e,n]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);let n=String(this.from).padStart(this.maxLength,`0`),r=String(this.to).padStart(this.maxLength,`0`),[i,a]=this.boundaries(this.value+e);return Number(a)<this.from?super._appendCharRaw(n[this.value.length],t):Number(i)>this.to?!t.tail&&this.autofix===`pad`&&this.value.length+1<this.maxLength?super._appendCharRaw(n[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(r[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){let t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;let[n,r]=this.boundaries(t);return this.from<=Number(r)&&Number(n)<=this.to&&super.doValidate(e)}pad(e){let t=new y;if(this.value.length===this.maxLength)return t;let n=this.value,r=this.maxLength-this.value.length;if(r){this.reset();for(let n=0;n<r;++n)t.aggregate(super._appendCharRaw(`0`,e));n.split(``).forEach(e=>this._appendCharRaw(e))}return t}};c.MaskedRange=D;var O="d{.}`m{.}`Y",k=class t extends E{static extractPatternOptions(t){let{mask:n,pattern:r,...i}=t;return{...i,mask:e(n)?n:r}}constructor(e){super(t.extractPatternOptions({...t.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(n){let{mask:r,pattern:i,blocks:a,...o}={...t.DEFAULTS,...n},s=Object.assign({},t.GET_DEFAULT_BLOCKS());n.min&&(s.Y.from=n.min.getFullYear()),n.max&&(s.Y.to=n.max.getFullYear()),n.min&&n.max&&s.Y.from===s.Y.to&&(s.m.from=n.min.getMonth()+1,s.m.to=n.max.getMonth()+1,s.m.from===s.m.to&&(s.d.from=n.min.getDate(),s.d.to=n.max.getDate())),Object.assign(s,this.blocks,a),super._update({...o,mask:e(r)?r:i,blocks:s})}doValidate(e){let t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(t.extractPatternOptions(e))}};k.GET_DEFAULT_BLOCKS=()=>({d:{mask:D,from:1,to:31,maxLength:2},m:{mask:D,from:1,to:12,maxLength:2},Y:{mask:D,from:1900,to:9999}}),k.DEFAULTS={...E.DEFAULTS,mask:Date,pattern:O,format:(e,t)=>e?[String(e.getDate()).padStart(2,`0`),String(e.getMonth()+1).padStart(2,`0`),e.getFullYear()].join(`.`):``,parse:(e,t)=>{let[n,r,i]=e.split(`.`).map(Number);return new Date(i,r-1,n)}},c.MaskedDate=k;var A=class e extends x{constructor(t){super({...e.DEFAULTS,...t}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),`mask`in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(e=>{let{expose:t,...n}=u(e),r=d({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...n});return t&&(this.exposeMask=r),r}):[])}_appendCharRaw(e,t){t===void 0&&(t={});let n=this._applyDispatch(e,t);return this.currentMask&&n.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),n}
1_applyDispatch(e,t,n){e===void 0&&(e=``),t===void 0&&(t={}),n===void 0&&(n=``);let r=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,i=this.rawInputValue,a=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:i,o=i.slice(a.length),s=this.currentMask,c=new y,l=s?.state;return this.currentMask=this.doDispatch(e,{...t},n),this.currentMask&&(this.currentMask===s?l&&(this.currentMask.state=l):(this.currentMask.reset(),a&&(this.currentMask.append(a,{raw:!0}),c.tailShift=this.currentMask.value.length-r.length),o&&(c.tailShift+=this.currentMask.append(o,{raw:!0,tail:!0}).tailShift))),c}_appendPlaceholder(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){let t=new y;return e&&t.aggregate(this._applyDispatch(``,{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){return{...e,_beforeTailState:e._beforeTailState?.currentMaskRef===this.currentMask&&e._beforeTailState?.currentMask||e._beforeTailState}}doDispatch(e,t,n){return t===void 0&&(t={}),n===void 0&&(n=``),this.dispatch(e,this,t,n)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[n,r]=super.doPrepare(e,t);if(this.currentMask){let e;[n,e]=super.doPrepare(n,this.currentMaskFlags(t)),r=r.aggregate(e)}return[n,r]}doPrepareChar(e,t){t===void 0&&(t={});let[n,r]=super.doPrepareChar(e,t);if(this.currentMask){let e;[n,e]=super.doPrepareChar(n,this.currentMaskFlags(t)),r=r.aggregate(e)}return[n,r]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:``}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:``}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:``}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:``}get isComplete(){return!!this.currentMask?.isComplete}get isFilled(){return!!this.currentMask?.isFilled}remove(e,t){let n=new y;return this.currentMask&&n.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),n}get state(){return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:this.currentMask?.state}}set state(e){let{compiledMasks:t,currentMaskRef:n,currentMask:r,...i}=e;t&&this.compiledMasks.forEach((e,n)=>e.state=t[n]),n!=null&&(this.currentMask=n,this.currentMask.state=r),super.state=i}extractInput(e,t,n){return this.currentMask?this.currentMask.extractInput(e,t,n):``}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,n)=>{if(!e[n])return;let{mask:r,...i}=e[n];return o(t,i)&&t.maskEquals(r)}):super.maskEquals(e)}typedValueEquals(e){return!!this.currentMask?.typedValueEquals(e)}};A.DEFAULTS={...x.DEFAULTS,dispatch:(e,t,n,i)=>{if(!t.compiledMasks.length)return;let a=t.rawInputValue,o=t.compiledMasks.map((o,s)=>{let c=t.currentMask===o,l=c?o.displayValue.length:o.nearestInputPos(o.displayValue.length,r.FORCE_LEFT);return o.rawInputValue===a?c||o.remove(l):(o.reset(),o.append(a,{raw:!0})),o.append(e,t.currentMaskFlags(n)),o.appendTail(i),{index:s,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(l,o.nearestInputPos(o.displayValue.length,r.FORCE_LEFT)))}});return o.sort((e,t)=>
1t.weight-e.weight||t.totalInputPositions-e.totalInputPositions),t.compiledMasks[o[0].index]}},c.MaskedDynamic=A;var j=class e extends E{constructor(t){super({...e.DEFAULTS,...t})}updateOptions(e){super.updateOptions(e)}_update(e){let{enum:t,...n}=e;if(t){let e=t.map(e=>e.length),r=Math.min(...e),i=Math.max(...e)-r;n.mask=`*`.repeat(r),i&&(n.mask+=`[`+`*`.repeat(i)+`]`),this.enum=t}super._update(n)}_appendCharRaw(e,t){t===void 0&&(t={});let n=Math.min(this.nearestInputPos(0,r.FORCE_RIGHT),this.value.length),i=this.enum.filter(t=>this.matchValue(t,this.unmaskedValue+e,n));if(i.length){i.length===1&&this._forEachBlocksInRange(0,this.value.length,(e,n)=>{let r=i[0][n];n>=this.value.length||r===e.value||(e.reset(),e._appendChar(r,t))});let e=super._appendCharRaw(i[0][this.value.length],t);return i.length===1&&i[0].slice(this.unmaskedValue.length).split(``).forEach(t=>e.aggregate(super._appendCharRaw(t))),e}return new y({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new b(``,e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new y;let n=Math.min(super.nearestInputPos(0,r.FORCE_RIGHT),this.value.length),i;for(i=e;i>=0&&!(this.enum.filter(e=>this.matchValue(e,this.value.slice(n,i),n)).length>1);--i);let a=super.remove(i,t);return a.tailShift+=i-e,a}get isComplete(){return this.enum.indexOf(this.value)>=0}};j.DEFAULTS={...E.DEFAULTS,matchValue:(e,t,n)=>e.indexOf(t,n)===n},c.MaskedEnum=j,c.MaskedFunction=class extends x{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};var M,N=class e extends x{constructor(t){super({...e.DEFAULTS,...t})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e=`^`+(this.allowNegative?`[+|\\-]?`:``),t=(this.scale?`(`+a(this.radix)+`\\d{0,`+this.scale+`})?`:``)+`$`;this._numberRegExp=RegExp(e+`\\d*`+t),this._mapToRadixRegExp=RegExp(`[`+this.mapToRadix.map(a).join(``)+`]`,`g`),this._thousandsSeparatorRegExp=new RegExp(a(this.thousandsSeparator),`g`)}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,``)}_insertThousandsSeparators(e){let t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});let[n,r]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!n&&(r.skip=!0),n&&!this.allowPositive&&!this.value&&n!==`-`&&r.aggregate(this._appendChar(`-`)),[n,r]}_separatorsCount(e,t){t===void 0&&(t=!1);let n=0;for(let r=0;r<e;++r)this._value.indexOf(this.thousandsSeparator,r)===r&&(++n,t&&(e+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,n))}_appendCharRaw(t,n){n===void 0&&(n={});let r=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);let a=this._value;this._value+=t;let o=this.number,s=!isNaN(o),c=!1;if(s){let t;this.min!=null&&this.min<0&&this.number<this.min&&(t=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(t=this.max),t!=null&&(this.autofix?(this._value=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix),c||=a===this._value&&!n.tail):s=!1),s&&=!!this._value.match(this._numberRegExp)}let l;s?l=new y({inserted:this._value.slice(a.length),rawInserted:c?``:t,skip:c}):(this._value=a,l=new y),this._value=this._insertThousandsSeparators(this._value);let u=n.tail&&n._beforeTailState?n._beforeTailState._value:this._value,d=this._separatorsCountFromSlice(u);return l.tailShift+=(d-i)*this.thousandsSeparator.length,l}_findSeparatorAround(e){if(this.thousandsSeparator){let t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n<=e)return n}return-1}_adjustRangeWithSeparators(e,t){let n=this._findSeparatorAround(e);n>=0&&(e=n);let r=this._findSeparatorAround(t);return r>=0&&(t=r+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);let n=this.value.slice(0,e),r=this.value.slice(t),i=this._separatorsCount(n.length);return this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+r)),new y({tailShift:(this._separatorsCountFromSlice(n)-i)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case r.NONE:case r.LEFT:case r.FORCE_LEFT:{let n=this._findSeparatorAround(e-1);if(n>=0){let i=n+this.thousandsSeparator.length;if(e<i||this.value.length<=i||t===r.FORCE_LEFT)return n}break}case r.RIGHT:case r.FORCE_RIGHT:{let t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){let e=this.number,t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(e){let t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(e,t,n,r)=>t+r),e.length&&!/\d$/.test(t[0])&&(t[0]+=`0`),t.length>1&&(t[1]=t[1].replace(/0*$/,``),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;let t=e.split(this.radix);return t.length<2&&t.push(``),t[1]=t[1].padEnd(this.scale,`0`),t.join(this.radix)}doSkipInvalid(t,n,r){n===void 0&&(n={});let i=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===e.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,n,r)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||e.EMPTY_VALUES.includes(t)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value===``)}};M=N,N.UNMASKED_RADIX=`.`,N.EMPTY_VALUES=[...x.EMPTY_VALUES,0],N.DEFAULTS={...x.DEFAULTS,mask:Number,radix:`,`,thous
1andsSeparator:``,mapToRadix:[M.UNMASKED_RADIX],min:-(2**53-1),max:2**53-1,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString(`en-US`,{useGrouping:!1,maximumFractionDigits:20})},c.MaskedNumber=N;var P={MASKED:`value`,UNMASKED:`unmaskedValue`,TYPED:`typedValue`};function F(e,t,n){t===void 0&&(t=P.MASKED),n===void 0&&(n=P.MASKED);let r=d(e);return e=>r.runIsolated(r=>(r[t]=e,r[n]))}function I(e,t,n,r){return F(t,n,r)(e)}c.PIPE_TYPE=P,c.createPipe=F,c.pipe=I,c.RepeatBlock=class extends E{get repeatFrom(){return(Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)??0}get repeatTo(){return(Array.isArray(this.repeat)?this.repeat[1]:this.repeat)??1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){let{repeat:t,...n}=u(e);this._blockOpts=Object.assign({},this._blockOpts,n);let r=d(this._blockOpts);this.repeat=t??r.repeat??this.repeat??1/0,super._update({mask:`m`.repeat(Math.max(this.repeatTo===1/0&&this._blocks?.length||0,this.repeatFrom)),blocks:{m:r},eager:r.eager,overwrite:r.overwrite,skipInvalid:r.skipInvalid,lazy:r.lazy,placeholderChar:r.placeholderChar,displayChar:r.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(d(this._blockOpts)),this.mask+=`m`,this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});let n=new y;for(let s=(r=(i=this._mapPosToBlock(this.displayValue.length))?.index)??Math.max(this._blocks.length-1,0),c,l;c=(a=this._blocks[s])??(l=!l&&this._allocateBlock(s));++s){var r,i,a,o;let u=c._appendChar(e,{...t,_beforeTailState:(o=t._beforeTailState)==null||(o=o._blocks)==null?void 0:o[s]});if(u.skip&&l){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(n.aggregate(u),u.consumed)break}return n}_trimEmptyTail(e,t){e===void 0&&(e=0);let n=Math.max(this._mapPosToBlock(e)?.index||0,this.repeatFrom,0),r;t!=null&&(r=this._mapPosToBlock(t)?.index),r??=this._blocks.length-1;let i=0;for(let e=r;n<=e&&!this._blocks[e].unmaskedValue;--e,++i);i&&(this._blocks.splice(r-i+1,i),this.mask=this.mask.slice(i))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=super.remove(e,t);return this._trimEmptyTail(e,t),n}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}};try{globalThis.IMask=c}catch{}export{c as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.