PageSourceSearch

https://haircamp.jp/_next/static/chunks/3hntekc8d_ddp.js?dpl=dpl_3sd8tqJ2hm4KU9FdaXAtkWi2Q3fB

js haircamp.jp collected 2026-09-25 20:37:50 UTC 55,102 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="76cab509-9737-3146-5e99-a0ef7cafb463")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,652681,e=>{e.v({active:"style-module-sass-module__zmucoG__active",checkIcon:"style-module-sass-module__zmucoG__checkIcon",closeIcon:"style-module-sass-module__zmucoG__closeIcon",errorMessage:"style-module-sass-module__zmucoG__errorMessage",formLabel:"style-module-sass-module__zmucoG__formLabel",input:"style-module-sass-module__zmucoG__input",option:"style-module-sass-module__zmucoG__option",options:"style-module-sass-module__zmucoG__options",root:"style-module-sass-module__zmucoG__root",selected:"style-module-sass-module__zmucoG__selected",selectedFlow:"style-module-sass-module__zmucoG__selectedFlow",selectedValue:"style-module-sass-module__zmucoG__selectedValue",value:"style-module-sass-module__zmucoG__value"})},779276,e=>{"use strict";let t,i,s,n,o;var l=e.i(968946),r=e.i(197649),a=e.i(338123),u=e.i(394028),c=e.i(533337),d=e.i(256974);function h(e,t,i){let s,n=i.initialDeps??[],o=!0;function l(){let l=e();return(l.length!==n.length||l.some((e,t)=>n[t]!==e))&&(n=l,s=t(...l),(null==i?void 0:i.onChange)&&!(o&&i.skipInitialOnChange)&&i.onChange(s),o=!1),s}return l.updateDeps=e=>{n=e},l}function p(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}e.i(747953);let f=()=>{if(void 0!==t)return t;if("u"<typeof navigator)return t=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return t=!0;let e=navigator.maxTouchPoints;return t="MacIntel"===navigator.platform&&void 0!==e&&e>0},m=e=>{let{offsetWidth:t,offsetHeight:i}=e;return{width:t,height:i}},g=e=>e,v=e=>{let t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,s=Array(i);for(let e=0;e<i;e++)s[e]=t+e;return s},b=(e,t)=>{let i=e.scrollElement;if(!i)return;let s=e.targetWindow;if(!s)return;let n=e=>{let{width:i,height:s}=e;t({width:Math.round(i),height:Math.round(s)})};if(n(m(i)),!s.ResizeObserver)return()=>{};let o=new s.ResizeObserver(t=>{let s=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void n({width:t.inlineSize,height:t.blockSize})}n(m(i))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return o.observe(i,{box:"border-box"}),()=>{o.unobserve(i)}},S={passive:!0},x="u"<typeof window||"onscrollend"in window,O=(e,t)=>((e,t,i)=>{var s,n;let o,l=e.scrollElement;if(!l)return;let r=e.targetWindow;if(!r)return;let a=e.options.useScrollendEvent&&x,u=0,c=a?null:(s=()=>t(u,!1),n=e.options.isScrollingResetDelay,function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];r.clearTimeout(o),o=r.setTimeout(()=>s.apply(this,t),n)}),d=e=>()=>{u=i(l),null==c||c(),t(u,e)},h=d(!0),p=d(!1);return l.addEventListener("scroll",h,S),a&&l.addEventListener("scrollend",p,S),()=>{l.removeEventListener("scroll",h),a&&l.removeEventListener("scrollend",p)}})(e,t,t=>{let{horizontal:i,isRtl:s}=e.options;return i?t.scrollLeft*(s&&-1||1):t.scrollTop}),E=(e,t,i)=>{if(i.options.useCachedMeasurements){let t=i.indexFromElement(e),s=i.options.getItemKey(t);return i.itemSizeCache.get(s)??i.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[i.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=i.indexFromElement(e),s=i.options.getItemKey(t),n=i.itemSizeCache.get(s);if(void 0!==n)return n}return e[i.options.horizontal?"offsetWidth":"offsetHeight"]},y=(e,t,i)=>{var s,n;let{adjustments:o=0,behavior:l}=t;null==(n=null==(s=i.scrollElement)?void 0:s.scrollTo)||n.call(s,{[i.options.horizontal?"left":"top"]:e+o,behavior:l})};class I{constructor(e){var t=this;this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,i;return(null==(i=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:i.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>
2{e.forEach(e=>{let t=()=>{let t=e.target,i=this.indexFromElement(t);if(!t.isConnected){for(let[e,i]of(this.observer.unobserve(t),this.elementsCache))if(i===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var i;null==(i=t())||i.disconnect(),e=null},observe:e=>{var i;return null==(i=t())?void 0:i.observe(e,{box:"border-box"})},unobserve:e=>{var i;return null==(i=t())?void 0:i.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,i;let s={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:g,rangeExtractor:v,onChange:()=>{},measureElement:E,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let i=e[t];void 0!==i&&(s[t]=i)}let n=this.options,o=null,l=null,r=!1;if(void 0!==n&&n.enabled&&s.enabled&&"end"===s.anchorTo&&null!==this.scrollElement){let e=n.count,a=s.count,u=this.getMeasurements(),c=e>0?(null==(t=u[0])?void 0:t.key)??n.getItemKey(0):null,d=e>0?(null==(i=u[e-1])?void 0:i.key)??n.getItemKey(e-1):null;if(a!==e||e>0&&a>0&&(s.getItemKey(0)!==c||s.getItemKey(a-1)!==d)){r=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??u[0]:null;t&&(o=[t.key,this.getScrollOffset()-t.start]);let i=!0===s.followOnAppend?"auto":s.followOnAppend||null;i&&a>e&&this.isAtEnd(n.scrollEndThreshold)&&(0===e||s.getItemKey(a-1)!==d)&&(l=i)}}this.options=s,r&&(this.pendingMin=0,this.itemSizeCacheVersion++);let a=!1,u=0;if(o&&null!==this.scrollOffset){let[e,t]=o,i=this.getMeasurements(),{count:s,getItemKey:n}=this.options,l=0;for(;l<s&&n(l)!==e;)l++;if(l<s){let e=i[l];if(e){let i=e.start+t;i!==this.scrollOffset&&(u=i-this.scrollOffset,this.scrollOffset=i,a=!0)}}}(a||l)&&(this.pendingScrollAnchor=[a?o[0]:null,a?o[1]:0,l,u])},this.notify=e=>{var t,i;null==(i=(t=this.options).onChange)||i.call(t,this,e)},this.maybeNotify=h(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},i=()=>{this._iosTouching=!1,f()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,S),e.addEventListener("touchend",i,S),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",i),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let i=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,i&&this.scrollElement&&this.options.enabled){let[e,t,s,n]=i;
2null===e||s||(f()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==n&&(this._iosDeferredAdjustment+=n):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),s&&this.scrollToEnd({behavior:s})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;let i=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=i,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let i=new Map,s=new Map;for(let n=t-1;n>=0;n--){let t=e[n];if(i.has(t.lane))continue;let o=s.get(t.lane);if(null==o||t.end>o.end?s.set(t.lane,t):t.end<o.end&&i.set(t.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=h(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,t,i,s,n,o,l)=>(void 0!==this.prevLanes&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:i,getItemKey:s,enabled:n,lanes:o,laneAssignmentMode:l}),{key:!1}),this.getMeasurements=h(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],(e,t)=>{let{count:i,paddingStart:s,scrollMargin:n,getItemKey:o,enabled:l,lanes:r,laneAssignmentMode:a}=e,u=this.itemSizeCache;if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>i)for(let e of this.laneAssignments.keys())e>=i&&this.laneAssignments.delete(e);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let c=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===i&&(this.lanesSettling=!1),1===r){var d;let e,t=this.options.gap,l=2*i,r=this._flatMeasurements;if(!r||r.length<l){let e=new Float64Array(l);r&&c>0&&e.set(r.subarray(0,2*c)),r=e,this._flatMeasurements=r}if(0===c)e=s+n;else{let i=c-1;e=r[2*i]+r[2*i+1]+t}for(let s=c;s<i;s++){let i=o(s),n=u.get(i),l="number"==typeof n?n:this.options.estimateSize(s);r[2*s]=e,r[2*s+1]=l,e+=l+t}let a=(d=r,new Proxy(Array(i),{get(e,t,s){if("string"==typeof t){let s=t.charCodeAt(0);if(s>=48&&s<=57){let s=+t;if(Number.isInteger(s)&&s>=0&&s<i){let t=e[s];if(!t){let i=d[2*s];t=e[s]={index:s,key:o(s),start:i,size:d[2*s+1],end:i+d[2*s+1],lane:0}}return t}}if("length"===t)return i}return Reflect.get(e,t,s)}}));return this.measurementsCache=a,a}let h=this.measurementsCache.slice(0,c),p=Array(r).fill(void 0);for(let e=0;e<c;e++){let t=h[e];t&&(p[t.lane]=e)}for(let e=c;e<i;e++){let t,i,l=o(e),r=this.laneAssignments.get(e),c="estimate"===a||u.has(l);if(void 0!==r&&this.options.lanes>1){let e=p[t=r],o=void 0!==e?h[e]:void 0;i=o?o.end+this.options.gap:s+n}else{let o=1===this.options.lanes?h[e-1]:this.getFurthestMeasurement(h,e);i=o?o.end+this.options.gap:s+n,t=o?o.lane:e%this.options.lanes,this.options.lanes>1&&c&&this.laneAssignments.set(e,t)}let d=u.get(l),f="number"==typeof d?d:this.options.estimateSize(e),m=i+f;h[e]={index:e,start:i,size:f,end:m,key:l,lane:t},p[t]=e}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=h(()=>
2[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,i,s)=>this.range=e.length>0&&t>0?function(e){let{measurements:t,outerSize:i,scrollOffset:s,lanes:n,flat:o}=e,l=t.length-1,r=o?e=>o[2*e]:e=>t[e].start,a=o?e=>o[2*e]+o[2*e+1]:e=>t[e].end;if(t.length<=n)return{startIndex:0,endIndex:l};let u=T(0,l,r,s),c=u;if(1===n)for(;c<l&&a(c)<s+i;)c++;else if(n>1){let e=Array(n).fill(0);for(;c<l&&e.some(e=>e<s+i);){let i=t[c];e[i.lane]=i.end,c++}let o=Array(n).fill(s+i);for(;u>=0&&o.some(e=>e>=s);){let e=t[u];o[e.lane]=e.start,u--}u=Math.max(0,u-u%n),c=Math.min(l,c+(n-1-c%n))}return{startIndex:u,endIndex:c}}({measurements:e,outerSize:t,scrollOffset:i,lanes:s,flat:1===s&&null!=this._flatMeasurements?this._flatMeasurements:null}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=h(()=>{let e=null,t=null,i=this.calculateRange();return i&&(e=i.startIndex,t=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,i,s,n)=>null===s||null===n?[]:e({startIndex:s,endIndex:n,overscan:t,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,i=e.getAttribute(t);return i?parseInt(i,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let i=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==i&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,i-t),n=Math.min(this.options.count-1,i+t);return e>=s&&e<=n}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});let t=this.indexFromElement(e),i=this.options.getItemKey(t),s=this.elementsCache.get(i);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(i,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var i,s;let n,o,l;if(e<0||e>=this.options.count)return;let r=this._flatMeasurements;if(1===this.options.lanes&&null!==r)l=this.options.getItemKey(e),o=r[2*e],n=r[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;l=t.key,o=t.start,n=t.size}let a=t-(this.itemSizeCache.get(l)??n);if(0!==a){let r="end"===this.options.anchorTo&&(null==(i=this.scrollState)?void 0:i.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,u=r?this.getTotalSize():0,c=(null==(s=this.scrollState)?void 0:s.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:l,start:o,size:n,end:o+n,lane:0},a,this):o<this.getScrollOffset()+this.scrollAdjustments&&(!this.itemSizeCache.has(l)||"backward"!==this.scrollDirection));(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(l,t),this.itemSizeCacheVersion++,r?this.applyScrollAdjustment(this.getTotalSize()-u):c&&this.applyScrollAdjustment(a),this.notify(!1)}},this.getVirtualItems=h(()=>
2[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let i=[];for(let s=0,n=e.length;s<n;s++){let n=t[e[s]];i.push(n)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let i=this._flatMeasurements,s=1===this.options.lanes&&null!=i,n=T(0,t.length-1,s?e=>i[2*e]:e=>p(t[e]).start,e);return p(t[n])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.options.scrollEndThreshold;return t.getDistanceFromEnd()<=e},this.getOffsetForAlignment=function(e,i){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t.scrollElement)return 0;let n=t.getSize(),o=t.getScrollOffset();return"auto"===i&&(i=e>=o+n?"end":"start"),"center"===i?e+=(s-n)/2:"end"===i&&(e-=n),Math.max(Math.min(t.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";e=Math.max(0,Math.min(e,t.options.count-1));let s=t.getSize(),n=t.getScrollOffset(),o=t.measurementsCache[e];if(!o)return;if("auto"===i)if(o.end>=n+s-t.options.scrollPaddingEnd)i="end";else{if(!(o.start<=n+t.options.scrollPaddingStart))return[n,i];i="start"}if("end"===i&&e===t.options.count-1)return[t.getMaxScrollOffset(),i];let l="end"===i?o.end+t.options.scrollPaddingEnd:o.start-t.options.scrollPaddingStart;return[t.getOffsetForAlignment(l,i,o.size),i]},this.scrollToOffset=function(e){let{align:i="start",behavior:s="auto"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getOffsetForAlignment(e,i),o=t.now();t.scrollState={index:null,align:i,behavior:s,startedAt:o,lastTargetOffset:n,stableFrames:0},t._scrollToOffset(n,{adjustments:void 0,behavior:s}),t.scheduleScrollReconcile()},this.scrollToIndex=function(e){let{align:i="auto",behavior:s="auto"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Math.max(0,Math.min(e,t.options.count-1));let n=t.getOffsetForIndex(e,i);if(!n)return;let[o,l]=n,r=t.now();t.scrollState={index:e,align:l,behavior:s,startedAt:r,lastTargetOffset:o,stableFrames:0},t._scrollToOffset(o,{adjustments:void 0,behavior:s}),t.scheduleScrollReconcile()},this.scrollBy=function(e){let{behavior:i="auto"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=t.getScrollOffset()+e,n=t.now();t.scrollState={index:null,align:"start",behavior:i,startedAt:n,lastTargetOffset:s,stableFrames:0},t._scrollToOffset(s,{adjustments:void 0,behavior:i}),t.scheduleScrollReconcile()},this.scrollToEnd=function(){let{behavior:e="auto"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.options.count>0?t.scrollToIndex(t.options.count-1,{align:"end",behavior:e}):t.scrollToOffset(Math.max(t.getTotalSize()-t.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;let t,i=this.getMeasurements();if(0===i.length)t=this.options.paddingStart;else if(1===this.options.lanes){let s=i.length-1,n=this._flatMeasurements;t=null!=n?n[2*s]+n[2*s+1]:(null==(e=i[s])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),s=i.length-1;for(;s>=0&&e.some(e=>null===e);){let t=i[s];null===e[t.lane]&&(e[t.lane]=t.end),s--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];
2if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,t)=>{let{adjustments:i,behavior:s}=t;this._intendedScrollOffset=e+(i??0),this.options.scrollToFn(e,{behavior:s,adjustments:i},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){0!==e&&(f()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=e:this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,i=t!==this.scrollState.lastTargetOffset;if(!i&&1.01>Math.abs(t-this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,i){let e=this.getSize()||600,i=Math.abs(t-this.getScrollOffset()),s="smooth"===this.scrollState.behavior&&i>e;this.scrollState.lastTargetOffset=t,s||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:s?"smooth":"auto"})}this.scheduleScrollReconcile()}}let T=(e,t,i,s)=>{for(;e<=t;){let n=(e+t)/2|0,o=i(n);if(o<s)e=n+1;else{if(!(o>s))return n;t=n-1}}return e>0?e-1:0},C="u">typeof document?c.useLayoutEffect:c.useEffect;var _=e.i(720215),M=e.i(156822),R=e.i(523372),w=e.i(816937),F=e.i(358606),A=e.i(348079),P=e.i(515034),z=e.i(747060),k=e.i(751234),D=e.i(574714),j=e.i(561407),L=e.i(742377),V=e.i(91239),W=e.i(296864),B=e.i(633587),K=e.i(153033),N=e.i(530682),G=e.i(385464);function $(e){let t=(0,c.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,G.useEventListener)(e,"blur",e=>{let i=e.target;K.isHTMLInputElement(i)&&(t.current={value:i.value,selectionStart:i.selectionStart,selectionEnd:i.selectionEnd})}),(0,P.useEvent)(()=>{if(!(0,N.isActiveElement)(e)&&K.isHTMLInputElement(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:i,selectionEnd:s}=t.current;null!==i&&null!==s&&e.setSelectionRange(i,s)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var U=e.i(939655),H=e.i(23681),J=e.i(237794),q=e.i(12632),Q=e.i(751426),Y=e.i(893415),Z=e.i(580426),X=e.i(893962),ee=e.i(464927),et=e.i(216728),ei=e.i(808611),es=e.i(843766),en=e.i(911121),eo=e.i(964508),el=e.i(716589),er=e.i(82842),ea=e.i(636095),eu=e.i(893570),ec=e.i(937886),ed=e.i(134975),eh=e.i(922049),ep=e.i(5854),ef=e.i(40917),em=e.i(248424),eg=e.i(176312),ev=e.i(246625),eb=e.i(654591),eS=e.i(237548),ex=e.i(590722),eO=e.i(204022),eE=Object.defineProperty,ey=(e,t,i)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?eE(e,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[s]=i,i},eI=((i=eI||{})[i.Open=0]="Open",i[i.Closed=1]="Closed",i),eT=((s=eT||{})[s.Single=0]="Single",s[s.Multi=1]="Multi",s),eC=((n=eC||{})[n.Pointer=0]="Pointer",n[n.Focus=1]="Focus",n[n.Other=2]="Other",n),e_=((o=e_||{})[o.OpenCombobox=0]="OpenCombobox",o[o.CloseCombobox=1]="CloseCombobox",o[o.GoToOption=2]="GoToOption",o[o.SetTyping=3]="SetTyping",o[o.RegisterOption=4]="RegisterOption",o[o.UnregisterOption=5]="UnregisterOption",o[o.DefaultToFirstOption=6]="DefaultToFirstOption",o[o.SetActivationTrigger=7]="SetActivationTrigger",o[o.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",o[o.SetInputElement=9]="SetInputElement",o[o.SetButtonElement=10]="SetButtonElement",o[o.SetOptionsElement=11]="SetOptionsElement",o[o.MarkInputAsMoved=12]="MarkInputAsMoved",o);function eM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,
2s=t(e.options.slice()),n=s.length>0&&null!==s[0].dataRef.current.order?s.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,eO.sortByDomNode)(s,e=>e.dataRef.current.domRef.current),o=i?n.indexOf(i):null;return -1===o&&(o=null),{options:n,activeOptionIndex:o}}let eR={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let i=e.inputElement?ex.ElementPositionState.Tracked((0,ex.computeVisualPosition)(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:i,__demoMode:!1}},0(e){var t,i;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(i=e.dataRef.current)&&i.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:ex.ElementPositionState.Idle}}return{...e,comboboxState:0,inputPositionState:ex.ElementPositionState.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var i,s,n,o;if(null!=(i=e.dataRef.current)&&i.disabled||e.optionsElement&&!(null!=(s=e.dataRef.current)&&s.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:i,disabled:s}=e.virtual,o=t.focus===eu.Focus.Specific?t.idx:(0,eu.calculateActiveIndex)(t,{resolveItems:()=>i,resolveActiveIndex:()=>{var t,n;return null!=(n=null!=(t=e.activeOptionIndex)?t:i.findIndex(e=>!s(e)))?n:null},resolveDisabled:s,resolveId(){throw Error("Function not implemented.")}}),l=null!=(n=t.trigger)?n:2;return e.activeOptionIndex===o&&e.activationTrigger===l?e:{...e,activeOptionIndex:o,activationTrigger:l,isTyping:!1,__demoMode:!1}}let l=eM(e);if(null===l.activeOptionIndex){let e=l.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(l.activeOptionIndex=e)}let r=t.focus===eu.Focus.Specific?t.idx:(0,eu.calculateActiveIndex)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),a=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===r&&e.activationTrigger===a?e:{...e,...l,isTyping:!1,activeOptionIndex:r,activationTrigger:a,__demoMode:!1}},4:(e,t)=>{var i,s,n,o;if(null!=(i=e.dataRef.current)&&i.virtual)return{...e,options:[...e.options,t.payload]};let l=t.payload,r=eM(e,e=>(e.push(l),e));null===e.activeOptionIndex&&null!=(n=(s=e.dataRef.current).isSelected)&&n.call(s,t.payload.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(l));let a={...e,...r,activationTrigger:2};return null!=(o=e.dataRef.current)&&o.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},5:(e,t)=>{var i;if(null!=(i=e.dataRef.current)&&i.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let s=eM(e,e=>{let i=e.findIndex(e=>e.id===t.id);return -1!==i&&e.splice(i,1),e});return{...e,...s,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>
2{var i,s;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(i=t.disabled)?i:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let n=e.activeOptionIndex;if(null!==e.activeOptionIndex){let i=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);n=-1!==i?i:null}return{...e,activeOptionIndex:n,virtual:{options:t.options,disabled:null!=(s=t.disabled)?s:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:ex.ElementPositionState.Moved}};class ew extends eS.Machine{constructor(e){super(e),ey(this,"actions",{onChange:e=>{let{onChange:t,compare:i,mode:s,value:n}=this.state.dataRef.current;return(0,ed.match)(s,{0:()=>null==t?void 0:t(e),1:()=>{let s=n.slice(),o=s.findIndex(t=>i(t,e));return -1===o?s.push(e):s.splice(o,1),null==t?void 0:t(s)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:eu.Focus.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),ey(this,"selectors",{activeDescendantId:e=>{var t,i;let s=this.selectors.activeOptionIndex(e);if(null!==s)return e.virtual?null==(i=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[s])))?void 0:i.id:null==(t=e.options[s])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:i}=e.virtual,s=t.findIndex(e=>{var t;return!(null!=(t=null==i?void 0:i(e))&&t)});if(-1!==s)return s}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,i;let s=this.selectors.activeOptionIndex(e);return null===s?null:e.virtual?e.virtual.options[null!=s?s:0]:null!=(i=null==(t=e.options[s])?void 0:t.dataRef.current.value)?i:null},isActive:(e,t,i)=>{var s;let n=this.selectors.activeOptionIndex(e);return null!==n&&(e.virtual?n===e.dataRef.current.calculateIndex(t):(null==(s=e.options[n])?void 0:s.id)===i)},shouldScrollIntoView:(e,t,i)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,i)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=el.stackMachines.get(null);this.disposables.add(t.on(el.ActionTypes.Push,i=>{t.selectors.isTop(i,e)||0!==this.state.comboboxState||this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add((0,ex.detectMovement)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new(e){var t;let{id:i,virtual:s=null,__demoMode:n=!1}=e;return new ew({id:i,dataRef:{current:{}},comboboxState:+!n,isTyping:!1,options:[],virtual:s?{options:s.options,disabled:null!=(t=s.disabled)?t:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:ex.ElementPositionState.Idle})}reduce(e,t){return(0,ed.match)(t.type,eR,e,t)}}var eF=e.i(525187);let eA=(0,c.createContext)(null);function eP(e){let t=(0,c.useContext)(eA);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ez),t}return t}function ez(e){let{id:t,virtual:i=null,__demoMode:s=!1}=e,n=(0,c.useMemo)(()=>ew.new({id:t,virtual:i,__demoMode:s}),[]);return(0,eF.useOnUnmount)(()=>n.dispose()),n}let ek=(0,c.createContext)(null);function eD(e){let t=(0,c.useContext)(ek);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eD),t}return t}ek.displayName="ComboboxDataContext";let ej=(0,c.createContext)(null);function eL(e){let t=eP("VirtualProvider"),{options:i}=eD("VirtualProvider").virtual,s=(0,er.useSlice)(t,e=>e.optionsElement),[n,o]=(0,c.useMemo)(()=>
2{if(!s)return[0,0];let e=window.getComputedStyle(s);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[s]),l=function(e){let{useFlushSync:t=!0,directDomUpdates:i=!1,directDomUpdatesMode:s="transform",...n}=e,o=c.useReducer(e=>e+1,0)[1],l=c.useRef({enabled:i,mode:s,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});l.current.enabled=i,l.current.mode=s;let r=e=>{let t=l.current;if(!t.enabled||!t.container)return;let i=e.getTotalSize();if(i!==t.lastSize){t.lastSize=i;let s=e.options.horizontal?"width":"height";t.container.style[s]=`${i}px`}let s=!!e.options.horizontal,n="transform"===t.mode,o=s?"left":"top",r=e.options.scrollMargin;for(let i of e.getVirtualItems()){let l=i.start-r,a=e.elementsCache.get(i.key);a&&t.lastPositions.get(a)!==l&&(t.lastPositions.set(a,l),n?a.style.transform=s?`translate3d(${l}px, 0, 0)`:`translate3d(0, ${l}px, 0)`:a.style[o]=`${l}px`)}},a={...n,onChange:(e,i)=>{var s;let a=l.current,u=!0;if(a.enabled){r(e);let t=e.range,i=a.prevRange;(u=!i||i.isScrolling!==e.isScrolling||i.startIndex!==(null==t?void 0:t.startIndex)||i.endIndex!==(null==t?void 0:t.endIndex))&&(a.prevRange=t?{startIndex:t.startIndex,endIndex:t.endIndex,isScrolling:e.isScrolling}:null)}u&&(t&&i?(0,d.flushSync)(o):o()),null==(s=n.onChange)||s.call(n,e,i)}},[u]=c.useState(()=>{let e=new I(a);return Object.assign(e,{containerRef:t=>{let i=l.current;if(i.container=t,i.lastSize=null,t&&i.enabled){let s=e.getTotalSize();i.lastSize=s;let n=e.options.horizontal?"width":"height";t.style[n]=`${s}px`}}})});return u.setOptions(a),C(()=>u._didMount(),[]),C(()=>u._willUpdate()),C(()=>{r(u)}),u}({observeElementRect:b,observeElementOffset:O,scrollToFn:y,...{enabled:0!==i.length,scrollPaddingStart:n,scrollPaddingEnd:o,count:i.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}}),[r,a]=(0,c.useState)(0);(0,D.useIsoMorphicEffect)(()=>{a(e=>e+1)},[i]);let u=l.getVirtualItems(),h=(0,er.useSlice)(t,e=>e.activationTrigger===eC.Pointer),p=(0,er.useSlice)(t,t.selectors.activeOptionIndex);return 0===u.length?null:c.default.createElement(ej.Provider,{value:l},c.default.createElement("div",{style:{position:"relative",width:"100%",height:`${l.getTotalSize()}px`},ref:e=>{e&&(h||null!==p&&i.length>p&&l.scrollToIndex(p))}},u.map(t=>{var s;return c.default.createElement(c.Fragment,{key:t.key},c.default.cloneElement(null==(s=e.children)?void 0:s.call(e,{...e.slot,option:i[t.index]}),{key:`${r}-${t.key}`,"data-index":t.index,"aria-setsize":i.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}let eV=c.Fragment,eW=ep.RenderFeatures.RenderStrategy|ep.RenderFeatures.Static,eB=(0,ep.forwardRefWithAs)(function(e,t){let i=(0,c.useId)(),s=(0,ee.useDisabled)(),{value:n,defaultValue:o,onChange:l,form:r,name:a,by:u,invalid:d=!1,disabled:h=s||!1,onClose:p,__demoMode:f=!1,multiple:m=!1,immediate:g=!1,virtual:v=null,nullable:b,...S}=e,x=(0,w.useDefaultValue)(o),[O=m?[]:void 0,E]=(0,R.useControllable)(n,l,x),y=ez({id:i,virtual:v,__demoMode:f}),I=(0,c.useRef)({static:!1,hold:!1}),T=(0,M.useByComparator)(u),C=(0,P.useEvent)(e=>v?null===u?v.options.indexOf(e):v.options.findIndex(t=>T(t,e)):y.state.options.findIndex(t=>T(t.dataRef.current.value,e))),_=(0,c.useCallback)(e=>(0,ed.match)(z.mode,{[eT.Multi]:()=>O.some(t=>T(t,e)),[eT.Single]:()=>T(O,e)}),[O]),F=(0,er.useSlice)(y,e=>e.virtual),A=(0,P.useEvent)(()=>null==p?void 0:p()),z=(0,c.useMemo)(()=>({__demoMode:f,immediate:g,optionsPropsRef:I,value:O,defaultValue:x,disabled:h,invalid:d,mode:m?eT.Multi:eT.Single,virtual:v?F:null,onChange:E,isSelected:_,calculateIndex:C,compare:T,onClose:A}),[f,g,I,O,x,h,d,m,v,F,E,_,C,T,A]);(0,D.useIsoMorphicEffect)(()=>{var e;v&&y.send({type:e_.UpdateVirtualConfiguration,options:v.options,disabled:null!=(e=v.disabled)?e:null})},[v,null==v?void 0:v.options,null==v?void 0:v.disabled]),(0,D.useIsoMorphicEffect)(()=>{y.state.dataRef.current=z},[z]);let[k,j,L,W]=(0,er.useSlice)(y,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),B=el.stackMachines.get(null),K=(0,er.useSlice)(B,(0,c.useCallback)(e=>B.selectors.isTop(e,i),[B,i]));(0,V.useOutsideClick)(K,[j,L,W],()=>y.actions.closeCombobox());let N=(0,er.useSlice)(y,y.selectors.activeOptionIndex),G=(0,er.useSlice)(y,y.selectors.activeOption),$=(0,J.useSlot)({open:k===eI.Open,disabled:h,invalid:d,activeIndex:N,activeOption:G,value:O}),[U,H]=(0,eg.useLabels)(),q=(0,c.useCallback)(()=>
2{if(void 0!==x)return null==E?void 0:E(x)},[E,x]),Q=(0,ep.useRender)();return c.default.createElement(H,{value:U,props:{htmlFor:null==L?void 0:L.id},slot:{open:k===eI.Open,disabled:h}},c.default.createElement(et.FloatingProvider,null,c.default.createElement(ek.Provider,{value:z},c.default.createElement(eA.Provider,{value:y},c.default.createElement(eo.OpenClosedProvider,{value:(0,ed.match)(k,{[eI.Open]:eo.State.Open,[eI.Closed]:eo.State.Closed})},null!=a&&c.default.createElement(ei.FormFields,{disabled:h,data:null!=O?{[a]:O}:{},form:r,onReset:q}),Q({ourProps:null===t?{}:{ref:t},theirProps:S,slot:$,defaultTag:eV,name:"Combobox"}))))))}),eK=(0,ep.forwardRefWithAs)(function(e,t){let i=eP("Combobox.Button"),s=eD("Combobox.Button"),[n,o]=(0,c.useState)(null),l=(0,q.useSyncRefs)(t,o,i.actions.setButtonElement),r=(0,c.useId)(),{id:h=`headlessui-combobox-button-${r}`,disabled:p=s.disabled||!1,autoFocus:f=!1,...m}=e,[g,v,b]=(0,er.useSlice)(i,e=>[e.comboboxState,e.inputElement,e.optionsElement]),S=$(v),x=g===eI.Open;(0,B.useQuickRelease)(x,{trigger:n,action:(0,c.useCallback)(e=>{if(null!=n&&n.contains(e.target)||null!=v&&v.contains(e.target))return B.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return K.isHTMLElement(t)?B.Action.Select(t):null!=b&&b.contains(e.target)?B.Action.Ignore:B.Action.Close},[n,v,b]),close:i.actions.closeCombobox,select:i.actions.selectActiveOption});let O=(0,P.useEvent)(e=>{switch(e.key){case em.Keys.Space:case em.Keys.Enter:e.preventDefault(),e.stopPropagation(),i.state.comboboxState===eI.Closed&&(0,d.flushSync)(()=>i.actions.openCombobox()),S();return;case em.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),i.state.comboboxState===eI.Closed&&((0,d.flushSync)(()=>i.actions.openCombobox()),i.state.dataRef.current.value||i.actions.goToOption({focus:eu.Focus.First})),S();return;case em.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),i.state.comboboxState===eI.Closed&&((0,d.flushSync)(()=>i.actions.openCombobox()),i.state.dataRef.current.value||i.actions.goToOption({focus:eu.Focus.Last})),S();return;case em.Keys.Escape:if(i.state.comboboxState!==eI.Open)return;e.preventDefault(),i.state.optionsElement&&!s.optionsPropsRef.current.static&&e.stopPropagation(),(0,d.flushSync)(()=>i.actions.closeCombobox()),S();return;default:return}}),E=(0,z.useHandleToggle)(()=>{i.state.comboboxState===eI.Open?i.actions.closeCombobox():i.actions.openCombobox(),S()}),y=(0,eg.useLabelledBy)([h]),{isFocusVisible:I,focusProps:T}=(0,a.useFocusRing)({autoFocus:f}),{isHovered:C,hoverProps:M}=(0,u.useHover)({isDisabled:p}),{pressed:R,pressProps:w}=(0,_.useActivePress)({disabled:p}),F=(0,J.useSlot)({open:g===eI.Open,active:R||g===eI.Open,disabled:p,invalid:s.invalid,value:s.value,hover:C,focus:I}),A=(0,ep.mergeProps)({ref:l,id:h,type:(0,U.useResolveButtonType)(e,n),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==b?void 0:b.id,"aria-expanded":g===eI.Open,"aria-labelledby":y,disabled:p||void 0,autoFocus:f,onKeyDown:O},E,T,M,w);return(0,ep.useRender)()({ourProps:A,theirProps:m,slot:F,defaultTag:"button",name:"Combobox.Button"})}),eN=Object.assign(eB,{Input:(0,ep.forwardRefWithAs)(function(e,t){var i,s;let n=eP("Combobox.Input"),o=eD("Combobox.Input"),l=(0,c.useId)(),r=(0,en.useProvidedId)(),{id:h=r||`headlessui-combobox-input-${l}`,onChange:p,displayValue:f,disabled:m=o.disabled||!1,autoFocus:g=!1,type:v="text",...b}=e,S=(0,c.useRef)(null),x=(0,q.useSyncRefs)(S,t,(0,et.useFloatingReference)(),n.actions.setInputElement),[O,E]=(0,er.useSlice)(n,e=>[e.comboboxState,e.isTyping]),y=(0,F.useDisposables)(),I=(0,P.useEvent)(()=>{n.actions.onChange(null),n.state.optionsElement&&(n.state.optionsElement.scrollTop=0),n.actions.goToOption({focus:eu.Focus.Nothing})}),T=(0,c.useMemo)(()=>{var e;return"function"==typeof f&&void 0!==o.value?null!=(e=f(o.value))?e:"":"string"==typeof o.value?o.value:""},[o.value,f]);(0,X.useWatch)((e,t)=>{let[i,s]=e,[o,l]=t;if(n.state.isTyping)return;let r=S.current;r&&((l===eI.Open&&s===eI.Closed||i!==o)&&(r.value=i),requestAnimationFrame(()=>{if(n.state.isTyping||!r||(0,N.isActiveElement)(r))return;let{selectionStart:e,selectionEnd:t}=r;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&r.setSelectionRange(r.value.length,r.value.length)}))},[T,O,E]),(0,X.useWatch)((e,t)=>
2{let[i]=e,[s]=t;if(i===eI.Open&&s===eI.Closed){if(n.state.isTyping)return;let e=S.current;if(!e)return;let t=e.value,{selectionStart:i,selectionEnd:s,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(i,s,o):e.setSelectionRange(i,s)}},[O]);let C=(0,c.useRef)(!1),_=(0,P.useEvent)(()=>{C.current=!0}),M=(0,P.useEvent)(()=>{y.nextFrame(()=>{C.current=!1})}),R=(0,P.useEvent)(e=>{switch(n.actions.setIsTyping(!0),e.key){case em.Keys.Enter:if(n.state.comboboxState!==eI.Open||C.current)return;if(e.preventDefault(),e.stopPropagation(),null===n.selectors.activeOptionIndex(n.state))return void n.actions.closeCombobox();n.actions.selectActiveOption(),o.mode===eT.Single&&n.actions.closeCombobox();break;case em.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,ed.match)(n.state.comboboxState,{[eI.Open]:()=>n.actions.goToOption({focus:eu.Focus.Next}),[eI.Closed]:()=>n.actions.openCombobox()});case em.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,ed.match)(n.state.comboboxState,{[eI.Open]:()=>n.actions.goToOption({focus:eu.Focus.Previous}),[eI.Closed]:()=>{(0,d.flushSync)(()=>n.actions.openCombobox()),o.value||n.actions.goToOption({focus:eu.Focus.Last})}});case em.Keys.Home:if(n.state.comboboxState===eI.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),n.actions.goToOption({focus:eu.Focus.First});case em.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),n.actions.goToOption({focus:eu.Focus.First});case em.Keys.End:if(n.state.comboboxState===eI.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),n.actions.goToOption({focus:eu.Focus.Last});case em.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),n.actions.goToOption({focus:eu.Focus.Last});case em.Keys.Escape:return n.state.comboboxState!==eI.Open?void 0:(e.preventDefault(),n.state.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),o.mode===eT.Single&&null===o.value&&I(),n.actions.closeCombobox());case em.Keys.Tab:if(n.actions.setIsTyping(!1),n.state.comboboxState!==eI.Open)return;o.mode===eT.Single&&n.state.activationTrigger!==eC.Focus&&n.actions.selectActiveOption(),n.actions.closeCombobox()}}),w=(0,P.useEvent)(e=>{null==p||p(e),o.mode===eT.Single&&""===e.target.value&&I(),n.actions.openCombobox()}),A=(0,P.useEvent)(e=>{var t,i,s;let l=null!=(t=e.relatedTarget)?t:ea.history.find(t=>t!==e.currentTarget);if(!(null!=(i=n.state.optionsElement)&&i.contains(l))&&!(null!=(s=n.state.buttonElement)&&s.contains(l))&&n.state.comboboxState===eI.Open)return e.preventDefault(),o.mode===eT.Single&&null===o.value&&I(),n.actions.closeCombobox()}),z=(0,P.useEvent)(e=>{var t,i,s;let l=null!=(t=e.relatedTarget)?t:ea.history.find(t=>t!==e.currentTarget);null!=(i=n.state.buttonElement)&&i.contains(l)||null!=(s=n.state.optionsElement)&&s.contains(l)||o.disabled||o.immediate&&n.state.comboboxState!==eI.Open&&y.microTask(()=>{(0,d.flushSync)(()=>n.actions.openCombobox()),n.actions.setActivationTrigger(eC.Focus)})}),k=(0,eg.useLabelledBy)(),D=(0,ef.useDescribedBy)(),{isFocused:j,focusProps:L}=(0,a.useFocusRing)({autoFocus:g}),{isHovered:V,hoverProps:W}=(0,u.useHover)({isDisabled:m}),B=(0,er.useSlice)(n,e=>e.optionsElement),K=(0,J.useSlot)({open:O===eI.Open,disabled:m,invalid:o.invalid,hover:V,focus:j,autofocus:g}),G=(0,ep.mergeProps)({ref:x,id:h,role:"combobox",type:v,"aria-controls":null==B?void 0:B.id,"aria-expanded":O===eI.Open,"aria-activedescendant":(0,er.useSlice)(n,n.selectors.activeDescendantId),"aria-labelledby":k,"aria-describedby":D,"aria-autocomplete":"list",defaultValue:null!=(s=null!=(i=e.defaultValue)?i:void 0!==o.defaultValue?null==f?void 0:f(o.defaultValue):null)?s:o.defaultValue,disabled:m||void 0,autoFocus:g,onCompositionStart:_,onCompositionEnd:M,onKeyDown:R,onChange:w,onFocus:z,onBlur:A},L,W);return(0,ep.useRender)()({ourProps:G,theirProps:b,slot:K,defaultTag:"input",name:"Combobox.Input"})}),Button:eK,Label:eg.Label,Options:(0,ep.forwardRefWithAs)(function(e,t){var i,s,n;let o=(0,c.useId)(),{id:l=`headlessui-combobox-options-${o}`,hold:r=!1,anchor:a,portal:u=!1,modal:d=!0,transition:h=!1,...p}=e,f=eP("Combobox.Options"),m=eD("Combobox.Options"),g=(0,et.useResolvedAnchor)(a);g&&(u=!0);let[v,b]=(0,et.useFloatingPanel)(g),[S,x]=(0,c.useState)(null),O=(0,et.useFloatingPanelProps)(),E=(0,q.useSyncRefs)(t,g?v:null,f.actions.setOptionsElement,x),[y,I,T,C,_]=(0,er.useSlice)(f,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),M=(0,W.useOwnerDocument)(I||T),R=(0,W.useOwnerDocument)(C),w=(0,eo.useOpenClosed)(),[F,z]=(0,Y.useTransition)(h,S,null!==w?(w&eo.State.Open)===eo.State.Open:y===eI.Open);(0,L.useOnDisappear)(F,I,f.actions.closeCombobox);let j=!m.__demoMode&&d&&y===eI.Open;(0,H.useScrollLock)(j,R);let V=!m.__demoMode&&d&&y===eI.Open;(0,k.useInertOthers)(V,{allowed:(0,c.useCallback)(()=>[I,T,C],[I,T,C])});let B=!(0,er.useSlice)(f,f.selectors.didInputMove)&&F;(0,D.useIsoMorphicEffect)(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),(0,D.useIsoMorphicEffect)(()=>{m.optionsPropsRef.current.hold=r},[m.optionsPropsRef,r]),(0,Z.useTreeWalker)(y===eI.Open,{container:C,accept:e=>
2"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let K=(0,eg.useLabelledBy)([null==T?void 0:T.id]),N=(0,J.useSlot)({open:y===eI.Open,option:void 0}),G=(0,P.useEvent)(()=>{f.actions.setActivationTrigger(eC.Pointer)}),$=(0,P.useEvent)(e=>{e.preventDefault(),f.actions.setActivationTrigger(eC.Pointer)}),U=(0,ep.mergeProps)(g?O():{},{"aria-labelledby":K,role:"listbox","aria-multiselectable":m.mode===eT.Multi||void 0,id:l,ref:E,style:{...p.style,...b,"--input-width":(0,A.useElementSize)(F,I,!0).width,"--button-width":(0,A.useElementSize)(F,T,!0).width},onWheel:_===eC.Pointer?void 0:G,onMouseDown:$,...(0,Y.transitionDataAttributes)(z)}),Q=F&&y===eI.Closed&&!e.static,X=(0,es.useFrozenData)(Q,null==(i=m.virtual)?void 0:i.options),ee=(0,es.useFrozenData)(Q,m.value),ei=(0,c.useCallback)(e=>m.compare(ee,e),[m.compare,ee]),en=(0,c.useMemo)(()=>{if(!m.virtual)return m;if(void 0===X)throw Error("Missing `options` in virtual mode");return X!==m.virtual.options?{...m,virtual:{...m.virtual,options:X}}:m},[m,X,null==(s=m.virtual)?void 0:s.options]);m.virtual&&Object.assign(p,{children:c.default.createElement(ek.Provider,{value:en},c.default.createElement(eL,{slot:N},p.children))});let el=(0,ep.useRender)(),ea=(0,c.useMemo)(()=>m.mode===eT.Multi?m:{...m,isSelected:ei},[m,ei]);return c.default.createElement(eb.Portal,{enabled:!!u&&(e.static||F),ownerDocument:M},c.default.createElement(ek.Provider,{value:ea},el({ourProps:U,theirProps:{...p,children:c.default.createElement(es.Frozen,{freeze:Q},"function"==typeof p.children?null==(n=p.children)?void 0:n.call(p,N):p.children)},slot:N,defaultTag:"div",features:eW,visible:B,name:"Combobox.Options"}
2)))}),Option:(0,ep.forwardRefWithAs)(function(e,t){var i,s,n;let o=eD("Combobox.Option"),l=eP("Combobox.Option"),r=(0,c.useId)(),{id:a=`headlessui-combobox-option-${r}`,value:u,disabled:d=null!=(n=null==(s=null==(i=o.virtual)?void 0:i.disabled)?void 0:s.call(i,u))&&n,order:h=null,...p}=e,[f]=(0,er.useSlice)(l,e=>[e.inputElement]),m=$(f),g=(0,er.useSlice)(l,(0,c.useCallback)(e=>l.selectors.isActive(e,u,a),[u,a])),v=o.isSelected(u),b=(0,c.useRef)(null),S=(0,j.useLatestValue)({disabled:d,value:u,domRef:b,order:h}),x=(0,c.useContext)(ej),O=(0,q.useSyncRefs)(t,b,x?x.measureElement:null),E=(0,P.useEvent)(()=>{l.actions.setIsTyping(!1),l.actions.onChange(u)});(0,D.useIsoMorphicEffect)(()=>l.actions.registerOption(a,S),[S,a]);let y=(0,er.useSlice)(l,(0,c.useCallback)(e=>l.selectors.shouldScrollIntoView(e,u,a),[u,a]));(0,D.useIsoMorphicEffect)(()=>{if(y)return(0,ec.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=b.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[y,b]);let I=(0,P.useEvent)(e=>{e.preventDefault(),e.button===ev.MouseButton.Left&&(d||(E(),(0,eh.isMobile)()||requestAnimationFrame(()=>m()),o.mode===eT.Single&&l.actions.closeCombobox()))}),T=(0,P.useEvent)(()=>{if(d)return l.actions.goToOption({focus:eu.Focus.Nothing});let e=o.calculateIndex(u);l.actions.goToOption({focus:eu.Focus.Specific,idx:e})}),C=(0,Q.useTrackedPointer)(),_=(0,P.useEvent)(e=>C.update(e)),M=(0,P.useEvent)(e=>{if(!C.wasMoved(e)||d||g&&l.state.activationTrigger===eC.Pointer)return;let t=o.calculateIndex(u);l.actions.goToOption({focus:eu.Focus.Specific,idx:t},eC.Pointer)}),R=(0,P.useEvent)(e=>{C.wasMoved(e)&&(d||g&&(o.optionsPropsRef.current.hold||l.state.activationTrigger===eC.Pointer&&l.actions.goToOption({focus:eu.Focus.Nothing})))}),w=(0,J.useSlot)({active:g,focus:g,selected:v,disabled:d});return(0,ep.useRender)()({ourProps:{id:a,ref:O,role:"option",tabIndex:!0===d?void 0:-1,"aria-disabled":!0===d||void 0,"aria-selected":v,disabled:void 0,onMouseDown:I,onFocus:T,onPointerEnter:_,onMouseEnter:_,onPointerMove:M,onMouseMove:M,onPointerLeave:R,onMouseLeave:R},theirProps:p,slot:w,defaultTag:"div",name:"Combobox.Option"})})}),eG=e=>(0,l.jsxs)("svg",{className:e.className,width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{filter:"url(#filter0_d_6015_6640)",children:[(0,l.jsx)("circle",{cx:"11",cy:"7",r:"6.75",stroke:"white",strokeWidth:"0.5"}),(0,l.jsx)("path",{d:"M13.5528 10L11 7.44721L8.45652 10L8 9.55279L10.5528 7L8 4.45652L8.45652 4L11 6.55279L13.5528 4L14 4.44721L11.4565 7L14 9.55279L13.5528 10Z",fill:"white"})]}),(0,l.jsx)("defs",{children:(0,l.jsxs)("filter",{id:"filter0_d_6015_6640",x:"0",y:"0",width:"22",height:"22",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,l.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,l.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,l.jsx)("feOffset",{dy:"4"}),(0,l.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,l.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,l.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,l.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6015_6640"}),(0,l.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6015_6640",result:"shape"})]})})]});var e$=e.i(999412),eU=e.i(505132),eH=e.i(454660),eJ=e.i(652681);e.s(["MultipleCombobox",0,e=>{let{className:t,error:i,label:s,placeholder:n="入力してください",required:o,selectedValues:a}=e,{filteredOptions:u,handleSelected:d,isSelected:h,onRemove:p,setQuery:f}=(e=>{let{options:t,selectedValues:i,setValues:s}=e,[n,o]=(0,c.useState)(""),l=e=>{let t=e.charCodeAt(0);return t>=12352&&t<=12447||t>=12448&&t<=12543};return{filteredOptions:""===n?t:t.filter(e=>{let t=n.toLowerCase(),i=n.replace(/[\u3041-\u3096]/g,e=>String.fromCharCode(e.charCodeAt(0)+96)),s=e.label.toLowerCase().includes(t),o=e.kana&&e.kana.split("").some(l)&&(e.kana.includes(n)||e.label.includes(i));return s||o}),handleSelected:e=>{s(e)},isSelected:e=>i.some(t=>t.value===e.value),onRemove:e=>{s(i.filter(t=>t.value!==e.value))},setQuery:o}})(e);return(0,l.jsxs)("div",{className:(0,r.default)(eJ.default.root,t),children:[s&&(0,l.jsx)(eU.FormLabel,{className:eJ.default.formLabel,title:s,required:o}),(0,l.jsxs)(eN,{value:a,onChange:d,multiple:!0,by:"value",children:[(0,l.jsx)(eN.Button,{as:"div",children:(0,l.jsx)(eN.Input,{className:eJ.default.input,onFocus:()=>f(""),onChange:e=>f(e.target.value),placeholder:n})}),(0,l.jsx)(eN.Options,{className:eJ.default.options,children:u.map(e=>(0,l.jsx)(eN.Option,{value:e,className:e=>{let{active:t}=e;return(0,r.default)(eJ.default.option,t&&eJ.default.active)},children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{children:e.label}),h(e)&&(0,l.jsx)(e$.Icon,{className:eJ.default.checkIcon,size:12,ariaLabel:"選択中",type:"Check"})]})},e.value))}),a.length>0&&(0,l.jsx)("div",{className:eJ.default.selectedFlow,children:a.map(e=>(0,l.jsxs)("button",{className:eJ.default.selectedValue,onClick:()=>p(e),children:[(0,l.jsx)("span",{className:eJ.default.value,children:e.label}),(0,l.jsx)(eG,{className:eJ.default.closeIcon})]},e.value))})]}),i&&(0,l.jsx)(eH.ErrorMessage,{className:eJ.default.errorMessage,error:i})]})}],779276)}]);
3
4//# debugId=76cab509-9737-3146-5e99-a0ef7cafb463

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.