1var _sentryDebugIds,_sentryDebugIdIdentifier;void 0===_sentryDebugIds&&(_sentryDebugIds={});try{var stack=(new Error).stack;stack&&(_sentryDebugIds[stack]="23663c0a-f72d-4868-ae9a-34663adfdfa2",_sentryDebugIdIdentifier="sentry-dbid-23663c0a-f72d-4868-ae9a-34663adfdfa2")}catch(e){} 2var SENTRY_RELEASE;SENTRY_RELEASE={name: "ISEKAI ZERO", version: "1.2.0"}; 3__d(function(g,r,_i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return M}});var t=r(_d[0]),i=r(_d[1]),o=r(_d[2]),n=r(_d[3]),s=r(_d[4]),l=r(_d[5]),c=r(_d[6]),d=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),t.default=e,t})(r(_d[7])),u=e(r(_d[8])),h=e(r(_d[9])),p=r(_d[10]),m=e(r(_d[11])),b=e(r(_d[12])),f=r(_d[13]),y=r(_d[14]),x=r(_d[15]);r(_d[16]);var v=r(_d[17]),C=e(r(_d[18])),j=r(_d[19]),T=e(r(_d[20])),w=e(r(_d[21])),S=e(r(_d[22])),k=e(r(_d[23])),E=r(_d[24]),z=e(r(_d[25])),V=r(_d[26]),I=e(r(_d[27])),R=e(r(_d[28])),P=e(r(_d[29])),D=r(_d[30]),A=r(_d[31]),L=r(_d[32]);function O({character:e,onChangeCharacter:t}){const o=(0,x.useDispatch)(),n=e?.sheets||{},s=n.stats||[],l=n.inventory||[],u=n.skills||[],p=(e,i)=>{t('sheets',{...n,[e]:i})},[m,b]=(0,h.default)(null),y=e=>{b(e),setTimeout(()=>b(null),3500)},v=(e,t,i)=>{const o=[...s];o[e]={...o[e],[t]:i},p('stats',o)},C=(e,t,i)=>{const o=[...l];o[e]={...o[e],[t]:i},p('inventory',o)},j=(e,t,i)=>{const o=[...u];o[e]={...o[e],[t]:i},p('skills',o)},T=(e,t,i,o)=>{const n=i+o;if(n<0||n>=t.length)return;const s=[...t];[s[i],s[n]]=[s[n],s[i]],p(e,s)},w=(e,t,o)=>(0,L.jsxs)(i.View,{style:{flexDirection:'column'},children:[(0,L.jsx)(i.TouchableOpacity,{onPress:()=>T(e,t,o,-1),disabled:0===o,style:{paddingHorizontal:4,paddingVertical:1,opacity:0===o?.25:1},accessibilityLabel:"Move up",children:(0,L.jsx)(c.Ionicons,{name:"chevron-up",size:14,color:"rgba(167,185,255,0.8)"})}),(0,L.jsx)(i.TouchableOpacity,{onPress:()=>T(e,t,o,1),disabled:o===t.length-1,style:{paddingHorizontal:4,paddingVertical:1,opacity:o===t.length-1?.25:1},accessibilityLabel:"Move down",children:(0,L.jsx)(c.Ionicons,{name:"chevron-down",size:14,color:"rgba(167,185,255,0.8)"})})]});return(0,L.jsxs)(i.View,{children:[(0,L.jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',gap:8,paddingTop:4,paddingBottom:10},children:[(0,L.jsx)(c.MaterialCommunityIcons,{name:"wizard-hat",size:20,color:"#A7B9FF"}),(0,L.jsx)(i.Text,{style:{color:'#fff',fontSize:16,fontWeight:'700',flex:1},children:"Character Sheets"})]}),(0,L.jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',gap:6,marginBottom:8},children:[(0,L.jsx)(c.Ionicons,{name:"information-circle-outline",size:14,color:"rgba(255,255,255,0.3)"}),(0,L.jsx)(i.Text,{style:{color:'rgba(255,255,255,0.3)',fontSize:10,flex:1},children:"Used when Dungeon Mind or the Character Stats function is enabled on the storyline. Sets this character's starting stats, inventory, skills, and free-text Custom section."})]}),(0,L.jsxs)(i.View,{style:{gap:16},children:[(0,L.jsxs)(i.View,{style:{gap:8},children:[(0,L.jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},children:[(0,L.jsx)(i.Text,{style:{color:'#A7B9FF',fontSize:13,fontWeight:'700'},children:"Starting Stats"}),(0,L.jsx)(i.TouchableOpacity,{onPress:async()=>{let e=null;try{const t=JSON.parse(await d.getStringAsync()||'');t?.isekaiStatSchema&&Array.isArray(t.stats)&&(e=t)}catch(e){}if(!(e&&(e.stats?.length||e.inventory?.length||e.skills?.length||'string'==typeof e.custom&&e.custom.trim())))return void y('No copied stat schema found. Copy one from the storyline\'s Stat Schema editor or a chat sheet first.');const i=new Set(s.map(e=>('string'==typeof e?.name?e.name:'').trim().toLowerCase())),o=e.stats.filter(e=>e&&'string'==typeof e.name&&e.name.trim()&&!i.has(e.name.trim().toLowerCase())).map(e=>({name:e.name.trim().slice(0,60),base:'number'==typeof e.base||'string'==typeof e.base&&e.base.trim()?e.base:'',...'number'==typeof e.modifier&&0!==e.modifier?{modifier:e.modifier}:{},...['number','text','boolean','enum'].includes(e.type)?{type:e.type}:{},...'enum'===e.type&&Array.isArray(e.enumValues)?{enumValues:e.enumValues.filter(e=>'string'==typeof e&&e.trim()).map(e=>e.slice(0,50)).slice(0,20)}:{}})),c=new Set(l.map(e=>('string'==typeof e?.name?e.name:'').trim().toLowerCase())),h=(Array.isArray(e.inventory)?e.inventory:[]).filter(e=>e&&'string'==typeof e.name&&e.name.trim()&&!c.has(e.name.trim().toLowerCase())).map(e=>({name:e.name.trim().slice(0,60),quantity:'number'==typeof e.quantity&&e.quantity>0?e.quantity:1,description:'string'==typeof e.description?e.description.slice(0,500):'',equipped:!0===e.equipped})),p=new Set(u.map(e=>('string'==typeof e?.name?e.name:'').trim().toLowerCase())),m=(Array.isArray(e.skills)?e.skills:[]).filter(e=>e&&'string'==typeof e.name&&e.name.trim()&&!p.has(e.name.trim().toLowerCase())).map(e=>({name:e.name.trim().slice(0,60),description:'string'==typeof e.description?e.description.slice(0,500):''})),b='string'==typeof e.custom&&e.custom.trim()&&!(n.custom||'').trim()?e.custom.slice(0,4e3):null;if(!(o.length||h.length||m.length||b))return void y('Everything in the copied sheet is already here.');t('sheets',{...n,...o.length?{stats:[...s,...o]}:{},...h.length?{inventory:[...l,...h]}:{},...m.length?{skills:[...u,...m]}:{},...b?{custom:b}:{}});const f=[];o.length&&f.push(`${o.length} stats`),h.length&&f.push(`${h.length} items`),m.length&&f.push(`${m.length} skills`),b&&f.push('custom notes'),y(`Added ${f.join(', ')} from the copied sheet.`)},style:{backgroundColor:'rgba(167, 185, 255, 0.15)',paddingHorizontal:10,paddingVertical:4,borderRadius:6},activeOpacity:.7,children:(0,L.jsx)(i.Text,{style:{color:'#A7B9FF',fontSize:11,fontWeight:'600'},children:"Paste schema"})})]}),!!m&&(0,L.jsx)(i.Text,{style:{color:'rgba(251, 191, 36, 0.75)',fontSize:11},children:m}),s.map((e,t)=>(0,L.jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',gap:6},children:[w('stats',s,t),(0,L.jsx)(i.TextInput,{style:{flex:1,backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,color:'#fff',fontSize:12,paddingHorizontal:8,paddingVertical:6,minHeight:34},value:e.name,onChangeText:e=>v(t,'name',e),placeholder:"Name",placeholderTextColor:"rgba(255,255,255,0.3)"}),'enum'===e.type&&e.enumValues?.length>0?(0,L.jsxs)(i.TouchableOpacity,{style:{width:150,flexDirection:'row',alignItems:'center',justifyContent:'space-between',backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,paddingHorizontal:8,paddingVertical:6,minHeight:34},onPress:()=>o((0,f.setSelection)({title:e.name||'Value',options:e.enumValues.map(e=>({key:e,title:e})),onClose:e=>{e&&v(t,'base',e),o((0,f.setSelection)(null))}})),activeOpacity:.7,children:[(0,L.jsx)(i.Text,{numberOfLines:1,style:{color:String(e.base??'')?'#fff':'rgba(255,255,255,0.3)',fontSize:12,flexShrink:1},children:String(e.base??'')||'Select'}),(0,L.jsx)(c.Ionicons,{name:"chevron-down",size:12,color:"#A7B9FF"})]}):'boolean'===e.type?(0,L.jsx)(i.TouchableOpacity,{style:{width:150,alignItems:'center',backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,paddingHorizontal:8,paddingVertical:6,minHeight:34,justifyContent:'center'},onPress:()=>v(t,'base','true'===String(e.base)?'false':'true'),activeOpacity:.7,children:(0,L.jsx)(i.Text,{style:{color:'true'===String(e.base)?'#4ade80':'#f87171',fontSize:12,fontWeight:'600'},children:'true'===String(e.base)?'true':'false'})}):(0,L.jsx)(i.TextInput,{style:{width:'text'===e.type?150:72,backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,color:'#fff',fontSize:12,paddingHorizontal:8,paddingVertical:6,minHeight:34,textAlign:'center'},value:String(e.base??''),onChangeText:e=>v(t,'base',e),placeholder:"Base",placeholderTextColor:"rgba(255,255,255,0.3)",keyboardType:'text'===e.type?'default':'numbers-and-punctuation'}),(void 0===e.type||'number'===e.type)&&(0,L.jsx)(i.TextInput,{style:{width:72,backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,color:e.modifier<0?'#f87171':e.modifier>0?'#4ade80':'#fff',fontSize:12,paddingHorizontal:8,paddingVertical:6,minHeight:34,textAlign:'center'},value:String(e.modifier??''),onChangeText:e=>v(t,'modifier','-'===e?e:parseInt(e)||0),placeholder:"Mod",placeholderTextColor:"rgba(255,255,255,0.3)",keyboardType:"numbers-and-punctuation"}),(0,L.jsx)(i.TouchableOpacity,{onPress:()=>p('stats',s.filter((e,i)=>i!==t)),style:{padding:6},children:(0,L.jsx)(c.Ionicons,{name:"close-circle",size:16,color:"rgba(255,100,100,0.6)"})})]},t)),(0,L.jsxs)(i.TouchableOpacity,{onPress:()=>p('stats',[...s,{name:'',base:''}]),style:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:6,paddingVertical:8,borderWidth:1,borderColor:'rgba(167,185,255,0.2)',borderRadius:8,borderStyle:'dashed'},children:[(0,L.jsx)(c.Ionicons,{name:"add-circle-outline",size:14,color:"#A7B9FF"}),(0,L.jsx)(i.Text,{style:{color:'#A7B9FF',fontSize:11},children:"Add Stat"})]})]}),(0,L.jsxs)(i.View,{style:{gap:8},children:[(0,L.jsx)(i.Text,{style:{color:'#fbbf24',fontSize:13,fontWeight:'700'},children:"Starting Inventory"}),l.map((e,t)=>(0,L.jsxs)(i.View,{style:{gap:6,backgroundColor:'rgba(255,255,255,0.03)',borderWidth:1,borderColor:'rgba(167,185,255,0.08)',borderRadius:8,padding:8},children:[(0,L.jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',gap:6},children:[w('inventory',l,t),(0,L.jsx)(i.TextInput,{style:{flex:1,backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,color:'#fff',fontSize:12,paddingHorizontal:8,paddingVertical:6,minHeight:34},value:e.name,onChangeText:e=>C(t,'name',e),placeholder:"Item name",placeholderTextColor:"rgba(255,255,255,0.3)"}),(0,L.jsx)(i.TextInput,{style:{width:40,backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,color:'#fff',fontSize:12,paddingHorizontal:8,paddingVertical:6,minHeight:34,textAlign:'center'},value:String(e.quantity||1),onChangeText:e=>C(t,'quantity',parseInt(e)||1),keyboardType:"numbers-and-punctuation"}),(0,L.jsx)(i.TouchableOpacity,{onPress:()=>C(t,'equipped',!e.equipped),style:{padding:6},children:(0,L.jsx)(c.Ionicons,{name:e.equipped?"shield-checkmark":"shield-outline",size:16,color:e.equipped?"#4ade80":"rgba(255,255,255,0.3)"})}),(0,L.jsx)(i.TouchableOpacity,{onPress:()=>p('inventory',l.filter((e,i)=>i!==t)),style:{padding:6},children:(0,L.jsx)(c.Ionicons,{name:"close-circle",size:16,color:"rgba(255,100,100,0.6)"})})]}),(0,L.jsx)(i.TextInput,{style:{backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,color:'#fff',fontSize:12,paddingHorizontal:8,paddingVertical:6,minHeight:34},value:e.description||'',onChangeText:e=>C(t,'description',e),placeholder:"Description",placeholderTextColor:"rgba(255,255,255,0.3)"})]},t)),(0,L.jsxs)(i.TouchableOpacity,{onPress:()=>p('inventory',[...l,{name:'',quantity:1,description:'',equipped:!1}]),style:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:6,paddingVertical:8,borderWidth:1,borderColor:'rgba(167,185,255,0.2)',borderRadius:8,borderStyle:'dashed'},children:[(0,L.jsx)(c.Ionicons,{name:"add-circle-outline",size:14,color:"#A7B9FF"}),(0,L.jsx)(i.Text,{style:{color:'#A7B9FF',fontSize:11},children:"Add Item"})]})]}),(0,L.jsxs)(i.View,{style:{gap:8},children:[(0,L.jsx)(i.Text,{style:{color:'#a78bfa',fontSize:13,fontWeight:'700'},children:"Starting Skills"}),u.map((e,t)=>(0,L.jsxs)(i.View,{style:{gap:6,backgroundColor:'rgba(167,185,255,0.04)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:8,padding:8},children:[(0,L.jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',gap:8},children:[w('skills',u,t),(0,L.jsx)(i.TextInput,{style:{flex:1,backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,color:'#fff',fontSize:12,paddingHorizontal:8,paddingVertical:6,minHeight:34},value:e.name,onChangeText:e=>j(t,'name',e),placeholder:"Skill name",placeholderTextColor:"rgba(255,255,255,0.3)"}),(0,L.jsx)(i.TouchableOpacity,{onPress:()=>p('skills',u.filter((e,i)=>i!==t)),style:{padding:6},children:(0,L.jsx)(c.Ionicons,{name:"close-circle",size:16,color:"rgba(255,100,100,0.6)"})})]}),(0,L.jsx)(i.TextInput,{style:{backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,color:'#fff',fontSize:12,paddingHorizontal:8,paddingVertical:6,minHeight:40},value:e.description,onChangeText:e=>j(t,'description',e),placeholder:"Description",placeholderTextColor:"rgba(255,255,255,0.3)",multiline:!0})]},t)),(0,L.jsxs)(i.TouchableOpacity,{onPress:()=>p('skills',[...u,{name:'',description:''}]),style:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:6,paddingVertical:8,borderWidth:1,borderColor:'rgba(167,185,255,0.2)',borderRadius:8,borderStyle:'dashed'},children:[(0,L.jsx)(c.Ionicons,{name:"add-circle-outline",size:14,color:"#A7B9FF"}),(0,L.jsx)(i.Text,{style:{color:'#A7B9FF',fontSize:11},children:"Add Skill"})]})]}),(0,L.jsxs)(i.View,{style:{gap:8},children:[(0,L.jsx)(i.Text,{style:{color:'#f0abfc',fontSize:13,fontWeight:'700'},children:"Custom"}),(0,L.jsx)(i.Text,{style:{color:'rgba(255,255,255,0.35)',fontSize:10},children:"Free text for anything the other sections don't cover: trackers, relationships, rules, markdown. The AI reads it and rewrites it as the story changes things."}),(0,L.jsx)(i.TextInput,{style:{backgroundColor:'rgba(255,255,255,0.06)',borderWidth:1,borderColor:'rgba(167,185,255,0.1)',borderRadius:6,color:'#fff',fontSize:12,paddingHorizontal:8,paddingVertical:6,minHeight:100,textAlignVertical:'top'},value:n.custom||'',onChangeText:e=>p('custom',e.slice(0,4e3)),placeholder:'## Reputation\nVillagers: friendly\nThieves guild: hostile',placeholderTextColor:"rgba(255,255,255,0.3)",multiline:!0}),!!n.custom?.length&&(0,L.jsxs)(i.Text,{style:{color:'rgba(255,255,255,0.3)',fontSize:10,alignSelf:'flex-end'},children:[n.custom.length,"/4000"]})]})]})]})}function M(){const e=(0,t.useRouter)(),d=(0,v.useSafeAreaInsets)(),{scrollRef:M,onScroll:W,contentPadding:H}=(0,C.default)(),B=(0,x.useDispatch)(),F=(0,s.useNavigation)(),_=(0,s.useHeaderHeight)(),{i18n:U,t:q}=(0,E.useTranslation)(),{isDesktopLayout:$,isWideLayout:N}=((0,t.usePathname)().split("/").slice(0,-1).join("/"),(0,o.useLayoutContext)()),G=$||N,{width:K}=(0,i.useWindowDimensions)(),J=G?Math.min(K,n.DETAIL_DESKTOP_MAX_WIDTH):Math.min(K,n.MAX_WIDTH),X=(0,x.useSelector)(e=>e.auth.user),Q=(0,x.useSelector)(e=>e.edit.character),Y=(0,x.useSelector)(e=>e.edit.storyline),[Z,ee]=(0,h.default)(0),[te,re]=(0,h.default)(""),[ie,oe]=(0,h.default)(!1),ae=(0,l.useRef)(!1),ne=(0,l.useRef)(null),se=(0,l.useRef)(0),le=(0,l.useRef)(),ce=(0,l.useRef)(),de=((0,l.useRef)(),(0,l.useRef)(!1)),{_characterId:ue,type:he}=(0,t.useLocalSearchParams)(),[ge,pe]=(0,h.default)(!1),[me,be]=(0,h.default)("profile");(0,l.useEffect)(()=>{Q?.advancedMode||"sheets"!==me||be("profile")},[Q?.advancedMode]);const fe="story-character"===he,ye="story-persona"===he;(0,l.useEffect)(()=>{X&&"new"!==ue?ce.current||(B((0,f.setLoading)(!0)),w.default.get(`characters/${ue}`).then(e=>{if(e?.data?._userId!==X?._id)return B((0,f.setToast)({message:q("characterEdit.noPermission")})),ve();if(e?.data?.mirroredFrom)return B((0,f.setToast)({message:q("storylines.mirroredReadOnly")})),ve();let t=m.default.cloneDeep(e.data);t.media=t.media||[],F.setOptions({headerTitle:`${q("characterEdit.editCharacter")} (v${t.version})`}),e?.data?.draft&&(F.setOptions({headerTitle:`${q("characterEdit.editCharacterDraft")} (v${t.version})`}),t=m.default.assign(t,t?.draft?.body)),t.contentRating||(t.contentRating=t.nsfw?"18+":"sfw"),B((0,j.setCharacter)(t)),ce.current=t}).catch(e=>{alert(e.message),ve()}).finally(()=>{B((0,f.setLoading)(!1))})):!1===X&&ve()},[X]);const xe=()=>{B((0,j.setCharacter)({visibility:fe||ye?"hidden":"private",advancedMode:!1,secretMode:!1,media:[],languageCode:U.languag
3e}))};(0,l.useEffect)(()=>(xe(),()=>{xe()}),[]);const ve=()=>{e.canGoBack()?e.back():window?.history?.back()};(0,l.useEffect)(()=>{le.current=Q},[Q]),(0,l.useEffect)(()=>{"new"!==ue?F.setOptions({headerTitle:q("characterEdit.editCharacter")}):ce.current=le.current,F.setOptions({headerLeft:()=>(0,L.jsx)(i.Pressable,{onPress:()=>{m.default.isEqual(le.current,ce.current)?(de.current=!0,ve()):B((0,f.setConfirmation)({message:q("characterEdit.unsavedChanges"),onClose:e=>{e&&(de.current=!0,ve()),B((0,f.setConfirmation)(null))}}))},style:{paddingHorizontal:20},accessibilityLabel:q("characterEdit.cancel"),accessibilityRole:"button",children:(0,L.jsx)(i.Text,{style:{color:"red"},children:q("characterEdit.cancel")})}),headerRight:()=>(0,L.jsxs)(i.View,{style:{flexDirection:'row',alignItems:'center',paddingRight:12},children:[(0,L.jsx)(i.TouchableOpacity,{style:{padding:8},onPress:()=>{i.Linking.openURL("https://docs.isekai.world/books/your-guide-to-isekai-zero/page/character-creation-guide")},accessibilityLabel:q("characterEdit.helpGuide","Character creation guide"),accessibilityRole:"link",children:(0,L.jsx)(c.MaterialCommunityIcons,{name:"help-circle-outline",size:24,color:"white"})}),(0,L.jsx)(i.TouchableOpacity,{style:{minWidth:36,alignItems:'center'},onPress:()=>{const e=le.current;return"public"!==e.visibility||e.publishedAt?"public"!==e.visibility||e.draft?void we():B((0,f.setConfirmation)({message:q("characterEdit.publicContentWarning"),confirmStyle:{color:"goldenrod"},confirmText:q("characterEdit.submit"),onClose:e=>{e&&we(),B((0,f.setConfirmation)(null))}})):B((0,f.showSnackbar)({message:q("characterEdit.publishWithoutStorylineNotAllowed"),severity:"error"}))},accessibilityLabel:q("characterEdit.save"),accessibilityRole:"button",children:(0,L.jsx)(S.default,{name:"save",size:25,color:"white"})})]}),headerTitleAlign:"center",gestureEnabled:!1,headerBackVisible:!1})},[]),(0,l.useEffect)(()=>F.addListener("beforeRemove",e=>{if(de.current)return;!m.default.isEqual(le.current,ce.current)&&(e.preventDefault(),B((0,f.setConfirmation)({message:q("characterEdit.unsavedChanges"),onClose:t=>{t&&(de.current=!0,F.dispatch(e.data.action)),B((0,f.setConfirmation)(null))}})))}),[F,B,q]),(0,l.useEffect)(()=>{const e=e=>{if(!le.current||!ce.current)return;return!m.default.isEqual(le.current,ce.current)&&!de.current?(e.preventDefault(),e.returnValue="",""):void 0};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[]);const Ce=(0,l.useCallback)(()=>{e.push({pathname:'/creation/video-cover',params:{type:'character',contextName:Q?.name||''}})},[e,Q?.name]),je=(0,l.useCallback)(()=>{ae.current=!0,ne.current?.cancelAll?.(),oe(!1),ee(0),re(""),ne.current=null},[]),Te=(0,l.useCallback)(()=>{Z<100&&ne.current?.cancelAll?B((0,f.setConfirmation)({message:q("characterEdit.cancelUploadConfirm"),confirmText:q("common.confirm"),cancelText:q("common.cancel"),confirmStyle:{color:"red"},onClose:e=>{B((0,f.setConfirmation)(null)),e&&je()}})):oe(!1)},[Z,je,B,q]),we=async()=>{try{ae.current=!1;const e=m.default.cloneDeep(le.current);e.media=(e.media||[]).map(e=>e?{...e,compositionType:"background"===e.compositionType||"appearance"===e.compositionType||"illustration"===e.compositionType?e.compositionType:"foreground"}:e),ce.current?.videoCover&&!('videoCover'in e)&&(e.videoCover=null);if(!await(0,A.uploadEditorMediaForSave)({data:e,uploadType:"characters",i18nPrefix:"characterEdit",t:q,dispatch:B,setByPath:j.setCharacterByPath,batchUploadRef:ne,isSaveCancelledRef:ae,lastUiUpdateRef:se,setShowProgressModal:oe,setUploadProgress:ee,setUploadStatus:re}))return;re(q("characterEdit.saving"));const t=await w.default.post("characters",e);if(t?.data?.userCounts&&B((0,y.updateUserCounts)(t.data.userCounts)),"public"===e.visibility&&"unlisted"===t?.data?.visibility&&B((0,f.showSnackbar)({message:q("characterEdit.unlistedByEdit")})),(fe||ye)&&t.data){let e="characterSnapshots";if(ye&&(e="personaSnapshots"),"new"!==ue){const i=m.default.findIndex(Y[e],{_id:ue});i>=0&&B((0,j.setStorylineByPath)({path:`${e}.${i}`,value:{...t.data,update:!0}}))}else{const i=[...Y[e]];i.push({...t.data,update:!0}),B((0,j.setStorylineByPath)({path:e,value:i}))}}ee(100),re(q("common.complete")),await new Promise(e=>setTimeout(e,1e3)),oe(!1),de.current=!0,ve()}catch(e){console.error('saveCharacter error:',e),ae.current||B((0,f.showSnackbar)({message:q("characterEdit.savingError",{error:e.message}),severity:"error"})),ne.current?.cancelAll&&ne.current.cancelAll(),ne.current=null}finally{ae.current=!1,oe(!1),ee(0),re(""),B((0,f.setLoading)(!1))}},Se=(e,t)=>{B((0,j.setCharacterByPath)({path:e,value:t}))},ke=(0,l.useCallback)(e=>(0,D.replaceUser)(e,X,Q,Q?.languageCode),[X,Q]),Ee=(0,L.jsx)(k.default,{title:q("characterEdit.language"),tooltip:q("characterEdit.languageTooltip"),style:{marginBottom:15},selection:m.default.map(n.SUPPORTED_LANGUAGES,(e,t)=>({title:e,key:t})),onChange:e=>{Se("languageCode",e),U.changeLanguage(e)},value:Q?.languageCode}),ze=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(i.Text,{style:{color:"white",fontSize:20,marginTop:12,marginBottom:8},children:q("characterEdit.tags")}),(0,L.jsx)(z.default,{placeholder:q("characterEdit.addCharacterTags"),style:{marginBottom:5},tags:Q?.tags||[],setTags:e=>Se("tags",e),onPressMagic:async()=>{try{B((0,f.setLoading)(!0));const{data:e}=await w.default.post("tools/characters/generate/tags",{name:Q.name,promptDescription:Q.promptDescription,exampleDialogue:Q.exampleDialogue});B((0,j.setCharacter)((0,p.produce)(t=>{t.tags=m.default.unionBy(t.tags||[],e,"_id").slice(0,30)})))}catch(e){alert(e.message)}finally{B((0,f.setLoading)(!1))}}}),(0,L.jsx)(i.Text,{style:{color:"#949494",fontSize:12},children:q("characterEdit.tagsInfo")})]}),Ve=(0,L.jsx)(i.View,{style:{marginBottom:15},children:(0,L.jsx)(b.default,{title:q("characterEdit.advancedMode"),style:{marginTop:5},onValueChange:()=>{Q?.advancedMode?Q?.description!==Q?.promptDescription?B((0,f.setConfirmation)({message:q("characterEdit.advancedModeWarning"),onClose:e=>{e&&(Se("promptDescription",Q?.description),Se("advancedMode",!Q?.advancedMode)),B((0,f.setConfirmation)(null))}})):(Se("promptDescription",Q?.promptDescription),Se("advancedMode",!Q?.advancedMode)):Se("advancedMode",!Q?.advancedMode)},value:Q?.advancedMode,tooltip:q("characterEdit.advancedModeTooltip")})}),Ie=Q?.advancedMode?(0,L.jsx)(b.default,{title:q("characterEdit.secretMode"),style:{marginTop:10},onValueChange:()=>{Se("secretMode",!Q?.secretMode)},value:Q?.secretMode,tooltip:q("characterEdit.secretModeTooltip")}):null,Re=(0,L.jsxs)(L.Fragment,{children:[Q?.advancedMode&&(0,L.jsx)(u.default,{title:q("characterEdit.promptDescription"),showTokenCount:!0,minHeight:200,containerStyles:{marginTop:15},inputStyles:{},inputProps:{multiline:!0,placeholder:q("characterEdit.promptDescriptionPlaceholder")},bottomToolbar:!0,tooltip:q("characterEdit.promptDescriptionTooltip"),value:Q?.promptDescription,onChangeText:e=>Se("promptDescription",e)}),(0,L.jsx)(u.default,{title:q("characterEdit.exampleDialogue"),showTokenCount:!0,minHeight:120,containerStyles:{marginTop:15},tooltip:q("characterEdit.exampleDialogueTooltip"),inputProps:{placeholder:q("characterEdit.exampleDialoguePlaceholder"),multiline:!0},value:Q?.exampleDialogue,onChangeText:e=>Se("exampleDialogue",e),bottomToolbar:!0})]}),Pe=Q?.advancedMode?(0,L.jsx)(O,{character:Q,onChangeCharacter:Se}):null,De=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(i.View,{style:{alignItems:"center",justifyContent:"flex-end",flexDirection:"row",marginVertical:10},children:[(0,L.jsxs)(i.View,{style:{flex:1},children:[(0,L.jsx)(i.Text,{style:{fontSize:24,color:"white"},children:q("characterEdit.voice")}),(0,L.jsx)(i.Text,{style:{color:"#949494",marginTop:5},children:q("characterEdit.voiceDescription")})]}),(0,L.jsx)(i.Pressable,{onPress:()=>{B((0,f.setCallback)(e=>{const t=m.default.cloneDeep(Q?.voices||[]);t.push(e);const i=m.default.uniqBy(t.reverse(),e=>JSON.stringify(e.supportedLanguageCodes?.sort())).reverse();Se("voices",i),B((0,f.setCallback)(null))})),e.push({pathname:"voices",params:{languageCode:Q.languageCode}})},style:{paddingHorizontal:15,marginTop:10},accessibilityLabel:q("characterEdit.addVoice","Add voice"),accessibilityRole:"button",children:(0,L.jsx)(T.default,{name:"group-add",size:30,color:"white"})})]}),!m.default.isEmpty(Q?.voices)&&(0,L.jsx)(i.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:m.default.map(Q?.voices,(e,t)=>(0,L.jsxs)(i.Pressable,{onPress:()=>{const e=m.default.cloneDeep(Q?.voices||[]);m.default.pullAt(e,t),Se("voices",e)},style:{width:60,marginRight:10},accessibilityLabel:q("characterEdit.removeVoice",{name:e?.name,defaultValue:`Remove voice ${e?.name}`}),accessibilityRole:"button",children:[(0,L.jsx)(V.Image,{source:{uri:e?.imageUrl},style:{height:60,width:60,borderWidth:1,borderColor:"white",borderRadius:30},alt:e?.name,accessibilityLabel:e?.name}),(0,L.jsx)(i.Text,{style:{color:"white",textAlign:"center",marginTop:5},numberOfLines:2,children:e?.name}),(0,L.jsx)(i.Text,{style:{color:"white",textAlign:"center",marginTop:5},children:m.default.map(e?.supportedLanguageCodes,e=>n.SUPPORTED_LANGUAGES[e]).join(", ")})]},e._id))})]}
3),Ae=(0,L.jsxs)(L.Fragment,{children:["hidden"!==Q?.visibility&&(0,L.jsx)(k.default,{title:q("characterEdit.visibility"),tooltip:q("characterEdit.visibilityTooltip"),style:{marginVertical:15},selection:[{key:"private",title:q("characterEdit.private")},{key:"unlisted",title:q("characterEdit.unlisted")},..."public"===Q?.visibility?[{key:"public",title:q("characterEdit.public")}]:[]],onChange:e=>Se("visibility",e),value:Q?.visibility}),"hidden"!==Q?.visibility&&(0,L.jsx)(i.Text,{style:{color:"goldenrod",fontSize:12,lineHeight:17,marginBottom:15},children:q("characterEdit.publicViaStoryline")}),"public"===Q?.visibility&&(0,L.jsxs)(i.Text,{style:{color:"goldenrod",marginBottom:15},children:[q("characterEdit.publicContentNote")," ",(0,L.jsx)(i.Text,{style:{textDecorationLine:"underline",fontWeight:"bold"},onPress:()=>pe(!0),accessibilityLabel:q("characterEdit.publicContentNoteLink"),accessibilityRole:"link",children:q("characterEdit.publicContentNoteLink")}),q("characterEdit.publicContentNoteEnd")]})]}),Le=(0,L.jsx)(k.default,{title:q("characterEdit.contentRatingTag"),tooltip:q(`characterEdit.contentRatingDescriptions.${Q?.contentRating||"sfw"}`),style:{marginBottom:15},selection:["sfw","m17","18+"].map(e=>({key:e,title:q(`characterEdit.contentRatingOptions.${e}`)})),onChange:e=>{Se("contentRating",e),Se("nsfw","18+"===e)},value:Q?.contentRating||"sfw",link:"https://docs.isekaizero.ai/books/your-guide-to-isekai-zero/page/content-rating-guide",linkText:q("common.learnMore")}),Oe=(0,L.jsxs)(i.View,{style:{flexDirection:"row",alignItems:"center",gap:12,marginVertical:20},children:[Q?._id&&"hidden"!==Q?.visibility&&(0,L.jsx)(i.TouchableOpacity,{onPress:async()=>{B((0,f.setConfirmation)({message:q("characterEdit.deleteConfirm"),confirmText:q("common.confirm"),cancelText:q("common.cancel"),onClose:async e=>{if(e)try{B((0,f.setLoading)(!0));const e=await w.default.delete(`characters/${Q._id}`);e?.data?.userCounts&&B((0,y.updateUserCounts)(e.data.userCounts)),ve()}catch(e){alert(e.message)}finally{B((0,f.setLoading)(!1))}B((0,f.setConfirmation)(null))}}))},style:{width:50,height:50,borderWidth:1,borderColor:"rgba(255, 80, 80, 0.6)",backgroundColor:"rgba(255, 80, 80, 0.1)",borderRadius:10,alignItems:"center",justifyContent:"center"},accessibilityLabel:q("characterEdit.deleteCharacter","Delete character"),accessibilityRole:"button",children:(0,L.jsx)(c.Ionicons,{name:"trash-outline",size:22,color:"#ff5050"})}),(0,L.jsx)(i.TouchableOpacity,{onPress:we,style:{flex:1,height:50,backgroundColor:"rgba(255, 255, 255, 0.1)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.3)",borderRadius:10,alignItems:"center",justifyContent:"center"},accessibilityLabel:q("characterEdit.save"),accessibilityRole:"button",children:(0,L.jsx)(i.Text,{style:{color:"white",fontSize:16,fontWeight:"600"},children:q("characterEdit.save")})})]}),Me=[{key:"profile",icon:"person-outline",incomplete:!Q?.name?.trim()},{key:"media",icon:"images-outline",incomplete:"public"===Q?.visibility&&!(Q?.media||[]).some(e=>!e.hidden&&"appearance"!==e.compositionType)},...Q?.advancedMode?[{key:"sheets",icon:"reader-outline"}]:[],{key:"publish",icon:"rocket-outline"}],We=(0,L.jsx)(i.View,{style:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:"rgba(255,255,255,0.08)"},children:Me.map(({key:e,icon:t,incomplete:o})=>{const n=me===e;return(0,L.jsxs)(i.TouchableOpacity,{onPress:()=>be(e),style:{flex:1,alignItems:"center",paddingVertical:9,borderBottomWidth:2,borderBottomColor:n?"#A7B9FF":"transparent"},activeOpacity:.7,children:[(0,L.jsxs)(i.View,{children:[(0,L.jsx)(c.Ionicons,{name:t,size:19,color:n?"#A7B9FF":"rgba(255,255,255,0.4)"}),o&&(0,L.jsx)(i.View,{style:{position:"absolute",top:-2,right:-6,width:7,height:7,borderRadius:4,backgroundColor:"#FF6B6B"}})]}),(0,L.jsx)(i.Text,{style:{color:n?"#A7B9FF":"rgba(255,255,255,0.5)",fontSize:11,fontWeight:n?"700":"500",marginTop:3},numberOfLines:1,children:q(`characterEdit.tabs.${e}`)})]},e)})});return(0,L.jsx)(i.KeyboardAvoidingView,{style:{flex:1},behavior:"height",keyboardVerticalOffset:_,children:(0,L.jsxs)(i.View,{style:{flex:1},children:[(0,L.jsx)(i.View,{style:{width:"100%",maxWidth:J,alignSelf:"center",paddingHorizontal:G?20:0}
3,children:We}),(0,L.jsx)(i.ScrollView,{ref:M,contentContainerStyle:[{alignItems:"center"},H],keyboardDismissMode:"none",keyboardShouldPersistTaps:"handled",automaticallyAdjustKeyboardInsets:!0,onScroll:W,scrollEventThrottle:16,children:(0,L.jsxs)(i.View,{style:{width:"100%",maxWidth:J,alignSelf:"center",paddingHorizontal:G?20:0},children:[(0,L.jsx)(R.default,{visible:ie,progress:Z,status:te,canCancel:Z>0&&Z<100,onCancel:je,onRequestClose:Te}),"rejected"===Q?.status&&!!Q?.reason&&(0,L.jsxs)(i.View,{style:{marginHorizontal:15,marginTop:12,padding:16,backgroundColor:"rgba(218, 165, 32, 0.15)",borderRadius:10,borderWidth:1,borderColor:"rgba(218, 165, 32, 0.4)"},children:[(0,L.jsx)(i.Text,{style:{color:"goldenrod",fontSize:16,fontWeight:"bold",marginBottom:8},children:q("characterEdit.rejectedReason")}),(0,L.jsx)(i.Text,{style:{color:"goldenrod",fontSize:14,lineHeight:20},children:Q?.reason})]}),"media"===me&&(()=>{const t=(Q?.media||[]).filter(e=>"appearance"!==e.compositionType),o=t.filter(e=>"background"!==e.compositionType&&"illustration"!==e.compositionType),n=t.filter(e=>"background"===e.compositionType),s=t.filter(e=>"illustration"===e.compositionType),l=!!(Q?.videoCover?.url||Q?.videoCover?.thumbnailUrl||Q?.videoCoverThumbnail?.url),d=(t,i={})=>e.push({pathname:`characters/${ue}/media`,params:{type:"character",tab:t,...i}}),u=()=>{B((0,f.setCallback)(e=>{const t=Array.isArray(e)?e[0]:e;B((0,f.setCallback)(null)),t?._id&&(Se("_customCoverMediaId",t._id),Se("cover",{url:t.url}))})),e.push({pathname:"/creation/gallery",params:{mode:"select"}})},h={flexDirection:"row",alignItems:"center",gap:8,backgroundColor:"rgba(255,255,255,0.06)",borderRadius:8,padding:10,borderWidth:1,borderColor:"rgba(167,185,255,0.1)"},p=(e,t,o,n)=>(0,L.jsxs)(i.TouchableOpacity,{onPress:()=>d(o),style:{...h,gap:10,marginTop:6},activeOpacity:.7,children:[t.length?(0,L.jsx)(i.View,{style:{flexDirection:"row"},children:t.slice(0,3).map((e,t)=>(0,L.jsx)(V.Image,{source:{uri:"video"===e.type?(0,D.videoPosterUrl)(e):e.url},style:{width:34,height:34,borderRadius:6,marginLeft:t?-14:0,borderWidth:1,borderColor:"rgba(0,0,0,0.6)"},contentFit:"cover"},e._id))}):(0,L.jsx)(i.View,{style:{width:34,height:34,borderRadius:6,backgroundColor:"rgba(255,255,255,0.08)",alignItems:"center",justifyContent:"center"},children:(0,L.jsx)(c.MaterialCommunityIcons,{name:n,size:16,color:"rgba(255,255,255,0.4)"})}),(0,L.jsx)(i.Text,{style:{flex:1,color:"#fff",fontSize:14,fontWeight:"600"},numberOfLines:1,children:e}),(0,L.jsx)(i.Text,{style:{color:"rgba(255,255,255,0.45)",fontSize:13},children:t.length}),(0,L.jsx)(c.Ionicons,{name:"chevron-forward",size:14,color:"rgba(255,255,255,0.3)"})]},o);return(0,L.jsxs)(i.View,{style:{paddingHorizontal:10,marginTop:12},children:[(0,L.jsxs)(i.View,{style:{backgroundColor:"rgba(255,255,255,0.04)",borderRadius:10,borderWidth:1,borderColor:"rgba(167,185,255,0.12)",padding:12},children:[(0,L.jsx)(i.Text,{style:{color:"white",fontSize:15,fontWeight:"700",marginBottom:10},children:q("storylineEdit.coverPreview","Cover Preview")}),(0,L.jsxs)(i.View,{style:{flexDirection:"row",alignItems:"center",gap:12},children:[(0,L.jsx)(I.default,{foregroundImage:o.find(e=>!e.type||"image"===e.type),backgroundImage:n.find(e=>!e.type||"image"===e.type),t:q,onPress:()=>d("foreground"),style:{width:120},videoCover:Q?.videoCover,videoCoverThumbnail:Q?.videoCoverThumbnail,coverUrl:Q?.cover?.url,customCoverUrl:Q?._customCoverMediaId?Q?.cover?.url:null,hideLabel:!0}),(0,L.jsxs)(i.View,{style:{flex:1,justifyContent:"center",gap:8},children:[(0,L.jsxs)(i.TouchableOpacity,{onPress:()=>{if(!Q?._customCoverMediaId)return u();B((0,f.setSelection)({options:[{key:"change",title:q("media.changeVideoCover","Change")},{key:"remove",title:q("media.removeVideoCover","Remove"),destructive:!0}],onClose:e=>{B((0,f.setSelection)(null)),"change"===e&&u(),"remove"===e&&(Se("_customCoverMediaId",""),Se("cover",null))}}))},style:h,activeOpacity:.7,children:[(0,L.jsx)(c.MaterialCommunityIcons,{name:"image-edit-outline",size:15,color:Q?._customCoverMediaId?"#A7B9FF":"rgba(255,255,255,0.35)"}),(0,L.jsx)(i.Text,{style:{flex:1,color:Q?._customCoverMediaId?"rgba(255,255,255,0.75)":"rgba(255,255,255,0.45)",fontSize:13,fontWeight:"600"},numberOfLines:1,children:q("media.customCover","Custom Cover")}),(0,L.jsx)(c.Ionicons,{name:"chevron-forward",size:13,color:"rgba(255,255,255,0.3)"})]}),(0,L.jsxs)(i.TouchableOpacity,{onPress:Ce,style:h,activeOpacity:.7,children:[(0,L.jsx)(c.FontAwesome6,{name:"circle-play",size:14,color:l?"#A7B9FF":"rgba(255,255,255,0.35)"}),(0,L.jsx)(i.Text,{style:{flex:1,color:l?"rgba(255,255,255,0.75)":"rgba(255,255,255,0.45)",fontSize:13,fontWeight:"600"},numberOfLines:1,children:l?q("media.videoCoverSet","Video Cover Set"):q("media.noVideoCover","No Video Cover")}),(0,L.jsx)(c.Ionicons,{name:"chevron-forward",size:13,color:"rgba(255,255,255,0.3)"})]}),(0,L.jsx)(i.Text,{style:{color:"rgba(255,255,255,0.45)",fontSize:11,lineHeight:16},children:q("media.coverAutoNote")})]})]})]}),p(q("media.foreground","Foreground"),o,"foreground","account-outline"),p(q("media.background","Backgroun
3d"),n,"background","image-outline"),p(q("media.illustration","Illustration"),s,"illustration","image-frame"),Q?._id&&"new"!==ue&&(()=>{const t=(Q?.media||[]).filter(e=>"appearance"===e.compositionType);return(0,L.jsxs)(i.TouchableOpacity,{onPress:()=>e.push(`/characters/${ue}/loadout`),style:{...h,gap:10,marginTop:6},activeOpacity:.7,children:[t.length?(0,L.jsx)(i.View,{style:{flexDirection:"row"},children:t.slice(0,3).map((e,t)=>(0,L.jsx)(V.Image,{source:{uri:e.url},style:{width:34,height:34,borderRadius:6,marginLeft:t?-14:0,borderWidth:1,borderColor:"rgba(0,0,0,0.6)"},contentFit:"cover"},e._id))}):(0,L.jsx)(i.View,{style:{width:34,height:34,borderRadius:6,backgroundColor:"rgba(255,255,255,0.08)",alignItems:"center",justifyContent:"center"},children:(0,L.jsx)(c.Ionicons,{name:"shirt-outline",size:16,color:"rgba(255,255,255,0.4)"})}),(0,L.jsx)(i.Text,{style:{flex:1,color:"#fff",fontSize:14,fontWeight:"600"},numberOfLines:1,children:q("loadout.title","Loadout")}),(0,L.jsx)(i.Text,{style:{color:"rgba(255,255,255,0.45)",fontSize:13},children:t.length}),(0,L.jsx)(c.Ionicons,{name:"chevron-forward",size:14,color:"rgba(255,255,255,0.3)"})]})})(),De]})})(),(0,L.jsxs)(i.View,{style:{padding:10,paddingTop:5,paddingBottom:d.bottom+40},children:["profile"===me&&(0,L.jsxs)(L.Fragment,{children:[Ve,Ee,(0,L.jsx)(u.default,{title:q("characterEdit.name"),minHeight:40,required:!0,inputProps:{placeholder:q("characterEdit.namePlaceholder"),numberOfLines:1},value:Q?.name,onChangeText:e=>Se("name",e)}),(0,L.jsx)(u.default,{title:q("characterEdit.descriptionSummary"),minHeight:80,containerStyles:{marginVertical:15},inputStyles:{},inputProps:{multiline:!0,placeholder:q("characterEdit.descriptionSummaryPlaceholder")},tooltip:q("characterEdit.descriptionSummaryTooltip"),value:Q?.descriptionSummary,onChangeText:e=>Se("descriptionSummary",e),userTagHelper:!0}),(0,L.jsx)(u.default,{title:q(Q?.advancedMode?"characterEdit.descriptionUser":"characterEdit.description"),showTokenCount:!0,minHeight:200,tooltip:q("characterEdit.descriptionTooltip"),notice:Q?.advancedMode?q("characterEdit.descriptionUserNotice"):null,inputProps:{placeholder:q("characterEdit.descriptionPlaceholder"),multiline:!0},value:Q?.description,onChangeText:e=>{Se("description",e),Q?.advancedMode||Se("promptDescription",e)},userTagHelper:!0,previewable:!0,splitPreview:G,previewTransform:ke}),Re]}),"sheets"===me&&Q?.advancedMode&&Pe,"publish"===me&&(0,L.jsxs)(L.Fragment,{children:[Ie,ze,Ae,Le,Oe]})]}),(0,L.jsx)(P.default,{visible:ge,onClose:()=>pe(!1),docKey:"guideline"})]})})]})})}},1116,[1256,16,1261,956,1388,13,1258,2124,2125,2126,2127,1086,2128,1084,1085,1262,2129,272,2130,1089,1291,830,2101,2131,934,2132,1260,2133,2134,1304,1267,2135,7]); 4 5//# debugId=23663c0a-f72d-4868-ae9a-34663adfdfa2
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.