@ihabdevteam/core 0.410.0 → 0.411.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -11
- package/dist/components.cjs.js +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +1 -1
- package/dist/ihabdevteam-core.d.ts +2 -13
- package/dist/packages/core/src/components/Panel.css +20 -8
- package/dist/packages/core/src/components/Word/wordTableBlockTypes.d.ts +15 -10
- package/dist/packages/core/src/utils/wordTrainingGroups.d.ts +15 -2
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
package/dist/components.cjs.js
CHANGED
|
@@ -819,7 +819,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
819
819
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
820
820
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",bizNo:"\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638",bizNoValue:"526-81-02926"},Eb={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Db={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},Sb={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},jb={ariaLabel:"\uC120\uD0DD \uD0ED"},Tb={ariaLabel:"\uD0ED"},Mb={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Lb={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},$b={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"}},Rb={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",done:"\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",detailFor:"{{name}} \uC0C1\uC138\uBCF4\uAE30"},Pb={time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"}},Fb={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},Ib={skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",runs:"{{count}}\uD310"},Ob={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},zb={viewWords:"\uB0B1\uB9D0"},Wb={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Hb={chooseDate:"\uB0A0\uC9DC \uC120\uD0DD",selectYear:"\uC5F0 \uC120\uD0DD",selectMonth:"\uC6D4 \uC120\uD0DD"},Vb={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},qb={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Ub={place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},Gb={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Kb={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Yb={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Zb={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Xb={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Jb={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Qb={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},eg={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},tg={common:eb,calendar:tb,passCard:nb,rating:ab,colorPicker:rb,dropdown:ob,accordion:sb,header:lb,nav:ib,settings:ub,usage:cb,account:db,training:pb,customers:hb,payment:mb,coupons:Cb,visits:fb,trainingType:bb,myWordTable:gb,keyWords:yb,wordTable:vb,wordSearch:_b,wordPrint:xb,topic:wb,device:Bb,manager:kb,wordPairs:Ab,footer:Nb,date:Eb,wordData:Db,textField:Sb,segmentedControl:jb,tabs:Tb,fileUpload:Mb,avatar:Lb,myHomework:$b,trainingStatus:Rb,store:Pb,progress:Fb,trainingMiss:Ib,table:Ob,wordScore:zb,topBanner:Wb,datePicker:Hb,report:Vb,tooltip:qb,phonemeProfile:Ub,bulkBar:Gb,debug:Kb,badge:Yb,loader:Zb,soundCompass:Xb,breadcrumb:Jb,board:Qb,promoBannerBg:eg},ng={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount_one:"{{count}} like",likeCount_other:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount_one:"{{count}} download",downloadCount_other:"{{count}} downloads",descriptionFor:"About {{name}}",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",loading:"Loading",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},ag={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekLabel:"Week {{ord}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit",visitCount_one:"{{count}} visit",visitCount_other:"{{count}} visits",statusCount:"{{count}} {{label}}",weekOrdinal:["1","2","3","4","5","6","7"]},rg={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},og={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},sg={selected:"selected"},lg={placeholder:"Select"},ig={collapse:"Collapse",expand:"Expand"},ug={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},cg={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",feedback:"Report a bug",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}",badgeInsideLabel_one:"{{label}}, {{count}} notification inside",badgeInsideLabel_other:"{{label}}, {{count}} notifications inside"},dg={cache:{cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"}}}},pg={couponButton:"Enter Coupon"},hg={security:{password:{currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."}}},mg={settings:"Settings",filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions_one:"{{n}} question",countQuestions_other:"{{n}} questions",countSentences_one:"{{n}} sentence",countSentences_other:"{{n}} sentences",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",replaySound:"Replay item {{no}}",replaySoundStop:"Stop item {{no}}",done:"Done",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{synthesizing:"Preparing the sound\u2026",preparing:"Preparing sound\u2026"}},Cg={totalCount:" customers",loadError:"Failed to load list",device:{title:"Hearing Devices",addButton:"Add device",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",historyTitle:"Hearing device history"},schedule:{registerTitle:" Register Schedule"},visitHistory:{empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"},consent:{record:"Record consent",kinds:"Kinds given",methodTitle:"How it was given",sourceTitle:"Who gave it",day:"Date given",note:"Note",notePlaceholder:"Referring clinic and the like \u2014 do not write anything sensitive",submit:"Save",allTaken:"All three kinds are already on record. Revoke one first to record it again.",kind:{personal:"General personal data",sensitive:"Sensitive data (hearing, diagnosis)",marketing:"Marketing messages"},method:{paper:"On paper",verbal:"Spoken",electronic:"Electronic"},source:{self:"The customer",guardian:"A guardian",referral:"A referring body"}}},fg={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},bg={input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply"},gg={showN:"Show {{n}}"},yg={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},vg={newBadge:"Newly created",publishedBadge:"Published",sharedBadge:"Shared"},_g={title:"Key Words",empty:"No key words available."},xg={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",caption:"Form",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",copyItem:"Duplicate",copyItemAria:"Duplicate the word in cell {{n}}",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount_one:"{{count}} word",itemCount_other:"{{count}} words",deleteAriaLabel:"Delete {{name}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",markName:{o:"Correct",triangle:"Partial",x:"Incorrect"},button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse they appear when you hover the cell; with a keyboard, when focus reaches it.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved_one:"Saved {{count}} mark for {{name}}.",saved_other:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage_one:"Builds a new table from the {{count}} cell {{name}} got wrong or partial. Correct ones are left out.",reviewMessage_other:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated_one:"Created \u201C{{name}}\u201D \u2014 {{count}} cell.",reviewCreated_other:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage_one:"You marked {{count}} cell but have not saved. Leaving discards it.",discardMessage_other:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"},thumbMore:"+{{count}}",replaceItem:"Other words",replacePair:"Other pairs",replaceItemAria:"Swap cell {{n}} only",replacePairAria:"Swap pair {{n}} only",thumbMoreAria_one:"1 more cell: {{words}}",thumbMoreAria_other:"{{count}} more cells: {{words}}",pickForm:"Other forms",pickFormAria:"Change the form in cell {{n}}",pickFormBaseAria:"Change the form of the base word"},wg={filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Difficulty",grade:"Grade {{n}}",age:"Age {{n}}",difficultyInfoAge:"Age 3\u20137: the easiest words (grade 1), split by age.",difficultyInfoGrade:"Grades 2\u20134: harder words, not split by age.",difficultyInfoNone:"None: words with no difficulty assigned.",gradeNone:"None",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",field:"Semantic Category",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size"},Bg={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removePairFor:"Remove the pair {{name}}",removeWord:"Remove word",removeWordFor:"Remove {{name}}"},kg={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},Ag={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant",other:"Other"}},Ng={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"}},Eg={phonemeSelect:{vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",countLabel:"Number of phonemes",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:["Level 1 \u2014 everyday vocabulary acquired before school age and used for life","Level 2 \u2014 difficulty of grades 1\u20132","Level 3 \u2014 difficulty of grades 3\u20134","Level 4 \u2014 difficulty of grades 5\u20136","No level \u2014 frequent everyday words outside the national standard list, plus coinages and loanwords"],selectLabel:"Select",onlyHasImage:"Only words with images",onlyHighUsage:"High-use words only",onlySameStructure:"Only same phoneme structure"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},Dg={lead:`IHAB builds trust
|
|
821
821
|
through sound
|
|
822
|
-
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},Sg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},jg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Tg={clearAriaLabel:"Clear input"},Mg={ariaLabel:"Select tab"},Lg={ariaLabel:"Tabs"},$g={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Rg={ariaLabel:"User avatar"},Pg={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},Fg={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},Ig={time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"}},Og={steps:"Step {{current}} of {{total}}"},zg={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},Wg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Hg={viewWords:"Words"},Vg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},qg={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},Ug={previewRegion:"Report preview \u2014 scrollable sideways"},Gg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Kg={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Yg={clearSelection:"Clear selection"},Zg={showResult:"Show {{type}} result"},Xg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Jg={loading:"Loading"},Qg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},ey={ariaLabel:"Breadcrumb"},ty={empty:"No items yet."},ny={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},ay={common:ng,calendar:ag,passCard:rg,rating:og,colorPicker:sg,dropdown:lg,accordion:ig,header:ug,nav:cg,settings:dg,usage:pg,account:hg,training:mg,customers:Cg,payment:fg,coupons:bg,visits:gg,trainingType:yg,myWordTable:vg,keyWords:_g,wordTable:xg,wordSearch:wg,wordPrint:Bg,topic:kg,device:Ag,manager:Ng,wordPairs:Eg,footer:Dg,date:Sg,wordData:jg,textField:Tg,segmentedControl:Mg,tabs:Lg,fileUpload:$g,avatar:Rg,myHomework:Pg,trainingStatus:Fg,store:Ig,progress:Og,trainingMiss:zg,table:Wg,wordScore:Hg,topBanner:Vg,datePicker:qg,report:Ug,tooltip:Gg,phonemeProfile:Kg,bulkBar:Yg,debug:Zg,badge:Xg,loader:Jg,soundCompass:Qg,breadcrumb:ey,board:ty,promoBannerBg:ny};const ry="0.410.0",oy=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],fo="ko",sy="ihab_display_language";function Ql(){if(typeof window>"u")return fo;try{const e=localStorage.getItem(sy);if(e&&oy.some(t=>t.code===e))return e}catch{}return fo}function ei(e){try{document.documentElement.lang=e}catch{}}Kt.on("languageChanged",ei),ei(Ql()),Kt.use(_e.initReactI18next).init({resources:{ko:{translation:tg},en:{translation:ay}},lng:Ql(),fallbackLng:fo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const ly=new Map;try{Kt.store?.on?.("added",()=>ly.clear())}catch{}let hr=null,ti=null,ni=null;function iy(){const e=Wl();if(e&&e.entries.length>0){const t=vf();if(hr&&ti===e&&ni===t)return hr;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return hr=r,ti=e,ni=t,hr}return[]}new Proxy([],{get(e,t){const a=iy(),r=a[t];return typeof r=="function"?r.bind(a):r}});function uy(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function cy(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&uy(r.attrValue)&&(r.keepAttr=!1)};da.addHook("uponSanitizeAttribute",t);try{return da.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{da.removeHook("uponSanitizeAttribute",t)}}function dy(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[l,i]=o.useState(null),[u,c]=o.useState(null),[d,h]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),i(null),c(null);return}const p=e.split("/").pop();let m=e;p&&(e.startsWith("/")?m=no(e):/^(Logo|Symbol)/i.test(p)?m=no(`logo/${p}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),i(null),c(null),a(e),s(m)},[e]),o.useEffect(()=>{if(!r)return;let p=!1;async function m(){try{let b=await fetch(r);b.ok||(b=await fetch(r));const v=b.headers.get("content-type")||"";if(p)return;if(v.includes("svg")){i("mask");return}if(v.startsWith("image/")){i("img");return}const C=await fetch(r);if(!C.ok)throw new Error("not ok");const f=await C.text();if(p)return;if(/^\s*<svg[\s>]/i.test(f)){const x=cy(f);if(!x){i("none");return}c(x),i("inline");return}i("none")}catch{p||i("none")}}return m(),()=>{p=!0}},[r]),o.useEffect(()=>{let p=!1,m=null;return l==="mask"&&r&&fetch(r).then(b=>{if(!b.ok)throw new Error("fetch failed");return b.blob()}).then(b=>{p||(m=URL.createObjectURL(b),h(m))}).catch(()=>{p||i("img")}),()=>{p=!0,m&&URL.revokeObjectURL(m),h(null)}},[l,r]),t===e?{iconToUse:r,mode:l,svgText:u,blobUrl:d}:{iconToUse:null,mode:null,svgText:null,blobUrl:null}}function ot(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:l,svgClassName:i,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",h=s??"iconRenderer-icon-image",p=l??"iconRenderer-icon-mask",m=i??"iconRenderer-icon-svg",b=typeof t=="string"?t:null,v=Q0(b),{iconToUse:C,mode:f,svgText:x,blobUrl:g}=dy(b),w=(B,E={})=>n.jsx("span",{className:d,style:u,...E,children:B}),y=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,k=(B,E={})=>n.jsx("img",{src:B,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:h,...E,style:y?{...E.style,...y}:E.style});if(!t)return null;if(typeof t!="string")return w(t);if(t==="none")return w(n.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(v)try{return w(o.createElement(v,{className:m,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(f==="mask"){const B={"--icon-url":g?`url(${g})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return w(n.jsx("span",{className:p,style:B}),{"aria-hidden":"true"})}return f==="img"?w(k(C,{onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):f==="inline"?w(n.jsx("span",{className:m,dangerouslySetInnerHTML:x?{__html:x}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return k(no(t),{style:u,onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}});const _=typeof c=="number"?c:20,A=`<svg width="${_}" height="${_}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(n.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:A}}),{"aria-hidden":"true"})}function ai(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const l=o.useCallback(()=>{if(!e||r.current)return;const i=e();if(i&&typeof i.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};i.then(u,u)}},[e]);return{pending:t,press:l}}function py({icon:e,title:t,message:a,action:r,className:s}){const{pending:l,press:i}=ai(r?.onClick);return n.jsxs("div",{className:Be("empty-state",s),children:[e&&n.jsx(ot,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i,disabled:l,"aria-busy":l||void 0,children:[r.icon&&n.jsx(ot,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function hy({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:l}){const{t:i}=_e.useTranslation(),{pending:u,press:c}=ai(r);return n.jsxs("div",{className:Be("empty-state","error-state",l),role:"alert",children:[n.jsx(ot,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??i("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(ot,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??i("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function my({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:l=!1,onClick:i,className:u=""}){const c=o.useId(),d=`${c}-title`,h=`${c}-desc`,p=`${c}-cta`,m=()=>{l||i?.()};return n.jsx("section",{role:"button",tabIndex:l?-1:0,"aria-disabled":l||void 0,"aria-labelledby":d,"aria-describedby":`${h} ${p}`,onClick:m,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())},className:Be("action-card",`action-card--${s}`,l&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(ot,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:h,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(ot,{icon:"arrow-right",size:18})})]})]})})}function Cy({as:e="div",className:t="",children:a,storage:r,...s}){r&&O1({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const l=Be("ihabdevteam-core-scope",t);return n.jsx(e,{className:l,...s,children:a})}function fy(e){if(e.closest('[aria-hidden="true"], [hidden], [inert]'))return!1;for(let t=e;t;t=t.parentElement){const a=window.getComputedStyle(t);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!1}return!0}function bo(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const l=Array.from(a.querySelectorAll(En)).filter(fy);if(!l.length){s.preventDefault();return}const i=l[0],u=l[l.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===i||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),i.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const En='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',go=new WeakMap;function yo(e,t){e&&go.set(e,t)}function vo(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!go.has(r);)r=r.parentElement;if(!r)return t;t=go.get(r)??null}return t}function ri(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function mr(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(ri(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(En)).filter(c=>!(e&&e.contains(c))&&ri(c));let l=null,i=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?l=c:i||(i=c);const u=l??i;return u?.focus(),u}function by({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:l=!1,className:i=""}){const{t:u}=_e.useTranslation(),[c,d]=o.useState(!1),h=o.useRef(null),p=o.useCallback(()=>{const C=h.current;C&&C.contains(document.activeElement)&&mr(C),d(!0)},[]);if(c)return null;const m=`notice-box notice-box--${s} body-2 ${i}`.trim(),b=l&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:m,role:"note",children:[a.map((C,f)=>n.jsxs("div",{className:"notice-box__inner",children:[C.title?n.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,n.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?n.jsx("div",{children:C.lines.map((x,g)=>n.jsx("span",{className:"notice-box__line body-3",children:x},g))}):C.children??null})]},f)),b]});const v=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((C,f)=>n.jsx("li",{className:"notice-box__line",children:C},f))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:h,className:m,role:"note",children:[v,b]})}const gy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Ca(e){const{t}=_e.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:l}=e||{},i=l||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":i,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":i,children:[n.jsx("span",{style:gy,children:i}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}const fa=[];let Cr=!1;function oi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=fa[fa.length-1];t&&(e.stopPropagation(),t())}function Qn(e){return fa.push(e),!Cr&&typeof document<"u"&&(document.addEventListener("keydown",oi),Cr=!0),()=>{const t=fa.lastIndexOf(e);t>=0&&fa.splice(t,1),fa.length===0&&Cr&&typeof document<"u"&&(document.removeEventListener("keydown",oi),Cr=!1)}}const si=o.createContext(null);function yy(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const li=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function vy(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Ps.useSyncExternalStore(t,()=>li(e),()=>!1)}function _y(e){const[t,a]=o.useState(li(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=i=>a(i.matches),l=r;return l.addEventListener?l.addEventListener("change",s):l.addListener&&l.addListener(s),a(r.matches),()=>{l.removeEventListener?l.removeEventListener("change",s):l.removeListener&&l.removeListener(s)}},[e]),t}const xy=typeof Ps.useSyncExternalStore=="function"?vy:_y;function yn(e){const t=o.useContext(si),a=xy(e);return t&&typeof t.mobile=="boolean"&&yy(e)?t.mobile:a}const wy="(prefers-reduced-motion: reduce)";function _o(){return yn(wy)}const ii={"menu-tooltip":"tooltip-menu","description-tooltip":"tooltip-description","text-box-tooltip":"tooltip-textbox","training-tooltip":"tooltip-training","word-image-tooltip":"tooltip-word-image","info-tooltip":"tooltip-info","noise-settings-tooltip":"noise-settings",tooltip__header:"tooltip-content__header",tooltip__content:"tooltip-content",tooltip__backdrop:"tooltip-backdrop",tooltip__portal:"tooltip-portal","word-table__section":"word-table-block","word-table__content":"word-table-block__content","word-table__card":"word-table-block__card","word-table__card-handle":"word-table-block__card-handle","word-table__card-close":"word-table-block__card-close","word-table__card-actions":"word-table-block__card-actions","word-table__edit-cell":"word-table-block__edit-cell","word-table__pair-divider":"word-table-block__pair-divider","chart-section__legend-dot":"manager-bar-chart-legend-dot","chart-section__legend-item":"manager-bar-chart-legend-item","chart-section__legend":"manager-bar-chart-legend","chart-section__controls":"manager-section-controls","chart-section__sub-row":"barchart-sub-row","chart-section__total":"barchart-total","chart-section":"manager-section","bar-chart__stack-segment":"manager-bar-chart-stack-segment","bar-chart__detail-btn":"manager-bar-chart-detail-btn","bar-chart__gridline":"manager-bar-chart-gridline","bar-chart__loading":"manager-bar-chart-loading","bar-chart__scroll":"manager-bar-chart-scroll","bar-chart__stack":"manager-bar-chart-stack","bar-chart__x-axis":"manager-bar-chart-x-axis","bar-chart__inner":"manager-bar-chart-inner","bar-chart__area":"manager-bar-chart-area","bar-chart__plot":"manager-bar-chart-plot","bar-chart__wrap":"manager-bar-chart-wrap","bar-chart__slot":"manager-bar-chart-slot","bar-chart__col":"manager-bar-chart-col","bar-chart__bar":"manager-bar-chart-bar","stat-chart__card":"manager-stat-card"};function By(e,t){const a=Object.keys(e).sort((r,s)=>s.length-r.length);for(const r of a){if(!t.startsWith(r))continue;const s=t.slice(r.length);if(!(s!==""&&!s.startsWith("__")&&!s.startsWith("--")))return e[r]+s}return null}function ky(e){return By(ii,e)}function se(e){if(!e||Object.keys(ii).length===0)return e;const t=[];for(const a of e.split(/\s+/)){if(!a)continue;const r=ky(a);r&&t.push(r)}return t.length?`${e} ${t.join(" ")}`:e}function Bn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:l,closeOnOutsideClick:i=!0,className:u="",role:c="dialog",ariaLabel:d="",children:h,backdrop:p=!1,isMobilePopup:m=!1,useBorder:b=!0,header:v,focusOnOpen:C}=e||{},f=o.useRef(null),[x,g]=o.useState({position:"fixed",left:0,top:-9999}),[w,y]=o.useState(!1),[k,_]=o.useState("bottom"),[A,B]=o.useState(!1),[E,D]=o.useState(!1),N=!t&&!a,$=o.useRef(null),L=o.useCallback((R=!1,q=!1)=>{if(E&&m)return;const Z=a?a.getBoundingClientRect():t,z=q&&$.current?$.current:Z;if(!z||!f.current)return;const j=f.current,{offsetWidth:F,offsetHeight:O}=j,G=window.innerWidth,ie=window.innerHeight,K=G-z.right,pe=z.left,X=z.top,H=ie-z.bottom;let ne=0,V=0,W="top";if(X>=O+r)W="top",V=z.top-r-O,ne=z.left+z.width/2-F/2;else if(H>=O+r)W="bottom",V=z.bottom+r,ne=z.left+z.width/2-F/2;else if(K>=F+r)W="right",ne=z.right+r,V=z.top+z.height/2-O/2;else if(pe>=F+r)W="left",ne=z.left-r-F,V=z.top+z.height/2-O/2;else{const me=Math.max(X,H,K,pe);me===X?(W="top",V=z.top-r-O,ne=z.left+z.width/2-F/2):me===H?(W="bottom",V=z.bottom+r,ne=z.left+z.width/2-F/2):me===K?(W="right",ne=z.right+r,V=z.top+z.height/2-O/2):(W="left",ne=z.left-r-F,V=z.top+z.height/2-O/2)}const oe=Number.isFinite(Number(s))?Number(s):8;ne=Math.min(Math.max(ne,oe),G-F-oe),V=Math.min(Math.max(V,oe),ie-O-oe);const xe=Math.round(ne),be=Math.round(V);R&&f.current?(f.current.style.left=`${xe}px`,f.current.style.top=`${be}px`,f.current.dataset.placement=W):(_(W||k),g({position:"fixed",left:xe,top:be}),B(!0))},[E,m,a,t,r,s,k]);o.useEffect(()=>()=>{$.current=null},[a,t]),o.useLayoutEffect(()=>{if(N)return;if(E&&m){g({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}$.current===null&&($.current=a?a.getBoundingClientRect():t??null),L(!1,!0);const R=requestAnimationFrame(()=>L(!1,!0));return()=>cancelAnimationFrame(R)},[t,a,r,h,s,N,E,m,L]),o.useEffect(()=>{if(N||E&&m||!f.current||typeof ResizeObserver>"u")return;const R=new ResizeObserver(()=>{t&&L()});return R.observe(f.current),()=>R.disconnect()},[t,h,s,N,E,m,L]),o.useEffect(()=>{if(N||E&&m)return;let R=null;const q=()=>{if(a&&($.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){L(!0);return}R===null&&(R=requestAnimationFrame(()=>{R=null,L(!0)}))},Z=z=>{if(!a&&l){const j=z.target;if(j&&f.current&&f.current.contains(j))return;try{if(j&&j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}ee.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",Z,{passive:!0,capture:!0}),()=>{R!==null&&cancelAnimationFrame(R),window.removeEventListener("resize",q),document.removeEventListener("scroll",Z,{capture:!0})}},[t,a,l,r,h,s,N,E,m,L]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const R=window.matchMedia("(max-width: 768px)"),q=()=>D(!!R.matches);q();try{R.addEventListener?R.addEventListener("change",q):R.addListener(q)}catch{try{R.addListener(q)}catch{}}return()=>{try{R.removeEventListener?R.removeEventListener("change",q):R.removeListener(q)}catch{}}},[]);const U=o.useRef(!1),M=o.useRef(null),P=_o(),T=o.useCallback((R=!1)=>{if(l&&!(w||U.current)){if(U.current=!0,R){y(!0);try{l&&l()}catch{U.current=!1,y(!1)}return}y(!0),M.current=setTimeout(()=>{M.current=null;try{l&&l()}catch{U.current=!1,y(!1)}},P?0:200)}},[w,l,y,P]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(N)return;const R=z=>{const j=f.current;if(!j)return;const F=z.target;if(F&&!j.contains(F)){try{if(F.closest&&F.closest("[data-tooltip-ignore]"))return}catch{}i&&T(!0)}},q=z=>{const j=f.current;if(!j)return;const F=z.target;if(F&&!j.contains(F)){try{if(F.closest&&F.closest("[data-tooltip-ignore]"))return}catch{}i&&T(!0)}},Z=z=>{if(z.key==="Tab"){const j=f.current;if(!j)return;const F=j.querySelectorAll(En);if(!F||F.length===0)return;const O=F[0],G=F[F.length-1],ie=document.activeElement;z.shiftKey?ie===O&&(z.preventDefault(),G.focus()):ie===G&&(z.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",R,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",Z),()=>{document.removeEventListener("pointerdown",R,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",Z)}},[l,i,T,N]);const ee=o.useRef(T);o.useEffect(()=>{ee.current=T});const te=!!l;o.useEffect(()=>{if(!(N||!te))return Qn(()=>ee.current())},[N,te]),o.useEffect(()=>{const R=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",R),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",R)}},[T]);const I=o.useRef(null);o.useEffect(()=>{if(N||C===!1||!A)return;const R=f.current;if(!R)return;const q=R.querySelector(En);if(q)return I.current=document.activeElement,q.focus({preventScroll:!0}),()=>{const Z=I.current;I.current=null,Z&&document.contains(Z)&&Z.focus({preventScroll:!0})}},[N,C,A]),o.useEffect(()=>{c==="dialog"&&!d&&At("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const Y=n.jsxs("div",{ref:f,className:se(`tooltip__content ${N?"tooltip__content--inline":""} ${b?"tooltip__content--bordered":""} ${w?"is-closing":""} ${u} ${E&&m?"is-mobile":""}`),role:c,"aria-label":d||void 0,style:N?{}:{...x,visibility:A?"visible":"hidden"},tabIndex:-1,"data-placement":k,"data-left":N?"":x.left,"data-top":N?"":x.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[v!=null&&n.jsx("div",{className:se("tooltip__header h5"),children:v}),h]});if(N||typeof document>"u")return Y;if(p||E&&m){const R=n.jsxs("div",{className:se("tooltip__portal"),children:[n.jsx("div",{className:se("tooltip__backdrop"),onClick:()=>{i&&T(!0)}}),Y]});return hn.createPortal(R,document.body)}return hn.createPortal(Y,document.body)}function Mn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:l="",ariaLabel:i}=e||{};return a?n.jsx(Bn,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:se(`info-tooltip ${l}`),ariaLabel:i||a,children:n.jsx("div",{className:se("info-tooltip__content body-3"),children:a})}):null}function qn(e){const{t}=_e.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:l=-1,showIndex:i=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0,columns:h}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:n.jsx(Bn,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:se("description-tooltip"),ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:se("description-tooltip__box"),children:[r&&n.jsx("span",{className:se("description-tooltip__title body-2"),children:r}),n.jsx("ol",{className:se(`description-tooltip__items${h&&h>1?" description-tooltip__items--columns":""}`),style:h&&h>1?{columnCount:h}:void 0,children:p.map((m,b)=>n.jsxs("li",{className:se(`description-tooltip__item body-3${b===l?" description-tooltip__item--active":""}`),children:[i&&p.length>1&&n.jsxs("span",{className:se("description-tooltip__index button-1"),children:[b+1,"."]}),m.color&&n.jsx("span",{className:se("description-tooltip__dot"),style:{background:m.color},"aria-hidden":"true"}),n.jsx("span",{children:m.text})]},b))})]})})}function Ia(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let xo=0,ui=!1;function ci(){ui||typeof document>"u"||(ui=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(xo=Date.now())},!0),document.addEventListener("touchstart",()=>{xo=Date.now()},{capture:!0,passive:!0}))}ci();function Un(e){return!!e&&e.pointerType==="touch"}function ea(e=1e3){return ci(),Date.now()-xo<e}function fr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=Ia(e),i=Ia(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const h=p=>{const m=p,b=p.target,v=a.current,C=!!(b&&v&&v.contains(b));if(m.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=l.current;return}u.current=null,l.current&&!(b&&b.closest?.(".tooltip__content"))&&i.current(!1,v)};return document.addEventListener("pointerdown",h,!0),()=>document.removeEventListener("pointerdown",h,!0)},[r,a,l,i]);const d=o.useCallback(h=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),i.current(!p,h??a.current),!0)},[a,i]);return o.useEffect(()=>{if(!r||!s)return;const h=a.current,p=h?.parentElement;if(!h||!p)return;let m=null;const b=f=>{const x=f.changedTouches?.[0];if(!x)return!1;const g=h.getBoundingClientRect();return x.clientX>=g.left&&x.clientX<=g.right&&x.clientY>=g.top&&x.clientY<=g.bottom},v=f=>{m=b(f)?l.current:null},C=f=>{const x=m;m=null,!(x===null||Date.now()-c.current<700||!b(f))&&(u.current=null,c.current=Date.now(),i.current(!x,h))};return p.addEventListener("touchstart",v,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",v),p.removeEventListener("touchend",C)}},[r,s,a,l,i]),{touchPress:d}}function Ay(e,t){const{size:a=48,type:r,htmlType:s,href:l,target:i,rel:u,icon:c,rightIcon:d,label:h,count:p,subLabel:m,children:b,ariaLabel:v,variant:C="default",align:f="center",nowrap:x=!1,selected:g,toggleable:w=!1,ariaExpanded:y,ariaControls:k,disabled:_=!1,loading:A=!1,useLabel:B=!0,useBorder:E=!0,useBG:D=!0,useDisabledCovered:N=!1,useDisabledInvisible:$=!1,useDisabledFilled:L=!1,width:U,minWidth:M,onClick:P,onDisabledClick:T,showTooltipInfo:ee=!1,tooltipInfoText:te=null,tooltipDescription:I=null,tooltipOnly:Y=!1,iconSize:R="medium",iconColor:q,shape:Z="rounded",color:z,className:j,...F}=e,O=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),G=O.match(/^\d+$/)?`button${O}`:`button-${O}`,ie=Number(a),K=!isNaN(ie)&&ie<40?"button-2":"button-1",pe=h??b,X=_||!!F.disabled,H=X?N?"disabled-covered":$?"disabled-invisibled":L?"disabled-filled":"disabled":C,ne=H?`button--variant-${H}`:"",V=f?`button--align-${f}`:"",W=x?"button--nowrap":"",oe=Z?`button--shape-${Z}`:"",xe=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,be={...U?{width:typeof U=="number"?`${U}px`:U}:{},...M?{minWidth:typeof M=="number"?`${M}px`:M}:{},...E?{}:{"--button-border":X?"0":"1px solid transparent"},...xe?{"--button-icon-color":xe}:{},...z?{"--color-main":z}:{}},me=B===!1?"":pe,ke=Array.isArray(me)?me.length>0:!!me,Le=!!d,Me=r??(ke||c||Le?"bar":"dot"),le=`${G}--${Me}`,ve=o.useRef(null);o.useEffect(()=>{!zn||s!==void 0||ve.current?.closest("form")&&At(`button-in-form:${typeof pe=="string"?pe:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof pe=="string"&&pe?` \uB2E8\uCD94: ${pe}`:""))},[s,pe]);const $e=o.useRef(t);$e.current=t;const Ae=o.useCallback(je=>{ve.current=je;const nt=$e.current;typeof nt=="function"?nt(je):nt&&(nt.current=je)},[]),Ie=o.useRef(X),[ze,dt]=o.useState(!!g),[st,et]=o.useState(!1),[gt,Se]=o.useState(null),Ge=o.useCallback(()=>et(!1),[]),[we,qe]=o.useState(!1),Ye=o.useId();o.useEffect(()=>{typeof g=="boolean"&&dt(g)},[g]),o.useEffect(()=>{if(Ie.current&&!X&&ve.current){const je=ve.current;let nt=!1;try{nt=je.matches(":focus:not(:focus-visible)")}catch{nt=!1}nt&&je.blur(),je.style.pointerEvents="none";const ae=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ve.current&&(ve.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(ae)}Ie.current=X},[X]);const mt=typeof g=="boolean"?!!g:ze,wt=typeof y=="boolean"?void 0:w||typeof g=="boolean"?mt?"true":"false":F["aria-pressed"],yt=Be("button",G,le,ne,V,W,oe,mt?"is-selected":null,D?null:"button--no-bg",Y?"button--tooltip-only":null,j),Et=`button__icon button__icon--${R}`,at=Array.isArray(m)?m:m!==void 0?[m]:[],rt=()=>{if(Array.isArray(me))return me.map((nt,ae)=>{const ye=at[ae];return n.jsxs("span",{className:`button__label-text${ye!==void 0?" button__label-text--has-sub":""}`,children:[nt,ye!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:ye})]},ae)});const je=m!==void 0;return n.jsxs("span",{className:`button__label-text${je?" button__label-text--has-sub":""}`,children:[me,p!=null&&n.jsx("span",{className:"button__count",children:p}),je&&n.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},Dt=je=>{typeof g!="boolean"&&!w&&dt(!1),je.currentTarget.blur()},Bt=je=>{X||(typeof F.onMouseLeave=="function"&&F.onMouseLeave(je),Dt(je))},Lt=je=>{if(Y&<&&Ct.touchPress(je.currentTarget),X){lt&&Ct.touchPress(je.currentTarget),je.preventDefault(),T?.(je);return}typeof g!="boolean"&&w&&dt(nt=>!nt),P?.(je)},It=o.useCallback(()=>{(ee||I)&&(et(!0),Se(ve.current?.getBoundingClientRect()??null))},[ee,I]),xt=o.useCallback(()=>{(ee||I)&&(et(!1),Se(null))},[ee,I]),lt=!!(ee||I),Ct=fr(st,je=>{je?It():xt()},ve,{enabled:lt&&(X||Y),fallbackOnParent:lt&&X}),it={...F};delete it.disabled,delete it.className,delete it.faded,delete it.useFaded,delete it.loading,delete it.onMouseLeave,delete it.onPointerEnter,delete it.onPointerLeave,delete it.onPointerUp,delete it.onFocus,delete it.onBlur,X&&(Object.keys(it).forEach(je=>{/^on[A-Z]/.test(je)&&typeof it[je]=="function"&&delete it[je]}),it["aria-disabled"]="true"),A&&(it["aria-busy"]="true");const _t=(typeof ee=="string"?ee:null)??(typeof te=="string"?te:null)??(typeof v=="string"?v:null)??(typeof pe=="string"?pe:null)??void 0,ut=typeof v=="string"?v:typeof pe=="string"?pe:_t,St=I?[I.title,...I.items??[]].filter(Boolean).join(". "):ee&&_t&&_t!==ut?_t:"",ue=[typeof F["aria-describedby"]=="string"?F["aria-describedby"]:void 0,St?Ye:null].filter(Boolean).join(" ")||void 0,Te=()=>n.jsx("span",{className:`${Et} button__spinner`,"aria-hidden":"true",children:n.jsx(Ca,{variant:"spinner",size:"100%"})}),Ne=(je,nt)=>n.jsx(ot,{icon:je,label:nt??ut,className:Et,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),tt=je=>A?Te():Ne(c,je),pt=()=>Me==="dot"?n.jsxs(n.Fragment,{children:[tt(),ke&&n.jsx("span",{className:`button__label ${K}`,children:rt()})]}):f==="center"&&(c||A)?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:tt()}),ke&&n.jsx("span",{className:`button__label ${K}`,children:rt()})]}),Le&&n.jsx("span",{className:"button__right",children:Ne(d)})]}):n.jsxs(n.Fragment,{children:[(c||A)&&n.jsx("span",{className:"button__left",children:tt(v??pe)}),ke&&n.jsx("span",{className:`button__label ${K}`,children:rt()}),Le&&n.jsx("span",{className:"button__right",children:Ne(d)})]}),jt=!!l&&!X;return n.jsxs(n.Fragment,{children:[n.jsxs(jt?"a":"button",{...it,ref:Ae,...jt?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:X&&!T&&!we},className:yt,"aria-pressed":wt,"aria-expanded":typeof y=="boolean"?y:F["aria-expanded"],"aria-controls":k??F["aria-controls"],"aria-label":ut,"aria-disabled":X&&(jt||T||we)?!0:void 0,"aria-describedby":ue,style:be,onClick:Lt,onMouseLeave:Bt,onPointerEnter:je=>{Un(je)||It(),!X&&typeof F.onPointerEnter=="function"&&F.onPointerEnter(je)},onPointerLeave:je=>{Un(je)||xt(),!X&&typeof F.onPointerLeave=="function"&&F.onPointerLeave(je)},onPointerUp:je=>{X&<&&Ct.touchPress(je.currentTarget),!X&&typeof F.onPointerUp=="function"&&F.onPointerUp(je)},onFocus:je=>{qe(!0),ea()||It(),!X&&typeof F.onFocus=="function"&&F.onFocus(je)},onBlur:je=>{qe(!1),X||Dt(je),xt(),!X&&typeof F.onBlur=="function"&&F.onBlur(je)},children:[pt(),St?n.jsx("span",{id:Ye,hidden:!0,"aria-label":St}):null]}),st&&I?n.jsx(qn,{anchorRect:gt,title:I.title,items:I.items,onClose:Ge}):st&&_t?n.jsx(Mn,{anchorRect:gt,text:_t,onClose:Ge}):null]})}const fe=o.forwardRef(Ay);fe.displayName="Button";function Rt(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Oa={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},wo=new WeakMap;function Bo(e){if(e)return wo.get(e)}function tn(e,t){e&&(e.style.setProperty(Oa.title,t.title),e.style.setProperty(Oa.description,t.description),wo.set(e,t))}function nn(e){e&&(e.style.removeProperty(Oa.title),e.style.removeProperty(Oa.description),wo.delete(e))}const di={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function pi(){const e=Rt(di,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const hi={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function mi(){const e=Rt(hi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Ci={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function fi(){const e=Rt(Ci,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const bi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function gi(){const e=Rt(bi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const yi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function vi(){const e=Rt(yi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const _i={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function xi(){const e=Rt(_i,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const wi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Bi(){const e=Rt(wi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ai(){const e=Rt(ki,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ni={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Ei(){const e=Rt(Ni,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Di={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Si(){const e=Rt(Di,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const ji={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ti(){const e=Rt(ji,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Mi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Li(){const e=Rt(Mi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const $i={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ri(){const e=Rt($i,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Pi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Fi(){const e=Rt(Pi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const sn=(e,t,a)=>({key:e,get label(){return Kt.t(`promoBannerBg.${e}`,t)},textTone:a}),Ny=[sn("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),sn("soft","\uC18C\uD504\uD2B8","dark"),sn("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),sn("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),sn("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),sn("warm","\uC6DC(\uAC15\uC870)","dark"),sn("dark","\uB2E4\uD06C","light"),sn("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),sn("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),sn("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),sn("outline","\uC544\uC6C3\uB77C\uC778","dark"),sn("success","\uC131\uACF5/\uC644\uB8CC","light"),sn("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),sn("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Ii={main:pi,soft:mi,sub:fi,deep:gi,softSub:vi,warm:xi,dark:Bi,radial:Ai,diagonal:Ei,dots:Si,outline:Ti,success:Li,naver:Ri,instagram:Fi};function Oi({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:l=1.4}={}){const i=w=>Math.max(a,Math.min(r,Number(w))),u=w=>{try{const y=localStorage.getItem(w),k=y?Number(y):1;return Number.isFinite(k)?i(k):i(1)}catch{return i(1)}},[c,d]=o.useState(()=>u(e)),[h,p]=o.useState(e);h!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const m=w=>{d(typeof w=="function"?y=>i(w(y)):i(w))},b=()=>m(w=>+(w+s).toFixed(6)),v=()=>m(w=>+(w-s).toFixed(6)),C=c<r-Number.EPSILON,f=c>a+Number.EPSILON,x=Math.round(t*c),g=Math.round(x*l);return{scale:c,setScale:m,increase:b,decrease:v,canIncrease:C,canDecrease:f,fontSize:x,lineHeight:g}}function zi(e,t){const a=Ia(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const ko=" \xB7 ",Wi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(ko)?e.split(ko).pop()??e:e})(),Ey=o.createContext(!1),ta=[];let Hi=null;function Dy(e){const t=o.useContext(Ey);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;ta.length===0&&(Hi=document.title);const a={text:Wi?`${e}${ko}${Wi}`:e};return ta.push(a),document.title=a.text,()=>{const r=ta.lastIndexOf(a);r>=0&&ta.splice(r,1),document.title=ta.length?ta[ta.length-1].text:Hi??document.title}},[e,t])}const Ao=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}],Sy=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function fn(e,t){return Sy().compare(e,t)}const br=new Map;function jy(e){const t=br.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let l=r.exec(e);l;l=r.exec(e)){let i=l.index,u=l[0];u[0]==="-"&&i>0&&!/\s/.test(e[i-1])&&(i+=1,u=u.slice(1)),i>s&&a.push(e.slice(s,i)),a.push(Number(u)),s=l.index+l[0].length}return s<e.length&&a.push(e.slice(s)),br.size>5e3&&br.clear(),br.set(e,a),a}function Ty(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function My(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const l=(d,h)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=Ty(h);return p!==null?[p]:jy(h)},i=l(e,r),u=l(t,s),c=Math.min(i.length,u.length);for(let d=0;d<c;d++){const h=i[d],p=u[d];if(typeof h=="number"&&typeof p=="number"){if(h!==p)return h-p;continue}if(typeof h=="number")return-1;if(typeof p=="number")return 1;const m=fn(h,p);if(m!==0)return m}return i.length!==u.length?i.length-u.length:fn(r,s)}const Vi=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function gr(e,t,a){const r=Vi(e),s=Vi(t);if(r||s)return r===s?0:r?1:-1;const l=My(e,t);return a?l:-l}function Ly(e,t,a){const{t:r}=_e.useTranslation(),[s,l]=o.useState(()=>{const v=a?.initialPageSize;return v&&Ao.some(C=>C.value===v)?v:"25"}),[i,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),i!==1&&u(1));const h=o.useMemo(()=>Ao.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),p=o.useCallback(v=>{Ao.some(C=>C.value===v)&&(l(v),u(1))},[]),m=Math.max(1,Math.ceil(e.length/Number(s))),b=Math.min(Math.max(1,Number.isFinite(i)?Math.floor(i):1),m);return i!==b&&u(b),{pageRows:o.useMemo(()=>e.slice((b-1)*Number(s),b*Number(s)),[e,b,s]),pageSizeProps:{options:h,value:s,onChange:p},paginationProps:{page:b,total:m,onChange:u},setPage:u}}function $y(e){const[t,a]=o.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const l=o.useCallback(c=>{const d=r.current,h=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=h,a(h),s.current?.(h)},[]),i=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>l(d)}),[t,l]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:h,asc:p}=t;return[...c].sort((m,b)=>gr(d(m,h),d(b,h),p))},[t]);return{sort:t,field:i,sortRows:u}}const kn="\uC804\uCCB4";Object.fromEntries(Object.entries(df).map(([e,{nucleus:t}])=>[e,t]));const Ry={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},Py={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},Fy={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function Iy(e,t){if("place"in t)return Ry[t.place](e);const a=Py[t.vowel](e);return t.glide?`${a} \xB7 ${Fy[t.glide](e)}`:a}const Oy=(e,{defaultValue:t})=>t,qi=(e,t)=>({jamos:e,phonetic:t,tooltip:Iy(Oy,t)}),Ln=(e,t)=>t.map(a=>qi([a],{place:e})),Yt=(e,t,a)=>qi([...e],a?{vowel:t,glide:a}:{vowel:t}),No={cho:[Ln("labial",["\u3142","\u3143","\u314D","\u3141"]),Ln("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Ln("alveolar",["\u3145","\u3146"]),Ln("palatal",["\u3148","\u3149","\u314A"]),Ln("velar",["\u3131","\u3132","\u314B"]),Ln("glottal",["\u314E"])],jung:[[Yt("\u3163","frontHigh"),Yt("\u315F","frontHigh","w"),Yt("\u3162","frontHigh","velar")],[Yt("\u3161","backHighUnrounded")],[Yt("\u315C","backHighRounded"),Yt("\u3160","backHighRounded","j")],[Yt("\u3154\u3150","frontMid"),Yt("\u3156\u3152","frontMid","j"),Yt("\u3159\u315A\u315E","frontMid","w")],[Yt("\u3153","backMidUnrounded"),Yt("\u3155","backMidUnrounded","j"),Yt("\u315D","backMidUnrounded","w")],[Yt("\u3157","backMidRounded"),Yt("\u315B","backMidRounded","j")],[Yt("\u314F","low"),Yt("\u3151","low","j"),Yt("\u3158","low","w")]],jong:[Ln("labial",["\u3142","\u3141"]),Ln("alveolar",["\u3137","\u3134","\u3139"]),Ln("velar",["\u3131","\u3147"])]},zy=e=>e===Wy?[]:Array.from(e),Wy="__NO_CODA__",Eo=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),Ui={cho:Eo(No.cho),jung:Eo(No.jung),jong:Eo(No.jong)};Ui.jung.flat().forEach(({v:e})=>{for(const t of zy(e));}),new Set(Ui.cho.flat().map(e=>e.v));function Hy(e,t=!0){const a=Ia(e);o.useEffect(()=>{if(t)return Qn(()=>{a.current?.()})},[t,a])}function za(){const[e,t]=o.useState(null),a=o.useCallback(l=>t(l.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(l=>{const i=l.getBoundingClientRect();t(u=>u?null:i)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function Vy(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),l=o.useRef(null);o.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const i=o.useCallback((c,d)=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{a(c),s(d)},e)},[e]),u=o.useCallback(()=>{l.current&&clearTimeout(l.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:i,close:u}}function Gi(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[l,i]=o.useState(0),u=o.useCallback((p,m)=>{s(m),a(p),i(b=>b+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),h=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:l,showToast:u,showWarning:c,showNormal:d,clearToast:h}}function Wa(e){let t=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Ha({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,l]=o.useState(!1),[i,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),h=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&h()},[s,h]),o.useEffect(()=>{if(!s)return;let b=d.current?.offsetHeight??0;b>0&&h();let v=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const A=d.current?.offsetHeight??0;if(A!==b){if(b=A,++v>4){C?.disconnect(),C=null;return}h()}}),C.observe(d.current));const f=A=>{const B=A.target;r&&B.closest?.(r)||c.current?.contains(B)||d.current?.contains(B)||l(!1)};document.addEventListener("mousedown",f),document.addEventListener("pointerdown",f);let x=null;const g=()=>{if(typeof requestAnimationFrame>"u"){h();return}x===null&&(x=requestAnimationFrame(()=>{x=null,h()}))},w=A=>{d.current?.contains(A.target)||(t==="reposition"?g():t==="close"&&l(!1))};t!=="ignore"&&window.addEventListener("scroll",w,!0);const y=()=>{a==="reposition"?g():a==="close"&&l(!1)};let k=null;const _=()=>{y(),k&&clearTimeout(k),k=setTimeout(()=>{k=null,a==="reposition"&&h()},250)};return a!=="ignore"&&(window.addEventListener("resize",y),window.addEventListener("orientationchange",_)),()=>{x!==null&&cancelAnimationFrame(x),C?.disconnect(),document.removeEventListener("mousedown",f),document.removeEventListener("pointerdown",f),t!=="ignore"&&window.removeEventListener("scroll",w,!0),a!=="ignore"&&(window.removeEventListener("resize",y),window.removeEventListener("orientationchange",_)),k&&clearTimeout(k)}},[s,h,t,a,r]),o.useEffect(()=>{if(s)return Qn(()=>l(!1))},[s]);const p=o.useCallback(()=>l(b=>!b),[]),m=o.useCallback(()=>l(!1),[]);return{open:s,setOpen:l,toggle:p,close:m,style:i,triggerRef:c,menuRef:d}}function qy(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:l=1100,feedbackMs:i=1500}={}){const[u,c]=o.useState([]),[d,h]=o.useState(0),[p,m]=o.useState("idle"),[b,v]=o.useState(null),[C,f]=o.useState([]),[x,g]=o.useState(null),[w,y]=o.useState(0),k=o.useRef(0),_=o.useCallback(R=>{k.current=typeof R=="function"?R(k.current):R,y(k.current)},[]),A=o.useRef(r),B=o.useRef(s);o.useEffect(()=>{A.current=r,B.current=s},[r,s]);const E=o.useRef([]),D=()=>{E.current.forEach(clearTimeout),E.current=[]},N=(R,q)=>{E.current.push(setTimeout(q,R))};o.useEffect(()=>()=>D(),[]);const $=u[d]?.id??null,L=o.useRef(null),U=o.useCallback(()=>{D(),m("playing"),f([]),g(null),_(0);let R=0;e.forEach((q,Z)=>{N(R,()=>{h(Z),v(q.id),A.current?.(q)}),N(R+1e3,()=>{v(null),f(z=>[...z,q.id])}),R+=1300}),N(R,()=>{m("done"),B.current?.({score:0,total:e.length})})},[e,_]),M=o.useCallback((R,q)=>{if(q>=R.length){m("done"),B.current?.({score:k.current,total:R.length});return}L.current=null,h(q),g(null),m("playing"),v(R[q].id),A.current?.(R[q]),N(l,()=>{v(null),m("waiting")})},[l]),P=o.useCallback(()=>{D();const R=Ra(e);c(R),_(0),f([]),M(R,0)},[e,M,_]),T=o.useCallback(()=>{t==="playback"?(c(e),U()):P()},[t,e,U,P]),ee=o.useCallback(()=>{D(),m("idle"),v(null),f([]),g(null),h(0),_(0),c([])},[_]),te=JSON.stringify(e.map(R=>[R.id,R.label,R.angleDeg,R.deg,R.row,R.shortcut]));o.useEffect(()=>(a?T():ee(),()=>D()),[t,te,a]);const I=o.useCallback(R=>{p!=="waiting"||t==="playback"||L.current===d||(L.current=d,g(R),R===u[d]?.id&&_(q=>q+1),t==="exam"?(m("playing"),N(400,()=>M(u,d+1))):(m("feedback"),N(i,()=>M(u,d+1))))},[p,t,u,d,M,i,_]),Y=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:b,playedIds:C,selectedId:x,answerId:$,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:I},index:d,total:Y,score:w,phase:p,done:p==="done",start:T,reset:ee}}const Do=new Map,So=new Map,Uy=()=>()=>{},Gy=()=>!0,Ky=()=>!1;function Ki(e){const t=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!t)return null;try{if(!t[1])return decodeURIComponent(t[2]);const a=Uint8Array.from(atob(t[2]),r=>r.charCodeAt(0));return new TextDecoder("utf-8").decode(a)}catch{return null}}function Yy(e){if(typeof window>"u")return"";const t=(a,r)=>{const s=r.attrName.toLowerCase(),l=r.attrValue.trim();(s==="href"||s==="xlink:href")&&!l.startsWith("#")&&(r.keepAttr=!1),(s==="style"||l.includes("\\")&&l.includes("("))&&(r.keepAttr=!1);const i=l.replace(/url\s*\(\s*(['"]?)#[^)\s'"]+\1\s*\)/gi,"");/url\s*\(/i.test(i)&&(r.keepAttr=!1)};da.addHook("uponSanitizeAttribute",t);try{return da.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","style","foreignObject"]})}finally{da.removeHook("uponSanitizeAttribute",t)}}function Zy(e,t){const a=new Set;for(const i of e.matchAll(/url\(\s*(['"]?)#([^)\s"']+)\1\s*\)/g))a.add(i[2]);for(const i of e.matchAll(/(?:xlink:)?href="#([^"]+)"/g))a.add(i[1]);const r=new Set([...e.matchAll(/id="([^"]*)"/g)].map(i=>i[1])),s=[...a].filter(i=>r.has(i));if(s.length===0)return e;let l=e;for(const i of s){const u=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=`${t}-${i}`;l=l.replace(new RegExp(`id="${u}"`,"g"),`id="${c}"`).replace(new RegExp(`url\\(\\s*(['"]?)#${u}\\1\\s*\\)`,"g"),(d,h)=>`url(${h}#${c}${h})`).replace(new RegExp(`((?:xlink:)?href)="#${u}"`,"g"),`$1="#${c}"`)}return l}function Xy(e){const t=So.get(e);if(t)return t;const a=fetch(e).then(r=>r.ok?r.text():null).then(r=>(r!=null&&Do.set(e,r),r)).catch(()=>null).finally(()=>{So.delete(e)});return So.set(e,a),a}function Jy(e,t=!0){const a=o.useSyncExternalStore(Uy,Gy,Ky)&&t&&e?Ki(e)??Do.get(e)??null:null,[r,s]=o.useState({src:e,enabled:t,svg:a});return o.useEffect(()=>{if(!t||!e){s({src:e,enabled:t,svg:null});return}const l=Ki(e)??Do.get(e)??null;if(l!==null){s({src:e,enabled:t,svg:l});return}let i=!0;return Xy(e).then(u=>{i&&s({src:e,enabled:t,svg:u})}),()=>{i=!1}},[e,t]),r.src===e&&r.enabled===t?r.svg:a}function Qy({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:l,size:i="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:h=""}){const p=s??l??"main",m=o.useRef(null),[b,v]=o.useState("main"),C=yn("(max-width: 767px)"),f=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const w=m.current;if(!w)return;const y=Bo(w),k=(_,A,B)=>{if(B!==void 0)w.style.setProperty(A,B),f.current[_]=!0;else if(f.current[_]){const E=y?.[_];E?w.style.setProperty(A,E):w.style.removeProperty(A),f.current[_]=!1}};k("title","--promo-banner-bg-title",c),k("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const w=m.current;if(!w)return;const y=Bo(w);v(y?.actionVariant??"main")},[p]);const x=Be("promo-banner",`promo-banner--${i}`,h),g=Ii[p];return n.jsxs("div",{ref:m,className:x,role:"note",children:[n.jsx(g,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${i==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(fe,{htmlType:"button",size:40,variant:u??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function e2({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:l}=_e.useTranslation(),i=s??l("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,h]=o.useState(0),[p,m]=o.useState(!1),[b,v]=o.useState(!1),[C,f]=o.useState(!1),x=o.useRef(null),g=o.useRef(null),w=o.useRef(null),y=_o(),k=p||b||C,_=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||k||y)return;const B=window.setInterval(()=>h(E=>(Math.min(E,c-1)+1)%c),t);return()=>window.clearInterval(B)},[c,t,k,y]);const A=B=>{g.current!=null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null,f(!1)},B)};return o.useEffect(()=>()=>{g.current!=null&&window.clearTimeout(g.current)},[]),o.useEffect(()=>{if(!C)return;const B=E=>{E.pointerType==="touch"&&(w.current&&w.current.contains(E.target)||(g.current!=null&&(window.clearTimeout(g.current),g.current=null),f(!1)))};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[C]),c===0?null:n.jsxs("section",{ref:w,className:Be("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:B=>{x.current=B.pointerType},onPointerDown:B=>{x.current=B.pointerType,B.pointerType==="touch"&&(g.current!=null&&(window.clearTimeout(g.current),g.current=null),f(!0))},onPointerUp:B=>{B.pointerType==="touch"&&A(5e3)},onPointerCancel:B=>{B.pointerType==="touch"&&A(5e3)},onMouseEnter:()=>{x.current!=="touch"&&m(!0)},onMouseLeave:()=>m(!1),onFocus:B=>{let E=!0;try{E=B.target.matches(":focus-visible")}catch{E=!0}v(E)},onBlur:B=>{B.currentTarget.contains(B.relatedTarget)||v(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${_*100}%)`},children:u.map((B,E)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":E!==_,...E!==_?{inert:!0}:{},children:B},E))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[_]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((B,E)=>n.jsx("button",{type:"button",className:`top-banner__dot${E===_?" top-banner__dot--active":""}`,"aria-label":l("topBanner.dotAriaLabel",{count:c,index:E+1,defaultValue:`${c}\uAC1C \uC911 ${E+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":E===_,onClick:()=>h(E)},E))})]})}function t2({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:l="body-2",bodyClassName:i="body-2",className:u=""}){const{t:c}=_e.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const h=d.currentTarget.closest('[role="list"]');if(!h)return;const p=Array.from(h.querySelectorAll("[data-accordion-header]")),m=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[m+1]:p[m-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${l}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(ot,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${i}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function n2({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[l,i]=o.useState({index:t}),u=(c,d)=>l.id!=null&&c.id!=null?c.id===l.id:l.id==null&&d===l.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(t2,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>i(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:s},c.id??d))})}function a2(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function r2(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function o2(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function Dn({children:e,icon:t,number:a,position:r="top-left",size:s=24,animate:l=!1,onClick:i,"aria-label":u,"aria-hidden":c,className:d=""}){const{t:h}=_e.useTranslation(),p=t??"check",m=a!==void 0,b=e!==void 0||m?"number":p,v=e!==void 0?void 0:m?h("badge.nthSelected",{n:a,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:h("badge.selected","\uC120\uD0DD\uB428"),remove:h("badge.remove","\uC81C\uAC70"),minus:h("badge.exclude","\uC81C\uC678")}[p],C=c?void 0:u??v;return n.jsxs("span",{className:Be("circle-badge",`circle-badge--${b}`,`circle-badge--${s}`,`circle-badge--${r}`,l?"circle-badge--animate":"",i?"circle-badge--clickable":"",d),onClick:i,onKeyDown:i?f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),f.currentTarget.click())}:void 0,"aria-label":C,"aria-hidden":c||void 0,role:i?"button":C?"img":void 0,tabIndex:i?0:void 0,children:[e??(m?a:null),e===void 0&&!m&&p==="check"&&n.jsx(a2,{}),e===void 0&&!m&&p==="remove"&&n.jsx(r2,{}),e===void 0&&!m&&p==="minus"&&n.jsx(o2,{})]})}function Va({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=_e.useTranslation(),l=r==="small"?40:48,[i,u]=o.useState([]),c=o.useMemo(()=>{const f=[{title:null,columns:e}];let x=e;for(const g of i){const w=x?.[g.ci]?.items?.[g.ii];if(!w||!Array.isArray(w.children)||!w.children.length)break;x=[{title:null,items:w.children}],f.push({title:w.label||null,columns:x})}return f},[e,i]),d=c[c.length-1],h=c.length-1,p=o.useCallback(()=>u(f=>f.slice(0,Math.max(0,Math.min(f.length,h)-1))),[h]),m=o.useRef(null),b=o.useRef(null),v=c.length;o.useEffect(()=>{b.current||(b.current=document.activeElement);let f=0,x=0;const g=()=>{const w=m.current?.querySelector("button:not([disabled])");if(w&&w.offsetParent){w.focus({preventScroll:!0});return}x++<20&&(f=requestAnimationFrame(g))};return f=requestAnimationFrame(g),()=>cancelAnimationFrame(f)},[v]),o.useEffect(()=>()=>{b.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((f,x,g)=>{if(f){if(Array.isArray(f.children)&&f.children.length){u(w=>[...w.slice(0,h),{ci:x,ii:g}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,h]);return n.jsxs("div",{className:se(`menu-tooltip menu-tooltip--${r} ${a}`),children:[(c.length>1||d.title)&&n.jsxs("div",{className:se("menu-tooltip__header"),children:[c.length>1?n.jsx(fe,{htmlType:"button",size:l,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:se("menu-tooltip__title button-1"),children:d.title})]}),n.jsx("div",{className:se("menu-tooltip__columns"),ref:m,children:d.columns&&d.columns.map((f,x)=>{const g=(f.items||[]).some(w=>!!w.icon||w.selected!==void 0);return n.jsxs("div",{className:se("menu-tooltip__column"),children:[f.title?n.jsx("div",{className:se("menu-tooltip__column-title body-3"),children:f.title}):null,n.jsx("div",{className:se("menu-tooltip__items"),children:(f.items||[]).map((w,y)=>n.jsxs(o.Fragment,{children:[w.separatorBefore&&y>0&&n.jsx("div",{className:se("menu-tooltip__separator"),role:"separator"}),n.jsx(fe,{htmlType:"button",className:se("menu-tooltip__item"),size:l,type:w.label?"bar":"dot",icon:w.selected?"check":w.icon||(g||!w.label?"none":void 0),rightIcon:Array.isArray(w.children)&&w.children.length?"chevron-right":w.badgeCount?n.jsx(Dn,{position:"inline",number:Math.min(w.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:w.label,ariaLabel:w.label&&w.badgeCount&&w.badgeCount>0?s("nav.badgeLabel",{label:w.label,count:w.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):w.label,onClick:()=>C(w,x,y),selected:w.selected,disabled:w.disabled,showTooltipInfo:w.tooltip||!1,useBorder:!1,align:"left"})]},y))})]},x)})})]})}const Yi=".content-area";function jo(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(Yi);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&At("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${Yi}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const To=52,yr=10,Zi=e=>e&&e>0?e:0;function Xi({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:l=[],scrollContainer:i}){const{t:u}=_e.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",h=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[m,b]=o.useState(0),v=e.length;o.useEffect(()=>{const R=p.current;if(!R)return;const q=()=>{const j=typeof getComputedStyle=="function"?getComputedStyle(R):null,F=R.clientWidth-(parseFloat(j?.paddingLeft??"")||0)-(parseFloat(j?.paddingRight??"")||0),O=R.querySelector(".bottom-nav__left"),G=O?.nextElementSibling,ie=(O?.offsetWidth??0)+(O&&G?.classList.contains("bottom-nav__divider")?G.offsetWidth:0);b(Math.max(0,F-ie))};if(q(),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(q);Z.observe(R);const z=R.querySelector(".bottom-nav__left");return z&&Z.observe(z),()=>Z.disconnect()},[s]);const C=To+1,f=R=>Math.max(0,Math.floor((R+yr)/(To+yr))),x=v*(To+yr)-yr<=m,g=m<=0||l.length===0&&x?v:Math.min(v,f(m-C)),w=m>0&&g<v,y=w?g:v,k=e.slice(0,y),_=e.slice(y),A=w||l.length>0,B=o.useCallback((R,q)=>({position:"fixed",bottom:window.innerHeight-R.top+8,right:window.innerWidth-R.right,zIndex:Wa(q)}),[]),E=o.useId(),{open:D,toggle:N,close:$,style:L,triggerRef:U,menuRef:M}=Ha({computeStyle:B,onScroll:"ignore",onResize:"reposition"}),P=o.useCallback((R,q)=>q>0?u("nav.badgeLabel",{label:R,count:q,defaultValue:"{{label}}, {{count}}\uAC1C"}):R,[u]),T=o.useCallback((R,q)=>q>0?u("nav.badgeInsideLabel",{label:R,count:q,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):R,[u]),ee=o.useCallback(()=>s?.(c),[s,c]),te=o.useMemo(()=>_.find(R=>!!R.key&&R.key===t)??l.find(R=>R.selected||R.key&&R.key===t),[_,t,l]),I=o.useMemo(()=>[{items:[..._.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:!!R.key&&R.key===t,closeOnSelect:!0,disabled:R.state==="disabled",onClick:()=>{R.state!=="disabled"&&(R.key&&a&&(a(R.key),jo(i,"BottomNav")),$())}})),...l.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===t),closeOnSelect:!0,onClick:()=>{R.onClick?.(),$()}}))]}],[_,l,t,a,$]),Y=[..._,...l].reduce((R,q)=>R+Zi(q.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:h,className:"bottom-nav-item",onClick:ee})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:k.map((R,q)=>{const Z=Zi(R.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:R.icon,ariaLabel:P(R.label,Z),selected:!!R.key&&R.key===t,disabled:R.state==="disabled",className:"bottom-nav-item",onClick:()=>{R.key&&(a?.(R.key),jo(i,"BottomNav"))}}),Z>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(Dn,{position:"top-right",number:Math.min(Z,99),size:24})})]},R.key??`__slot-${q}`)})}),A&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:U,className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:te?.icon??"ellipsis",ariaLabel:T(te?.label??u("nav.more","\uB354\uBCF4\uAE30"),Y),selected:!!te,className:"bottom-nav-item",onClick:N,"aria-expanded":D,"aria-controls":D?E:void 0}),Y>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(Dn,{position:"top-right",number:Math.min(Y,99),size:24})}),D&&hn.createPortal(n.jsx("div",{id:E,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:se("tooltip__content"),style:L,ref:M,children:n.jsx(Va,{columns:I,onClose:$})}),document.body)]})})]})]})}function Ji(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function Qi(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function s2(e){const{t}=_e.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:l,onSetting:i,onHelp:u,onFeedback:c,onAccount:d}=e||{},h="default";return s||l||i||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),l&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bell",ariaLabel:Qi(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:l,selected:a==="notifications"}),!!r&&r>0&&n.jsx(Dn,{number:Math.min(r,99),size:24,"aria-hidden":!0})]}),i&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:i,selected:a==="settings"}),u&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function eu(e){const{t}=_e.useTranslation(),{item:a,itemKey:r,label:s,icon:l,active:i,onClick:u,style:c,state:d,labelStyle:h}=e||{},p=a?.key??r??"",m=a?.label??s??"",b=a?.icon??l??"",v=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(ot,{icon:b,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),f=d==="disabled",x=`side-nav__item ${i?"active":""} ${d||""} ${f?"disabled":""} ${a?.child?"side-nav__item--child":""}`,g=o.useCallback(w=>{if(f)return;const y=w.detail>0;if(y)try{w.currentTarget.blur()}catch{}u?.(p,w.currentTarget,y)},[f,p,u]);return n.jsxs("button",{type:"button",className:x,onClick:g,"aria-label":typeof m=="string"?Qi(t,m,v):void 0,"aria-current":i?"page":void 0,style:c,"aria-disabled":f,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:h,children:m}),v>0&&n.jsx(Dn,{position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function tu(e){const{t}=_e.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:b,scrollContainer:v}=e||{},C=m==="manager",f=o.useCallback(()=>b?.(C?"malgwi":"manager"),[b,C]),x=o.useRef(null),[g,w]=o.useState(null);o.useEffect(()=>{const B=x.current;if(!B)return;let E=null;const D=()=>{const{scrollHeight:L,clientHeight:U,scrollTop:M}=B;if(L<=U+1){w(I=>I===null?I:null);return}const P=Math.max(24,U/L*U),T=U-P,ee=L-U,te={top:Math.round(M/ee*T),height:Math.round(P)};w(I=>I&&I.top===te.top&&I.height===te.height?I:te)},N=()=>{if(typeof requestAnimationFrame>"u"){D();return}E===null&&(E=requestAnimationFrame(()=>{E=null,D()}))};D(),B.addEventListener("scroll",N,{passive:!0});const $=typeof ResizeObserver<"u"?new ResizeObserver(N):null;$?.observe(B);for(const L of Array.from(B.children))$?.observe(L);return()=>{E!==null&&cancelAnimationFrame(E),B.removeEventListener("scroll",N),$?.disconnect()}},[a]);const y=o.useRef(null),k=o.useCallback(B=>{const E=x.current;E&&(B.preventDefault(),y.current={y:B.clientY,top:E.scrollTop},B.currentTarget.setPointerCapture(B.pointerId))},[]),_=o.useCallback(B=>{const E=x.current,D=y.current;!E||!D||(E.scrollTop=D.top+(B.clientY-D.y)*(E.scrollHeight/E.clientHeight))},[]),A=o.useCallback(B=>{y.current=null,B.currentTarget.hasPointerCapture(B.pointerId)&&B.currentTarget.releasePointerCapture(B.pointerId)},[]);return n.jsxs("nav",{ref:x,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[g&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:g.top,height:g.height},onPointerDown:k,onPointerMove:_,onPointerUp:A,onPointerCancel:A})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(B=>!B.section&&(B.key||B.label)).map((B,E)=>n.jsxs(o.Fragment,{children:[B.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(eu,{item:B,active:!!B.key&&B.key===r,state:B.disabled?"disabled":void 0,onClick:(D,N,$)=>{if(B.disabled)return;if(B.href){if(Ji(B.href)&&window.open(B.href,"_blank","noopener,noreferrer"),$)try{N?.blur()}catch{}return}if(s?.(B.key),jo(v,"SideNav"),!$)return;try{N?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const L=document.querySelector(".header");if(L){const U=typeof L.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&U&&L.matches(":hover"))){L.classList.add("header--force-collapsed");const M=()=>{L.classList.remove("header--force-collapsed"),L.removeEventListener("mouseenter",M)};L.addEventListener("mouseenter",M)}}}})]},B.key??`side-nav__item-${E}`)),b&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),b&&n.jsx(eu,{item:{key:"__mode-switch__",label:C?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:f})]}),n.jsx(s2,{activeKey:r,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p})]})}var vr='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',Mo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',l2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';function nu({appMode:e}){const{t}=_e.useTranslation(),a=e==="manager",r=a?Mo:vr,s=l2;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function au({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:b,scrollContainer:v}){const{t:C}=_e.useTranslation(),f=yn("(max-width: 767px)"),x=o.useMemo(()=>(a??[]).filter(L=>!L.section&&(L.key||L.label)).map(L=>({key:L.key,label:typeof L.label=="string"?L.label:void 0,icon:L.icon,state:L.disabled?"disabled":void 0,badgeCount:L.badge})),[a]),g=o.useCallback(L=>{const U=a?.find(M=>M.key===L);if(!U?.disabled){if(U?.href){Ji(U.href)&&window.open(U.href,"_blank","noopener,noreferrer");return}t?.(L)}},[a,t]),w=o.useMemo(()=>{const L=[];return i&&L.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:i}),u&&L.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:l,onClick:u}),d&&L.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),h&&L.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:h}),p&&L.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&L.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:c}),L},[C,i,u,d,h,p,c,l]),y=o.useCallback((L,U)=>({position:"fixed",top:L.bottom+8,right:Math.max(8,window.innerWidth-L.right),zIndex:Wa(U)}),[]),k=o.useId(),{open:_,toggle:A,close:B,style:E,triggerRef:D,menuRef:N}=Ha({computeStyle:y,onScroll:"ignore",onResize:"reposition"}),$=o.useMemo(()=>[{items:w.map(L=>({label:L.label,icon:L.icon,badgeCount:L.badgeCount,selected:L.selected??(!!L.key&&L.key===e),closeOnSelect:!0,onClick:()=>{L.onClick?.(),B()}}))}],[w,e,B]);return n.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(nu,{appMode:m}),n.jsxs("div",{className:"header__menu-button",ref:D,children:[n.jsx(fe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&l&&l>0?C("nav.badgeInsideLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:l,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":_,"aria-controls":_?k:void 0}),!!u&&!!l&&l>0&&n.jsx(Dn,{number:Math.min(l,99),size:24,"aria-hidden":!0}),_&&hn.createPortal(n.jsx("div",{id:k,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:se("tooltip__content"),style:E,ref:N,children:n.jsx(Va,{columns:$,onClose:B})}),document.body)]})]}),n.jsx(tu,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:t,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:b}),f&&n.jsx(Xi,{items:x,activeKey:e??void 0,onChange:g,scrollContainer:v,appMode:m,onAppModeChange:b})]})}const i2=au;function ln(e){const{type:t="dot",size:a,className:r="","aria-label":s,"aria-hidden":l,role:i}=e;(e.icon!==void 0||e.number!==void 0||e.position!==void 0||e.animate!==void 0||e.onClick!==void 0)&&At("badge-circle-props","[ihab/core] Badge \uAC00 \uC6D0\uD615 \uBC43\uC9C0\uC758 \uD504\uB86D(icon \xB7 number \xB7 position \xB7 animate \xB7 onClick)\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC6D0\uD615\uC740 \uC774\uC81C CircleBadge \uAC00 \uADF8\uB9BD\uB2C8\uB2E4 \u2014 Badge \uC758 dot \uB294 \uC791\uC740 \uC54C\uC57D \uC774\uB984\uD45C\uC785\uB2C8\uB2E4. \uADF8 \uC790\uB9AC\uB97C <CircleBadge \u2026/> \uB85C \uBC14\uAFB8\uC138\uC694."),i&&l&&At("badge-role-with-hidden",`[ihab/core] Badge \uAC00 role="${i}" \uACFC aria-hidden \uC744 \uD568\uAED8 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC228\uAE34 \uAC83\uC740 \uB0AD\uB3C5\uAE30\uC5D0 \uB07C\uC5B4\uB4E4 \uC218 \uC5C6\uC5B4 \uC544\uBB34\uAC83\uB3C4 \uC548 \uC77D\uD799\uB2C8\uB2E4 \u2014 \uB458 \uC911 \uD558\uB098\uB9CC \uC8FC\uC138\uC694.`);const{label:u,children:c,variant:d="default",fill:h="filled",minWidth:p,iconLeft:m,iconRight:b,color:v}=e,C=t==="bar",f=typeof a=="number"?"medium":a??"medium",x=(C?{small:"caption-2",medium:"body-3",large:"body-2"}:{small:"caption-2b",medium:"body-3b",large:"body-2b"})[f]??(C?"body-2":"body-2b"),g={small:12,medium:14,large:16}[f]??14,w=Be("badge",C?"badge--bar":"",`badge--${d}`,`badge--${f}`,h!=="filled"?`badge--${h}`:"",x,r),y=v?.startsWith("--")?`var(${v})`:v,k=p!==void 0||y?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...y?{"--badge-color":y}:{}}:void 0;return n.jsxs("span",{className:w,style:k,"aria-label":l?void 0:s,role:i??(s&&!l?"img":void 0),"aria-hidden":l||void 0,children:[m&&n.jsx(ot,{icon:m,size:g,className:"badge__icon"}),u??c,b&&n.jsx(ot,{icon:b,size:g,className:"badge__icon"})]})}const u2=()=>Kt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function ru(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return ma(`${t.toLocaleString("ko-KR")}\uC6D0`)}return ma(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function c2(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function d2(e){if(e.durationDays&&e.durationDays>0){const l=e.durationDays;return l%365===0?`${l/365}\uB144`:`${l}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||u2()}function p2(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function ou(e){return{type:e.type??c2(e),plan:d2(e),label:e.label,price:ru(e.price),originalPrice:ru(e.originalPrice),discountLabel:e.discountLabel}}var h2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko_mono" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',m2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko_mono" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z" fill="%23fff"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z" fill="%23fff"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',su='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="%23fff"/></svg>';const na={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Lo=new WeakMap;function C2(e){if(e)return Lo.get(e)}function $n(e,t){e&&(e.style.setProperty(na.text,t.text),e.style.setProperty(na.sub,t.sub),t.copyrightColor&&e.style.setProperty(na.copyright,t.copyrightColor),Lo.set(e,t))}function Rn(e){e&&(e.style.removeProperty(na.text),e.style.removeProperty(na.sub),e.style.removeProperty(na.copyright),Lo.delete(e))}const lu={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function iu(e={}){const t=Rt(lu,$n,Rn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${su}")`}})]})}const uu="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71Z",ba=240;var qa='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB" xmlns="http://www.w3.org/2000/svg" width="240" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 240 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/></svg>';const f2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"},b2=100,g2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function cu(e={}){const t=Rt(f2,$n,Rn),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:g2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*b2/ba}) translate(${-ba/2} ${-ba/2})`,opacity:i,children:n.jsx("path",{d:uu,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${qa}")`}})]})}const y2={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",logoColor:"_mono",copyrightColor:"#ffffff"},v2=100,_2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function x2(e={}){const t=Rt(y2,$n,Rn),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:_2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*v2/ba}) translate(${-ba/2} ${-ba/2})`,opacity:i,children:n.jsx("path",{d:uu,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${su}")`}})]})}const w2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function B2(e={}){const t=Rt(w2,$n,Rn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${qa}")`}})]})}const k2={Logo_SpeechEar_ko:{"":vr,_mono:h2},Logo_SpeechEarManager_ko:{"":Mo,_mono:m2}};function A2(e,t){if(e)return k2[e]?.[t??""]??void 0}const N2={speechear:vr,manager:Mo},E2={speechear:"Logo_SpeechEar_ko",manager:"Logo_SpeechEarManager_ko"},du=10;function D2(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function pu(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function S2(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Kt.t("passCard.specialLabel");return r?n.jsx(B2,{}):s?n.jsx(x2,{}):n.jsx(cu,{})}return n.jsx(iu,{})}function hu({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:l,remainingSeconds:i,endInclusive:u=!1,state:c="active",bg:d,bgOnly:h=!1,textColor:p,subColor:m,copyrightColor:b,logoSrc:v,label:C,price:f,originalPrice:x,discountLabel:g,onUse:w,onRefund:y,onDelete:k}){const{t:_}=_e.useTranslation(),A=t?ou(t):void 0,B=s??A?.type??"speechear",E=r??A?.plan??_("passCard.planSuffix","\uC774\uC6A9\uAD8C"),D=C??A?.label,N=f??(a?A?.price:void 0),$=x??(a?A?.originalPrice:void 0),L=g??A?.discountLabel,U=o.useMemo(()=>{if(N)return null;const V=t?.durationDays??p2(t?.code);if(!V||V<=0)return i!=null?{percent:null,remainingLabel:pu(i,_)}:null;const W=V*86400;let oe;if(i!=null)oe=i;else if((c==="active"||c==="expired")&&l){const me=new Date(l).getTime();if(Number.isNaN(me))return null;const ke=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),Le=/^(\d{4})-(\d{2})-(\d{2})/.exec(Fa()),Me=Math.round(ke&&Le?(Date.UTC(+ke[1],+ke[2]-1,+ke[3])-Date.UTC(+Le[1],+Le[2]-1,+Le[3]))/864e5:(me-Date.now())/864e5);oe=Math.max(0,u?Me+1:Me)*86400}else c==="expired"?oe=0:oe=W;const xe=D2(oe),be=Math.max(0,Math.min(100,Math.floor(Math.min(xe,W)/W*100)));return c==="pending"&&be>=100?null:{percent:be,remainingLabel:c==="expired"?_("passCard.expired","\uB9CC\uB8CC\uB428"):pu(oe,_)}},[N,c,l,i,u,t?.durationDays,t?.code,_]),M=o.useRef(null),[P,T]=o.useState({}),[ee,te]=o.useState(null),I=!!(w||y||k),Y=o.useRef(!1),R=o.useRef(void 0),[q,Z]=o.useState(v);o.useLayoutEffect(()=>{Z(v)},[v]),o.useLayoutEffect(()=>{const V=M.current;V&&(p!==void 0&&V.style.setProperty("--pass-card-text",p),m!==void 0&&V.style.setProperty("--pass-card-sub",m),b!==void 0&&V.style.setProperty("--pass-card-copyright",b))},[p,m,b]),o.useLayoutEffect(()=>{const V=M.current;if(!V)return;const W=C2(V);if(!v){const oe=E2[B],xe=c==="expired"?"_mono":W?.logoColor??"",be=A2(oe,xe);Z(be)}},[d,v,B,c]);const z=V=>{const W=M.current;if(!W)return null;const{left:oe,top:xe,width:be,height:me}=W.getBoundingClientRect(),ke=(V.clientX-oe)/be-.5;return{rotateX:-((V.clientY-xe)/me-.5)*du,rotateY:ke*du}},j=(V,W)=>{const oe=W*-.7,xe=V*.7+10,be=20+(Math.abs(V)+Math.abs(W))*.4;return`${oe}px ${xe}px ${be}px rgba(0, 0, 0, 0.18)`},F=o.useCallback(V=>{if(ea())return;Y.current=!0,clearTimeout(R.current),R.current=setTimeout(()=>{Y.current=!1},200);const W=z(V);W&&T({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:j(W.rotateX,W.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=o.useCallback(V=>{if(ea())return;const W=z(V);if(!W)return;const oe=Y.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";T({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:j(W.rotateX,W.rotateY),transition:oe})},[]),G=o.useCallback(()=>{clearTimeout(R.current),Y.current=!1,T({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),ie=o.useCallback(()=>te(null),[]),K=o.useMemo(()=>{const V=_("passCard.planSuffix","\uC774\uC6A9\uAD8C"),W=E.replace("\uC774\uC6A9\uAD8C","").replace(V==="\uC774\uC6A9\uAD8C"?"":V,"").trim(),oe=W.match(/^(.*?)(일|년)$/);return oe?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:oe[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:oe[2]==="\uB144"?_("passCard.unitYear","\uB144"):_("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:W})},[E,_]),pe=o.useMemo(()=>{const V=ma(N);if(!V)return null;const W=V.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!W)return n.jsx("span",{className:"h1",children:V});const[,oe,xe,be]=W;return n.jsxs(n.Fragment,{children:[oe&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:oe}),n.jsx("span",{className:"h1 pass-card__price-amount",children:xe}),be.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:be.trim()})]})},[N]),X=o.useCallback(()=>{I&&te(V=>{if(V)return null;const W=M.current?.getBoundingClientRect();if(!W)return null;const oe=50;return{left:W.left,right:W.right,width:W.width,height:W.height,x:W.x,y:W.y+oe,top:W.top+oe,bottom:W.bottom+oe}})},[I]),H=o.useCallback(V=>{I&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),X())},[I,X]),ne=[{items:[...w?[{label:_("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{w(),te(null)},closeOnSelect:!0}]:[],...y?[{label:_("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{y(),te(null)},closeOnSelect:!0}]:[],...k?[{label:_("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{k(),te(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:M,className:`pass-card pass-card--${c}${I?" pass-card--clickable":""}`,style:P,onMouseEnter:F,onMouseMove:O,onMouseLeave:G,onPointerUp:V=>{V.pointerType==="touch"&&G()},onPointerCancel:V=>{V.pointerType==="touch"&&G()},onClick:X,onKeyDown:I?H:void 0,role:I?"button":void 0,tabIndex:I?0:void 0,"aria-label":e,"aria-haspopup":I?"menu":void 0,"aria-expanded":I?!!ee:void 0,children:[d??S2(B,E,D),!h&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:q??N2[B],className:"pass-card__logo",alt:B==="manager"?_("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):_("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:K}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:D?_("passCard.labeledPlan",{label:D}):_("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),N?n.jsxs("div",{className:"pass-card__price-area",children:[L&&n.jsx("span",{className:"pass-card__discount body-3",children:L}),n.jsxs("div",{className:"pass-card__price",children:[$&&n.jsx("span",{className:"pass-card__price-original body-3",children:ma($)}),pe]})]}):U?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:U.remainingLabel}),U.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:U.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),ee&&n.jsx(Bn,{anchorRect:ee,onClose:ie,ariaLabel:_("tooltip.menu","\uBA54\uB274"),children:n.jsx(Va,{columns:ne,onClose:ie,size:"small"})})]})}const j2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function T2(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=Rt(j2,$n,Rn);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${qa}")`}})]})}const M2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function L2(e={}){const t=Rt(M2,$n,Rn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${qa}")`}})]})}function $2(e,t){if(e){if(t==="manager_pro")return n.jsx(L2,{});if(t==="manager_standard")return n.jsx(T2,{});if(t==="manager_lite")return n.jsx(cu,{})}}function R2(e){const t=ma(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,l]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,l.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:l.trim()})]})}function P2(e){const{t}=_e.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:l,period:i="monthly",ownedCodes:u}=e||{},c=y=>!!y&&!!u?.includes(y),d=y=>y.onceOnly??/오픈\s*특가/.test(y.label??""),h=(s.tiers||[]).some(y=>d(y)&&c(y.code)),p=y=>{const k=y.prices?y.prices[i]:y.price;return k?(s.tiers||[]).some(_=>!!_.badge&&_.originals?.[i]===k):!1},m=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",b=t("payment.plan.freePrice","\uBB34\uB8CC"),v=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=y=>y.prices?y.prices[i]:y.price,f=(s.tiers||[]).length>0&&(s.tiers||[]).every(y=>{const k=C(y);return k==="\uBB34\uB8CC"||k===b||k==="0\uC6D0"||typeof k=="string"&&/\d/.test(k)&&!/[1-9]/.test(k)}),x=(s.tiers||[]).length>0&&(s.tiers||[]).every(y=>{const k=C(y);return k==="\uBB38\uC758"||k===v}),g=s.group==="org",w=g?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:m,"--plan-color":m},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(ln,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:m},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((y,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(ot,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),y]},k))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((y,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(ot,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),y]},k))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:f?null:x?n.jsx(fe,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&l?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(y=>{const k=y.label||a,_=d(y),A=_||y.openPromo===!0,B=k.replace(/^오픈\s*특가\s*/,"")||a,E=y.prices?y.prices[i]:y.price,D=y.badge?A?`${r}
|
|
822
|
+
and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",bizNo:"Business no.",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Sicheong-gil, Chuncheon, Gangwon, Korea",bizNoValue:"526-81-02926"},Sg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},jg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount_one:"Downloading {{n}} word",downloadingCount_other:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Tg={clearAriaLabel:"Clear input"},Mg={ariaLabel:"Select tab"},Lg={ariaLabel:"Tabs"},$g={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Rg={ariaLabel:"User avatar"},Pg={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"}},Fg={weekly:{title:"Weekly Training",daily:"Daily Listening"},homework:{title:"Homework Progress",totalRate:"Overall rate",done:"Done"},today:{tooltipTotal:"Total",tooltipDone:"Done"},visit:{title:"Linked Visit Records"},detail:"Details",detailFor:"{{name}} details"},Ig={time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"}},Og={steps:"Step {{current}} of {{total}}"},zg={skippedOnly_one:"{{n}} older record was excluded \u2014 it does not say what was answered.",skippedOnly_other:"{{n}} older records were excluded \u2014 they do not say what was answered.",runs_one:"{{count}} run",runs_other:"{{count}} runs"},Wg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Hg={viewWords:"Words"},Vg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},qg={chooseDate:"Choose a date",selectYear:"Select year",selectMonth:"Select month"},Ug={previewRegion:"Report preview \u2014 scrollable sideways"},Gg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Kg={place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Yg={clearSelection:"Clear selection"},Zg={showResult:"Show {{type}} result"},Xg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Jg={loading:"Loading"},Qg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},ey={ariaLabel:"Breadcrumb"},ty={empty:"No items yet."},ny={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},ay={common:ng,calendar:ag,passCard:rg,rating:og,colorPicker:sg,dropdown:lg,accordion:ig,header:ug,nav:cg,settings:dg,usage:pg,account:hg,training:mg,customers:Cg,payment:fg,coupons:bg,visits:gg,trainingType:yg,myWordTable:vg,keyWords:_g,wordTable:xg,wordSearch:wg,wordPrint:Bg,topic:kg,device:Ag,manager:Ng,wordPairs:Eg,footer:Dg,date:Sg,wordData:jg,textField:Tg,segmentedControl:Mg,tabs:Lg,fileUpload:$g,avatar:Rg,myHomework:Pg,trainingStatus:Fg,store:Ig,progress:Og,trainingMiss:zg,table:Wg,wordScore:Hg,topBanner:Vg,datePicker:qg,report:Ug,tooltip:Gg,phonemeProfile:Kg,bulkBar:Yg,debug:Zg,badge:Xg,loader:Jg,soundCompass:Qg,breadcrumb:ey,board:ty,promoBannerBg:ny};const ry="0.411.0",oy=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],fo="ko",sy="ihab_display_language";function Ql(){if(typeof window>"u")return fo;try{const e=localStorage.getItem(sy);if(e&&oy.some(t=>t.code===e))return e}catch{}return fo}function ei(e){try{document.documentElement.lang=e}catch{}}Kt.on("languageChanged",ei),ei(Ql()),Kt.use(_e.initReactI18next).init({resources:{ko:{translation:tg},en:{translation:ay}},lng:Ql(),fallbackLng:fo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const ly=new Map;try{Kt.store?.on?.("added",()=>ly.clear())}catch{}let hr=null,ti=null,ni=null;function iy(){const e=Wl();if(e&&e.entries.length>0){const t=vf();if(hr&&ti===e&&ni===t)return hr;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return hr=r,ti=e,ni=t,hr}return[]}new Proxy([],{get(e,t){const a=iy(),r=a[t];return typeof r=="function"?r.bind(a):r}});function uy(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function cy(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&uy(r.attrValue)&&(r.keepAttr=!1)};da.addHook("uponSanitizeAttribute",t);try{return da.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{da.removeHook("uponSanitizeAttribute",t)}}function dy(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),[l,i]=o.useState(null),[u,c]=o.useState(null),[d,h]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),i(null),c(null);return}const p=e.split("/").pop();let m=e;p&&(e.startsWith("/")?m=no(e):/^(Logo|Symbol)/i.test(p)?m=no(`logo/${p}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),i(null),c(null),a(e),s(m)},[e]),o.useEffect(()=>{if(!r)return;let p=!1;async function m(){try{let b=await fetch(r);b.ok||(b=await fetch(r));const v=b.headers.get("content-type")||"";if(p)return;if(v.includes("svg")){i("mask");return}if(v.startsWith("image/")){i("img");return}const C=await fetch(r);if(!C.ok)throw new Error("not ok");const f=await C.text();if(p)return;if(/^\s*<svg[\s>]/i.test(f)){const x=cy(f);if(!x){i("none");return}c(x),i("inline");return}i("none")}catch{p||i("none")}}return m(),()=>{p=!0}},[r]),o.useEffect(()=>{let p=!1,m=null;return l==="mask"&&r&&fetch(r).then(b=>{if(!b.ok)throw new Error("fetch failed");return b.blob()}).then(b=>{p||(m=URL.createObjectURL(b),h(m))}).catch(()=>{p||i("img")}),()=>{p=!0,m&&URL.revokeObjectURL(m),h(null)}},[l,r]),t===e?{iconToUse:r,mode:l,svgText:u,blobUrl:d}:{iconToUse:null,mode:null,svgText:null,blobUrl:null}}function ot(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:l,svgClassName:i,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",h=s??"iconRenderer-icon-image",p=l??"iconRenderer-icon-mask",m=i??"iconRenderer-icon-svg",b=typeof t=="string"?t:null,v=Q0(b),{iconToUse:C,mode:f,svgText:x,blobUrl:g}=dy(b),w=(B,E={})=>n.jsx("span",{className:d,style:u,...E,children:B}),y=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,k=(B,E={})=>n.jsx("img",{src:B,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:h,...E,style:y?{...E.style,...y}:E.style});if(!t)return null;if(typeof t!="string")return w(t);if(t==="none")return w(n.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(v)try{return w(o.createElement(v,{className:m,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(f==="mask"){const B={"--icon-url":g?`url(${g})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return w(n.jsx("span",{className:p,style:B}),{"aria-hidden":"true"})}return f==="img"?w(k(C,{onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):f==="inline"?w(n.jsx("span",{className:m,dangerouslySetInnerHTML:x?{__html:x}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return k(no(t),{style:u,onError:B=>{B.currentTarget.onerror=null,B.currentTarget.style.display="none"}});const _=typeof c=="number"?c:20,A=`<svg width="${_}" height="${_}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(n.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:A}}),{"aria-hidden":"true"})}function ai(e){const[t,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const l=o.useCallback(()=>{if(!e||r.current)return;const i=e();if(i&&typeof i.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};i.then(u,u)}},[e]);return{pending:t,press:l}}function py({icon:e,title:t,message:a,action:r,className:s}){const{pending:l,press:i}=ai(r?.onClick);return n.jsxs("div",{className:Be("empty-state",s),children:[e&&n.jsx(ot,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i,disabled:l,"aria-busy":l||void 0,children:[r.icon&&n.jsx(ot,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function hy({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:l}){const{t:i}=_e.useTranslation(),{pending:u,press:c}=ai(r);return n.jsxs("div",{className:Be("empty-state","error-state",l),role:"alert",children:[n.jsx(ot,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??i("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:c,disabled:u,"aria-busy":u||void 0,children:[n.jsx(ot,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??i("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function my({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:l=!1,onClick:i,className:u=""}){const c=o.useId(),d=`${c}-title`,h=`${c}-desc`,p=`${c}-cta`,m=()=>{l||i?.()};return n.jsx("section",{role:"button",tabIndex:l?-1:0,"aria-disabled":l||void 0,"aria-labelledby":d,"aria-describedby":`${h} ${p}`,onClick:m,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())},className:Be("action-card",`action-card--${s}`,l&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(ot,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:h,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(ot,{icon:"arrow-right",size:18})})]})]})})}function Cy({as:e="div",className:t="",children:a,storage:r,...s}){r&&O1({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const l=Be("ihabdevteam-core-scope",t);return n.jsx(e,{className:l,...s,children:a})}function fy(e){if(e.closest('[aria-hidden="true"], [hidden], [inert]'))return!1;for(let t=e;t;t=t.parentElement){const a=window.getComputedStyle(t);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!1}return!0}function bo(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const l=Array.from(a.querySelectorAll(En)).filter(fy);if(!l.length){s.preventDefault();return}const i=l[0],u=l[l.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===i||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),i.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,t])}const En='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',go=new WeakMap;function yo(e,t){e&&go.set(e,t)}function vo(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!go.has(r);)r=r.parentElement;if(!r)return t;t=go.get(r)??null}return t}function ri(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function mr(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(ri(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(En)).filter(c=>!(e&&e.contains(c))&&ri(c));let l=null,i=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?l=c:i||(i=c);const u=l??i;return u?.focus(),u}function by({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:l=!1,className:i=""}){const{t:u}=_e.useTranslation(),[c,d]=o.useState(!1),h=o.useRef(null),p=o.useCallback(()=>{const C=h.current;C&&C.contains(document.activeElement)&&mr(C),d(!0)},[]);if(c)return null;const m=`notice-box notice-box--${s} body-2 ${i}`.trim(),b=l&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:m,role:"note",children:[a.map((C,f)=>n.jsxs("div",{className:"notice-box__inner",children:[C.title?n.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,n.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?n.jsx("div",{children:C.lines.map((x,g)=>n.jsx("span",{className:"notice-box__line body-3",children:x},g))}):C.children??null})]},f)),b]});const v=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((C,f)=>n.jsx("li",{className:"notice-box__line",children:C},f))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:h,className:m,role:"note",children:[v,b]})}const gy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function Ca(e){const{t}=_e.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:l}=e||{},i=l||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":i,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":i,children:[n.jsx("span",{style:gy,children:i}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}const fa=[];let Cr=!1;function oi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=fa[fa.length-1];t&&(e.stopPropagation(),t())}function Qn(e){return fa.push(e),!Cr&&typeof document<"u"&&(document.addEventListener("keydown",oi),Cr=!0),()=>{const t=fa.lastIndexOf(e);t>=0&&fa.splice(t,1),fa.length===0&&Cr&&typeof document<"u"&&(document.removeEventListener("keydown",oi),Cr=!1)}}const si=o.createContext(null);function yy(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const li=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function vy(e){const t=o.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return Ps.useSyncExternalStore(t,()=>li(e),()=>!1)}function _y(e){const[t,a]=o.useState(li(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=i=>a(i.matches),l=r;return l.addEventListener?l.addEventListener("change",s):l.addListener&&l.addListener(s),a(r.matches),()=>{l.removeEventListener?l.removeEventListener("change",s):l.removeListener&&l.removeListener(s)}},[e]),t}const xy=typeof Ps.useSyncExternalStore=="function"?vy:_y;function yn(e){const t=o.useContext(si),a=xy(e);return t&&typeof t.mobile=="boolean"&&yy(e)?t.mobile:a}const wy="(prefers-reduced-motion: reduce)";function _o(){return yn(wy)}const ii={"menu-tooltip":"tooltip-menu","description-tooltip":"tooltip-description","text-box-tooltip":"tooltip-textbox","training-tooltip":"tooltip-training","word-image-tooltip":"tooltip-word-image","info-tooltip":"tooltip-info","noise-settings-tooltip":"noise-settings",tooltip__header:"tooltip-content__header",tooltip__content:"tooltip-content",tooltip__backdrop:"tooltip-backdrop",tooltip__portal:"tooltip-portal","word-table__section":"word-table-block","word-table__content":"word-table-block__content","word-table__card":"word-table-block__card","word-table__card-handle":"word-table-block__card-handle","word-table__card-close":"word-table-block__card-close","word-table__card-actions":"word-table-block__card-actions","word-table__edit-cell":"word-table-block__edit-cell","word-table__pair-divider":"word-table-block__pair-divider","chart-section__legend-dot":"manager-bar-chart-legend-dot","chart-section__legend-item":"manager-bar-chart-legend-item","chart-section__legend":"manager-bar-chart-legend","chart-section__controls":"manager-section-controls","chart-section__sub-row":"barchart-sub-row","chart-section__total":"barchart-total","chart-section":"manager-section","bar-chart__stack-segment":"manager-bar-chart-stack-segment","bar-chart__detail-btn":"manager-bar-chart-detail-btn","bar-chart__gridline":"manager-bar-chart-gridline","bar-chart__loading":"manager-bar-chart-loading","bar-chart__scroll":"manager-bar-chart-scroll","bar-chart__stack":"manager-bar-chart-stack","bar-chart__x-axis":"manager-bar-chart-x-axis","bar-chart__inner":"manager-bar-chart-inner","bar-chart__area":"manager-bar-chart-area","bar-chart__plot":"manager-bar-chart-plot","bar-chart__wrap":"manager-bar-chart-wrap","bar-chart__slot":"manager-bar-chart-slot","bar-chart__col":"manager-bar-chart-col","bar-chart__bar":"manager-bar-chart-bar","stat-chart__card":"manager-stat-card"};function By(e,t){const a=Object.keys(e).sort((r,s)=>s.length-r.length);for(const r of a){if(!t.startsWith(r))continue;const s=t.slice(r.length);if(!(s!==""&&!s.startsWith("__")&&!s.startsWith("--")))return e[r]+s}return null}function ky(e){return By(ii,e)}function se(e){if(!e||Object.keys(ii).length===0)return e;const t=[];for(const a of e.split(/\s+/)){if(!a)continue;const r=ky(a);r&&t.push(r)}return t.length?`${e} ${t.join(" ")}`:e}function Bn(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:l,closeOnOutsideClick:i=!0,className:u="",role:c="dialog",ariaLabel:d="",children:h,backdrop:p=!1,isMobilePopup:m=!1,useBorder:b=!0,header:v,focusOnOpen:C}=e||{},f=o.useRef(null),[x,g]=o.useState({position:"fixed",left:0,top:-9999}),[w,y]=o.useState(!1),[k,_]=o.useState("bottom"),[A,B]=o.useState(!1),[E,D]=o.useState(!1),N=!t&&!a,$=o.useRef(null),L=o.useCallback((R=!1,q=!1)=>{if(E&&m)return;const Z=a?a.getBoundingClientRect():t,z=q&&$.current?$.current:Z;if(!z||!f.current)return;const j=f.current,{offsetWidth:F,offsetHeight:O}=j,G=window.innerWidth,ie=window.innerHeight,K=G-z.right,pe=z.left,X=z.top,H=ie-z.bottom;let ne=0,V=0,W="top";if(X>=O+r)W="top",V=z.top-r-O,ne=z.left+z.width/2-F/2;else if(H>=O+r)W="bottom",V=z.bottom+r,ne=z.left+z.width/2-F/2;else if(K>=F+r)W="right",ne=z.right+r,V=z.top+z.height/2-O/2;else if(pe>=F+r)W="left",ne=z.left-r-F,V=z.top+z.height/2-O/2;else{const me=Math.max(X,H,K,pe);me===X?(W="top",V=z.top-r-O,ne=z.left+z.width/2-F/2):me===H?(W="bottom",V=z.bottom+r,ne=z.left+z.width/2-F/2):me===K?(W="right",ne=z.right+r,V=z.top+z.height/2-O/2):(W="left",ne=z.left-r-F,V=z.top+z.height/2-O/2)}const oe=Number.isFinite(Number(s))?Number(s):8;ne=Math.min(Math.max(ne,oe),G-F-oe),V=Math.min(Math.max(V,oe),ie-O-oe);const xe=Math.round(ne),be=Math.round(V);R&&f.current?(f.current.style.left=`${xe}px`,f.current.style.top=`${be}px`,f.current.dataset.placement=W):(_(W||k),g({position:"fixed",left:xe,top:be}),B(!0))},[E,m,a,t,r,s,k]);o.useEffect(()=>()=>{$.current=null},[a,t]),o.useLayoutEffect(()=>{if(N)return;if(E&&m){g({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),B(!0);return}$.current===null&&($.current=a?a.getBoundingClientRect():t??null),L(!1,!0);const R=requestAnimationFrame(()=>L(!1,!0));return()=>cancelAnimationFrame(R)},[t,a,r,h,s,N,E,m,L]),o.useEffect(()=>{if(N||E&&m||!f.current||typeof ResizeObserver>"u")return;const R=new ResizeObserver(()=>{t&&L()});return R.observe(f.current),()=>R.disconnect()},[t,h,s,N,E,m,L]),o.useEffect(()=>{if(N||E&&m)return;let R=null;const q=()=>{if(a&&($.current=a.getBoundingClientRect()),typeof requestAnimationFrame>"u"){L(!0);return}R===null&&(R=requestAnimationFrame(()=>{R=null,L(!0)}))},Z=z=>{if(!a&&l){const j=z.target;if(j&&f.current&&f.current.contains(j))return;try{if(j&&j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}ee.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",Z,{passive:!0,capture:!0}),()=>{R!==null&&cancelAnimationFrame(R),window.removeEventListener("resize",q),document.removeEventListener("scroll",Z,{capture:!0})}},[t,a,l,r,h,s,N,E,m,L]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const R=window.matchMedia("(max-width: 768px)"),q=()=>D(!!R.matches);q();try{R.addEventListener?R.addEventListener("change",q):R.addListener(q)}catch{try{R.addListener(q)}catch{}}return()=>{try{R.removeEventListener?R.removeEventListener("change",q):R.removeListener(q)}catch{}}},[]);const U=o.useRef(!1),M=o.useRef(null),P=_o(),T=o.useCallback((R=!1)=>{if(l&&!(w||U.current)){if(U.current=!0,R){y(!0);try{l&&l()}catch{U.current=!1,y(!1)}return}y(!0),M.current=setTimeout(()=>{M.current=null;try{l&&l()}catch{U.current=!1,y(!1)}},P?0:200)}},[w,l,y,P]);o.useEffect(()=>()=>{M.current&&clearTimeout(M.current)},[]),o.useEffect(()=>{if(N)return;const R=z=>{const j=f.current;if(!j)return;const F=z.target;if(F&&!j.contains(F)){try{if(F.closest&&F.closest("[data-tooltip-ignore]"))return}catch{}i&&T(!0)}},q=z=>{const j=f.current;if(!j)return;const F=z.target;if(F&&!j.contains(F)){try{if(F.closest&&F.closest("[data-tooltip-ignore]"))return}catch{}i&&T(!0)}},Z=z=>{if(z.key==="Tab"){const j=f.current;if(!j)return;const F=j.querySelectorAll(En);if(!F||F.length===0)return;const O=F[0],G=F[F.length-1],ie=document.activeElement;z.shiftKey?ie===O&&(z.preventDefault(),G.focus()):ie===G&&(z.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",R,!0),document.addEventListener("click",q,!0),document.addEventListener("keydown",Z),()=>{document.removeEventListener("pointerdown",R,!0),document.removeEventListener("click",q,!0),document.removeEventListener("keydown",Z)}},[l,i,T,N]);const ee=o.useRef(T);o.useEffect(()=>{ee.current=T});const te=!!l;o.useEffect(()=>{if(!(N||!te))return Qn(()=>ee.current())},[N,te]),o.useEffect(()=>{const R=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",R),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",R)}},[T]);const I=o.useRef(null);o.useEffect(()=>{if(N||C===!1||!A)return;const R=f.current;if(!R)return;const q=R.querySelector(En);if(q)return I.current=document.activeElement,q.focus({preventScroll:!0}),()=>{const Z=I.current;I.current=null,Z&&document.contains(Z)&&Z.focus({preventScroll:!0})}},[N,C,A]),o.useEffect(()=>{c==="dialog"&&!d&&At("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const Y=n.jsxs("div",{ref:f,className:se(`tooltip__content ${N?"tooltip__content--inline":""} ${b?"tooltip__content--bordered":""} ${w?"is-closing":""} ${u} ${E&&m?"is-mobile":""}`),role:c,"aria-label":d||void 0,style:N?{}:{...x,visibility:A?"visible":"hidden"},tabIndex:-1,"data-placement":k,"data-left":N?"":x.left,"data-top":N?"":x.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[v!=null&&n.jsx("div",{className:se("tooltip__header h5"),children:v}),h]});if(N||typeof document>"u")return Y;if(p||E&&m){const R=n.jsxs("div",{className:se("tooltip__portal"),children:[n.jsx("div",{className:se("tooltip__backdrop"),onClick:()=>{i&&T(!0)}}),Y]});return hn.createPortal(R,document.body)}return hn.createPortal(Y,document.body)}function Mn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:l="",ariaLabel:i}=e||{};return a?n.jsx(Bn,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:se(`info-tooltip ${l}`),ariaLabel:i||a,children:n.jsx("div",{className:se("info-tooltip__content body-3"),children:a})}):null}function qn(e){const{t}=_e.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:l=-1,showIndex:i=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0,columns:h}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:n.jsx(Bn,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:se("description-tooltip"),ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:se("description-tooltip__box"),children:[r&&n.jsx("span",{className:se("description-tooltip__title body-2"),children:r}),n.jsx("ol",{className:se(`description-tooltip__items${h&&h>1?" description-tooltip__items--columns":""}`),style:h&&h>1?{columnCount:h}:void 0,children:p.map((m,b)=>n.jsxs("li",{className:se(`description-tooltip__item body-3${b===l?" description-tooltip__item--active":""}`),children:[i&&p.length>1&&n.jsxs("span",{className:se("description-tooltip__index button-1"),children:[b+1,"."]}),m.color&&n.jsx("span",{className:se("description-tooltip__dot"),style:{background:m.color},"aria-hidden":"true"}),n.jsx("span",{children:m.text})]},b))})]})})}function Ia(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let xo=0,ui=!1;function ci(){ui||typeof document>"u"||(ui=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(xo=Date.now())},!0),document.addEventListener("touchstart",()=>{xo=Date.now()},{capture:!0,passive:!0}))}ci();function Un(e){return!!e&&e.pointerType==="touch"}function ea(e=1e3){return ci(),Date.now()-xo<e}function fr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const l=Ia(e),i=Ia(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const h=p=>{const m=p,b=p.target,v=a.current,C=!!(b&&v&&v.contains(b));if(m.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=l.current;return}u.current=null,l.current&&!(b&&b.closest?.(".tooltip__content"))&&i.current(!1,v)};return document.addEventListener("pointerdown",h,!0),()=>document.removeEventListener("pointerdown",h,!0)},[r,a,l,i]);const d=o.useCallback(h=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),i.current(!p,h??a.current),!0)},[a,i]);return o.useEffect(()=>{if(!r||!s)return;const h=a.current,p=h?.parentElement;if(!h||!p)return;let m=null;const b=f=>{const x=f.changedTouches?.[0];if(!x)return!1;const g=h.getBoundingClientRect();return x.clientX>=g.left&&x.clientX<=g.right&&x.clientY>=g.top&&x.clientY<=g.bottom},v=f=>{m=b(f)?l.current:null},C=f=>{const x=m;m=null,!(x===null||Date.now()-c.current<700||!b(f))&&(u.current=null,c.current=Date.now(),i.current(!x,h))};return p.addEventListener("touchstart",v,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",v),p.removeEventListener("touchend",C)}},[r,s,a,l,i]),{touchPress:d}}function Ay(e,t){const{size:a=48,type:r,htmlType:s,href:l,target:i,rel:u,icon:c,rightIcon:d,label:h,count:p,subLabel:m,children:b,ariaLabel:v,variant:C="default",align:f="center",nowrap:x=!1,selected:g,toggleable:w=!1,ariaExpanded:y,ariaControls:k,disabled:_=!1,loading:A=!1,useLabel:B=!0,useBorder:E=!0,useBG:D=!0,useDisabledCovered:N=!1,useDisabledInvisible:$=!1,useDisabledFilled:L=!1,width:U,minWidth:M,onClick:P,onDisabledClick:T,showTooltipInfo:ee=!1,tooltipInfoText:te=null,tooltipDescription:I=null,tooltipOnly:Y=!1,iconSize:R="medium",iconColor:q,shape:Z="rounded",color:z,className:j,...F}=e,O=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),G=O.match(/^\d+$/)?`button${O}`:`button-${O}`,ie=Number(a),K=!isNaN(ie)&&ie<40?"button-2":"button-1",pe=h??b,X=_||!!F.disabled,H=X?N?"disabled-covered":$?"disabled-invisibled":L?"disabled-filled":"disabled":C,ne=H?`button--variant-${H}`:"",V=f?`button--align-${f}`:"",W=x?"button--nowrap":"",oe=Z?`button--shape-${Z}`:"",xe=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,be={...U?{width:typeof U=="number"?`${U}px`:U}:{},...M?{minWidth:typeof M=="number"?`${M}px`:M}:{},...E?{}:{"--button-border":X?"0":"1px solid transparent"},...xe?{"--button-icon-color":xe}:{},...z?{"--color-main":z}:{}},me=B===!1?"":pe,ke=Array.isArray(me)?me.length>0:!!me,Le=!!d,Me=r??(ke||c||Le?"bar":"dot"),le=`${G}--${Me}`,ve=o.useRef(null);o.useEffect(()=>{!zn||s!==void 0||ve.current?.closest("form")&&At(`button-in-form:${typeof pe=="string"?pe:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof pe=="string"&&pe?` \uB2E8\uCD94: ${pe}`:""))},[s,pe]);const $e=o.useRef(t);$e.current=t;const Ae=o.useCallback(je=>{ve.current=je;const nt=$e.current;typeof nt=="function"?nt(je):nt&&(nt.current=je)},[]),Ie=o.useRef(X),[ze,dt]=o.useState(!!g),[st,et]=o.useState(!1),[gt,Se]=o.useState(null),Ge=o.useCallback(()=>et(!1),[]),[we,qe]=o.useState(!1),Ye=o.useId();o.useEffect(()=>{typeof g=="boolean"&&dt(g)},[g]),o.useEffect(()=>{if(Ie.current&&!X&&ve.current){const je=ve.current;let nt=!1;try{nt=je.matches(":focus:not(:focus-visible)")}catch{nt=!1}nt&&je.blur(),je.style.pointerEvents="none";const ae=requestAnimationFrame(()=>{requestAnimationFrame(()=>{ve.current&&(ve.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(ae)}Ie.current=X},[X]);const mt=typeof g=="boolean"?!!g:ze,wt=typeof y=="boolean"?void 0:w||typeof g=="boolean"?mt?"true":"false":F["aria-pressed"],yt=Be("button",G,le,ne,V,W,oe,mt?"is-selected":null,D?null:"button--no-bg",Y?"button--tooltip-only":null,j),Et=`button__icon button__icon--${R}`,at=Array.isArray(m)?m:m!==void 0?[m]:[],rt=()=>{if(Array.isArray(me))return me.map((nt,ae)=>{const ye=at[ae];return n.jsxs("span",{className:`button__label-text${ye!==void 0?" button__label-text--has-sub":""}`,children:[nt,ye!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:ye})]},ae)});const je=m!==void 0;return n.jsxs("span",{className:`button__label-text${je?" button__label-text--has-sub":""}`,children:[me,p!=null&&n.jsx("span",{className:"button__count",children:p}),je&&n.jsx("span",{className:"button__sub-label-text caption-1",children:m})]})},Dt=je=>{typeof g!="boolean"&&!w&&dt(!1),je.currentTarget.blur()},Bt=je=>{X||(typeof F.onMouseLeave=="function"&&F.onMouseLeave(je),Dt(je))},Lt=je=>{if(Y&<&&Ct.touchPress(je.currentTarget),X){lt&&Ct.touchPress(je.currentTarget),je.preventDefault(),T?.(je);return}typeof g!="boolean"&&w&&dt(nt=>!nt),P?.(je)},It=o.useCallback(()=>{(ee||I)&&(et(!0),Se(ve.current?.getBoundingClientRect()??null))},[ee,I]),xt=o.useCallback(()=>{(ee||I)&&(et(!1),Se(null))},[ee,I]),lt=!!(ee||I),Ct=fr(st,je=>{je?It():xt()},ve,{enabled:lt&&(X||Y),fallbackOnParent:lt&&X}),it={...F};delete it.disabled,delete it.className,delete it.faded,delete it.useFaded,delete it.loading,delete it.onMouseLeave,delete it.onPointerEnter,delete it.onPointerLeave,delete it.onPointerUp,delete it.onFocus,delete it.onBlur,X&&(Object.keys(it).forEach(je=>{/^on[A-Z]/.test(je)&&typeof it[je]=="function"&&delete it[je]}),it["aria-disabled"]="true"),A&&(it["aria-busy"]="true");const _t=(typeof ee=="string"?ee:null)??(typeof te=="string"?te:null)??(typeof v=="string"?v:null)??(typeof pe=="string"?pe:null)??void 0,ut=typeof v=="string"?v:typeof pe=="string"?pe:_t,St=I?[I.title,...I.items??[]].filter(Boolean).join(". "):ee&&_t&&_t!==ut?_t:"",ue=[typeof F["aria-describedby"]=="string"?F["aria-describedby"]:void 0,St?Ye:null].filter(Boolean).join(" ")||void 0,Te=()=>n.jsx("span",{className:`${Et} button__spinner`,"aria-hidden":"true",children:n.jsx(Ca,{variant:"spinner",size:"100%"})}),Ne=(je,nt)=>n.jsx(ot,{icon:je,label:nt??ut,className:Et,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),tt=je=>A?Te():Ne(c,je),pt=()=>Me==="dot"?n.jsxs(n.Fragment,{children:[tt(),ke&&n.jsx("span",{className:`button__label ${K}`,children:rt()})]}):f==="center"&&(c||A)?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:tt()}),ke&&n.jsx("span",{className:`button__label ${K}`,children:rt()})]}),Le&&n.jsx("span",{className:"button__right",children:Ne(d)})]}):n.jsxs(n.Fragment,{children:[(c||A)&&n.jsx("span",{className:"button__left",children:tt(v??pe)}),ke&&n.jsx("span",{className:`button__label ${K}`,children:rt()}),Le&&n.jsx("span",{className:"button__right",children:Ne(d)})]}),jt=!!l&&!X;return n.jsxs(n.Fragment,{children:[n.jsxs(jt?"a":"button",{...it,ref:Ae,...jt?{href:l,target:i,rel:u??(i==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:X&&!T&&!we},className:yt,"aria-pressed":wt,"aria-expanded":typeof y=="boolean"?y:F["aria-expanded"],"aria-controls":k??F["aria-controls"],"aria-label":ut,"aria-disabled":X&&(jt||T||we)?!0:void 0,"aria-describedby":ue,style:be,onClick:Lt,onMouseLeave:Bt,onPointerEnter:je=>{Un(je)||It(),!X&&typeof F.onPointerEnter=="function"&&F.onPointerEnter(je)},onPointerLeave:je=>{Un(je)||xt(),!X&&typeof F.onPointerLeave=="function"&&F.onPointerLeave(je)},onPointerUp:je=>{X&<&&Ct.touchPress(je.currentTarget),!X&&typeof F.onPointerUp=="function"&&F.onPointerUp(je)},onFocus:je=>{qe(!0),ea()||It(),!X&&typeof F.onFocus=="function"&&F.onFocus(je)},onBlur:je=>{qe(!1),X||Dt(je),xt(),!X&&typeof F.onBlur=="function"&&F.onBlur(je)},children:[pt(),St?n.jsx("span",{id:Ye,hidden:!0,"aria-label":St}):null]}),st&&I?n.jsx(qn,{anchorRect:gt,title:I.title,items:I.items,onClose:Ge}):st&&_t?n.jsx(Mn,{anchorRect:gt,text:_t,onClose:Ge}):null]})}const fe=o.forwardRef(Ay);fe.displayName="Button";function Rt(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Oa={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},wo=new WeakMap;function Bo(e){if(e)return wo.get(e)}function tn(e,t){e&&(e.style.setProperty(Oa.title,t.title),e.style.setProperty(Oa.description,t.description),wo.set(e,t))}function nn(e){e&&(e.style.removeProperty(Oa.title),e.style.removeProperty(Oa.description),wo.delete(e))}const di={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function pi(){const e=Rt(di,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const hi={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function mi(){const e=Rt(hi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Ci={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function fi(){const e=Rt(Ci,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const bi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function gi(){const e=Rt(bi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const yi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function vi(){const e=Rt(yi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const _i={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function xi(){const e=Rt(_i,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const wi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Bi(){const e=Rt(wi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ai(){const e=Rt(ki,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Ni={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Ei(){const e=Rt(Ni,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Di={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Si(){const e=Rt(Di,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const ji={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ti(){const e=Rt(ji,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Mi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Li(){const e=Rt(Mi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const $i={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ri(){const e=Rt($i,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Pi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Fi(){const e=Rt(Pi,tn,nn);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const sn=(e,t,a)=>({key:e,get label(){return Kt.t(`promoBannerBg.${e}`,t)},textTone:a}),Ny=[sn("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),sn("soft","\uC18C\uD504\uD2B8","dark"),sn("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),sn("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),sn("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),sn("warm","\uC6DC(\uAC15\uC870)","dark"),sn("dark","\uB2E4\uD06C","light"),sn("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),sn("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),sn("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),sn("outline","\uC544\uC6C3\uB77C\uC778","dark"),sn("success","\uC131\uACF5/\uC644\uB8CC","light"),sn("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),sn("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Ii={main:pi,soft:mi,sub:fi,deep:gi,softSub:vi,warm:xi,dark:Bi,radial:Ai,diagonal:Ei,dots:Si,outline:Ti,success:Li,naver:Ri,instagram:Fi};function Oi({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:l=1.4}={}){const i=w=>Math.max(a,Math.min(r,Number(w))),u=w=>{try{const y=localStorage.getItem(w),k=y?Number(y):1;return Number.isFinite(k)?i(k):i(1)}catch{return i(1)}},[c,d]=o.useState(()=>u(e)),[h,p]=o.useState(e);h!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const m=w=>{d(typeof w=="function"?y=>i(w(y)):i(w))},b=()=>m(w=>+(w+s).toFixed(6)),v=()=>m(w=>+(w-s).toFixed(6)),C=c<r-Number.EPSILON,f=c>a+Number.EPSILON,x=Math.round(t*c),g=Math.round(x*l);return{scale:c,setScale:m,increase:b,decrease:v,canIncrease:C,canDecrease:f,fontSize:x,lineHeight:g}}function zi(e,t){const a=Ia(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const ko=" \xB7 ",Wi=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(ko)?e.split(ko).pop()??e:e})(),Ey=o.createContext(!1),ta=[];let Hi=null;function Dy(e){const t=o.useContext(Ey);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;ta.length===0&&(Hi=document.title);const a={text:Wi?`${e}${ko}${Wi}`:e};return ta.push(a),document.title=a.text,()=>{const r=ta.lastIndexOf(a);r>=0&&ta.splice(r,1),document.title=ta.length?ta[ta.length-1].text:Hi??document.title}},[e,t])}const Ao=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}],Sy=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function fn(e,t){return Sy().compare(e,t)}const br=new Map;function jy(e){const t=br.get(e);if(t)return t;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let l=r.exec(e);l;l=r.exec(e)){let i=l.index,u=l[0];u[0]==="-"&&i>0&&!/\s/.test(e[i-1])&&(i+=1,u=u.slice(1)),i>s&&a.push(e.slice(s,i)),a.push(Number(u)),s=l.index+l[0].length}return s<e.length&&a.push(e.slice(s)),br.size>5e3&&br.clear(),br.set(e,a),a}function Ty(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function My(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const l=(d,h)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=Ty(h);return p!==null?[p]:jy(h)},i=l(e,r),u=l(t,s),c=Math.min(i.length,u.length);for(let d=0;d<c;d++){const h=i[d],p=u[d];if(typeof h=="number"&&typeof p=="number"){if(h!==p)return h-p;continue}if(typeof h=="number")return-1;if(typeof p=="number")return 1;const m=fn(h,p);if(m!==0)return m}return i.length!==u.length?i.length-u.length:fn(r,s)}const Vi=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function gr(e,t,a){const r=Vi(e),s=Vi(t);if(r||s)return r===s?0:r?1:-1;const l=My(e,t);return a?l:-l}function Ly(e,t,a){const{t:r}=_e.useTranslation(),[s,l]=o.useState(()=>{const v=a?.initialPageSize;return v&&Ao.some(C=>C.value===v)?v:"25"}),[i,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),i!==1&&u(1));const h=o.useMemo(()=>Ao.map(v=>({...v,label:r("visits.showN",{n:v.value})})),[r]),p=o.useCallback(v=>{Ao.some(C=>C.value===v)&&(l(v),u(1))},[]),m=Math.max(1,Math.ceil(e.length/Number(s))),b=Math.min(Math.max(1,Number.isFinite(i)?Math.floor(i):1),m);return i!==b&&u(b),{pageRows:o.useMemo(()=>e.slice((b-1)*Number(s),b*Number(s)),[e,b,s]),pageSizeProps:{options:h,value:s,onChange:p},paginationProps:{page:b,total:m,onChange:u},setPage:u}}function $y(e){const[t,a]=o.useState(()=>e?.defaultKey!=null?{key:e.defaultKey,asc:e.defaultAsc??!0}:null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const l=o.useCallback(c=>{const d=r.current,h=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=h,a(h),s.current?.(h)},[]),i=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>l(d)}),[t,l]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:h,asc:p}=t;return[...c].sort((m,b)=>gr(d(m,h),d(b,h),p))},[t]);return{sort:t,field:i,sortRows:u}}const kn="\uC804\uCCB4";Object.fromEntries(Object.entries(df).map(([e,{nucleus:t}])=>[e,t]));const Ry={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},Py={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},Fy={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function Iy(e,t){if("place"in t)return Ry[t.place](e);const a=Py[t.vowel](e);return t.glide?`${a} \xB7 ${Fy[t.glide](e)}`:a}const Oy=(e,{defaultValue:t})=>t,qi=(e,t)=>({jamos:e,phonetic:t,tooltip:Iy(Oy,t)}),Ln=(e,t)=>t.map(a=>qi([a],{place:e})),Yt=(e,t,a)=>qi([...e],a?{vowel:t,glide:a}:{vowel:t}),No={cho:[Ln("labial",["\u3142","\u3143","\u314D","\u3141"]),Ln("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Ln("alveolar",["\u3145","\u3146"]),Ln("palatal",["\u3148","\u3149","\u314A"]),Ln("velar",["\u3131","\u3132","\u314B"]),Ln("glottal",["\u314E"])],jung:[[Yt("\u3163","frontHigh"),Yt("\u315F","frontHigh","w"),Yt("\u3162","frontHigh","velar")],[Yt("\u3161","backHighUnrounded")],[Yt("\u315C","backHighRounded"),Yt("\u3160","backHighRounded","j")],[Yt("\u3154\u3150","frontMid"),Yt("\u3156\u3152","frontMid","j"),Yt("\u3159\u315A\u315E","frontMid","w")],[Yt("\u3153","backMidUnrounded"),Yt("\u3155","backMidUnrounded","j"),Yt("\u315D","backMidUnrounded","w")],[Yt("\u3157","backMidRounded"),Yt("\u315B","backMidRounded","j")],[Yt("\u314F","low"),Yt("\u3151","low","j"),Yt("\u3158","low","w")]],jong:[Ln("labial",["\u3142","\u3141"]),Ln("alveolar",["\u3137","\u3134","\u3139"]),Ln("velar",["\u3131","\u3147"])]},zy=e=>e===Wy?[]:Array.from(e),Wy="__NO_CODA__",Eo=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),Ui={cho:Eo(No.cho),jung:Eo(No.jung),jong:Eo(No.jong)};Ui.jung.flat().forEach(({v:e})=>{for(const t of zy(e));}),new Set(Ui.cho.flat().map(e=>e.v));function Hy(e,t=!0){const a=Ia(e);o.useEffect(()=>{if(t)return Qn(()=>{a.current?.()})},[t,a])}function za(){const[e,t]=o.useState(null),a=o.useCallback(l=>t(l.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(l=>{const i=l.getBoundingClientRect();t(u=>u?null:i)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function Vy(e){const[t,a]=o.useState(null),[r,s]=o.useState(null),l=o.useRef(null);o.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);const i=o.useCallback((c,d)=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{a(c),s(d)},e)},[e]),u=o.useCallback(()=>{l.current&&clearTimeout(l.current),a(null),s(null)},[]);return{payload:t,anchorRect:r,openAfterDelay:i,close:u}}function Gi(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[l,i]=o.useState(0),u=o.useCallback((p,m)=>{s(m),a(p),i(b=>b+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),h=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:l,showToast:u,showWarning:c,showNormal:d,clearToast:h}}function Wa(e){let t=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Ha({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,l]=o.useState(!1),[i,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),h=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&h()},[s,h]),o.useEffect(()=>{if(!s)return;let b=d.current?.offsetHeight??0;b>0&&h();let v=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const A=d.current?.offsetHeight??0;if(A!==b){if(b=A,++v>4){C?.disconnect(),C=null;return}h()}}),C.observe(d.current));const f=A=>{const B=A.target;r&&B.closest?.(r)||c.current?.contains(B)||d.current?.contains(B)||l(!1)};document.addEventListener("mousedown",f),document.addEventListener("pointerdown",f);let x=null;const g=()=>{if(typeof requestAnimationFrame>"u"){h();return}x===null&&(x=requestAnimationFrame(()=>{x=null,h()}))},w=A=>{d.current?.contains(A.target)||(t==="reposition"?g():t==="close"&&l(!1))};t!=="ignore"&&window.addEventListener("scroll",w,!0);const y=()=>{a==="reposition"?g():a==="close"&&l(!1)};let k=null;const _=()=>{y(),k&&clearTimeout(k),k=setTimeout(()=>{k=null,a==="reposition"&&h()},250)};return a!=="ignore"&&(window.addEventListener("resize",y),window.addEventListener("orientationchange",_)),()=>{x!==null&&cancelAnimationFrame(x),C?.disconnect(),document.removeEventListener("mousedown",f),document.removeEventListener("pointerdown",f),t!=="ignore"&&window.removeEventListener("scroll",w,!0),a!=="ignore"&&(window.removeEventListener("resize",y),window.removeEventListener("orientationchange",_)),k&&clearTimeout(k)}},[s,h,t,a,r]),o.useEffect(()=>{if(s)return Qn(()=>l(!1))},[s]);const p=o.useCallback(()=>l(b=>!b),[]),m=o.useCallback(()=>l(!1),[]);return{open:s,setOpen:l,toggle:p,close:m,style:i,triggerRef:c,menuRef:d}}function qy(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:l=1100,feedbackMs:i=1500}={}){const[u,c]=o.useState([]),[d,h]=o.useState(0),[p,m]=o.useState("idle"),[b,v]=o.useState(null),[C,f]=o.useState([]),[x,g]=o.useState(null),[w,y]=o.useState(0),k=o.useRef(0),_=o.useCallback(R=>{k.current=typeof R=="function"?R(k.current):R,y(k.current)},[]),A=o.useRef(r),B=o.useRef(s);o.useEffect(()=>{A.current=r,B.current=s},[r,s]);const E=o.useRef([]),D=()=>{E.current.forEach(clearTimeout),E.current=[]},N=(R,q)=>{E.current.push(setTimeout(q,R))};o.useEffect(()=>()=>D(),[]);const $=u[d]?.id??null,L=o.useRef(null),U=o.useCallback(()=>{D(),m("playing"),f([]),g(null),_(0);let R=0;e.forEach((q,Z)=>{N(R,()=>{h(Z),v(q.id),A.current?.(q)}),N(R+1e3,()=>{v(null),f(z=>[...z,q.id])}),R+=1300}),N(R,()=>{m("done"),B.current?.({score:0,total:e.length})})},[e,_]),M=o.useCallback((R,q)=>{if(q>=R.length){m("done"),B.current?.({score:k.current,total:R.length});return}L.current=null,h(q),g(null),m("playing"),v(R[q].id),A.current?.(R[q]),N(l,()=>{v(null),m("waiting")})},[l]),P=o.useCallback(()=>{D();const R=Ra(e);c(R),_(0),f([]),M(R,0)},[e,M,_]),T=o.useCallback(()=>{t==="playback"?(c(e),U()):P()},[t,e,U,P]),ee=o.useCallback(()=>{D(),m("idle"),v(null),f([]),g(null),h(0),_(0),c([])},[_]),te=JSON.stringify(e.map(R=>[R.id,R.label,R.angleDeg,R.deg,R.row,R.shortcut]));o.useEffect(()=>(a?T():ee(),()=>D()),[t,te,a]);const I=o.useCallback(R=>{p!=="waiting"||t==="playback"||L.current===d||(L.current=d,g(R),R===u[d]?.id&&_(q=>q+1),t==="exam"?(m("playing"),N(400,()=>M(u,d+1))):(m("feedback"),N(i,()=>M(u,d+1))))},[p,t,u,d,M,i,_]),Y=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:b,playedIds:C,selectedId:x,answerId:$,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:I},index:d,total:Y,score:w,phase:p,done:p==="done",start:T,reset:ee}}const Do=new Map,So=new Map,Uy=()=>()=>{},Gy=()=>!0,Ky=()=>!1;function Ki(e){const t=/^data:image\/svg\+xml(;base64)?,([\s\S]*)$/.exec(e);if(!t)return null;try{if(!t[1])return decodeURIComponent(t[2]);const a=Uint8Array.from(atob(t[2]),r=>r.charCodeAt(0));return new TextDecoder("utf-8").decode(a)}catch{return null}}function Yy(e){if(typeof window>"u")return"";const t=(a,r)=>{const s=r.attrName.toLowerCase(),l=r.attrValue.trim();(s==="href"||s==="xlink:href")&&!l.startsWith("#")&&(r.keepAttr=!1),(s==="style"||l.includes("\\")&&l.includes("("))&&(r.keepAttr=!1);const i=l.replace(/url\s*\(\s*(['"]?)#[^)\s'"]+\1\s*\)/gi,"");/url\s*\(/i.test(i)&&(r.keepAttr=!1)};da.addHook("uponSanitizeAttribute",t);try{return da.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","style","foreignObject"]})}finally{da.removeHook("uponSanitizeAttribute",t)}}function Zy(e,t){const a=new Set;for(const i of e.matchAll(/url\(\s*(['"]?)#([^)\s"']+)\1\s*\)/g))a.add(i[2]);for(const i of e.matchAll(/(?:xlink:)?href="#([^"]+)"/g))a.add(i[1]);const r=new Set([...e.matchAll(/id="([^"]*)"/g)].map(i=>i[1])),s=[...a].filter(i=>r.has(i));if(s.length===0)return e;let l=e;for(const i of s){const u=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=`${t}-${i}`;l=l.replace(new RegExp(`id="${u}"`,"g"),`id="${c}"`).replace(new RegExp(`url\\(\\s*(['"]?)#${u}\\1\\s*\\)`,"g"),(d,h)=>`url(${h}#${c}${h})`).replace(new RegExp(`((?:xlink:)?href)="#${u}"`,"g"),`$1="#${c}"`)}return l}function Xy(e){const t=So.get(e);if(t)return t;const a=fetch(e).then(r=>r.ok?r.text():null).then(r=>(r!=null&&Do.set(e,r),r)).catch(()=>null).finally(()=>{So.delete(e)});return So.set(e,a),a}function Jy(e,t=!0){const a=o.useSyncExternalStore(Uy,Gy,Ky)&&t&&e?Ki(e)??Do.get(e)??null:null,[r,s]=o.useState({src:e,enabled:t,svg:a});return o.useEffect(()=>{if(!t||!e){s({src:e,enabled:t,svg:null});return}const l=Ki(e)??Do.get(e)??null;if(l!==null){s({src:e,enabled:t,svg:l});return}let i=!0;return Xy(e).then(u=>{i&&s({src:e,enabled:t,svg:u})}),()=>{i=!1}},[e,t]),r.src===e&&r.enabled===t?r.svg:a}function Qy({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:l,size:i="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:h=""}){const p=s??l??"main",m=o.useRef(null),[b,v]=o.useState("main"),C=yn("(max-width: 767px)"),f=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const w=m.current;if(!w)return;const y=Bo(w),k=(_,A,B)=>{if(B!==void 0)w.style.setProperty(A,B),f.current[_]=!0;else if(f.current[_]){const E=y?.[_];E?w.style.setProperty(A,E):w.style.removeProperty(A),f.current[_]=!1}};k("title","--promo-banner-bg-title",c),k("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const w=m.current;if(!w)return;const y=Bo(w);v(y?.actionVariant??"main")},[p]);const x=Be("promo-banner",`promo-banner--${i}`,h),g=Ii[p];return n.jsxs("div",{ref:m,className:x,role:"note",children:[n.jsx(g,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${i==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(fe,{htmlType:"button",size:40,variant:u??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function e2({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:l}=_e.useTranslation(),i=s??l("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,h]=o.useState(0),[p,m]=o.useState(!1),[b,v]=o.useState(!1),[C,f]=o.useState(!1),x=o.useRef(null),g=o.useRef(null),w=o.useRef(null),y=_o(),k=p||b||C,_=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||k||y)return;const B=window.setInterval(()=>h(E=>(Math.min(E,c-1)+1)%c),t);return()=>window.clearInterval(B)},[c,t,k,y]);const A=B=>{g.current!=null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{g.current=null,f(!1)},B)};return o.useEffect(()=>()=>{g.current!=null&&window.clearTimeout(g.current)},[]),o.useEffect(()=>{if(!C)return;const B=E=>{E.pointerType==="touch"&&(w.current&&w.current.contains(E.target)||(g.current!=null&&(window.clearTimeout(g.current),g.current=null),f(!1)))};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[C]),c===0?null:n.jsxs("section",{ref:w,className:Be("top-banner",r),"aria-label":i,"aria-roledescription":"carousel",onPointerEnter:B=>{x.current=B.pointerType},onPointerDown:B=>{x.current=B.pointerType,B.pointerType==="touch"&&(g.current!=null&&(window.clearTimeout(g.current),g.current=null),f(!0))},onPointerUp:B=>{B.pointerType==="touch"&&A(5e3)},onPointerCancel:B=>{B.pointerType==="touch"&&A(5e3)},onMouseEnter:()=>{x.current!=="touch"&&m(!0)},onMouseLeave:()=>m(!1),onFocus:B=>{let E=!0;try{E=B.target.matches(":focus-visible")}catch{E=!0}v(E)},onBlur:B=>{B.currentTarget.contains(B.relatedTarget)||v(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${_*100}%)`},children:u.map((B,E)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":E!==_,...E!==_?{inert:!0}:{},children:B},E))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[_]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((B,E)=>n.jsx("button",{type:"button",className:`top-banner__dot${E===_?" top-banner__dot--active":""}`,"aria-label":l("topBanner.dotAriaLabel",{count:c,index:E+1,defaultValue:`${c}\uAC1C \uC911 ${E+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":E===_,onClick:()=>h(E)},E))})]})}function t2({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:l="body-2",bodyClassName:i="body-2",className:u=""}){const{t:c}=_e.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const h=d.currentTarget.closest('[role="list"]');if(!h)return;const p=Array.from(h.querySelectorAll("[data-accordion-header]")),m=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[m+1]:p[m-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${l}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(ot,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&n.jsx("div",{className:`accordion-item__body ${i}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function n2({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[l,i]=o.useState({index:t}),u=(c,d)=>l.id!=null&&c.id!=null?c.id===l.id:l.id==null&&d===l.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(t2,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>i(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:s},c.id??d))})}function a2(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function r2(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function o2(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function Dn({children:e,icon:t,number:a,position:r="top-left",size:s=24,animate:l=!1,onClick:i,"aria-label":u,"aria-hidden":c,className:d=""}){const{t:h}=_e.useTranslation(),p=t??"check",m=a!==void 0,b=e!==void 0||m?"number":p,v=e!==void 0?void 0:m?h("badge.nthSelected",{n:a,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:h("badge.selected","\uC120\uD0DD\uB428"),remove:h("badge.remove","\uC81C\uAC70"),minus:h("badge.exclude","\uC81C\uC678")}[p],C=c?void 0:u??v;return n.jsxs("span",{className:Be("circle-badge",`circle-badge--${b}`,`circle-badge--${s}`,`circle-badge--${r}`,l?"circle-badge--animate":"",i?"circle-badge--clickable":"",d),onClick:i,onKeyDown:i?f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),f.currentTarget.click())}:void 0,"aria-label":C,"aria-hidden":c||void 0,role:i?"button":C?"img":void 0,tabIndex:i?0:void 0,children:[e??(m?a:null),e===void 0&&!m&&p==="check"&&n.jsx(a2,{}),e===void 0&&!m&&p==="remove"&&n.jsx(r2,{}),e===void 0&&!m&&p==="minus"&&n.jsx(o2,{})]})}function Va({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=_e.useTranslation(),l=r==="small"?40:48,[i,u]=o.useState([]),c=o.useMemo(()=>{const f=[{title:null,columns:e}];let x=e;for(const g of i){const w=x?.[g.ci]?.items?.[g.ii];if(!w||!Array.isArray(w.children)||!w.children.length)break;x=[{title:null,items:w.children}],f.push({title:w.label||null,columns:x})}return f},[e,i]),d=c[c.length-1],h=c.length-1,p=o.useCallback(()=>u(f=>f.slice(0,Math.max(0,Math.min(f.length,h)-1))),[h]),m=o.useRef(null),b=o.useRef(null),v=c.length;o.useEffect(()=>{b.current||(b.current=document.activeElement);let f=0,x=0;const g=()=>{const w=m.current?.querySelector("button:not([disabled])");if(w&&w.offsetParent){w.focus({preventScroll:!0});return}x++<20&&(f=requestAnimationFrame(g))};return f=requestAnimationFrame(g),()=>cancelAnimationFrame(f)},[v]),o.useEffect(()=>()=>{b.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((f,x,g)=>{if(f){if(Array.isArray(f.children)&&f.children.length){u(w=>[...w.slice(0,h),{ci:x,ii:g}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,h]);return n.jsxs("div",{className:se(`menu-tooltip menu-tooltip--${r} ${a}`),children:[(c.length>1||d.title)&&n.jsxs("div",{className:se("menu-tooltip__header"),children:[c.length>1?n.jsx(fe,{htmlType:"button",size:l,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:se("menu-tooltip__title button-1"),children:d.title})]}),n.jsx("div",{className:se("menu-tooltip__columns"),ref:m,children:d.columns&&d.columns.map((f,x)=>{const g=(f.items||[]).some(w=>!!w.icon||w.selected!==void 0);return n.jsxs("div",{className:se("menu-tooltip__column"),children:[f.title?n.jsx("div",{className:se("menu-tooltip__column-title body-3"),children:f.title}):null,n.jsx("div",{className:se("menu-tooltip__items"),children:(f.items||[]).map((w,y)=>n.jsxs(o.Fragment,{children:[w.separatorBefore&&y>0&&n.jsx("div",{className:se("menu-tooltip__separator"),role:"separator"}),n.jsx(fe,{htmlType:"button",className:se("menu-tooltip__item"),size:l,type:w.label?"bar":"dot",icon:w.selected?"check":w.icon||(g||!w.label?"none":void 0),rightIcon:Array.isArray(w.children)&&w.children.length?"chevron-right":w.badgeCount?n.jsx(Dn,{position:"inline",number:Math.min(w.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:w.label,ariaLabel:w.label&&w.badgeCount&&w.badgeCount>0?s("nav.badgeLabel",{label:w.label,count:w.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):w.label,onClick:()=>C(w,x,y),selected:w.selected,disabled:w.disabled,showTooltipInfo:w.tooltip||!1,useBorder:!1,align:"left"})]},y))})]},x)})})]})}const Yi=".content-area";function jo(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(Yi);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&At("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${Yi}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const To=52,yr=10,Zi=e=>e&&e>0?e:0;function Xi({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:l=[],scrollContainer:i}){const{t:u}=_e.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",h=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[m,b]=o.useState(0),v=e.length;o.useEffect(()=>{const R=p.current;if(!R)return;const q=()=>{const j=typeof getComputedStyle=="function"?getComputedStyle(R):null,F=R.clientWidth-(parseFloat(j?.paddingLeft??"")||0)-(parseFloat(j?.paddingRight??"")||0),O=R.querySelector(".bottom-nav__left"),G=O?.nextElementSibling,ie=(O?.offsetWidth??0)+(O&&G?.classList.contains("bottom-nav__divider")?G.offsetWidth:0);b(Math.max(0,F-ie))};if(q(),typeof ResizeObserver>"u")return;const Z=new ResizeObserver(q);Z.observe(R);const z=R.querySelector(".bottom-nav__left");return z&&Z.observe(z),()=>Z.disconnect()},[s]);const C=To+1,f=R=>Math.max(0,Math.floor((R+yr)/(To+yr))),x=v*(To+yr)-yr<=m,g=m<=0||l.length===0&&x?v:Math.min(v,f(m-C)),w=m>0&&g<v,y=w?g:v,k=e.slice(0,y),_=e.slice(y),A=w||l.length>0,B=o.useCallback((R,q)=>({position:"fixed",bottom:window.innerHeight-R.top+8,right:window.innerWidth-R.right,zIndex:Wa(q)}),[]),E=o.useId(),{open:D,toggle:N,close:$,style:L,triggerRef:U,menuRef:M}=Ha({computeStyle:B,onScroll:"ignore",onResize:"reposition"}),P=o.useCallback((R,q)=>q>0?u("nav.badgeLabel",{label:R,count:q,defaultValue:"{{label}}, {{count}}\uAC1C"}):R,[u]),T=o.useCallback((R,q)=>q>0?u("nav.badgeInsideLabel",{label:R,count:q,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):R,[u]),ee=o.useCallback(()=>s?.(c),[s,c]),te=o.useMemo(()=>_.find(R=>!!R.key&&R.key===t)??l.find(R=>R.selected||R.key&&R.key===t),[_,t,l]),I=o.useMemo(()=>[{items:[..._.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:!!R.key&&R.key===t,closeOnSelect:!0,disabled:R.state==="disabled",onClick:()=>{R.state!=="disabled"&&(R.key&&a&&(a(R.key),jo(i,"BottomNav")),$())}})),...l.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===t),closeOnSelect:!0,onClick:()=>{R.onClick?.(),$()}}))]}],[_,l,t,a,$]),Y=[..._,...l].reduce((R,q)=>R+Zi(q.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:h,className:"bottom-nav-item",onClick:ee})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:k.map((R,q)=>{const Z=Zi(R.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:R.icon,ariaLabel:P(R.label,Z),selected:!!R.key&&R.key===t,disabled:R.state==="disabled",className:"bottom-nav-item",onClick:()=>{R.key&&(a?.(R.key),jo(i,"BottomNav"))}}),Z>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(Dn,{position:"top-right",number:Math.min(Z,99),size:24})})]},R.key??`__slot-${q}`)})}),A&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:U,className:"bottom-nav__slot",children:[n.jsx(fe,{htmlType:"button",size:52,type:"dot",icon:te?.icon??"ellipsis",ariaLabel:T(te?.label??u("nav.more","\uB354\uBCF4\uAE30"),Y),selected:!!te,className:"bottom-nav-item",onClick:N,"aria-expanded":D,"aria-controls":D?E:void 0}),Y>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(Dn,{position:"top-right",number:Math.min(Y,99),size:24})}),D&&hn.createPortal(n.jsx("div",{id:E,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:se("tooltip__content"),style:L,ref:M,children:n.jsx(Va,{columns:I,onClose:$})}),document.body)]})})]})]})}function Ji(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function Qi(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function s2(e){const{t}=_e.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:l,onSetting:i,onHelp:u,onFeedback:c,onAccount:d}=e||{},h="default";return s||l||i||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),l&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bell",ariaLabel:Qi(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:l,selected:a==="notifications"}),!!r&&r>0&&n.jsx(Dn,{number:Math.min(r,99),size:24,"aria-hidden":!0})]}),i&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:i,selected:a==="settings"}),u&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(fe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:h,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function eu(e){const{t}=_e.useTranslation(),{item:a,itemKey:r,label:s,icon:l,active:i,onClick:u,style:c,state:d,labelStyle:h}=e||{},p=a?.key??r??"",m=a?.label??s??"",b=a?.icon??l??"",v=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(ot,{icon:b,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),f=d==="disabled",x=`side-nav__item ${i?"active":""} ${d||""} ${f?"disabled":""} ${a?.child?"side-nav__item--child":""}`,g=o.useCallback(w=>{if(f)return;const y=w.detail>0;if(y)try{w.currentTarget.blur()}catch{}u?.(p,w.currentTarget,y)},[f,p,u]);return n.jsxs("button",{type:"button",className:x,onClick:g,"aria-label":typeof m=="string"?Qi(t,m,v):void 0,"aria-current":i?"page":void 0,style:c,"aria-disabled":f,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:h,children:m}),v>0&&n.jsx(Dn,{position:"inline",number:Math.min(v,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function tu(e){const{t}=_e.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:b,scrollContainer:v}=e||{},C=m==="manager",f=o.useCallback(()=>b?.(C?"malgwi":"manager"),[b,C]),x=o.useRef(null),[g,w]=o.useState(null);o.useEffect(()=>{const B=x.current;if(!B)return;let E=null;const D=()=>{const{scrollHeight:L,clientHeight:U,scrollTop:M}=B;if(L<=U+1){w(I=>I===null?I:null);return}const P=Math.max(24,U/L*U),T=U-P,ee=L-U,te={top:Math.round(M/ee*T),height:Math.round(P)};w(I=>I&&I.top===te.top&&I.height===te.height?I:te)},N=()=>{if(typeof requestAnimationFrame>"u"){D();return}E===null&&(E=requestAnimationFrame(()=>{E=null,D()}))};D(),B.addEventListener("scroll",N,{passive:!0});const $=typeof ResizeObserver<"u"?new ResizeObserver(N):null;$?.observe(B);for(const L of Array.from(B.children))$?.observe(L);return()=>{E!==null&&cancelAnimationFrame(E),B.removeEventListener("scroll",N),$?.disconnect()}},[a]);const y=o.useRef(null),k=o.useCallback(B=>{const E=x.current;E&&(B.preventDefault(),y.current={y:B.clientY,top:E.scrollTop},B.currentTarget.setPointerCapture(B.pointerId))},[]),_=o.useCallback(B=>{const E=x.current,D=y.current;!E||!D||(E.scrollTop=D.top+(B.clientY-D.y)*(E.scrollHeight/E.clientHeight))},[]),A=o.useCallback(B=>{y.current=null,B.currentTarget.hasPointerCapture(B.pointerId)&&B.currentTarget.releasePointerCapture(B.pointerId)},[]);return n.jsxs("nav",{ref:x,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[g&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:g.top,height:g.height},onPointerDown:k,onPointerMove:_,onPointerUp:A,onPointerCancel:A})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(B=>!B.section&&(B.key||B.label)).map((B,E)=>n.jsxs(o.Fragment,{children:[B.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(eu,{item:B,active:!!B.key&&B.key===r,state:B.disabled?"disabled":void 0,onClick:(D,N,$)=>{if(B.disabled)return;if(B.href){if(Ji(B.href)&&window.open(B.href,"_blank","noopener,noreferrer"),$)try{N?.blur()}catch{}return}if(s?.(B.key),jo(v,"SideNav"),!$)return;try{N?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const L=document.querySelector(".header");if(L){const U=typeof L.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&U&&L.matches(":hover"))){L.classList.add("header--force-collapsed");const M=()=>{L.classList.remove("header--force-collapsed"),L.removeEventListener("mouseenter",M)};L.addEventListener("mouseenter",M)}}}})]},B.key??`side-nav__item-${E}`)),b&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),b&&n.jsx(eu,{item:{key:"__mode-switch__",label:C?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:f})]}),n.jsx(s2,{activeKey:r,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p})]})}var vr='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',Mo='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z"/></g><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',l2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_SpeechEar" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><g id="symbol"><path d="M183.92,56.08c-8.48-15.54-24.97-26.08-43.92-26.08h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%234dcdc0"/><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23499cdf"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>';function nu({appMode:e}){const{t}=_e.useTranslation(),a=e==="manager",r=a?Mo:vr,s=l2;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function au({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:b,scrollContainer:v}){const{t:C}=_e.useTranslation(),f=yn("(max-width: 767px)"),x=o.useMemo(()=>(a??[]).filter(L=>!L.section&&(L.key||L.label)).map(L=>({key:L.key,label:typeof L.label=="string"?L.label:void 0,icon:L.icon,state:L.disabled?"disabled":void 0,badgeCount:L.badge})),[a]),g=o.useCallback(L=>{const U=a?.find(M=>M.key===L);if(!U?.disabled){if(U?.href){Ji(U.href)&&window.open(U.href,"_blank","noopener,noreferrer");return}t?.(L)}},[a,t]),w=o.useMemo(()=>{const L=[];return i&&L.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:i}),u&&L.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:l,onClick:u}),d&&L.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),h&&L.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:h}),p&&L.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&L.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:c}),L},[C,i,u,d,h,p,c,l]),y=o.useCallback((L,U)=>({position:"fixed",top:L.bottom+8,right:Math.max(8,window.innerWidth-L.right),zIndex:Wa(U)}),[]),k=o.useId(),{open:_,toggle:A,close:B,style:E,triggerRef:D,menuRef:N}=Ha({computeStyle:y,onScroll:"ignore",onResize:"reposition"}),$=o.useMemo(()=>[{items:w.map(L=>({label:L.label,icon:L.icon,badgeCount:L.badgeCount,selected:L.selected??(!!L.key&&L.key===e),closeOnSelect:!0,onClick:()=>{L.onClick?.(),B()}}))}],[w,e,B]);return n.jsxs("aside",{className:`header${m==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(nu,{appMode:m}),n.jsxs("div",{className:"header__menu-button",ref:D,children:[n.jsx(fe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&l&&l>0?C("nav.badgeInsideLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:l,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":_,"aria-controls":_?k:void 0}),!!u&&!!l&&l>0&&n.jsx(Dn,{number:Math.min(l,99),size:24,"aria-hidden":!0}),_&&hn.createPortal(n.jsx("div",{id:k,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:se("tooltip__content"),style:E,ref:N,children:n.jsx(Va,{columns:$,onClose:B})}),document.body)]})]}),n.jsx(tu,{scrollContainer:v,items:a,activeKey:e??void 0,onChange:t,unreadCount:l,onDebug:i,onNotification:u,onAccount:c,onSetting:d,onHelp:h,onFeedback:p,appMode:m,onAppModeChange:b}),f&&n.jsx(Xi,{items:x,activeKey:e??void 0,onChange:g,scrollContainer:v,appMode:m,onAppModeChange:b})]})}const i2=au;function ln(e){const{type:t="dot",size:a,className:r="","aria-label":s,"aria-hidden":l,role:i}=e;(e.icon!==void 0||e.number!==void 0||e.position!==void 0||e.animate!==void 0||e.onClick!==void 0)&&At("badge-circle-props","[ihab/core] Badge \uAC00 \uC6D0\uD615 \uBC43\uC9C0\uC758 \uD504\uB86D(icon \xB7 number \xB7 position \xB7 animate \xB7 onClick)\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC6D0\uD615\uC740 \uC774\uC81C CircleBadge \uAC00 \uADF8\uB9BD\uB2C8\uB2E4 \u2014 Badge \uC758 dot \uB294 \uC791\uC740 \uC54C\uC57D \uC774\uB984\uD45C\uC785\uB2C8\uB2E4. \uADF8 \uC790\uB9AC\uB97C <CircleBadge \u2026/> \uB85C \uBC14\uAFB8\uC138\uC694."),i&&l&&At("badge-role-with-hidden",`[ihab/core] Badge \uAC00 role="${i}" \uACFC aria-hidden \uC744 \uD568\uAED8 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uC228\uAE34 \uAC83\uC740 \uB0AD\uB3C5\uAE30\uC5D0 \uB07C\uC5B4\uB4E4 \uC218 \uC5C6\uC5B4 \uC544\uBB34\uAC83\uB3C4 \uC548 \uC77D\uD799\uB2C8\uB2E4 \u2014 \uB458 \uC911 \uD558\uB098\uB9CC \uC8FC\uC138\uC694.`);const{label:u,children:c,variant:d="default",fill:h="filled",minWidth:p,iconLeft:m,iconRight:b,color:v}=e,C=t==="bar",f=typeof a=="number"?"medium":a??"medium",x=(C?{small:"caption-2",medium:"body-3",large:"body-2"}:{small:"caption-2b",medium:"body-3b",large:"body-2b"})[f]??(C?"body-2":"body-2b"),g={small:12,medium:14,large:16}[f]??14,w=Be("badge",C?"badge--bar":"",`badge--${d}`,`badge--${f}`,h!=="filled"?`badge--${h}`:"",x,r),y=v?.startsWith("--")?`var(${v})`:v,k=p!==void 0||y?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...y?{"--badge-color":y}:{}}:void 0;return n.jsxs("span",{className:w,style:k,"aria-label":l?void 0:s,role:i??(s&&!l?"img":void 0),"aria-hidden":l||void 0,children:[m&&n.jsx(ot,{icon:m,size:g,className:"badge__icon"}),u??c,b&&n.jsx(ot,{icon:b,size:g,className:"badge__icon"})]})}const u2=()=>Kt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function ru(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return ma(`${t.toLocaleString("ko-KR")}\uC6D0`)}return ma(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function c2(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function d2(e){if(e.durationDays&&e.durationDays>0){const l=e.durationDays;return l%365===0?`${l/365}\uB144`:`${l}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||u2()}function p2(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function ou(e){return{type:e.type??c2(e),plan:d2(e),label:e.label,price:ru(e.price),originalPrice:ru(e.originalPrice),discountLabel:e.discountLabel}}var h2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEar_ko_mono" xmlns="http://www.w3.org/2000/svg" width="583.33" height="240" viewBox="0 0 583.33 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',m2='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_SpeechEarManager_ko_mono" xmlns="http://www.w3.org/2000/svg" width="1035.43" height="240" viewBox="0 0 1035.43 240"><g id="text"><path d="M278.07,115.18V47.71h85.73v67.47h-85.73ZM408.4,173.42v20.18h-125.33v-44.02h96.5v-5.96h-96.88v-20.18h124.18v44.02h-96.11v5.96h97.65ZM305.56,70.97v20.76h30.95v-20.76h-30.95ZM423.39,92.88h-16.53v25.37h-27.68V45.98h27.68v20.18h16.53v26.72Z" fill="%23fff"/><path d="M527.58,113.83v26.33c-7.82,3.59-20.06,5.38-36.71,5.38h-1.73v48.06h-27.68v-48.06h-34.21v-26.33h64.01c16.4,0,28.51-1.79,36.33-5.38ZM435.31,75.77v-26.33h80.35v62.09h-27.68v-35.75h-52.67ZM563.33,193.61h-27.68V45.98h27.68v147.63Z" fill="%23fff"/><path d="M644.64,52.32v131.48h-58.24V52.32h58.24ZM634.45,173.81V62.32h-38.25v111.49h38.25ZM713.65,193.61h-10.19v-75.16h-28.64v72.66h-10V46.94h10v61.32h28.64v-62.28h10.19v147.63Z" fill="%23fff"/><path d="M819.46,171.6c6.6-1.35,12.08-3.11,16.44-5.29v10.19c-4.23,2.31-9.64,4.1-16.24,5.38-6.6,1.28-13.3,1.92-20.09,1.92h-57.28V51.36h10.57v122.25h46.71c6.66,0,13.29-.67,19.89-2.02ZM851.47,193.8V45.98h10.57v147.63l-10.57.19Z" fill="%23fff"/><path d="M935.66,113.64l48.44,62.28-8.27,6.34-43.06-56.13c-4.36,16.66-10.38,29.92-18.07,39.79-7.69,9.87-16.72,15.83-27.1,17.88v-10.76c8.71-2.05,16.21-8.07,22.49-18.07,6.28-10,11.05-22.97,14.32-38.92,3.27-15.95,5.03-33.86,5.29-53.73h-39.21v-10h88.61v10h-39.02c-.13,18.84-1.6,35.95-4.42,51.32ZM1015.43,193.61h-10.38v-79.39h-37.87v-10.19h37.87v-58.05h10.38v147.63Z" fill="%23fff"/></g><g id="symbol"><g opacity=".5"><path d="M80,50c-16.57,0-30,13.43-30,30v80c0,8.66,2.21,16.81,6.08,23.92,7.1,3.88,15.25,6.08,23.92,6.08h80c16.57,0,30-13.43,30-30v-80c0-8.66-2.21-16.81-6.08-23.92-7.1-3.88-15.25-6.08-23.92-6.08h-80Z" fill="%23fff"/></g><path d="M140,30h-60c-27.61,0-50,22.39-50,50v23.38l-19.22,21.15c-1.15,1.26-1.02,3.24.3,4.33,5.82,4.84,12.22,8.56,18.92,11.21.03,18.92,10.56,35.37,26.08,43.84-3.88-7.1-6.08-15.25-6.08-23.92v-80c0-16.57,13.43-30,30-30h80c8.66,0,16.81,2.21,23.92,6.08-8.48-15.54-24.97-26.08-43.92-26.08Z" fill="%23fff"/><path d="M183.92,56.08c3.88,7.1,6.08,15.25,6.08,23.92v80c0,16.57-13.43,30-30,30h-80c-8.66,0-16.81-2.21-23.92-6.08,8.48,15.54,24.97,26.08,43.92,26.08h45.11c2.7,0,4.89,2.19,4.89,4.89,0,2.86,2.45,5.13,5.3,4.88,30.65-2.68,54.7-28.42,54.7-59.77v-60c0-18.95-10.54-35.44-26.08-43.92Z" fill="%23fff"/><rect x="69" y="88" width="12" height="24" rx="6" ry="6" fill="%23fff"/><path d="M111,140c-2.92,0-5.85-.75-8.5-2.28-2.39-1.38-3.21-4.44-1.82-6.83,1.38-2.39,4.44-3.21,6.83-1.82,2.74,1.58,6.21,1.13,8.44-1.1,1.08-1.08,1.76-2.45,1.97-3.95.9-6.37,3.71-12.42,8.14-17.5,2.64-3.02,4.03-6.9,3.93-10.92-.21-8.21-6.78-15.05-14.97-15.56-2.76-.18-5.42.33-7.88,1.51-2.49,1.19-5.48.12-6.66-2.37-1.19-2.49-.12-5.48,2.37-6.66,3.96-1.88,8.38-2.73,12.8-2.46,13.32.83,24.01,11.94,24.34,25.29.16,6.53-2.11,12.83-6.39,17.75-3.15,3.61-5.15,7.87-5.77,12.32-.52,3.67-2.18,7-4.8,9.63-3.27,3.27-7.62,4.97-12.02,4.97Z" fill="%23fff"/></g></svg>',su='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB_mono" xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="%23fff"/></svg>';const na={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},Lo=new WeakMap;function C2(e){if(e)return Lo.get(e)}function $n(e,t){e&&(e.style.setProperty(na.text,t.text),e.style.setProperty(na.sub,t.sub),t.copyrightColor&&e.style.setProperty(na.copyright,t.copyrightColor),Lo.set(e,t))}function Rn(e){e&&(e.style.removeProperty(na.text),e.style.removeProperty(na.sub),e.style.removeProperty(na.copyright),Lo.delete(e))}const lu={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function iu(e={}){const t=Rt(lu,$n,Rn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${su}")`}})]})}const uu="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71Z",ba=240;var qa='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Symbol_IHAB" xmlns="http://www.w3.org/2000/svg" width="240" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 240 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/></svg>';const f2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"},b2=100,g2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function cu(e={}){const t=Rt(f2,$n,Rn),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:g2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*b2/ba}) translate(${-ba/2} ${-ba/2})`,opacity:i,children:n.jsx("path",{d:uu,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${qa}")`}})]})}const y2={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",logoColor:"_mono",copyrightColor:"#ffffff"},v2=100,_2=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function x2(e={}){const t=Rt(y2,$n,Rn),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:_2.map(({scale:l,opacity:i},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${l*v2/ba}) translate(${-ba/2} ${-ba/2})`,opacity:i,children:n.jsx("path",{d:uu,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${su}")`}})]})}const w2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function B2(e={}){const t=Rt(w2,$n,Rn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${qa}")`}})]})}const k2={Logo_SpeechEar_ko:{"":vr,_mono:h2},Logo_SpeechEarManager_ko:{"":Mo,_mono:m2}};function A2(e,t){if(e)return k2[e]?.[t??""]??void 0}const N2={speechear:vr,manager:Mo},E2={speechear:"Logo_SpeechEar_ko",manager:"Logo_SpeechEarManager_ko"},du=10;function D2(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function pu(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function S2(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Kt.t("passCard.specialLabel");return r?n.jsx(B2,{}):s?n.jsx(x2,{}):n.jsx(cu,{})}return n.jsx(iu,{})}function hu({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:l,remainingSeconds:i,endInclusive:u=!1,state:c="active",bg:d,bgOnly:h=!1,textColor:p,subColor:m,copyrightColor:b,logoSrc:v,label:C,price:f,originalPrice:x,discountLabel:g,onUse:w,onRefund:y,onDelete:k}){const{t:_}=_e.useTranslation(),A=t?ou(t):void 0,B=s??A?.type??"speechear",E=r??A?.plan??_("passCard.planSuffix","\uC774\uC6A9\uAD8C"),D=C??A?.label,N=f??(a?A?.price:void 0),$=x??(a?A?.originalPrice:void 0),L=g??A?.discountLabel,U=o.useMemo(()=>{if(N)return null;const V=t?.durationDays??p2(t?.code);if(!V||V<=0)return i!=null?{percent:null,remainingLabel:pu(i,_)}:null;const W=V*86400;let oe;if(i!=null)oe=i;else if((c==="active"||c==="expired")&&l){const me=new Date(l).getTime();if(Number.isNaN(me))return null;const ke=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(l)),Le=/^(\d{4})-(\d{2})-(\d{2})/.exec(Fa()),Me=Math.round(ke&&Le?(Date.UTC(+ke[1],+ke[2]-1,+ke[3])-Date.UTC(+Le[1],+Le[2]-1,+Le[3]))/864e5:(me-Date.now())/864e5);oe=Math.max(0,u?Me+1:Me)*86400}else c==="expired"?oe=0:oe=W;const xe=D2(oe),be=Math.max(0,Math.min(100,Math.floor(Math.min(xe,W)/W*100)));return c==="pending"&&be>=100?null:{percent:be,remainingLabel:c==="expired"?_("passCard.expired","\uB9CC\uB8CC\uB428"):pu(oe,_)}},[N,c,l,i,u,t?.durationDays,t?.code,_]),M=o.useRef(null),[P,T]=o.useState({}),[ee,te]=o.useState(null),I=!!(w||y||k),Y=o.useRef(!1),R=o.useRef(void 0),[q,Z]=o.useState(v);o.useLayoutEffect(()=>{Z(v)},[v]),o.useLayoutEffect(()=>{const V=M.current;V&&(p!==void 0&&V.style.setProperty("--pass-card-text",p),m!==void 0&&V.style.setProperty("--pass-card-sub",m),b!==void 0&&V.style.setProperty("--pass-card-copyright",b))},[p,m,b]),o.useLayoutEffect(()=>{const V=M.current;if(!V)return;const W=C2(V);if(!v){const oe=E2[B],xe=c==="expired"?"_mono":W?.logoColor??"",be=A2(oe,xe);Z(be)}},[d,v,B,c]);const z=V=>{const W=M.current;if(!W)return null;const{left:oe,top:xe,width:be,height:me}=W.getBoundingClientRect(),ke=(V.clientX-oe)/be-.5;return{rotateX:-((V.clientY-xe)/me-.5)*du,rotateY:ke*du}},j=(V,W)=>{const oe=W*-.7,xe=V*.7+10,be=20+(Math.abs(V)+Math.abs(W))*.4;return`${oe}px ${xe}px ${be}px rgba(0, 0, 0, 0.18)`},F=o.useCallback(V=>{if(ea())return;Y.current=!0,clearTimeout(R.current),R.current=setTimeout(()=>{Y.current=!1},200);const W=z(V);W&&T({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:j(W.rotateX,W.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),O=o.useCallback(V=>{if(ea())return;const W=z(V);if(!W)return;const oe=Y.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";T({transform:`perspective(800px) rotateX(${W.rotateX}deg) rotateY(${W.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:j(W.rotateX,W.rotateY),transition:oe})},[]),G=o.useCallback(()=>{clearTimeout(R.current),Y.current=!1,T({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),ie=o.useCallback(()=>te(null),[]),K=o.useMemo(()=>{const V=_("passCard.planSuffix","\uC774\uC6A9\uAD8C"),W=E.replace("\uC774\uC6A9\uAD8C","").replace(V==="\uC774\uC6A9\uAD8C"?"":V,"").trim(),oe=W.match(/^(.*?)(일|년)$/);return oe?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:oe[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:oe[2]==="\uB144"?_("passCard.unitYear","\uB144"):_("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:W})},[E,_]),pe=o.useMemo(()=>{const V=ma(N);if(!V)return null;const W=V.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!W)return n.jsx("span",{className:"h1",children:V});const[,oe,xe,be]=W;return n.jsxs(n.Fragment,{children:[oe&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:oe}),n.jsx("span",{className:"h1 pass-card__price-amount",children:xe}),be.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:be.trim()})]})},[N]),X=o.useCallback(()=>{I&&te(V=>{if(V)return null;const W=M.current?.getBoundingClientRect();if(!W)return null;const oe=50;return{left:W.left,right:W.right,width:W.width,height:W.height,x:W.x,y:W.y+oe,top:W.top+oe,bottom:W.bottom+oe}})},[I]),H=o.useCallback(V=>{I&&(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),X())},[I,X]),ne=[{items:[...w?[{label:_("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{w(),te(null)},closeOnSelect:!0}]:[],...y?[{label:_("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{y(),te(null)},closeOnSelect:!0}]:[],...k?[{label:_("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{k(),te(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:M,className:`pass-card pass-card--${c}${I?" pass-card--clickable":""}`,style:P,onMouseEnter:F,onMouseMove:O,onMouseLeave:G,onPointerUp:V=>{V.pointerType==="touch"&&G()},onPointerCancel:V=>{V.pointerType==="touch"&&G()},onClick:X,onKeyDown:I?H:void 0,role:I?"button":void 0,tabIndex:I?0:void 0,"aria-label":e,"aria-haspopup":I?"menu":void 0,"aria-expanded":I?!!ee:void 0,children:[d??S2(B,E,D),!h&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:q??N2[B],className:"pass-card__logo",alt:B==="manager"?_("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):_("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:K}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:D?_("passCard.labeledPlan",{label:D}):_("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),N?n.jsxs("div",{className:"pass-card__price-area",children:[L&&n.jsx("span",{className:"pass-card__discount body-3",children:L}),n.jsxs("div",{className:"pass-card__price",children:[$&&n.jsx("span",{className:"pass-card__price-original body-3",children:ma($)}),pe]})]}):U?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:U.remainingLabel}),U.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:U.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),ee&&n.jsx(Bn,{anchorRect:ee,onClose:ie,ariaLabel:_("tooltip.menu","\uBA54\uB274"),children:n.jsx(Va,{columns:ne,onClose:ie,size:"small"})})]})}const j2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#1a1a1a"};function T2(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=Rt(j2,$n,Rn);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${qa}")`}})]})}const M2={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"var(--color-main)"};function L2(e={}){const t=Rt(M2,$n,Rn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${qa}")`}})]})}function $2(e,t){if(e){if(t==="manager_pro")return n.jsx(L2,{});if(t==="manager_standard")return n.jsx(T2,{});if(t==="manager_lite")return n.jsx(cu,{})}}function R2(e){const t=ma(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,l]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,l.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:l.trim()})]})}function P2(e){const{t}=_e.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:l,period:i="monthly",ownedCodes:u}=e||{},c=y=>!!y&&!!u?.includes(y),d=y=>y.onceOnly??/오픈\s*특가/.test(y.label??""),h=(s.tiers||[]).some(y=>d(y)&&c(y.code)),p=y=>{const k=y.prices?y.prices[i]:y.price;return k?(s.tiers||[]).some(_=>!!_.badge&&_.originals?.[i]===k):!1},m=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",b=t("payment.plan.freePrice","\uBB34\uB8CC"),v=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=y=>y.prices?y.prices[i]:y.price,f=(s.tiers||[]).length>0&&(s.tiers||[]).every(y=>{const k=C(y);return k==="\uBB34\uB8CC"||k===b||k==="0\uC6D0"||typeof k=="string"&&/\d/.test(k)&&!/[1-9]/.test(k)}),x=(s.tiers||[]).length>0&&(s.tiers||[]).every(y=>{const k=C(y);return k==="\uBB38\uC758"||k===v}),g=s.group==="org",w=g?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:m,"--plan-color":m},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(ln,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:m},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((y,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(ot,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),y]},k))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((y,k)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(ot,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),y]},k))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:f?null:x?n.jsx(fe,{htmlType:"button",className:"payment-plan__contact-button",label:t("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&l?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(y=>{const k=y.label||a,_=d(y),A=_||y.openPromo===!0,B=k.replace(/^오픈\s*특가\s*/,"")||a,E=y.prices?y.prices[i]:y.price,D=y.badge?A?`${r}
|
|
823
823
|
${y.badge}`:y.badge:void 0;if(_&&c(y.code))return null;if(!y.badge&&!h)return p(y)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${y.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:y.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:R2(E)})})]},y.id);const N=s.tier??(g?s.title:void 0),$=n.jsx(hu,{showPrice:!0,product:{type:w,code:y.code,name:B,label:N,price:E,originalPrice:y.originals?.[i]??void 0,discountLabel:D},bg:$2(g,s.id)}),L=()=>l?.({...y,productId:s.id,productTitle:s.title,preview:$});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:L,onKeyDown:l?U=>{U.target===U.currentTarget&&(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),L())}:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,children:$},y.id)})})})})]})}function F2({variant:e="default"}){return n.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var $o='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?><svg id="Logo_IHAB_en" xmlns="http://www.w3.org/2000/svg" width="765.08" height="240" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 765.08 240"><defs><linearGradient id="linear-gradient" x1="62.99" y1="62.99" x2="190.71" y2="190.71" gradientUnits="userSpaceOnUse"><stop offset=".2" stop-color="%23499cdf"/><stop offset=".8" stop-color="%234dcdc0"/></linearGradient></defs><path id="symbol" d="M190.71,49.29c-18.1-18.1-43.1-29.29-70.71-29.29s-34.94,28.87-53.03,46.97h0c-18.1,18.1-46.97,25.56-46.97,53.03s11.19,52.61,29.29,70.71c18.1,18.1,43.1,29.29,70.71,29.29s52.61-11.19,70.71-29.29c18.1-18.1,29.29-43.1,29.29-70.71s-11.19-52.61-29.29-70.71ZM155.36,155.36c-9.05,9.05-21.55,14.64-35.36,14.64s-26.31-5.6-35.36-14.64c-9.05-9.05-14.64-21.55-14.64-35.36s5.6-26.31,14.64-35.36c9.05-9.05,21.55-14.64,35.36-14.64s26.31,5.6,35.36,14.64c9.05,9.05,14.64,21.55,14.64,35.36s-5.6,26.31-14.64,35.36Z" fill="url(%23linear-gradient)"/><g id="text"><path d="M316.21,190.6h-36.74V50.61h36.74v139.99Z"/><path d="M335.16,50.61h36.74v55.11h51.63v-55.11h36.93v139.99h-36.93v-55.11h-51.63v55.11h-36.74V50.61Z"/><path d="M473.99,190.6l46.6-139.99h50.08l46.41,139.99h-39.64l-8.31-27.46h-46.99l-8.31,27.46h-39.83ZM560.62,135.3l-14.5-46.99h-1.16l-14.31,46.99h29.97Z"/><path d="M631,50.61h59.94c31.9,0,48.73,13.73,48.73,35.19,0,15.47-11.02,27.26-26.88,30.55v1.35c17.6.58,32.29,13.54,32.29,33.45,0,22.82-18.56,39.45-49.11,39.45h-64.97V50.61ZM701.77,93.53c0-8.89-6.96-13.92-17.02-13.92h-17.02v27.84h16.44c10.25,0,17.6-5.03,17.6-13.92ZM706.22,146.51c0-10.25-7.35-16.05-19.14-16.05h-19.34v30.55h18.76c13.15,0,19.72-5.03,19.72-14.5Z"/></g></svg>';const mu={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEar_ko",copyrightColor:"#c9c9c9"};function I2(){const e=Rt(mu,$n,Rn);return n.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${$o}")`}})})}const Cu={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_SpeechEarManager_ko",logoColor:"_mono",copyrightColor:"#ffffff"};function O2(e={}){const t=Rt(Cu,$n,Rn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),n.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${qa}")`}})]})}function fu({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:Be("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((l,i)=>n.jsxs("span",{className:"shortcut-badge__group",children:[i>0&&n.jsx("span",{className:"shortcut-badge__plus",children:"+"}),n.jsx("kbd",{className:"shortcut-badge__key",children:l})]},`${l}-${i}`))})}const Ua=(e,t,a)=>e+(t-e)*a;function z2({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:l=null,answerId:i=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:h,clickable:p=!1,onSelectSpeaker:m,buttonSize:b=40,showIcon:v=!0,onCenterClick:C,centerLabel:f,centerDisabled:x=!1,centerAttention:g=!1,shortcutAnchor:w="top-right",shortcutScale:y,scaleShortcut:k=!1}){const{t:_}=_e.useTranslation(),A=Math.max(0,Math.min(1,a)),B=t/2,E=110/300,D=.18,N=V=>t*(E+(V-1)*D),$=V=>{const W=N(V.row??1),oe=V.angleDeg*Math.PI/180;return{x:B+W*Math.cos(oe),y:B+W*Math.sin(oe)}},L=Math.max(...e.map(V=>V.row??1),1),U=t*.08,M=t*.1,P=t*.24,T=t-2*U,ee=t-M-P,te=t-P/2,I=o.useMemo(()=>[...new Set(e.map(V=>V.deg))].sort((V,W)=>V-W),[e]),Y=I.length,R=Math.max(68,Y>1?T/(Y-1):0),q=o.useMemo(()=>new Map(I.map((V,W)=>[V,W])),[I]),Z=V=>{const W=q.get(V.deg)??0,oe=B+(W-(Y-1)/2)*R,xe=L>1?Math.min(68,ee/(L-1)):0,be=xe*(L-1),me=M+(ee-be)/2,ke=L===1?M+ee*.4:me+(L-(V.row??1))*xe;return{x:oe,y:ke}},z=V=>{const W=$(V),oe=Z(V);return{x:Ua(W.x,oe.x,A),y:Ua(W.y,oe.y,A)}},j={x:B,y:Ua(B,te,A)},F=Math.round(b*1.2),O=Math.round(Math.max(16,Math.min(80,b*.7))),G=[],ie=new Map;for(const V of e){const W=V.row??1;ie.has(W)||ie.set(W,[]),ie.get(W).push(V)}for(const[V,W]of ie.entries()){if(W.length<2)continue;const oe=[...W].sort((ze,dt)=>ze.deg-dt.deg),xe=oe.map(ze=>z(ze)),be=oe.map(ze=>ze.deg),me=be[be.length-1]-be[0],ke=me/(be.length-1),Le=360-me,Me=oe.length>=3&&ke>0&&Le<=ke*1.5,le=Math.round(N(V)*1e3)/1e3,ve=(ze,dt,st,et)=>{const gt=(dt.angleDeg-ze.angleDeg+540)%360-180;if(gt===0)return`L ${et.x} ${et.y}`;if(A===0)return`A ${le} ${le} 0 0 ${gt>0?1:0} ${et.x} ${et.y}`;const Se=(ze.angleDeg+gt/2)*Math.PI/180,Ge={x:B+le*Math.cos(Se),y:B+le*Math.sin(Se)},we={x:(st.x+et.x)/2,y:(st.y+et.y)/2},qe={x:Ua(Ge.x,we.x,A),y:Ua(Ge.y,we.y,A)},Ye={x:2*qe.x-we.x,y:2*qe.y-we.y};return`Q ${Ye.x} ${Ye.y} ${et.x} ${et.y}`},$e=Me?[...oe,oe[0]]:oe,Ae=Me?[...xe,xe[0]]:xe;let Ie=`M ${Ae[0].x} ${Ae[0].y}`;for(let ze=1;ze<Ae.length;ze++)Ie+=" "+ve($e[ze-1],$e[ze],Ae[ze-1],Ae[ze]);G.push({key:`arc-${V}`,d:Ie})}const K=o.useMemo(()=>new Set(s??[]),[s]),pe=V=>({idle:"",active:_("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:_("soundCompass.state.played","\uB4E4\uC74C"),correct:_("soundCompass.state.correct","\uC815\uB2F5"),wrong:_("soundCompass.state.wrong","\uC624\uB2F5")})[V],X=V=>{if(r===V.id)return"active";if(u){if(V.id===i)return"correct";if(V.id===l&&l!==i)return"wrong"}return K.has(V.id)?"played":"idle"},H=V=>r===V.id?"loop":u?V.id===i?"loop":null:c&&V.id===l?"once":null,ne=(V,W)=>{switch(V){case"played":case"correct":return n.jsx(Ws,{size:W});case"wrong":return n.jsx(Js,{size:W});default:return n.jsx(Xs,{size:W})}};return n.jsx("div",{className:"sound-compass",children:n.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[n.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[A===0&&e.map(V=>{const{x:W,y:oe}=z(V);return n.jsx("line",{x1:j.x,y1:j.y,x2:W,y2:oe,stroke:"#dde3ec",strokeWidth:"1"},V.id)}),G.map(V=>n.jsx("path",{d:V.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},V.key))]}),g&&!x&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:F,height:F,left:j.x-F/2,top:j.y-F/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${x?" sound-compass__center--disabled":""}`,style:{width:F,height:F,left:j.x,top:j.y},"aria-label":f,"aria-disabled":x||void 0,tabIndex:x?-1:0,onClick:x?void 0:C,children:n.jsx(Hr,{size:O,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:F,height:F,left:j.x,top:j.y},children:n.jsx(Hr,{size:O,color:"currentColor",strokeWidth:1.5})}),e.map((V,W)=>{const{x:oe,y:xe}=z(V),be=X(V),me=H(V),ke={...y!==void 0||k?{"--shortcut-badge-scale":String(y??Math.max(.75,Math.min(3,b/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:be!=="idle"?10:1},Le=b,Me=Math.round(Math.max(10,Math.min(56,Le*.38))),le=Math.round(Math.max(7,Math.min(18,Le*.2))),ve=Math.round(Math.max(10,Math.min(56,Le*.4))),$e=v==="answered"&&(be==="played"||be==="correct"||be==="wrong"),Ae=v===!0||$e,Ie=!$e;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ke,left:oe-Le/2,top:xe-Le/2},children:[me&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${be}`+(me==="once"?" sound-compass__pulse--once":""),style:{width:Le,height:Le,...me==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...h!==void 0?{"--sc-pulse-scale":String(h)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>m?.(V.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${be}`,style:{width:Le,height:Le},"aria-label":pe(be)?`${V.label}, ${pe(be)}`:V.label,"aria-pressed":l!=null?V.id===l:void 0,children:[Ae&&ne(be,Me),Ie&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:v===!0?le:ve},children:W+1})]}),V.shortcut&&n.jsx(fu,{keys:V.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},V.id)})]})})}function W2({orientation:e="horizontal",label:t,className:a=""}){const r=Be("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?n.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?n.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[n.jsx("span",{className:"divider__line"}),n.jsx("span",{className:"divider__label caption-1",children:t}),n.jsx("span",{className:"divider__line"})]}):n.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function bu({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:l,className:i=""}){const u=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${i}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),l&&n.jsx("span",{className:"radio__label body-2",children:l})]})}function H2({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:l="vertical",className:i="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${l} ${i}`.trim(),role:"radiogroup","aria-label":u,children:e.map(h=>n.jsx(bu,{name:d,value:h.value,checked:t===h.value,disabled:s||h.disabled,label:h.label,onChange:p=>{p&&a?.(h.value)}},h.value))})}const V2={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function q2({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:l,live:i,className:u=""}){const{t:c}=_e.useTranslation(),[d,h]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const g=p.current;g&&g.contains(document.activeElement)&&mr(g),h(!0),l?.()},[l]);if(d)return null;const b=Be("alert",`alert--${e}`,u),v=i??(e==="danger"||e==="warning"?"assertive":"polite"),C=v==="assertive"?"alert":v==="polite"?"status":void 0,f=!!t,x=!!(a||r);return n.jsxs("div",{ref:p,className:b,role:C,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(ot,{icon:V2[e],size:20,className:"alert__icon"}),f&&n.jsx("span",{className:"alert__title body-2",children:t}),!f&&x&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),f&&x&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:m,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const U2={ready:"search",guide:"info",error:"circle-alert"};function G2(e,t){const a=t.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,l=0;for(const i of a){const u=e.indexOf(i,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(n.jsx("strong",{className:"search-summary__em body-2",children:i},l++)),s=u+i.length)}return s<e.length&&r.push(e.slice(s)),r}function K2({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:l=""}){const i=s===!1?null:s??U2[e],u=Be("search-summary",`search-summary--${e}`,l),c=t??a,d=typeof c=="string"&&r&&r.length>0?G2(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[i!=null&&n.jsx(ot,{icon:i,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Ga({title:e,items:t}){const{t:a}=_e.useTranslation(),{anchorRect:r,openAt:s,close:l}=za(),i=o.useRef(null),u=fr(!!r,(c,d)=>{c&&d?s(i.current?.querySelector("button")??d):l()},i);return n.jsxs("span",{ref:i,style:{display:"contents"},children:[n.jsx(fe,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{Un(c)||s(c.currentTarget)},onPointerLeave:c=>{Un(c)||l()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{ea()||s(c.currentTarget)},onBlur:l}),r&&n.jsx(qn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:l})]})}function Y2({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const l=o.useId(),{t:i}=_e.useTranslation(),u=o.useRef(null),c=e.find(C=>!C.disabled)?.key,d=e.some(C=>C.key===t)?t:c??e[0]?.key,h=e.find(C=>C.key===d&&!C.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(C,f=p())=>{if(f.length===0)return;const x=(C%f.length+f.length)%f.length;f[x]?.focus(),f[x]?.click()},b=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const f=p(),x=f.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?m(x+1,f):C.key==="ArrowLeft"||C.key==="ArrowUp"?m(x-1,f):C.key==="Home"?m(0,f):m(f.length-1,f)},v=e.find(C=>C.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":i("tabs.ariaLabel","\uD0ED"),children:e.map(C=>n.jsx("button",{id:`tabs__tab-${l}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===d,"aria-controls":`tabs__panel-${l}-${C.key}`,disabled:C.disabled,tabIndex:C.key===h?0:-1,className:`tabs__tab body-2${C.key===d?" tabs__tab--active":""}`,onClick:()=>{C.key!==t&&a?.(C.key)},onKeyDown:b,children:C.label},C.key))}),v&&n.jsx("div",{id:`tabs__panel-${l}-${v.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${l}-${v.key}`,tabIndex:0,className:"tabs__panel",children:v.panel},v.key)]})}const Z2={xs:12,sm:16,md:20,lg:28,xl:36};function X2(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function J2({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:l}=_e.useTranslation(),[i,u]=o.useState(null),c=!!e&&i===e,d=t?X2(t):"",h=!!e&&!c,p=!h&&!!d,m=t||l("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":m,children:[h&&n.jsx("img",{className:"avatar__image",src:e,alt:m,onError:()=>u(e??null)}),!h&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!h&&!p&&n.jsx(ot,{icon:"user-round",size:Z2[a],className:"avatar__icon"})]})}function Q2(e,t){if(!t)return!0;const a=t.split(",").map(l=>l.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),s=e.type.toLowerCase();return a.some(l=>{const i=l.toLowerCase();return i.startsWith(".")?r.endsWith(i):i.endsWith("/*")?s.startsWith(i.slice(0,-1)):s===i})}function ev({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:l,onRemove:i,className:u=""}){const{t:c}=_e.useTranslation(),d=o.useRef(null),[h,p]=o.useState(!1),[m,b]=o.useState([]),v=l??m,C=_=>{if(!_||_.length===0)return;const A=Array.from(_).filter(E=>Q2(E,t));if(A.length===0)return;const B=a?A:A.slice(0,1);if(l===void 0){const E=a?[...v,...B]:B;b(E),e?.(E)}else e?.(B)},f=_=>{_.preventDefault(),!r&&p(!0)},x=_=>{_.preventDefault(),p(!1)},g=_=>{_.preventDefault(),p(!1),!r&&C(_.dataTransfer.files)},w=_=>{const A=_.target;try{C(A.files)}finally{A.value=""}},y=()=>{r||d.current?.click()},k=_=>{if(!r&&(i?.(_),l===void 0)){const A=v.filter((B,E)=>E!==_);b(A),i||e?.(A)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:Be("file-upload__dropzone",h&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:y,onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),y())},onDragOver:f,onDragLeave:x,onDrop:g,children:[n.jsx(ot,{icon:"upload",size:24,className:"file-upload__icon"}),n.jsx("span",{className:"file-upload__prompt body-2",children:c("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:_=>{_.stopPropagation(),y()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:w,tabIndex:-1})]}),s&&v.length>0&&n.jsx("ul",{className:"file-upload__list",children:v.map((_,A)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:_.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:_.name}),disabled:r,onClick:()=>k(A),children:n.jsx(ot,{icon:"x",size:14})})]},`${_.name}-${A}`))})]})}function tv({items:e,className:t=""}){const{t:a}=_e.useTranslation();return n.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:n.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const l=s===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[l?n.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?n.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?n.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):n.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!l&&n.jsx(ot,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const nv={small:14,medium:20,large:28};function av({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:l,className:i=""}){const{t:u}=_e.useTranslation(),c=r||!t,[d,h]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,m=d??p,b=nv[s],v=_=>{_!==e&&t?.(_)},C=_=>{c||v(_)},f=_=>{c||ea()||h(_)},x=o.useRef(null),g=_=>{const A=Math.min(a,Math.max(1,_));v(A),Array.from(x.current?.querySelectorAll("[data-star]")??[]).find(B=>B.dataset.star===String(A))?.focus()},w=_=>{if(!c){switch(_.key){case"ArrowRight":case"ArrowUp":g((p||0)+1);break;case"ArrowLeft":case"ArrowDown":g((p||1)-1);break;case"Home":g(1);break;case"End":g(a);break;default:return}_.preventDefault()}},y=p>=1&&p<=a?Math.round(p):1,k=()=>{c||h(null)};return n.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${i}`.trim(),ref:x,onKeyDown:w,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):l??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:k,onPointerUp:_=>{_.pointerType==="touch"&&k()},onPointerCancel:_=>{_.pointerType==="touch"&&k()},children:Array.from({length:a},(_,A)=>{const B=A+1,E=Math.max(0,Math.min(1,m-A)),D=E>0&&E<1,N=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(ot,{icon:"star",size:b,className:"rating__star rating__star--empty"}),E>0&&n.jsx("span",{className:`rating__star-fill${D?" rating__star-fill--half":""}`,style:D?{width:`${E*100}%`}:void 0,children:n.jsx(ot,{icon:"star",size:b,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:N},B):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===B,"aria-label":u("rating.starLabel",{n:B}),"data-star":B,tabIndex:B===y?0:-1,onClick:()=>C(B),onMouseEnter:()=>f(B),children:N},B)})})}const rv=20,ov=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function sv({value:e,onChange:t,palette:a=ov,size:r=40,className:s="",ariaLabel:l}){const{t:i}=_e.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":l,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${i("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(ot,{icon:"check",size:rv,className:"color-picker__check"})},u)})})}function gu({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:l,useHover:i=!0,iconSize:u="medium"}){const{t:c}=_e.useTranslation(),d=u==="small",h=Be("category-icon",d?"category-icon--small":""),p=d?16:20,m=o.useRef(null),[b,v]=o.useState(!1),C=o.useMemo(()=>{const B=r&&typeof r=="object"?{...r}:{};return!s&&!l?B:{...B,...s?{color:s,"--t-item-fg":s}:{},...l?{"--t-item-bg":l}:{}}},[r,s,l]),f=a||t,x=i&&!!f,[g,w]=o.useState(null);o.useLayoutEffect(()=>{b&&w(m.current?.getBoundingClientRect()??null)},[b]),o.useEffect(()=>{if(!i&&b)try{v(!1)}catch{}},[i,b]),o.useEffect(()=>{if(!b)return;const B=E=>{const D=m.current;if(!D)return;const N=E.target;N&&!D.contains(N)&&v(!1)};return document.addEventListener("pointerdown",B,!0),()=>document.removeEventListener("pointerdown",B,!0)},[b]);const y=o.useCallback(()=>{i&&v(!0)},[i]),k=o.useCallback(()=>{i&&v(!1)},[i]),_=o.useCallback(()=>v(!1),[]),A=o.useCallback(B=>{if(B.key==="Escape"){v(!1);return}(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),v(E=>!E))},[]);return n.jsxs("span",{ref:m,className:Be("category-icon__wrap",x&&"category-icon__wrap--interactive"),onPointerEnter:y,onPointerLeave:k,onFocus:y,onBlur:k,onKeyDown:A,role:"button",tabIndex:0,"aria-label":typeof f=="string"?c("common.descriptionFor",{name:f,defaultValue:`${f} \uC124\uBA85`}):void 0,"aria-haspopup":!!f,"aria-expanded":b,"data-tooltip-ignore":!0,children:[n.jsx(ot,{icon:e,label:t,className:h,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:p}),b&&f&&n.jsx(Mn,{anchorRect:g,text:typeof f=="string"?f:void 0,offset:8,onClose:_,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let Gn=null;function Ka(e){if(Gn&&Gn!==e)try{Gn()}catch{}return Gn=e,()=>{Gn===e&&(Gn=null)}}function _r(e){if(Gn===e){Gn=null;try{e()}catch{}}}function Ya(e,t){let a=()=>{};const r=new Promise(u=>{a=u});if(typeof e!="string"||e.trim()===""){At("one-shot-empty-url","[core] playOneShot \uC5D0 \uBE48 \uC8FC\uC18C\uAC00 \uC654\uB2E4 \u2014 \uC548 \uD2BC\uB2E4. \uBD80\uB974\uB294 \uCABD\uC774 \uC8FC\uC18C\uB97C \uC5BB\uAE30 \uC804\uC5D0 \uBD88\uB800\uB2E4.",new Error("playOneShot(empty)").stack),a(!1);try{t?.(!1)}catch{}return{el:{},stop:()=>{},done:r}}let s=!1;const l=u=>{if(!s){s=!0;try{t?.(u)}catch{}a(u)}};let i;try{i=new Audio(e)}catch{return l(!1),{el:{},stop:()=>{},done:r}}i.onended=()=>l(!0),i.onerror=()=>l(!1);try{i.play().catch(()=>l(!1))}catch{l(!1)}return{el:i,stop:()=>{try{i.pause()}catch{}l(!1)},done:r}}function lv(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=i=>i.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="LISTEN_IN_NOISE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(t==="SHORT_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(t==="LONG_STORY"){const i=a.items||a.sentences||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(t==="ORDERING_SENTENCE"){const i=a.sentences||a.items||[],u=Array.isArray(i)&&i.length>0?r(i):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],l=r(Array.isArray(s)?s:[]);return l.length===0&&(a.contextCode||a.context_code)&&l.push(String(a.contextCode||a.context_code)),{previewCodes:l,previewBucket:null}}function iv(e,t){const[a,r]=o.useState(!1),[s,l]=o.useState(-1),[i,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),h=o.useRef(null),p=o.useRef(null),[m,b]=o.useState(!1),v=o.useRef([]),{previewCodes:C,previewBucket:f}=lv(e,t),x=`${C.join(",")}|${f??""}`,g=o.useMemo(()=>i.key===x?i.urls:[],[i,x]);o.useEffect(()=>{if(!C.length)return;let y=!1;return(async()=>{const k=[],_=[];for(const A of C)try{const B=kl(A,f);if(!B){k.push("");continue}let E=null;try{E=await Al(B)}catch{}if(!E)try{const D=await Nl(B);D&&(E=URL.createObjectURL(D),_.push(E))}catch{}k.push(E??"")}catch{k.push("")}y?_.forEach(A=>{try{URL.revokeObjectURL(A)}catch{}}):(v.current.forEach(A=>{try{URL.revokeObjectURL(A)}catch{}}),v.current=_,u({key:x,urls:k}))})(),()=>{y=!0}},[C.join(","),f]),o.useEffect(()=>()=>{v.current.forEach(y=>{try{URL.revokeObjectURL(y)}catch{}}),v.current=[]},[]);const w=o.useCallback(async y=>{if(y.stopPropagation(),y.preventDefault(),d.current){h.current&&_r(h.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),l(-1);return}if(!g.filter(Boolean).length)return;let k=null;const _=()=>{d.current=!1,k?.stop()};h.current=_;const A=Ka(_);d.current=!0,r(!0);for(let B=0;B<g.length&&d.current;B++){const E=g[B];if(E&&(l(B),k=Ya(E),c.current=k.el,!await k.done))break}A(),h.current===_&&(h.current=null,d.current=!1,r(!1),l(-1))},[g]);return o.useEffect(()=>()=>{h.current&&_r(h.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:g,previewHover:m,setPreviewHover:b,previewBtnRef:p,handlePreview:w}}const uv=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function Ro(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:l,renderPopup:i,completed:u,completedIds:c,selectedIds:d,tooltipText:h,useDescriptionTooltip:p=!1,onRemove:m,hideCheckBadge:b=!1,showTypeLabel:v=!1,onComplete:C,onSelect:f,onMore:x,countLabelOverride:g,size:w="square"}=e||{},{t:y}=_e.useTranslation(),[k,_]=o.useState(!1),A=o.useRef(null),[B,E]=o.useState(!1);o.useEffect(()=>{A.current?.matches(":hover")&&E(!0)},[]);const{playing:D,playingIndex:N,previewUrls:$,previewHover:L,setPreviewHover:U,previewBtnRef:M,handlePreview:P}=iv(r,a?.key),T=o.useCallback(()=>{f?f():_(!0)},[f]),ee=o.useCallback(()=>_(!1),[]),te=o.useCallback(()=>E(!0),[]),I=o.useCallback(()=>E(!1),[]),Y=o.useCallback(()=>U(!0),[U]),R=o.useCallback(()=>U(!1),[U]),[q,Z]=o.useState(null);o.useLayoutEffect(()=>{L&&Z(M.current?.getBoundingClientRect()??null)},[L,M]);const[z,j]=o.useState(null);o.useLayoutEffect(()=>{B&&!k&&p&&j(A.current?.getBoundingClientRect()??null)},[B,k,p]);const F=o.useCallback(we=>{we.target===we.currentTarget&&(we.key==="Enter"||we.key===" ")&&(we.preventDefault(),T())},[T]),O=r||null,G=o.useMemo(()=>{if(!p)return null;const we=h?(Array.isArray(h)?h:[h]).filter(Boolean):null,qe=we&&we.length>0?we:uv(O);return qe&&qe.length>0?qe:null},[p,h,O]),ie=o.useCallback(we=>{we.stopPropagation(),m?.()},[m]),K=o.useCallback(we=>we.stopPropagation(),[]),pe=o.useCallback(we=>{typeof C=="function"&&C(we)},[C]),X=u||(c&&r?.id!=null?c.has(String(r.id)):!1),H=!X&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);zi("speechear.popup.close",ee);const ne=Xl(),V=`${a?.label||""} ${t+1}`,W=O?.title||O?.name||V;let oe=a?.icon,xe,be="",me="";try{const we=O?.category_0||O?.category_main_code||O?.category_main,qe=O?.category_1||O?.category_sub_code||O?.category_sub,Ye=ne.find(mt=>mt.key===we);Ye?.icon&&(oe=Ye.icon),!xe&&Ye?.color&&(xe={"--t-item-fg":Ye.color}),!xe&&O?.iconColor&&(xe={"--t-item-fg":O.iconColor}),be=Ye?y(`topic.${Ye.key}`,{defaultValue:Ye.label||""}):"";try{const mt=Ye?.subs?.find(wt=>wt.key===qe);me=mt?y(`topic.sub.${mt.key}`,{defaultValue:mt.label||""}):""}catch{}}catch{}const ke=me?`${be} / ${me}`:be||a?.label||W,Le=we=>y("training.countQuestions",{n:we,count:we}),Me=we=>y("training.countSentences",{n:we,count:we});let le="";try{if(O)if(a?.key==="LISTEN_IN_NOISE"){let we=0;Array.isArray(O.items)&&O.items.length>0?we=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0?we=O.sentences.length:O.sentences&&(we=1),le=Me(we)}else if(a?.key==="SHORT_STORY"){let we=1;Array.isArray(r?.items)?we=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?we=r.raw.items.length:Array.isArray(O?.questions)?we=O.questions.length:Array.isArray(O?.sentences)&&(we=O.sentences.length),le=Le(we)}else if(a?.key==="LONG_STORY"){let we=1;if(Array.isArray(O.items)&&O.items.length>0){const qe=O.items.reduce((Ye,mt)=>{const wt=mt.questionItems;return Array.isArray(wt)?Ye+wt.length:Array.isArray(mt.questions)?Ye+mt.questions.length:Ye},0);we=qe>0?qe:O.items.length}else Array.isArray(O.questions)&&O.questions.length>0?we=O.questions.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(we=O.sentences.length);le=Le(we)}else if(a?.key==="ORDERING_SENTENCE"){let we=1;Array.isArray(O.items)&&O.items.length>0?we=O.items.length:Array.isArray(O.sentences)&&O.sentences.length>0&&(we=O.sentences.length),le=Me(we)}else Array.isArray(O.items)&&(le=O.items.length>0?Le(O.items.length):"")}catch{}const ve=w==="row",$e=w==="list"||ve,Ae=w==="compact",Ie=w==="small",ze=Ie&&a?.key?Uf().find(we=>we.key===a.key):void 0,dt=ze?Jl[ze.key]:void 0,st=ze?dt?y(`trainingType.${dt}.title`,{defaultValue:ze.label}):ze.label??"":"",et=v&&a?.label&&a.label!==String(W)?String(a.label):Ie&&st&&st!==String(W)?st:"",gt=!!et,Se=g!==void 0?g:le,Ge=[et,typeof W=="string"?W:"",Se].map(we=>String(we??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:A,className:`training-block-button${$e?" training-block-button--list":""}${ve?" training-block-button--row":""}${Ae?" training-block-button--compact":""}${Ie?" training-block-button--small":""}${X?" training-block-button--completed":""}${H?" training-block-button--selected":""}${gt&&!Ie?" training-block-button--withType":""}${Ie&&!gt?" training-block-button--no-type-label":""}`,onClick:T,onPointerEnter:te,onPointerLeave:I,role:"button",tabIndex:0,onKeyDown:F,"aria-label":typeof s=="string"?s:Ge||void 0,title:!p&&h&&(Array.isArray(h)?h.filter(Boolean).join(`
|
|
824
824
|
`):h)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[v&&a?.label&&a.label!==String(W)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ie&&st&&st!==String(W)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:st}),n.jsx(gu,{icon:oe,label:W,tooltip:ke,wrapperStyle:xe,iconSize:Ie||Ae?"small":"medium"}),!b&&(X||H)&&!(m&&B)&&n.jsx(Dn,{className:m?"training-block-button__check--removable":void 0,icon:"check",position:"top-left",size:32,"aria-label":X?y("training.completed","\uD6C8\uB828 \uC644\uB8CC"):y("training.selected","\uC120\uD0DD\uB428")}),m&&n.jsx(Dn,{className:`training-block-button__remove${B?" is-hover":""}`,icon:"remove",position:"top-left",size:32,"aria-label":y("common.remove","\uC81C\uAC70"),onClick:ie}),n.jsx("div",{className:`training-block-button__title ${Ae?"body-3":Ie?"body-3b":"h3"}`,children:String(W)}),n.jsxs("div",{className:"training-block-button__description",children:[Se?n.jsx("div",{className:`training-block-button__count ${Ie?"caption-2":"caption-1"}`,children:Se}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(ot,{icon:"chevron-right",label:y("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ie?12:20})})]}),($e&&!ve||Ie)&&$.length>0&&n.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:K,onPointerEnter:Y,onPointerLeave:R,children:n.jsx(fe,{htmlType:"button",size:Ie?28:32,type:"dot",icon:D?"pause":"play",variant:Ie?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:String(W).trim()?D?y("training.stopFor",{name:W,defaultValue:`${W} \uC815\uC9C0`}):y("training.previewFor",{name:W,defaultValue:`${W} \uBBF8\uB9AC \uB4E3\uAE30`}):D?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:P})})]}),x&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:we=>{we.stopPropagation(),x(we)},children:n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(W).trim()?y("common.moreFor",{name:W}):y("common.more","\uB354\uBCF4\uAE30")})})]}),L&&n.jsx(Mn,{anchorRect:q,text:D?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:R}),B&&!k&&p&&(G?n.jsx(qn,{anchorRect:z,items:G,activeIndex:N,onClose:I}):O?.subTitle?n.jsx(Mn,{anchorRect:z,text:O.subTitle,offset:8,onClose:I}):null),k&&i&&i({trainingData:O,typeKey:a?.key??"",onClose:ee,onComplete:pe,popupTitle:String(W),popupSubTitle:a?.subTitle,depth:l!=null?String(l):void 0,popupIcon:oe,popupIconTooltip:String(ke),popupWrapperStyle:xe})]})}const yu=200;function cv(e){return e.itemId?(Xf()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function vu({plan:e,groups:t,anchorRect:a,offset:r=12,onClose:s}){const{t:l}=_e.useTranslation(),i=o.useMemo(()=>t?t.map((c,d)=>({key:c.key??c.type?.key??String(d),label:c.label,type:c.type,data:c.items??[]})).filter(c=>c.data.length>0):Qf(l).map(c=>{const d=(e?.items??[]).filter(h=>h.trainingType===c.key);return{key:c.key,label:c.label,type:c,pickedCount:d.length,data:d.map(cv).filter(h=>h!=null)}}).filter(c=>c.pickedCount>0),[t,e?.items,l]);if(i.length===0)return null;const u=n.jsx("div",{className:se("training-tooltip__box"),children:n.jsx("div",{className:se("training-tooltip__groups"),children:i.flatMap(({key:c,label:d,type:h,data:p},m)=>[m>0?n.jsx("div",{className:se("training-tooltip__divider")},`div-${c}`):null,n.jsxs("div",{className:se("training-tooltip__section"),children:[n.jsx("div",{className:se("training-tooltip__section-header"),children:n.jsx("span",{className:se("training-tooltip__type-label body-3b"),children:d})}),n.jsx("div",{className:se("training-tooltip__items"),children:p.map((b,v)=>n.jsx(Ro,{index:v,type:h,trainingData:b,size:"compact",hideCheckBadge:!0},String(b.id??v)))})]},c)])})});return a?n.jsx(Bn,{anchorRect:a,offset:r,onClose:s,closeOnOutsideClick:!1,className:se("training-tooltip"),ariaLabel:l("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:u}):u}const dv=200;function pv({icon:e,count:t,title:a,plan:r,tooltip:s=!0,hoverAccent:l=!1,className:i="",onClick:u,onMouseEnter:c,onMouseLeave:d}){const h=!!u||!!c||s&&!!r,p=Be("count-tile",h&&"count-tile--interactive",h&&l&&"count-tile--accent",u&&"count-tile--clickable",i),m=o.useRef(null),[b,v]=o.useState(null),C=o.useRef(null),f=o.useRef(null),x=!!(b&&r&&s),g=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),f.current&&(clearTimeout(f.current),f.current=null)},[]),w=o.useCallback(()=>{g(),v(null)},[g]),y=o.useCallback(()=>{!s||!r||(g(),C.current=setTimeout(()=>{C.current=null,v(m.current?.getBoundingClientRect()??null)},yu))},[s,r,g]),k=o.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),!f.current&&(f.current=setTimeout(()=>{f.current=null,v(null)},dv))},[]);return o.useEffect(()=>()=>{g()},[g]),o.useEffect(()=>{(!s||!r)&&w()},[s,r,w]),o.useEffect(()=>{if(!x)return;const _=B=>B instanceof Element&&(m.current?.contains(B)||!!B.closest(".training-tooltip")),A=B=>{_(B.target)?g():k()};return document.addEventListener("pointerover",A,!0),()=>document.removeEventListener("pointerover",A,!0)},[x,g,k]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:m,className:p,onClick:u?_=>{w(),u(_)}:void 0,onKeyDown:u?_=>{_.key!=="Enter"&&_.key!==" "||(_.preventDefault(),_.currentTarget.click())}:void 0,onPointerEnter:_=>{_.pointerType==="touch"||_.pointerType==="pen"?w():y()},onMouseEnter:c,onMouseLeave:_=>{k(),d?.(_)},role:u?"button":"img",tabIndex:u?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(ot,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),b&&r&&n.jsx(vu,{plan:r,anchorRect:b,onClose:w})]})}let Za=0,_u="",Po="",Xa=0;function xu(){return wu(!1)}function hv(){return wu(!0)}function wu(e){const t=typeof document<"u";Za===0&&t&&(_u=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Xa===0&&(Po=document.body.style.paddingRight),Xa++,document.body.style.paddingRight="0px"),Za++;let a=!1;return()=>{a||(a=!0,Za=Math.max(0,Za-1),e&&t&&(Xa=Math.max(0,Xa-1),Xa===0&&(Po?document.body.style.paddingRight=Po:document.body.style.removeProperty("padding-right"))),Za===0&&t&&(document.body.style.overflow=_u))}}function mv(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:n.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function Cv({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:l="md",closeOnBackdrop:i=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:h}){const{t:p}=_e.useTranslation(),m=o.useId(),b=o.useRef(null),v=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const g=document.activeElement,w=xu(),y=b.current;return yo(y,g),y?.focus(),()=>{w();const k=document.activeElement;(!k||k===document.body||y&&y.contains(k))&&vo(g)?.focus?.()}},[e]);const C=o.useRef(v),f=o.useRef(u);o.useEffect(()=>{C.current=v,f.current=u}),o.useEffect(()=>{if(e)return Qn(()=>{f.current&&C.current()})},[e]);const x=o.useRef(!1);return bo(b,e),!e||typeof document>"u"?null:hn.createPortal(n.jsx("div",{className:Be("dialog",d),onPointerDown:i?g=>{x.current=g.target===g.currentTarget}:void 0,onMouseDown:g=>{g.target===g.currentTarget&&g.preventDefault()},onClick:i?g=>{const w=x.current;x.current=!1,w&&g.target===g.currentTarget&&v()}:void 0,children:n.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?m:void 0,tabIndex:-1,className:Be("dialog__surface",`dialog__surface--${l}`,h),onClick:g=>g.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:m,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:v,children:n.jsx(mv,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function fv({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:l,loading:i,caption:u,className:c=""}){const{t:d}=_e.useTranslation(),h=!i&&t.length===0;return n.jsxs("div",{className:Be("board",c),children:[r||s?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),s?n.jsx("div",{className:"board__toolbar",children:s}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:Be("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:i?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):h?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,m)=>n.jsx("tr",{className:"board__row",children:e.map(b=>n.jsx("td",{className:Be("board__td",`board__cell--${b.align??"left"}`),children:b.render(p,m)},b.key))},a(p,m)))})]})]})}function bv({name:e,role:t,photo:a,media:r,credentials:s,size:l=190,className:i=""}){return n.jsxs("div",{className:Be("person-card",i),children:[n.jsx("div",{className:"person-card__photo",style:{width:l,height:l},children:r??(a?n.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),n.jsx("h3",{className:"person-card__name",children:e}),t?n.jsx("p",{className:"person-card__role",children:t}):null,s?.length?n.jsx("ul",{className:"person-card__credentials",children:s.map(u=>n.jsx("li",{children:u},u))}):null]})}function gv({groups:e,className:t=""}){return n.jsx("div",{className:Be("timeline",t),children:e.map(a=>n.jsxs("section",{className:"timeline__group",children:[n.jsx("h3",{className:"timeline__title",children:a.title}),n.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>n.jsxs("li",{className:"timeline__row",children:[r.label?n.jsx("span",{className:"timeline__label",children:r.label}):null,n.jsx("div",{className:"timeline__items",children:r.items.map((l,i)=>n.jsx("p",{children:l},i))})]},`${r.label??""}-${s}`))})]},a.title))})}function yv({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:l,width:i,className:u=""}){const c=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:Be("publication-card",u),style:i?{width:i,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),l?n.jsx("div",{className:"publication-card__footer",children:l}):null]})}function vv({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=Ia(a);return o.useEffect(()=>{const l=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(l)},[r,s]),n.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:n.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}function _v({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:l="dark",className:i=""}){const u=s===1?"h1":"h2";return n.jsxs("div",{className:Be("section-header",`section-header--${l}`,i),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function xv({items:e,className:t=""}){return n.jsx("ul",{className:Be("company-meta",t),children:e.map((a,r)=>n.jsxs("li",{className:"company-meta__item",children:[r>0?n.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}const Ja=new Map;function vn(e){const{t}=_e.useTranslation(),{options:a=[],value:r=a.find(y=>!y.disabled)?.key??a[0]?.key,onChange:s=y=>{},className:l="",size:i=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:h,ariaLabel:p}=e||{},m=o.useRef(null),b=a.filter(y=>!y.disabled),v=o.useId(),C=a.map(y=>y.key).join("\xB7");o.useEffect(()=>{if(!(!zn||p!=null&&p!=="")){if(Ja.set(v,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),Ja.size>1){const y=[...Ja.values()].sort();At(`segmented-control-unnamed:${y.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${Ja.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${y.join(" / ")}`)}return()=>{Ja.delete(v)}}},[p,C,v]);const f=y=>{if(!b.length)return;const k=Math.max(0,b.findIndex(A=>A.key===r)),_=y==="first"?b[0]:y==="last"?b[b.length-1]:b[(k+y+b.length)%b.length];_&&(s(_.key),Array.from(m.current?.querySelectorAll("[data-segkey]")??[]).find(A=>A.dataset.segkey===_.key)?.focus())},x=y=>{switch(y.key){case"ArrowRight":case"ArrowDown":f(1);break;case"ArrowLeft":case"ArrowUp":f(-1);break;case"Home":f("first");break;case"End":f("last");break;default:return}y.preventDefault()},g=y=>{const k=_=>typeof _=="string"||typeof _=="number";if(!(!k(y.label)||y.count==null||y.count===!1||!k(y.count)))return`${y.label}, ${y.count}`},w=b.some(y=>y.key===r)?r:b[0]?.key;return n.jsx("div",{ref:m,onKeyDown:x,className:Be("segmented-control",`segmented-control--${u}`,`segmented-control--${i}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",h!=null&&"segmented-control--min",l),style:h!=null?{"--segmented-min-button-w":`${h}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(y=>n.jsx(fe,{htmlType:"button",role:"radio","aria-checked":y.key===r,"data-segkey":y.key,tabIndex:y.key===w?0:-1,label:y.label,count:y.count,ariaLabel:g(y),disabled:y.disabled,className:y.key===r?"is-selected":"",onClick:()=>{y.disabled||s(y.key)},size:i,shape:u,useBorder:!1,useBG:!1},y.key))})}const wv=260;function Pn(e){const{t}=_e.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:l,children:i,buttons:u,footer:c,footerStart:d,footerEnd:h,footerNote:p,footerNoteDivider:m=!1,footerClassName:b="",footerLayout:v="center",onClose:C,closeDisabled:f=!1,beforeClose:x,closeOnBackdrop:g=!0,className:w="",ariaLabel:y,useTitle:k=!0,inline:_=!1,size:A,layer:B="modal",height:E,fillBody:D=!1,resetScrollKey:N}=e||{},[$,L]=o.useState(!1),U=o.useRef(!1),M=o.useRef(null),P=o.useId(),T=o.useRef(null);o.useEffect(()=>{},[_,a,y,w]),o.useEffect(()=>{N!==void 0&&T.current&&(T.current.scrollTop=0)},[N]);const[ee,te]=o.useState(!1);o.useEffect(()=>{const H=T.current;if(!H)return;const ne=()=>te(H.scrollHeight>H.clientHeight+1);if(ne(),typeof ResizeObserver>"u")return;const V=new ResizeObserver(ne);V.observe(H);const W=H.firstElementChild;return W&&V.observe(W),()=>V.disconnect()},[i,N]),o.useEffect(()=>{if(!_)return xu()},[_]);const I=o.useRef(typeof document>"u"?null:document.activeElement);o.useEffect(()=>{if(_)return;const H=I.current,ne=M.current;return yo(ne,H),ne&&!ne.contains(document.activeElement)&&(ne.querySelector(En)??ne).focus(),()=>{const V=document.activeElement;(!V||V===document.body||ne&&ne.contains(V))&&vo(H)?.focus?.()}},[_]),bo(M,!_);const Y=o.useRef(!0),R=_o(),q=o.useRef(null);o.useEffect(()=>(Y.current=!0,()=>{Y.current=!1,q.current&&(clearTimeout(q.current),q.current=null)}),[]);const Z=o.useCallback(()=>{!Y.current||!U.current||(U.current=!1,L(!1))},[]),z=o.useCallback((H,ne=!1)=>{if(ne&&!Y.current||U.current)return;U.current=!0,L(!0);const V=setTimeout(()=>{q.current===V&&(q.current=null);let W;try{W=H?H():void 0}catch{Z();return}W&&typeof W.then=="function"&&W.then(()=>{setTimeout(Z,120)},Z)},R?0:wv);ne&&(q.current=V)},[Z,R]),j=o.useCallback(()=>{f||x&&x()===!1||z(C,!0)},[z,C,f,x]),F=o.useRef(j);o.useEffect(()=>{F.current=j});const O=!_&&!!C;o.useEffect(()=>{if(O)return Qn(()=>F.current())},[O]);const G=O&&g,ie=o.useRef(!1),K=H=>{ie.current=H.target===H.currentTarget},pe=H=>{const ne=ie.current;ie.current=!1,ne&&H.target===H.currentTarget&&j()},X=n.jsx("div",{className:`popup ${_?"popup--inline":""} ${B==="belowPagePopup"?"popup--below-page-popup":""} ${$?"popup--closing":""} ${w}`,onPointerDown:G?K:void 0,onClick:G?pe:void 0,onMouseDown:_?void 0:H=>{H.target===H.currentTarget&&H.preventDefault()},children:n.jsxs("div",{ref:M,className:`popup-panel${A?` popup-panel--${A}`:""}${E!=null?" popup-panel--has-height":""}${D?" popup-panel--fill-body":""}`,style:E!=null?{"--popup-height":typeof E=="number"?`${E}px`:E}:void 0,tabIndex:-1,role:_?void 0:"dialog","aria-modal":_?void 0:!0,"aria-labelledby":!_&&k&&a?P:void 0,"aria-label":!_&&!(k&&a)?y??(typeof a=="string"?a:void 0):void 0,children:[!k&&(s||C)?n.jsxs("div",{className:"popup-close-float",children:[s,C&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:j,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||C?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:P,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:P,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),n.jsxs("div",{className:"popup-header-aside",children:[l&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(vn,{size:40,ariaLabel:l.ariaLabel,options:l.options.map(H=>({key:H.key,label:H.label,disabled:H.disabled})),value:l.value,onChange:l.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,C&&n.jsx(fe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:j,disabled:f,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]})]}):null,n.jsx("div",{className:"popup-content",ref:T,tabIndex:ee?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:z,closeWithAnimation:j}):i})}),p!=null&&p!==!1&&n.jsx("div",{className:`popup-footer-note caption-1${m?" popup-footer-note--divider":""}`,role:"note",children:p}),d||h?n.jsxs("div",{className:`popup-footer popup-footer--bar${b?` ${b}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:z,closeWithAnimation:j}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof h=="function"?h({animateThen:z,closeWithAnimation:j}):h})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${v!=="center"?` popup-footer--${v}`:""}`,children:u.map((H,ne)=>n.jsx(fe,{htmlType:"button",size:48,variant:H.variant??"default",label:H.label,disabled:H.disabled,onClick:()=>H.onClick?.({animateThen:z,closeWithAnimation:j})},ne))}):c?n.jsx("div",{className:`popup-footer${v!=="center"?` popup-footer--${v}`:""}${b?` ${b}`:""}`,children:typeof c=="function"?c({animateThen:z,closeWithAnimation:j}):c}):null]})});return _||typeof document>"u"?X:hn.createPortal(X,document.body)}function Bu({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:l="right",className:i="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${i}`.trim(),children:[l==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),l==="right"&&c]})}const Ft=40;function _n({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:l=!1,size:i=Ft,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:h}){const{t:p}=_e.useTranslation(),m=r??p("dropdown.placeholder","\uC120\uD0DD"),b=o.useId(),v=o.useId(),C=o.useRef(null),f=o.useCallback((M,P)=>{const T=window.innerHeight-M.bottom<260&&M.top>260;return{position:"fixed",left:M.left,minWidth:M.width,...T?{bottom:window.innerHeight-M.top+6}:{top:M.bottom+6},zIndex:Wa(P)}},[]),{open:x,setOpen:g,toggle:w,style:y,triggerRef:k,menuRef:_}=Ha({computeStyle:f}),[A,B]=o.useState(-1),E=o.useCallback(()=>B(-1),[]),D=e.find(M=>M.value===t);o.useEffect(()=>{if(x){const M=e.findIndex(P=>P.value===t);B(M>=0?M:e.length?0:-1),requestAnimationFrame(()=>{const P=_.current;if(!P)return;const T=P.querySelectorAll(".dropdown__option")[M];T&&(P.scrollTop=Math.max(0,T.offsetTop-P.clientHeight/2+T.clientHeight/2))})}},[x]),o.useEffect(()=>{x&&B(M=>{if(M>=0&&M<e.length)return M;const P=e.findIndex(T=>T.value===t);return P>=0?P:e.length?0:-1})},[x,e.length]);const N=o.useCallback(()=>{s||w()},[s,w]),$=o.useCallback(M=>{M.disabled||s||(M.value!==t&&a?.(M.value),g(!1))},[a,g,s,t]);o.useEffect(()=>{s&&g(!1)},[s,g]);const L=o.useCallback(M=>{if(!s){if(!x){(M.key==="Enter"||M.key===" "||M.key==="ArrowDown")&&(M.preventDefault(),g(!0));return}if(M.key==="Escape"){M.preventDefault(),g(!1);return}M.key==="ArrowDown"?(M.preventDefault(),B(P=>{let T=P+1;for(;T<e.length&&e[T].disabled;)T++;return T<e.length?T:P})):M.key==="ArrowUp"?(M.preventDefault(),B(P=>{let T=P-1;for(;T>=0&&e[T].disabled;)T--;return T>=0?T:P})):(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),e[A]?$(e[A]):g(!1))}},[s,x,e,A,$,g]),U=x?n.jsx("div",{ref:_,id:b,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:y,onMouseLeave:E,onMouseDown:M=>M.preventDefault(),children:e.map((M,P)=>n.jsxs("button",{id:`${b}-option-${P}`,type:"button",role:"option","aria-selected":M.value===t,className:Be("dropdown__option body-2",M.value===t?"dropdown__option--active":"",P===A?"dropdown__option--active":"",M.disabled?"dropdown__option--disabled":""),onMouseDown:T=>T.preventDefault(),onClick:()=>$(M),onMouseEnter:()=>B(P),disabled:M.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:M.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),M.label]},M.value))}):null;return n.jsxs("div",{ref:C,className:Be("dropdown",`dropdown--s${i}`,x?"dropdown--open":"",l?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:L,children:[n.jsxs("button",{ref:k,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":x,"aria-controls":x?b:void 0,"aria-activedescendant":x&&A>=0?`${b}-option-${A}`:void 0,"aria-label":d,"aria-describedby":[d&&D?v:"",h??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:N,onBlur:M=>{x&&!_.current?.contains(M.relatedTarget)&&g(!1)},children:[n.jsx("span",{id:v,className:`dropdown__trigger-label body-2${D?"":" dropdown__trigger-label--placeholder"}`,children:D?D.label:m}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&hn.createPortal(U,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}const Bv={hearingAid:"hearingAid",cochlearImplant:"cochlearImplant",other:"other",\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant",\uAE30\uD0C0:"other"};function ku(e){return e?Bv[e]??null:null}function Au(e){switch(ku(e)){case"hearingAid":return"main";case"cochlearImplant":return"sub";default:return"default"}}function Nu(e,t){const a=ku(e);return a?t(`device.type.${a}`,{defaultValue:e??""}):e??""}const ga=e=>e==null?"":String(e).trim();function Fo(e,t,a,r){const s=ga(e),l=ga(t),i=ga(a);if(r&&s&&l&&i){const c=`${s.padStart(4,"0")}-${l.padStart(2,"0")}-${i.padStart(2,"0")}`,d=new Date(c);if(!Number.isNaN(d.getTime())&&d.toISOString().slice(0,10)===c){const h=ql(c,r);if(h)return h}}const u=[s,l,i];for(;u.length>0&&u[u.length-1]==="";)u.pop();return u.join(".")}function kv(e,t,a){const r=ga(e);return r?`${r}-${ga(t).padStart(2,"0")}-${ga(a).padStart(2,"0")}`:""}function Eu(e){return typeof e=="string"?e:e.label}function Du({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:l,autoActiveFirst:i=!1}){const u=o.useId(),[c,d]=o.useState(!1),[h,p]=o.useState(-1),m=o.useRef(null),b=o.useMemo(()=>{if(!a.length)return[];const N=e??"";return s===!1?a:N?typeof s=="function"?s(a,N):a.filter($=>Eu($).toLowerCase().includes(N.toLowerCase())):r?a:[]},[a,e,r,s]),[v,C]=o.useState(!1),f=o.useRef([]),x=v&&b.length===0?f.current:b;o.useEffect(()=>{x.length&&(f.current=x)},[x]);const g=o.useCallback(()=>C(!0),[]),w=o.useCallback(()=>C(!1),[]),y=i?0:-1;o.useEffect(()=>{c||p(y)},[c,y]),o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const k=h<x.length?h:y<x.length?y:-1,_=o.useCallback(N=>{l?l(N):t?.(Eu(N)),d(!1)},[t,l]),A=o.useCallback(()=>d(!0),[]),B=o.useCallback(()=>{d(!0),p(y)},[y]),E=o.useCallback(()=>{m.current=setTimeout(()=>d(!1),120)},[]),D=o.useCallback(N=>{N.nativeEvent.isComposing||N.keyCode===229||(N.key==="ArrowDown"?(N.preventDefault(),d(!0),p($=>Math.min(x.length-1,($<x.length?$:y)+1))):N.key==="ArrowUp"?(N.preventDefault(),p($=>Math.max(y,($<x.length?$:x.length)-1))):N.key==="Enter"?k>=0&&_(x[k]):N.key==="Escape"&&c&&(N.preventDefault(),d(!1)))},[x,k,c,_,y]);return{listId:u,open:c,activeIdx:k,filtered:x,handleFocus:A,handleBlur:E,handleInput:B,handleKeyDown:D,handleSelect:_,handleCompositionStart:g,handleCompositionEnd:w}}const Io=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Kn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:l,label:i,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:h,ghostText:p,ghostHint:m,type:b="text",disabled:v=!1,readOnly:C=!1,error:f,helperText:x,maxLength:g,size:w=40,variant:y="input",fullWidth:k=!1,newline:_=!1,multiline:A=!1,rows:B=3,leftIcon:E,rightIcon:D,clearable:N=!1,list:$,showCount:L=!0,className:U="",onFocus:M,onBlur:P,onKeyDown:T,onEnter:ee,inputMode:te,autoComplete:I,autoFocus:Y,suggestions:R,filterSuggestions:q,onSelectSuggestion:Z,autoActiveFirst:z,openOnFocus:j=!1}=e,F=C||v?void 0:R,{t:O}=_e.useTranslation(),G=o.useId();!i&&!u&&At(`TextField:unnamed:${G}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const ie=`tf-${G}`,K=`tf-helper-${G}`,pe=o.useRef(null),X=Du({value:t??"",onChange:l,suggestions:F??[],openOnFocus:j,filterSuggestions:q,onSelectSuggestion:Z,autoActiveFirst:z}),H=!!F&&X.open&&X.filtered.length>0,ne=o.useRef(null),[V,W]=o.useState(null),oe=o.useCallback(()=>{const Se=ne.current;if(!Se||typeof window>"u")return;const Ge=Se.getBoundingClientRect(),we=230,qe=window.innerHeight-Ge.bottom<we+8&&Ge.top>we+8;W({position:"fixed",left:Ge.left,width:Ge.width,...qe?{bottom:window.innerHeight-Ge.top+8}:{top:Ge.bottom+8},zIndex:Wa(Se)})},[]);Io(()=>{if(!H)return;oe();let Se=null;const Ge=()=>{if(typeof requestAnimationFrame>"u"){oe();return}Se===null&&(Se=requestAnimationFrame(()=>{Se=null,oe()}))},we=qe=>{const Ye=qe.target;Ye&&Ye.nodeType===1&&Ye.closest?.(".text-field__suggestions")||Ge()};return window.addEventListener("scroll",we,!0),window.addEventListener("resize",Ge),()=>{Se!==null&&cancelAnimationFrame(Se),window.removeEventListener("scroll",we,!0),window.removeEventListener("resize",Ge)}},[H,oe]);const xe=o.useCallback(Se=>{pe.current=Se,typeof s=="function"?s(Se):s&&(s.current=Se)},[s]),be=p?`${p}${m??O("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:h,me=t!==void 0,ke=me&&b==="password",[Le,Me]=o.useState((a??"").length),le=me?(t??"").length:Le,ve=o.useRef(t);Io(()=>{ve.current=t}),o.useEffect(()=>{const Se=pe.current;if(!ke||!Se)return;const Ge=t??"";Se.value!==Ge&&(Se.value=Ge)},[ke,t]),o.useEffect(()=>{if(!_||!pe.current)return;const Se=pe.current;Se.style.height="",Se.scrollHeight>Se.clientHeight&&(Se.style.height=`${Se.scrollHeight}px`)},[t,Le,_]);const $e=g!=null&&le>g,Ae=w===32?16:20,Ie=Be("text-field",`text-field--s${w}`,y==="display"?"text-field--display":"",k?"text-field--full-width":"",v?"text-field--disabled":"",C?"text-field--readonly":"",f?"text-field--error":"",E?"text-field--has-left-icon":"",D||N?"text-field--has-right-icon":"",U),ze={id:ie,...ke?{}:me?{value:t}:{defaultValue:a},ref:xe,placeholder:be,name:r,disabled:v,readOnly:C,autoFocus:Y,maxLength:g,list:$,inputMode:te,autoComplete:I,"aria-label":!i&&u?u:void 0,"aria-required":d,"aria-invalid":!!f,"aria-describedby":[x||f?K:null,c].filter(Boolean).join(" ")||void 0,role:F?"combobox":void 0,"aria-autocomplete":F?"list":void 0,"aria-haspopup":F?"listbox":void 0,"aria-expanded":F?H:void 0,"aria-controls":H?X.listId:void 0,"aria-activedescendant":H&&X.activeIdx>=0?`${X.listId}-option-${X.activeIdx}`:void 0,onChange:Se=>{const Ge=Se.target;me||Me(Ge.value.length),l?.(Ge.value),F&&X.handleInput(),ke&&queueMicrotask(()=>{const we=ve.current??"";Ge.value!==we&&(Ge.value=we)})},onCompositionStart:F?X.handleCompositionStart:void 0,onCompositionEnd:F?X.handleCompositionEnd:void 0,onFocus:(Se=>{M?.(Se),F&&X.handleFocus()}),onBlur:(Se=>{P?.(Se),F&&X.handleBlur()}),onKeyDown:(Se=>{const Ge=(Se.key==="Tab"&&!Se.shiftKey||Se.key===" ")&&!Se.nativeEvent.isComposing;if(p&&Ge&&!C&&!v&&!(Se.currentTarget.value??"").trim()){Se.preventDefault();const we=Se.currentTarget;me||(we.value=p,Me(p.length)),l?.(p);return}F&&Se.key==="Enter"&&!Se.nativeEvent.isComposing&&X.activeIdx>=0?Se.preventDefault():ee&&Se.key==="Enter"&&!Se.nativeEvent.isComposing&&(Se.preventDefault(),ee()),T?.(Se),F&&X.handleKeyDown(Se)})},dt=N&&!v&&!C&&le>0,st=()=>_?n.jsx("textarea",{...ze,className:"text-field__input text-field__input--auto body-2",rows:1}):A?n.jsx("textarea",{...ze,className:"text-field__input text-field__input--textarea body-2",rows:B}):n.jsx("input",{...ze,type:b,className:"text-field__input body-2"}),et=y==="display"&&!_&&!A&&!!be,gt=()=>n.jsxs(n.Fragment,{children:[st(),et&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:be})]});return n.jsxs("div",{ref:ne,className:Ie,children:[i&&n.jsxs("label",{htmlFor:ie,className:"text-field__label caption-1",children:[i,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[E&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(ot,{icon:E,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ae})}),gt(),g!=null&&L&&n.jsxs("span",{className:`text-field__count caption-2${$e?" text-field__count--over":""}`,children:[le,"/",g]}),dt&&n.jsx(fe,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:O("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:Se=>{Se.preventDefault()},onClick:()=>{!me&&pe.current&&(pe.current.value="",Me(0)),l?.("")},tabIndex:-1}),D&&!dt&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(ot,{icon:D,label:"",className:"",svgClassName:"text-field__icon-svg",size:Ae})})]}),!!F&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:X.open&&(t??"").length>0&&X.filtered.length===0?O("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),H&&(typeof document>"u"?null:hn.createPortal(n.jsx("ul",{id:X.listId,className:"text-field__suggestions",role:"listbox",style:V??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:X.filtered.map((Se,Ge)=>n.jsx("li",{id:`${X.listId}-option-${Ge}`,role:"option","aria-selected":Ge===X.activeIdx,className:`text-field__suggestion body-2${Ge===X.activeIdx?" is-active":""}`,onMouseDown:we=>we.preventDefault(),onClick:()=>{X.handleSelect(Se),pe.current?.focus()},children:typeof Se=="string"?Se:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:Se.label}),Se.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:Se.hint})]})},typeof Se=="string"?`${Se}-${Ge}`:Se.id))}),document.body)),(x||f)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:K,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||x})})]})}const Su=()=>{};function un(e){const t=o.useId();if(!("variant"in e)){const{label:g,sub:w,onClick:y,children:k,align:_="horizontal",icon:A,useFullWidth:B=!1}=e,E=D=>{y&&D.target===D.currentTarget&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),y())};return n.jsxs("div",{className:Be("panel-row",_==="vertical"?"panel-row--vertical":"",B?"panel-row--label-fixed panel-row--fill":"",y?"panel-row--clickable":""),onClick:y,onKeyDown:y?E:void 0,role:y?"button":void 0,tabIndex:y?0:void 0,children:[A!=null&&n.jsx("div",{className:"panel-row__icon",children:A}),g!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:g}),w&&n.jsx("div",{className:"panel-row__sub caption-1",children:w})]}),n.jsx("div",{className:"panel-row__right",children:k})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx(Ca,{size:28})});if(e.variant==="custom"&&!e.label)return n.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:s,onClick:l,required:i,error:u,align:c="horizontal",useFullWidth:d=!1,icon:h}=e,p=a==="button"?void 0:l;let m=null;const b=a==="toggle"?`panel-toggle-${t}`:void 0,v=u?`panel-error-${t}`:void 0,C=`panel-helper-${t}`;if(a==="toggle"){const g=e;m=n.jsx(Bu,{checked:g.checked,onChange:g.onChange,id:b})}else if(a==="segmented"){const g=e;m=n.jsx(vn,{options:g.options,value:g.value,onChange:g.onChange,size:g.size??Ft,ariaLabel:r})}else if(a==="dropdown"){const g=e,w=g.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:g.dropdowns.map((y,k)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(_n,{options:y.options,value:y.value,onChange:y.onChange,size:Ft,placeholder:y.placeholder,block:d,error:!!u,ariaDescribedBy:v,ariaLabel:y.ariaLabel??([r,y.placeholder].filter(Boolean).join(" ")||void 0)})},k))}):n.jsx(_n,{options:g.options??[],value:g.value??"",onChange:g.onChange??Su,size:Ft,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:v});m=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[w,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}):w}else if(a==="button"){const g=e;g.buttons?.length?m=n.jsx("div",{className:"panel-row__button-group",children:g.buttons.map((w,y)=>n.jsx(fe,{htmlType:"button",size:w.btnSize??Ft,variant:w.btnVariant??"default",disabled:w.disabled,onClick:w.onClick,children:w.label},y))}):m=n.jsx(fe,{htmlType:"button",size:g.btnSize??Ft,variant:g.btnVariant??"default",disabled:g.disabled,onClick:g.onClick,children:g.buttonLabel})}else if(a==="text"){const g=e;m=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:g.valueColor?{color:g.valueColor}:void 0,children:g.value})}else if(a==="input"){const g=e;m=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Kn,{size:Ft,value:g.value,onChange:g.onChange??Su,onKeyDown:g.onKeyDown,onEnter:g.onEnter,placeholder:g.placeholder,ghostText:g.ghostText,inputMode:g.inputMode,readOnly:g.readOnly,disabled:g.disabled,type:g.type,autoComplete:g.autoComplete,maxLength:g.maxLength,showCount:g.showCount,multiline:g.multiline,rows:g.rows,fullWidth:d,error:u,ariaLabel:r,required:i,ariaDescribedBy:g.helperText?C:void 0}),g.helperText&&n.jsx("div",{id:C,className:"panel-row__helper caption-1",children:g.helperText})]})}else a==="custom"&&(m=e.children);u&&a!=="input"&&a!=="dropdown"&&(m=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[m,n.jsx("span",{id:v,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,x=g=>{p&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),p())};return n.jsxs("div",{className:Be("panel-row",c==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?x:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[h!=null&&n.jsx("div",{className:"panel-row__icon",children:h}),n.jsxs("div",{className:"panel-row__left",children:[b?n.jsxs("label",{htmlFor:b,className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,i&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:m})]})}function ju(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function Av({devices:e,onRelease:t,emptyLabel:a}){const{t:r,i18n:s}=_e.useTranslation();return n.jsx("div",{className:"panel-row panel-row--device",children:["left","right"].map(l=>{const i=e[l],u=l==="left"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:u}),i&&t&&n.jsx(fe,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${u} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>t(l)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx(ln,{size:"small",variant:Au(i.device),fill:"soft",label:Nu(i.device,r)}),ju(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:ju(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),Fo(i.wornYear,i.wornMonth,i.wornDay,s.language)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:Fo(i.wornYear,i.wornMonth,i.wornDay,s.language)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},l)})})}function Qa({title:e,titleLevel:t=2,icon:a,disc:r,actions:s,size:l="medium",minHeight:i,maxWidth:u,className:c,scrollable:d,scrollbarGutter:h="auto",compactRows:p=!1,useBorder:m=!0,useBg:b=!0,useRowBorder:v=!0,labelWidth:C,form:f=!1,loading:x,empty:g,children:w}){const y=Be("panel",`panel--${l}`,f?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",b?"":"panel--no-bg",v?"":"panel--no-row-border",p?"panel--compact-rows":"",c),k={};i!==void 0&&(k.minHeight=i),u!==void 0&&(k.maxWidth=typeof u=="number"?`${u}px`:u),C!==void 0&&(k["--panel-label-width"]=typeof C=="number"?`${C}px`:C);const _=t?`h${t}`:"div";return n.jsxs("div",{className:y,style:Object.keys(k).length?k:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:Be("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(ot,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(_,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&n.jsx("div",{className:"panel__actions",children:s})]}),x?n.jsx(un,{variant:"loading"}):g!=null&&o.Children.toArray(w).length===0?n.jsx(un,{variant:"empty",children:g}):d?n.jsx("div",{className:Be("panel__body--scroll",h==="stable"&&"panel__body--gutter-stable"),children:w}):w]})}function Nv({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:s,style:l,children:i}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const m=new ResizeObserver(([b])=>d(b.contentRect.width));return m.observe(p),()=>m.disconnect()},[r]);const h=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:Be("panel-grid",t==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":h?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...l},children:i})}function Oo({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:l="medium",className:i,title:u,ariaLabel:c}){const d=o.useRef(null),h=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:Be("checkbox",l==="small"&&"checkbox--small",l==="large"&&"checkbox--large",a&&"checkbox--disabled",i),htmlFor:h,title:u,children:[n.jsx("input",{ref:d,id:h,type:"checkbox",className:"checkbox__input",checked:e,onChange:m=>{t?.(m.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!s&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function Tu(e,t){const a=()=>{if(e){const[C,f]=e.split("-");return{y:+C,m:+f-1}}const[b,v]=cr(t).split("-");return{y:+b,m:+v-1}},[r,s]=o.useState(()=>a().y),[l,i]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const b=a();s(b.y),i(b.m)},[e]);const c=o.useRef({y:r,m:l});o.useEffect(()=>{c.current={y:r,m:l}},[r,l]);const d=o.useCallback(b=>{const v=c.current.y*12+c.current.m+b,C=Math.floor(v/12),f=v-C*12;c.current={y:C,m:f},s(C),i(f)},[]),h=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),m=o.useCallback((b,v)=>{c.current={y:b,m:v},s(b),i(v)},[]);return{viewY:r,viewM:l,prevMonth:h,nextMonth:p,setViewYM:m}}function xr(e,t){return new Date(e,t+1,0).getDate()}function Ev(e,t){return new Date(e,t,1).getDay()}function er(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function Dv(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function Sv(e){const t=e.replace(/\D/g,"");if(t.length!==8)return null;const a=+t.slice(0,4),r=+t.slice(4,6),s=+t.slice(6,8);if(r<1||r>12||s<1||s>31)return null;const l=new Date(a,r-1,s);return l.getFullYear()!==a||l.getMonth()!==r-1||l.getDate()!==s?null:er(a,r-1,s)}const jv=1900;function Tv(e,t,a,r,s){const l=r?+r.split("-")[0]:Math.min(jv,e),i=s?+s.split("-")[0]:Math.max(t+10,e),u=[];for(let c=l;c<=i;c++)u.push({value:String(c),label:a(c)});return u}function Mu(e,t,a,r){const s=[];for(let l=1;l<=12;l++){const i=`${e}-${String(l).padStart(2,"0")}`;a&&i<a.slice(0,7)||r&&i>r.slice(0,7)||s.push({value:String(l),label:t(e,l)})}return s}function Lu({value:e,onChange:t,size:a=Ft,min:r,max:s,disabled:l,placeholder:i,className:u,today:c}){const{t:d,i18n:h}=_e.useTranslation(),p=i??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),m=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),b=cr(c),{viewY:v,viewM:C,prevMonth:f,nextMonth:x,setViewYM:g}=Tu(e,c),w=o.useId(),y=o.useCallback((H,ne)=>{const V=window.innerHeight,W=window.innerWidth,oe=typeof document<"u"?document.getElementById(w):null,xe=Math.max(oe?.offsetHeight||0,oe?.scrollHeight||0)||300,be=Math.max(H.width,oe?.offsetWidth||0,260),me=V-H.bottom,ke=H.top,Le=me<xe&&ke>me,Me=8,le=(ve,$e)=>Math.min(Math.max(Me,ve),Math.max(Me,$e));return{position:"fixed",left:le(H.left,W-be-Me),width:H.width,minWidth:260,...Le?{top:"auto",bottom:le(V-H.top+6,V-xe-Me)}:{bottom:"auto",top:le(H.bottom+6,V-xe-Me)},zIndex:Wa(ne)}},[w]),{open:k,setOpen:_,toggle:A,style:B,triggerRef:E,menuRef:D}=Ha({computeStyle:y,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!k)return;const H=D.current;return(H?.querySelector(".date-picker__day--selected:not(:disabled)")??H?.querySelector(".date-picker__day--today:not(:disabled)")??H?.querySelector(".date-picker__day:not(:disabled)")??H?.querySelector(En)??H)?.focus?.(),()=>{const ne=document.activeElement;(!ne||ne===document.body)&&E.current?.focus?.()}},[k,D,E]);const[N,$]=o.useState(1),L=o.useRef(null),U=o.useRef(null);o.useEffect(()=>{if(!k)return;const H=e&&e.slice(0,7)===`${v}-${String(C+1).padStart(2,"0")}`?+e.slice(8):b.slice(0,7)===`${v}-${String(C+1).padStart(2,"0")}`?+b.slice(8):1;$(H)},[k]),o.useEffect(()=>{if(U.current==null)return;const H=U.current;U.current=null,L.current?.querySelector(`[data-day="${H}"]`)?.focus()}),o.useEffect(()=>{$(H=>Math.min(H,xr(v,C)))},[v,C]);const M=o.useCallback(H=>{let ne=er(H.getFullYear(),H.getMonth(),H.getDate());r&&ne<r&&(ne=r),s&&ne>s&&(ne=s);const[V,W,oe]=ne.split("-").map(Number);(V!==v||W-1!==C)&&g(V,W-1),$(oe),U.current=oe},[r,s,v,C,g]),P=o.useCallback(H=>{const ne=new Date(v,C,N),V=oe=>{ne.setDate(ne.getDate()+oe),M(ne)},W=oe=>{const xe=ne.getFullYear()*12+ne.getMonth()+oe,be=Math.floor(xe/12),me=xe-be*12;M(new Date(be,me,Math.min(ne.getDate(),xr(be,me))))};switch(H.key){case"ArrowLeft":V(-1);break;case"ArrowRight":V(1);break;case"ArrowUp":V(-7);break;case"ArrowDown":V(7);break;case"Home":V(-ne.getDay());break;case"End":V(6-ne.getDay());break;case"PageUp":H.shiftKey?W(-12):W(-1);break;case"PageDown":H.shiftKey?W(12):W(1);break;default:return}H.preventDefault()},[v,C,N,M]),T=o.useCallback(H=>{l||(t(er(v,C,H)),_(!1))},[v,C,t,_,l]);o.useEffect(()=>{l&&_(!1)},[l,_]);const ee=H=>{const ne=er(v,C,H);return!!(r&&ne<r||s&&ne>s)},te=(()=>{const H=xr(v,C);if(N>=1&&N<=H&&!ee(N))return N;for(let ne=1;ne<=H;ne++)if(!ee(ne))return ne;return-1})(),I=[];for(let H=0;H<Ev(v,C);H++)I.push(null);for(let H=1;H<=xr(v,C);H++)I.push(H);const Y=a===64?20:a===40?16:18,R=Ul(h.language),q=H=>new Intl.DateTimeFormat(R,{year:"numeric"}).format(new Date(H,0,1)),Z=(H,ne)=>new Intl.DateTimeFormat(R,{month:"long"}).format(new Date(H,ne-1,1)),z=Tv(v,+b.slice(0,4),q,r,s),j=Mu(v,Z,r,s),F=H=>{const ne=Mu(H,Z,r,s);if(ne.length===0)return;const V=ne.some(W=>+W.value===C+1);g(H,V?C:+ne[0].value-1)},[O,G]=o.useState(null);o.useEffect(()=>{G(null)},[e]);const ie=o.useCallback(H=>{G(H);const ne=Sv(H);if(!ne||r&&ne<r||s&&ne>s)return;t(ne);const[V,W]=ne.split("-");g(+V,+W-1)},[r,s,t,g]),K=o.useCallback(()=>{G(null)},[]),pe=o.useCallback(H=>{H.key==="Enter"?(H.preventDefault(),K(),_(!1)):H.key==="Escape"?(K(),_(!1)):H.key==="ArrowDown"&&!k&&(H.preventDefault(),_(!0))},[K,_,k]),X=k?hn.createPortal(n.jsxs("div",{ref:D,id:w,className:"date-picker__dropdown",style:B,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Hs,{size:16,strokeWidth:2})}),n.jsxs("div",{className:"date-picker__nav-ym",children:[n.jsx(_n,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYear","\uC5F0 \uC120\uD0DD"),options:z,value:String(v),onChange:H=>F(+H),size:40}),n.jsx(_n,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectMonth","\uC6D4 \uC120\uD0DD"),options:j,value:String(C+1),onChange:H=>g(v,+H-1),size:40})]}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:x,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(Vs,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:L,onKeyDown:P,children:[m.map(H=>n.jsx("div",{className:"date-picker__dow caption-1",children:H},H)),I.map((H,ne)=>{if(H===null)return n.jsx("div",{},`e${ne}`);const V=er(v,C,H),W=V===e,oe=V===b,xe=ee(H),be=ne%7;return n.jsx("button",{type:"button",disabled:xe,"data-day":H,tabIndex:H===te?0:-1,"aria-current":oe?"date":void 0,onClick:()=>!xe&&T(H),className:Be("date-picker__day caption-1",W&&"date-picker__day--selected",oe&&!W&&"date-picker__day--today",xe&&"date-picker__day--disabled",be===0&&"date-picker__day--sun",be===6&&"date-picker__day--sat"),children:H},H)})]})]}),document.body):null;return n.jsxs("div",{className:Be("date-picker",`date-picker--s${a}`,k&&"date-picker--open",u),children:[n.jsxs("div",{className:"date-picker__field",children:[n.jsx("input",{ref:E,type:"text",className:"date-picker__trigger body-2",value:O??Dv(e),placeholder:p,onChange:H=>ie(H.target.value),onClick:()=>!l&&!k&&A(),onKeyDown:pe,onBlur:K,disabled:l,"aria-haspopup":"dialog","aria-expanded":k,inputMode:"numeric",autoComplete:"off"}),n.jsx("button",{type:"button",className:"date-picker__icon-btn",onClick:()=>!l&&A(),disabled:l,tabIndex:-1,"aria-label":p,"aria-haspopup":"dialog","aria-expanded":k,children:n.jsx(Qs,{size:Y,className:"date-picker__icon",strokeWidth:1.5})})]}),X]})}const $u=["personal","sensitive","marketing"];function Mv({takenKinds:e,busy:t,today:a,onClose:r,onSubmit:s,className:l}){const{t:i}=_e.useTranslation(),[u]=o.useState(()=>cr(a)),[c,d]=o.useState([]),[h,p]=o.useState("paper"),[m,b]=o.useState("self"),[v,C]=o.useState(u),[f,x]=o.useState(""),g=$u.filter(y=>!e.includes(y)),w={personal:i("customers.consent.kind.personal","\uC77C\uBC18 \uAC1C\uC778\uC815\uBCF4"),sensitive:i("customers.consent.kind.sensitive","\uBBFC\uAC10\uC815\uBCF4(\uCCAD\uB825\xB7\uC9C4\uB2E8)"),marketing:i("customers.consent.kind.marketing","\uAD11\uACE0\uC131 \uC815\uBCF4 \uC218\uC2E0")};return n.jsx(Pn,{title:i("customers.consent.record","\uB3D9\uC758 \uBC1B\uAE30"),closeDisabled:t,onClose:r,className:l,footer:()=>n.jsx(fe,{htmlType:"button",size:48,variant:"main",disabled:t||c.length===0,label:i("customers.consent.submit","\uC800\uC7A5\uD558\uAE30"),onClick:()=>s({kinds:c,method:h,source:m,consentedAt:v||null,note:f.trim()||null})}),children:n.jsxs(Qa,{useBorder:!1,useRowBorder:!1,labelWidth:96,children:[n.jsx(un,{variant:"custom",useFullWidth:!0,label:i("customers.consent.kinds","\uBC1B\uC740 \uAC08\uB798"),children:n.jsxs("div",{className:"consent-record-popup__kinds",children:[g.map(y=>n.jsx(Oo,{checked:c.includes(y),disabled:t,label:w[y],onChange:k=>d(_=>k?[..._,y]:_.filter(A=>A!==y))},y)),g.length===0&&n.jsx("p",{className:"body-3 consent-record-popup__none",children:i("customers.consent.allTaken","\uC138 \uAC08\uB798\uB97C \uC774\uBBF8 \uB2E4 \uBC1B\uC558\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uBC1B\uC73C\uB824\uBA74 \uBA3C\uC800 \uCCA0\uD68C\uD558\uC138\uC694.")})]})}),n.jsx(un,{variant:"custom",useFullWidth:!0,label:i("customers.consent.methodTitle","\uBC1B\uC740 \uBC29\uBC95"),children:n.jsx(vn,{size:40,fullWidth:!0,ariaLabel:i("customers.consent.methodTitle","\uBC1B\uC740 \uBC29\uBC95"),options:[{key:"paper",label:i("customers.consent.method.paper","\uC11C\uBA74")},{key:"verbal",label:i("customers.consent.method.verbal","\uAD6C\uB450")},{key:"electronic",label:i("customers.consent.method.electronic","\uC804\uC790")}],value:h,onChange:y=>p(String(y))})}),n.jsx(un,{variant:"custom",useFullWidth:!0,label:i("customers.consent.sourceTitle","\uC218\uC9D1 \uCD9C\uCC98"),children:n.jsx(vn,{size:40,fullWidth:!0,ariaLabel:i("customers.consent.sourceTitle","\uC218\uC9D1 \uCD9C\uCC98"),options:[{key:"self",label:i("customers.consent.source.self","\uBCF8\uC778")},{key:"guardian",label:i("customers.consent.source.guardian","\uBCF4\uD638\uC790")},{key:"referral",label:i("customers.consent.source.referral","\uC758\uB8B0\uAE30\uAD00")}],value:m,onChange:y=>b(String(y))})}),n.jsx(un,{variant:"custom",useFullWidth:!0,label:i("customers.consent.day","\uBC1B\uC740 \uB0A0"),children:n.jsx(Lu,{size:48,value:v,max:u,today:a,onChange:y=>C(y??"")})}),n.jsx(un,{variant:"custom",useFullWidth:!0,label:i("customers.consent.note","\uBA54\uBAA8"),children:n.jsx(Kn,{size:48,fullWidth:!0,value:f,onChange:x,disabled:t,ariaLabel:i("customers.consent.note","\uBA54\uBAA8"),placeholder:i("customers.consent.notePlaceholder","\uC758\uB8B0\uAE30\uAD00 \uC774\uB984 \uB4F1 \u2014 \uBBFC\uAC10\uD55C \uB0B4\uC6A9\uC740 \uC801\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4")})})]})})}function zo({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:l=""}){const{t:i}=_e.useTranslation(),u=r??i("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=s??i("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,t),h=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:Be("pagination",l),children:[n.jsx(fe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:h}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(fe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}function Wo({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:l,actions:i,className:u}){const{t:c}=_e.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),h=!!(t||r?.length||s||l||i);return n.jsxs("div",{className:Be("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,m)=>n.jsx(vn,{size:Ft,...p},p.ariaLabel??m))]}),h&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Kn,{className:"toolbar__search",size:Ft,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,m)=>n.jsx(_n,{size:Ft,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},m)),(s||l)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(_n,{size:Ft,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),l&&n.jsx(zo,{page:l.page,totalPages:l.total,onChange:l.onChange,prevLabel:l.prevLabel,nextLabel:l.nextLabel})]}),i]})})]})}function Ru(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Ru).join(""):""}function Lv(e){let t=e.replace(/\r\n/g,`
|
|
825
825
|
`).replace(/\r/g,`
|